[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: .ear classloading

samkhanski do-not-reply at jboss.com
Thu Jul 31 13:24:35 EDT 2008


Thanks for your reply. I guess I'm more interested in where JBoss looks for classes to load, rather than how it goes about loading them. What dirs does it look in first if:

1.) It is deploying a .ear
2.) There is an ejb module in that .ear

My understanding is that the Manifest.mf file in the ejb module can (should?) specify the required classpath. I've tried adding 'APP-INF/classes' as the initial entry to the 'CLASS-PATH' statement in the manifest - but no luck. I've also removed all existing references to 'APP-INF/lib' in the manifest and the ejb still goes looking in APP-INF/lib for the classes it requires. It seems the path 'APP-INF/lib' is hardwired in JBoss as a place to look for classes. So, can I add APP-INF/classes as the initial place for JBoss to look? If not, what other directory can I use where JBoss will look before delving into APP-INF/lib?

Thanks. 

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

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



More information about the jboss-user mailing list