Forums Register Login

TOMCAT Gremlin!

+Pie Number of slices to send: Send
I have installed Tomcat as instructed in HFSJ, and am using v5.0.28.

Navigating to http://localhost:8080, gives me the introducory page and says everything is fine.

I created the development and deployment directory structures and put the form.html file in the webapps/beer/form.html



Now here is where it gets WEIRD. First several times I navigate to the form, everthing works great. Then I go on with the example, build the deployment descriptor and servlet, stop then restart TOMCAT, now It cant find the html file!! Error HTTP 404. Cant find the resouce.
I have stopped and started TOMCAT over ten times and have verified paths, etc. Nothing has changed that i am aware of. What gives???
+Pie Number of slices to send: Send
This is REALLY bothering me. If tomcat is started and can find the intro page, why cant it find an html file in webapps/beer/ ???

And why would it find it the first time and after restarting, NOT find it.

Must be a bug.
+Pie Number of slices to send: Send
Have you used any uppercase letters when creating the directories for your app? If so, it is the problem.
+Pie Number of slices to send: Send
Hello ,
We have one more xml in
<Tomcat-dir>\conf\Catalina\localhost\
The xml is specific to each web app deployed in tomcat.

The FileName of the xml is similar to the name of the web app in WEBAPPS directory in TOMCAT directory

I have like this
d:\tomcat5\webapps\karthik
karthik : This is my web app name

so i have kept a file called karthik.xml in the above mentioned path

The contents are here



Try this

before that verify in the HTML page you have given the servlet name or the URL pattern without /

and in web.xml u should have / before the servlet URL pattern
A magnificient life is loaded with tough challenges. En garde tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 612 times.
Similar Threads
404 Error with Tomcat
tomcat cant find my form.html?
Head First Sample Code
404 - Page not found ??
Tomcat Problem
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 02:36:17.