Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Servlet not working

843836Jan 24 2005 — edited Jan 24 2005
I installed (unzipped) Tomcat 5.0.19 on WIndows XP. When I uncomment the servlet mapping in the global web.xml, then i get lot of errors when i start the tomcat. Also then neither html or jsp pages work on the server, even though it says tomcat server has started properly.
when i do not uncomment the servlet mapping in web.xml, then no errors are displayed while starting. it starts successful. but servlet does not work at all. rest all works. i tried to test the servlets from the apache tomcat website, it did not work.
i have placed the class file in webapps\mydirectory\WEB-INF\classess directory and java file related to servlet in webapps\mydevelopment directory along with jsps and html files.

Can anyone tell why I cant run servlets?? my JAVA_HOME and CLASSPATH are set correctly since jsps and html is working.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 21 2005
Added on Jan 24 2005
8 comments
988 views