Zsolt,

Your missing some stuff 

webapps/myapp/WEB-INF/classes     - store servlets/jsp in here 
 
put your web.xml in 
webapps/mysql/WEB-INF/


-----Original Message-----
From: Zsolt Horvath [mailto:[EMAIL PROTECTED]]
Sent: 11 April 2001 15:55
To: [EMAIL PROTECTED]
Subject: Servlet registration


Hi !

How could I register my own servlets into TomCat ??

I put them into the %TOMCAT_HOME%/webapps/myapp/Web-inf/classes directory.
After I create a web.xml file in the %TOMCAT_HOME%/webapps/myapp directory.
The web.xml file contains this:

<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">

<web-app>

    <display-name> Web Application</display-name>

    <servlet>
      <servlet-name>Servlet1</servlet-name>
      <servlet-class>Servlet1</servlet-class>
    </servlet>

    <servlet-mapping>
      <servlet-name>Servlet1</servlet-name>
      <url-pattern>/Servlet1</url-pattern>
    </servlet-mapping>

</web-app>

And I restarted the tomcat, but it doesn`t work ! What`s wrong?
Please help for me: [EMAIL PROTECTED]


Reply via email to