With a bit of debugging I have found that sun-web.xml in the __admingui
exploded WAR contains the following: and
com.sun.enterprise.glassfish.web.WarHandler.configureLoaderAttributes() does
correctly strip the whitespace characters when splitting the extra-class-path
into pathElements. See com.sun.enterprise.glassfish.web.WarHandler:286 for
details. Consequently at line 310: URL url = file.toURI().toURL(); the spaces
are URL encoded as %20 before passing the string to:
cloader.addRepository(url.toString()); which then silently fails to add the
jar to the classpath. Strangely addRepository(String) converts the string
back to a URL before passing it (eventually) to URLClassPath.addURL(). I
don't have the source for this class but it evidently doesn't like the
trailing encoded whitespace characters, because after this call returns the
classpath has not changed. URLClassPath.addURL() should probably strip the
trailing whitespace. But then so should WebappClassLoader. I will supply a
patch to the latter after I've tested it.
--
[Message sent by forum member 'dwhitla']
View Post: http://forums.java.net/node/901968