• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

class loading problem in jboss

 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a webapplication with the libraries required for the webapplication as jar files in subdirectories withing the WEB-INF/lib directory.

So for example the jar files would be in the format WEB-INF/lib/sub/one.jar

But when I loadup the webapplication it doesnt seem to find the jar within the subdirectories, I checked the server logs and I see that the the subdirectory has been picked up by a classloader. I've added the log below. Is there any setting withing jboss or the embedded tomcat which I need to set to enable subdirectory lookup?

Added url: file:/C:/java_tools/jboss-3.2.5/server/default/deploy/dashboard.war/WEB-INF/classes/, to ucl: org.jboss.mx.loading.UnifiedClassLoader3@198046{ url=file:/C:/java_tools/jboss-3.2.5/server/default/deploy/dashboard.war/ ,addedOrder=32}

Added url: file:/C:/java_tools/jboss-3.2.5/server/default/deploy/dashboard.war/WEB-INF/lib/sub/, to ucl: org.jboss.mx.loading.UnifiedClassLoader3@198046{ url=file:/C:/java_tools/jboss-3.2.5/server/default/deploy/dashboard.war/ ,addedOrder=32}
 
Ranch Hand
Posts: 275
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't know about the JBoss/Apache implementation, but I'm pretty sure that the spec says that supporting jars need to be directly in the WEB-INF/lib (ie the spec doesn't require searching all subdirectories for jar files).

--Dale--
 
Don't play dumb with me! But you can try this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic