Servlet basic question...classpaths and servlet locations.

2002-01-03 Thread Neale, Robert

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]




RE: Servlet basic question...classpaths and servlet locations.

2002-01-03 Thread Neale, Robert

Ok, I'll re-read it again. I've solved my problem of it not picking up my
own servlet. I hadn't got a jkmount directive redirecting requests.

One question on this, 

If I make the following request
http://localhost/examples/servlet/SnoopServlet examples is mentioned in a
jkmount directive and I have a directory examples that contains
snoopservlet. Does the value you mention in the jkmount directive have to
immediatley follow the host name in the URL? It seems to, I just need
confirmation.

-- 
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]