Often the most important part of the news is what they didn't tell.
Originally posted by Tim Holloway:
Is the URL you're using http://localhost:8180/manager/HelloServlet?
(your port may vary depending on which Tomcat 4 you installed).
Originally posted by Mike Curwen:
the URL should be http://localhost:8080/test/HelloServlet (not manager)
Originally posted by Mike Curwen:
the URL should be http://localhost:8080/test/HelloServlet (not manager)
Often the most important part of the news is what they didn't tell.
programmer77
Originally posted by Deepak Shah:
Hi Guys,
Does anyone there succesfuly ran a servlet on Tomcat 4 (standalone).
I am trying, buts it always says not found/available. It was so simple with Tomcat3.2.
I have created a "test" web application, placed it under webapp, also web-inf/web.xml is correctly placed there. I wondering what's the problem.
I have added a entry in server.xml for test context
--------------server.xml entry--------------------
<Context path="/manager" docBase="manager"
debug="0" privileged="true"/>
<Context path="/test" docBase="test" debug="0"
reloadable="true"/>
-------------------------------------------------
------------webapps/test/web-inf/web.xml----------
<!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>
<display-name>Hello, World Application</display-name>
<description>
This is a simple web application with a source code organization
based on the recommendations of the Application Developer's Guide.
</description>
<servlet>
<servlet-name>HelloServlet</servlet-name>
<description>
abc
</description>
<servlet-class>HelloServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>HelloServlet</servlet-name>
<url-pattern>/HelloServlet</url-pattern>
</servlet-mapping>
</web-app>
---------------------------------------------
Am I missing something cruicial ??
Thanks in advance
DLS
Originally posted by David Dehoney:
Hi Deepak,
The new tomcat is a pain in the ###, isn't it?
In previous versions of tomcat, the invoker servlet was enabled by default. In 4.1.12, it's not. This means a major headache for people upgrading to the new application.
To make things work like they used to, go to install_dir/conf/web.xml and uncomment the servlet-mapping element that maps the invoker servlet to /servlet/*.
A great website you should check out is http://www.moreservlets.com/Using-Tomcat-4.html
And tomorrow is the circus! We can go to the circus! I love the circus! We can take this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|