Yes, thank you.  The specific error is:
NoClassDefFoundError: No ClassLoaders found for config.ConfigAnchor
...which is a JBoss-specific error, I have to guess.

I was wrong in the sense that a Class.forName() is not happening; there is a 
specific reference to config.ConfigAnchor.  So, as you say, config.ConfigAnchor 
is not showing up in the classpath, even though I have all the references 
(MANIFEST.MF Class-Path entries) in place properly.

Now what is weird to me is this: I understand how this error would occur if you 
simply look at the situation from the ear's point of view.  In there, you have 
a framework.jar library that contains a normal static reference to 
config.ConfigAnchor.  If the code should ever flow in that direction, you'll 
get a NoClassDefFoundError, because config.ConfigAnchor is not present in 
framework.jar.  All fine and good.

But what I do NOT understand is that we're looking at this from the standpoint 
of the war file.  That is, the call graph starts from StartupServlet.init() 
(loaded by the webapp loader).  I would THINK that framework.jar would be added 
to the classpath of the webapp loader by virtue of the MANIFEST.MF entry.  That 
would mean that the framework.jar, the StartupServlet.class and the 
config.ConfigAnchor.class would all be in the classpath of the webapp loader.  
That is not what I'm seeing. 

It almost looks like JBoss is doing something weird or stupid and is adding the 
ear jars to the ear loader's classpath, which of course is not correct 
according to J2EE1.4.  That is, jars in the ear are supposed to be sort of 
dormant or invisible until they're referenced by someone else's classpath.  In 
this case, that means that my case should work, because framework.jar would be 
not-present-in-any-classpath until the webapp loader sucked it in via the war 
file's manifest.

Laird

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

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


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to