This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Tomcat and the fly likes How to configure custom class loader ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "How to configure custom class loader ?" Watch "How to configure custom class loader ?" New topic
Author

How to configure custom class loader ?

tanu dua
Ranch Hand

Joined: Apr 05, 2004
Posts: 145
Hi,

I have created my custom class loader for my web application , but I ma not able to understand how to configure that in Tomcat so that when my web application classes are loaded it should be loaded from my custom class loader.

Please help

Thanks
Tanu
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

As the name 'custom' suggests, it is pretty much up to you how these things should be done.

Have you read:
http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html
?

Typically, any code that needs to be run when an application is started is triggered from a context listener.
http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/ServletContextListener.html


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to configure custom class loader ?
 
Similar Threads
How can we configure jboss startup script
Problem using custom ClassLoader
NoClassDefFoundError problem with WAR in 8.1
Problem using custom ClassLoader
java.lang.NoClassDefFoundError when trying a basic webservice using Spring WS 2.0.3