[jboss-dev-forums] [Design of POJO Server] - JBAS-6061 or weird nested jar

alesj do-not-reply at jboss.com
Tue Oct 14 06:27:34 EDT 2008


Some explanation about https://jira.jboss.org/jira/browse/JBAS-6061.

If you follow Luc's instructions and download the jar with the driver,
you'll see a weird structure inside.

sqljdbc.jar
- com
- META-INF
- sqljdbc.jar (<-- 0 size jar; the actual cause)
- sqljdbc.jar.old

What happens is that when VFS tries to read top sqljdbc.jar it finds inner sqljdbc.jar.
Currently the policy in JBossAS is to unpack nested jar into temp and again handle them as top level jars.
But in this case - probably due to 0 size - JDK's Zip handling fails while handling this newly unpacked inner sqljdbc.jar,
propagating the error all the way to the top - classloading part.

I don't see how we could exclude such failures,
unless we suppress all errors during inner jars unpack phase,
which is not the way to go imo.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4182061#4182061

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4182061



More information about the jboss-dev-forums mailing list