Hi!
I've just installed tomcat tomcat-5.5.16 with apache. Tomcat runs ok. It shows some samples (delivered with tomcat) under
www.mywebsite.com/servlets-example and also
www.mywebsite.com/jsp-examples. JSP files work perfectly, but when I try the servlets it can't find them:
http://www.mywebsite.com/servlets-ex...tHeaderExample my classpath lokks like this:
Quote:
/opt/SUNWappserver/jdk/lib:/opt/apache-tomcat/common/lib/servlet-api.jar:/opt/apache-tomcat/bin:/opt/apache-tomcat/webapps/servlets-examples/WEB-INF/classes:/opt/apache-tomcat/webapps/ROOT/WEB-INF/classes
|
and web.xml looks like this:
Quote:
<servlet>
<servlet-name>invoker</servlet-name>
<servlet-class>
org.apache.catalina.servlets.InvokerServlet
</servlet-class>
<init-param>
<param-name>debug</param-name>
<param-value>0</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>
|
and
Quote:
<!-- The mapping for the default servlet -->
<servlet-mapping>
<servlet-name>default</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
<!-- The mapping for the invoker servlet -->
<servlet-mapping>
<servlet-name>invoker</servlet-name>
<url-pattern>/servlet/*</url-pattern>
</servlet-mapping>
|
I changed the web.xml und conf and under WEB-INF.
I also changed server.xml to make tomcat work with apache on port 80.
What did I do wrong? What did I forget?
What is the difference between web.xml under conf and the ones under WEB-INF?
Thanks for any help.