File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes Include custom library in classpath Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Include custom library in classpath" Watch "Include custom library in classpath" New topic
Author

Include custom library in classpath

Felipe Rodriguez
Greenhorn

Joined: Mar 17, 2010
Posts: 1
Hi All,

I'm currently seeking for a way to include a library folder to the classpath of jboss so I went to jboss-service.xml on my server configuration which is "all"
I'm using jboss 4.2.2.GA on this server so my custom library is located at /app/jboss/ext so i went and modify the jboss-service.xml file as follows:

<classpath codebase="/app/jboss/ext" archives="*"/>

also tried with:

<classpath codebase="file:/app/jboss/ext" archives="*"/>



But no success on this matter, seems the only way to load my jars is having them inside JBOSS_HOME/server/all/lib/ext folder. Any idea on what could be wrong or where should I look?



Thanks!
Alan Moor
Greenhorn

Joined: Apr 07, 2010
Posts: 3
The issue is that the entry for the classpath must be a URL not a path. We added an /ext folder under jboss-home/lib.

<classpath codebase="${jboss.home.url}/lib/ext" archives="*"/>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Include custom library in classpath
 
Similar Threads
failed to initialize bean container with "Null beannMetaData" error
another Eclipse & JBoss question
Automatically start local application after JBoss started
How to integrate JBoss4 and Tomcat5?
classpath / external jars