This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Include custom library in classpath

 
Felipe Rodriguez
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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="*"/>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic