Unlike Tomcat 4, Tomcat 3 uses a delegating ClassLoader.  This means that
jars in lib/apps can't see classes in WEB-INF/classes.  Also, as long as the
jar is in lib/apps, Tomcat 3 will load classes from there in preference to
the same jar in WEB-INF/lib.

"James C. McMaster (Jim)" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Yes, the jar was in WEB-INF/lib, and I took it out in case that was a
> problem.  There was no change in the result when I did.
>
> I also suspect a ClassLoader issue.  What I would like to know is why?
When
> I subclass a member of a framework, do I have to put my project-unique
> subclass in the same jar as the common classes?  If so, that really sucks.
> -- 
> Jim McMaster
> mailto:[EMAIL PROTECTED]
>
>
> In message <[EMAIL PROTECTED]>, "Mike Curwen" said:
> > 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]
> >




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

Reply via email to