-
1. Re: How to make jboss to see the new added jar to it's <jbos
wolfgangknauf Mar 3, 2009 9:38 AM (in response to ercanclk)Hi,
the standard way to add the classes from your java project to the web project is to build a JAR file from the Java project (as you do already) and place this JAR in WEB-INF\lib of the web project.
Best regards
Wolfgang -
2. Re: How to make jboss to see the new added jar to it's <jbos
ercanclk Mar 4, 2009 3:42 AM (in response to ercanclk)Hi,
Firstly, thank you for your reply. I tried what u say. I put the jar into the WEB-INF\lib of my web project. But when i test the application it throws error: classnotfoundexception. My web project needs some jars to run. The jars except my java project's jar are in <jboss-home>/common/lib folder. I think all the jars that my web project needs to run must be in <jboss-home>/common/lib folder( it works in this situation) or in WEB-INF\lib of my web project. if some jars are in <jboss-home>/common/lib, and some are in WEB-INF\lib of my web project doesn't seem to work. All of them must be in one folder.
Any ideas? -
3. Re: How to make jboss to see the new added jar to it's <jbos
wolfgangknauf Mar 4, 2009 9:41 AM (in response to ercanclk)Hi,
I don't know much about JBoss classloading, but I found this article (I assume you use JBoss5):
http://www.jboss.org/file-access/default/members/jbossweb/freezone/docs/2.1.2/class-loader-howto.html
According to this document, only a small set of JARs from CATALINE_HOME/lib (I assume this points to "common/lib", as I find all the JARs from the classloader-howto in this directory) is loaded by the WebApp classloader.
But hopefully one of the "gurus" takes a look at this post and can provide you further help.
Wolfgang