Can you not include the jars in the class path? The entry can be made in the conf/jboss-service.xml file.
Extract the jars in the ear file to a location (ex: /home/mylib/)
Include the following line in the jboss-service.xml file:
<classpath codebase="/home/mylib/" archives="*"/>
This way the jars are in the classpath and hence available to all the applications on the server.
This way I have to reconfigure the server. I want to avoid this. In Bea-Weblogic I can explicitly export jars inside an ear to the global server classpath, just as if I had added them to the jboss/server/default/lib directory. I was wandering if such a thing is available on Jboss.
to solve this for some libraries, which are useful for the whole java environment, I've copied them to the lib\ext directory of the java sdk, e.g. oracle driver classes,...).
I believe, putting them into jboss\server\<type\lib\ would work, too.
This is exactly what I wanted to avoid, since I have to restart the server in order to make the libs available. I don't want my customerst to have to copy files all over the place and since BEA WLS offers this feature I was looking for the JBoss way to do this. But thanks anyway