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 and the fly likes Classloader Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » JBoss
Reply Bookmark "Classloader" Watch "Classloader" New topic
Author

Classloader

Nathaniel Stoddard
Ranch Hand

Joined: May 29, 2003
Posts: 1258
Can anybody give me a very simple example of the jboss-web configuration to make my WAR have its own classloader? I read some websites and searched this forum, but everything I've tried doesn't seem to have any effect (the whole loader-repository tag thing). (My sympton is my logging messages showing up in the JBoss server.log instead of my own.) I'm only interested in my WAR having its own classloader, not the entire EAR.

So, if anybody feels generous, gracias. BTW, I'm using JBoss 4.


Nathaniel Stodard<br />SCJP, SCJD, SCWCD, SCBCD, SCDJWS, ICAD, ICSD, ICED
norman richards
Author
Ranch Hand

Joined: Jul 21, 2003
Posts: 364
If the WAR is inside of the EAR, it cannot be scoped (have its own classloader). You'll need to do the isolation at the EAR level or separate out the WAR file.

Try http://www.jboss.org/wiki/Wiki.jsp?page=Logging for some general advice on logging.


[<a href="http://members.capmac.org/~orb/blog.cgi" target="_blank" rel="nofollow">blog</a>] [<a href="http://www.amazon.com/exec/obidos/ASIN/0596100078/orb-20" target="_blank" rel="nofollow">JBoss: A Developer's Notebook</a>] [<a href="http://www.amazon.com/exec/obidos/ASIN/1932394052/orb-20" target="_blank" rel="nofollow">XDoclet in Action</a>]
 
 
subject: Classloader
 
Threads others viewed
Is there a way to tell JBoss to let the WAR load its own JSF libraries
placing ejb and web modules
Application of user defined class loader?
Loading different version of Hibernate(3.3) in Jboss4.0.3
EJB access and classloader
IntelliJ Java IDE