tomcat and servlet
hi to all... i've configured my tomcat 6.0 for the deployment of servlet but i always get a 404 error, servlet not available...
environment variables:
classpath has been pointed to servlet-api.jar ans jsp-api.jar
java_home set to point to jdk folder
configuration of tomcat:
conf/web.xml: uncomment servlet/* and its corresponding servlet mapping
conf/context.xml: set reloadable="true"
still when i do all of this nothing works! even my html pages! error page not found...
whats the problem?
plz help with the configuration of tomcat
heartful thx
# 1
when u try in the browser to load the servlet using http://localhost........(whatever) u must make sure that wat u have typed there is the place where u have stored the file.....
make sure of that.
that means, the folder where u have intalled tomcat..
servlet-examples>web-inf>classes..store it here..
then type..
http://localhost/servlet-examples/servlet/filename..
just try it out...
Message was edited by:
KayDeE
# 3
not root.
form where u have installed tomcat u must be having a folder called servlet examples right:
look, this is where i have stored my servlets..
C:\tomcat\webapps\servlets-examples\WEB-INF\classes\MyFristServlet.java
don't store in root folder.
and after that type in browser
i take it that u have written the servlet mapping and all that in that xml file no?
http://localhost/servlet-examples/servlets/ServletName
u must be having a servlet examples folder, this is where all the readymade examples are stored.
try those out first.
if they work then in that case do the same thing for ur other progs that u made on ur own
Message was edited by:
KayDeE