User: starksm
Date: 02/04/12 18:34:15
Modified: src/main/org/jboss/web AbstractWebContainer.java
Log:
Check the getAllURLs in getClassLoaderURLs if the getURLs method
return null or empty and extract the file url from any njar url in
getCompileClasspath.
Revision Changes Path
1.42 +11 -1 jboss/src/main/org/jboss/web/AbstractWebContainer.java
Index: AbstractWebContainer.java
===================================================================
RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/web/AbstractWebContainer.java,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -r1.41 -r1.42
--- AbstractWebContainer.java 11 Apr 2002 21:44:42 -0000 1.41
+++ AbstractWebContainer.java 13 Apr 2002 01:34:15 -0000 1.42
@@ -158,7 +158,7 @@
@see org.jboss.security.SecurityAssociation;
@author [EMAIL PROTECTED]
-@version $Revision: 1.41 $
+@version $Revision: 1.42 $
*/
public abstract class AbstractWebContainer
extends SubDeployerSupport
@@ -837,6 +837,7 @@
for(int u = 0; u < urls.length; u ++)
{
URL url = urls[u];
+ url = org.jboss.net.protocol.njar.Handler.njarToFile(url);
tmp.add(url.toExternalForm());
}
cl = cl.getParent();
@@ -863,6 +864,15 @@
{
Object[] args = {};
urls = (URL[]) getURLs.invoke(cl, args);
+ }
+ if( urls == null || urls.length == 0 )
+ {
+ getURLs = cl.getClass().getMethod("getAllURLs", parameterTypes);
+ if( returnType.isAssignableFrom(getURLs.getReturnType()) )
+ {
+ Object[] args = {};
+ urls = (URL[]) getURLs.invoke(cl, args);
+ }
}
}
catch(Exception ignore)
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development