Mark, regarding accessing servlets, I will give a few general remarks that
may or may not be helpful. I would appreciate knowing either way.
-----Original Message-----
From: Mark <[EMAIL PROTECTED]>
To: Tomcat Users List <[EMAIL PROTECTED]>
Date: Monday, November 26, 2001 9:58 AM
Subject: Re: TC 4.0 newbie - servlet app won't run
First, there is more than one way to not only skin a cat but also to access
a servlet. Let's look at a non-web.xml way.
A. We can do it via URL by prepending the servlet's class name with
/servlet/. Thus, we can access it as typically noted by
http://localhost:8080/servlet/HelloWorld
B. If the servlet if part of a package, then
http://[serverroot]:8080/servlet/package.name.HelloWorld, where the servlet
is put into server_root/webapps/yourapp/WEB-INF/classes/package/name
Note that we have NOT MENTIONED THE web.xml. Okay?
I think you are probably actually putting in the servlet reference as a
directory or something. Are you? Are you including classes as part of a
package name? Something like that must be going on. The directory classes
is not part of the classpath. I assume you know that.
I keep wondering why you are continuing to use /servlet/ in your web.xml
with /servlet/myservlet. It makes me think you might be doing something
like actually constructing a servlet directory or something.
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>