Hello... I appreciate any help I can get on this. I've been struggling to keep my sanity for the past couple of weeks while working on the following problem.
I mapped a kew URLs to a
servlet in my web.xml
doc, and had no problem. For example, when I went to
http://localhost/<webapp>/welcome, it directed the request to my Controller servlet as it was supposed to.
I thought it was easy until I uploaded the application to the internet, - and found it did not work as planned. When I went to
http://<host>/welcome, it could not find the address, and gave me a 404 Not Found error.
My host has set me up as follows (from the server.xml, I believe):
<Host name="www.<host>" >
<Alias name="<host>" />
<Context path="" docBase="/home/virtual/site22/fst/var/www/html"
reloadable="true" />
<AutoWebApp dir="/home/virtual/site22/fst/var/www/html"
host="www.<host>"
reloadable="true" />
<AutoDeploy source="/home/virtual/site22/fst/var/www/html"
target="/home/virtual/site22/fst/var/www/html" redeploy="true" />
</Host>
My web.xml has the following:
<servlet>
<servlet-name>
Controller
</servlet-name>
<servlet-class>
util.Controller
</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>
Controller
</servlet-name>
<url-pattern>
/welcome
</url-pattern>
</servlet-mapping>
My host company is running a shared instance of
Tomcat 3.3. What, if anything am I doing wrong?
I'm grateful for anyone who can spare my sanity.
Thanks
alot,
- Mike