The documentation in 3.3 on classpaths is quite good, with an excellent
graphic describing classloaders and how/where things get loaded.

http://localhost:8080/doc/tomcat-ug.html#configuring_classes

Would also suggest familiarity with the Servlet and JSP specs (ie, an
understanding of WEB-INF/lib and WEB-INF/classes)

Hope this helps.

> -----Original Message-----
> From: Neale, Robert [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 03, 2002 7:42 AM
> To: '[EMAIL PROTECTED]'
> Subject: Servlet basic question...classpaths and servlet locations.
> 
> 
> I have Apache 1.3 and Tomcat 3.3 installed. I'm using Tomcat to run
> servlets, having used JSERV in the past.  My question is, how 
> does tomcat
> decide where to look for the class to run?
> 
> Secondly, if it runs the class, how can I set the classpath for it? 
> 
> With JServ it was easy. I set lots of wrapper.classpaths in 
> jserv.conf and
> any request received by Apache that had /servlet in it was directed at
> JServ.
> 
> I've read the Tomcat docs but couldn't understand it. 
> 
> What I'm looking for is a step by step guide for taking a 
> class, lets call
> it LN.class, and being able to call it fron a browser by
> http://localhost/.........../LN
> 
> I can get the examples working e.g 
> 
> 
> http://localhost/examples/servlet/SessionExample
> 
> that is in the webapps\examples\web-inf\classes directory. How can I
> implement my LN class?
> 
> The LN class will run if I put it under the 
> Root\web-inf\classes directory
> but then complains that it can't find another class that it 
> uses that should
> be in the classpath (but isn't because I don't know how to set it.
> 
> -- 
> The content of this e-mail is confidential, may contain 
> privileged material
> and is intended solely for the recipient(s) named above. If 
> you receive this
> in error, please notify Software AG immediately and delete 
> this e-mail.
> 
> Software AG (UK) Limited
> Registered in England & Wales 1310740
> Registered Office: Hudson House, Hudson Way,
> Pride Park, Derby DE24 8HS
> 
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
> 
> 

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to