tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Neale, Robert" <Robert.Ne...@softwareag.co.uk>
Subject Servlet basic question...classpaths and servlet locations.
Date Thu, 03 Jan 2002 12:42:20 GMT
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:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message