You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by "Kevin L. Cobb" <ke...@emergint.com> on 2005/01/27 15:24:12 UTC

Class Load Issue

Hi all, I am new to the list but not new to Tomcat. 

 

We have a main servlet that we want instantiated before any pages are
hit. Hence, in the web.xml, we use the directive
<load-on-startup>1</load-on-startup>. In addition, we use a Custom Class
Loader that extends WebapppClassLoader because our core classes are
encrypted.  

 

Here is the rub. The web application works fine but I get an error in
the Catalina log when the app starts, but only when using the Custom
Class Loader. The error basically says that the main servlet that I am
trying to load cannot be found. But, the servlet is found when I hit the
page, or the application would not work at all. The problem does not
seem to be in the Custom Class Loader itself, but in the way the main
servlet is being accessed when the "load-on-startup" is applied. I
assume that the load-on-startup directive would attempt to load my main
servlet class using the Custom Class Loader, but perhaps it does not? I
have to me missing something here.

 

Any help is appreciated. 

 

Kevin 

 


Re: Class Load Issue

Posted by "DAVID B. LEVI" <da...@sbcglobal.net>.
Kevin
I have been getting mail from Tomcat for many months.  I have tried unsuccessfully to "unsubscribe" from the list as I have nothing to do with Tomcat.  Will you please ask someone there to unsubscribe this address?  Many thanks.

"Kevin L. Cobb" <ke...@emergint.com> wrote:
Hi all, I am new to the list but not new to Tomcat. 



We have a main servlet that we want instantiated before any pages are
hit. Hence, in the web.xml, we use the directive
1. In addition, we use a Custom Class
Loader that extends WebapppClassLoader because our core classes are
encrypted. 



Here is the rub. The web application works fine but I get an error in
the Catalina log when the app starts, but only when using the Custom
Class Loader. The error basically says that the main servlet that I am
trying to load cannot be found. But, the servlet is found when I hit the
page, or the application would not work at all. The problem does not
seem to be in the Custom Class Loader itself, but in the way the main
servlet is being accessed when the "load-on-startup" is applied. I
assume that the load-on-startup directive would attempt to load my main
servlet class using the Custom Class Loader, but perhaps it does not? I
have to me missing something here.



Any help is appreciated. 



Kevin