The original question for this email is gone, 
so I can't comment on that :-)

However, it is a BAD BAD BAD idea to
add your webapp/WEB-INF/classes directory
to your classpath. This is noted in the tomcat
docs, and regularly pointed out in this group.

Tomcat sets up a special ClassLoader instance
so that it can find files in the WEB-INF/classes
directory without you having to do anything. You
won't see anything in your CLASSPATH environment
variable, but the classes will be accessable.

Regards,

Simon

> -----Original Message-----
> From: George Adams [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, January 16, 2001 5:34 PM
> To:   [EMAIL PROTECTED]
> Subject:      RE: Trouble configuring Tomcat
> 
> >Tomcat expects class files to be in WEB-INF/classes and than the package
> structure as directory structure below that. 
> >So if your package is com.mydomain.mypackage the directories would be
> WEB-INF/classes/com/mydomain/mypackage/ 
> >
> >Just add WEB-INF/classes to your path and you should be fine!
> 
> Thanks for the idea, Stefan, but I'm not quite sure I understand.  I tried
> restarting Tomcat and adding "/home/httpd/share/servlet/WEB-INF/classes"
> to the CLASSPATH Tomcat uses in its startup script.  But that didn't seem
> to help.  
> 
> In fact, looking at the Tomcat CLASSPATH, I don't see the WEB-INF/classes
> directories for the other default servlet directories listed either.
> 
> Maybe I'm missing something else?
> 
> ------------------------------------------------------------
> --== Sent via Deja.com ==--
> http://www.deja.com/
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

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

Reply via email to