I get a class not found exception when I try to load a class from a jar file that is 
deployed inside a sar file. I think the problem is in SubDeployerSupport.deployUrl(): 
For non-native sub-deployments the code is:

         else
         {
            DeploymentInfo sub = new DeploymentInfo(url, di, getServer());
         }

Well you know, it's probably a good idea to *do* something with that local variable 
sub? Like, deploy it. So I overrode the deployUrl() method in my own deployer and 
added the line
                this.mainDeployer.deploy(sub);
but now it blows up with a null pointer exception in 
DeploymentInfo.createClassLoaders() at the call to ucl.addURL():
         // Add the deployment URL to the parent UCL
         ucl = parent.ucl;
         ucl.addURL(localUrl);
I could dig deeper if necessary but I would like to know if I'm going off in a wrong 
direction. Any ideas why the class loader can't find my class?

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

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


-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to 
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to