[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: virtualFile.toURL().openStream() does not provide a JarI

wolfc do-not-reply at jboss.com
Wed Sep 3 13:54:27 EDT 2008


Basically all JPA implementations expect the URL to point to a jar, so anything packed in a jar will work.

The trickery is in the fact that they all interpret jar:mywar.war!/WEB-INF/classes/ as a special jar url. Where they start at mywar.war and use the rest as the starting point entry for scanning.

This works wars in ears are exploded out first (previous VFS). But now doesn't work anymore.

In which case all JPA implementations fallback to doing:
new JarInputStream(url.openStream());

So the vfszip url handler must hook up into that ultimate fallback.

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

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



More information about the jboss-dev-forums mailing list