wood burning stoves 2.0*
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
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 ?