Forums Register Login

Error: 404

+Pie Number of slices to send: Send
I installed tomcat and I can see files in my root folder.
Eg. webapps/examples/servlet/helloworld
If I try to create a folder called servletclasses and created a file called hello and compiled. The following error was given. How to solve this?
Error: 404
Location: /examples/servlet/servletclasses/hello
+Pie Number of slices to send: Send
Did you create servletclasses dir under examples dir?
If so, you have to put a package statement inside hello.java servlet file.
package servletclasses;
public class hello extends HttpServlet .... {
}
From browser please type:
http://localhost:8080/examples/servlet/servletclasses.hello
Note the DOT in servletclasses.hello
regds
maha anna
+Pie Number of slices to send: Send
Thanks so much Maha. It works now.
eat bricks! HA! And here's another one! And a 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 734 times.
Similar Threads
can any one tell me how to run servlets in weblogic server?
Error 404: File not found: loadservlet
doubt in run the servlet in tomcat 5.5
404 error
Class cast Exception
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 08:56:07.