[jboss-user] [JBoss Microcontainer] New message: "Re: Info required about jboss-classloading.xml"

Adrian Brock do-not-reply at jboss.com
Thu Jan 21 11:06:35 EST 2010


User development,

A new message was posted in the thread "Info required about jboss-classloading.xml":

http://community.jboss.org/message/521480#521480

Author  : Adrian Brock
Profile : http://community.jboss.org/people/adrian@jboss.org

Message:
--------------------------------------------------------------
With that configuration, your ejb3 won't be able to see any classes, except those in the bootstrap classloader.
i.e. you have no requirements (imports) and you are not using import-all=true.
 
e.g. You won't be able to see anything in common/lib which includes the ejb3 api and container classes.
 
Ideally, the ejb3 deployer should automatically add the ejb3 classes as <requirement/>s to all ejb3 deployments
that don't have import-all=true, but it doesn't currently do this. So you'll have to add them yourself.
 
e.g. you could add package requirements for javax.ejb, etc.
but I imagine it will take a lot of work to figure out exactly what you need. :-)
 
A simpler way is probably to use a module requirement:
vfsfile:/home/jboss/jboss-5.1.0.GA/server/all/conf/jboss-service.xml
which is the name of your deployment that contains all the common/lib jars (it has no nice alias).

vfsfile:/${jboss.server.home.dir}/conf/jboss-service.xml
should also work just as well?
 
P.S. The NPE is a bug. You should ask the ejb3 developers to give you a meaningful error message. :-)

--------------------------------------------------------------

To reply to this message visit the message page: http://community.jboss.org/message/521480#521480




More information about the jboss-user mailing list