Have you tried placing your library in WEB-INF/lib?
There is probably a classloader issue at work.


> -----Original Message-----
> From: James C. McMaster (Jim) [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, August 20, 2003 4:23 PM
> To: [EMAIL PROTECTED]
> Subject: Tomcat cannot find subclass
> 
> 
> I am having a problem with Tomcat 3.3, running on Solaris 8.
> 
> I have written a framework for asking questions and getting 
> responses through 
> a browser.  The package is called 
> com.stortek.ilm.userresponse.  The classes 
> live in a .jar file which resides in $TOMCAT_HOME/lib/apps.
> 
> One of the classes in that package, 
> ServletSelectAnswerFormatter, generates 
> an HTML select.  I get the options by invoking a method 
> designed to be 
> overridden in a subclass.
> 
> My current project has such a subclass, 
> CountryServletSelectAnswerFormatter, 
> which resides in WEB-INF/classes/com/stortek/ilm/userresponse 
> for the correct 
> context.
> 
> When the servlet runs, I get a ClassNotFoundException:
> 
> Class not found: 
> com.stortek.ilm.userresponse.CountrySelectServletAnswerFormat
> ter
> 
> Does anyone know what is wrong?  Is it possible to subclass part of a 
> framework, and store the subclass and its parent this way?
> 
> Thank you for any help you can provide.
> -- 
> Jim McMaster
> mailto:[EMAIL PROTECTED]
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to