As I understands it, all your classes/servlets are supposed to be put in
<mydir>/WEB-INF/classes/ .
I found out that in order for <mydir> to be "seen" by the tomcat server I
had to add it to the conf/server.xml file:
<Context path="/klient" docBase="klient"
debug="0" reloadable="true"/>
It also seemed like I had to make a web.xml file in /klient/WEB-INF :
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<!-- Define the servlets -->
<servlet>
<servlet-name>SimpleServlet</servlet-name>
<servlet-class>SimpleServlet</servlet-name>
</servlet>
<servlet-mapping>
<servlet-name>SimpleServlet</servlet-name>
<url-pattern>/simple</url-pattern>
</servlet-mapping>
</web-app>
I tried with/without the <servlet-mapping> part, but with no success, I
get the same message : HTTP Status 404 (The requested resouce is not available)
The actual url I tried was http://localhost:8080/klient/servlet/SimpleServlet
, also the same but without the "servlet" part (when I didn't have the
servlet-mapping part.
With the servlet-mapping it was the same but with SimpleServlet replaced
with "simple".
Obviously I did something wrong here, but I'm not sure what.
btw: the "klient" dir is placed under the $CATALINA_HOME/webapps/ dir.
I would be very grateful if someone out there would be so kind and help me.
Thank you very much in advance!
---
Rune Elvemo --- Octagon / Digital Minds
[EMAIL PROTECTED]
http://home.c2i.net/elvemo
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>