[jboss-dev-forums] [Design the new POJO MicroContainer] - Problem with VFS AbstractJarHandler / JarEntryHandler
jason.greene@jboss.com
do-not-reply at jboss.com
Mon Nov 13 02:03:02 EST 2006
When a URL is built for a JAR entry that is a directory, the trailing slash is removed. Without the slash, URLClassLoader will reject it as a valid classpath entry.
Can anyone see a problem with using the non-stripped entry name for construction of the URL?
This would also fix the following:
| // Question: Why doesn't this work properly?
| // URL url = new URL(parent.toURL(), entry.getName());
| URL url = getURL(parent, entryName);
|
-Jason
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985315#3985315
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985315
More information about the jboss-dev-forums
mailing list