0

i want to compile .jsp file. i have downloaded tomcat 6.0.
and set environmental variables e.g.
set PATH="C:\Program Files\Java\jdk1.6.0_10\bin";%PATH%
set JAVA_HOME=C:\Program Files\Java\jdk1.6.0_10
set CLASSPATH=.;C:\Program Files\Apache Software Foundation\Tomcat\common\lib\servlet-api.jar;C:\Program Files\Apache Software Foundation\Tomcat\common\lib\jsp-api.jar;C:\Program Files\Apache Software Foundation\Tomcat\common\lib\el-api.jar;C:\Servlets+JSP;..;..\..
i hava searched pages related to configuring web.xml, context.xml etc
but i am still unable to load and locate .jsp file on my local server.
for eg.
httt//:localhost:8085//webapp//jsp//index.jsp
shows http 404 ERROR
any help will be appreciated
thanks

Edited by aks_1: n/a

2
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by aks_1
0

Did you put that at the url: httt//:localhost:8085//webapp//jsp//index.jsp ?
Because it needs to be:
httt//:localhost:8085/webapp/jsp/index.jsp
Provided that the index.jsp file is at the right location.

0

thanks for replying.
actually i was not deploying file in the ROOT directory under C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\
i.e. C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\ROOT.
your advise also helped me.
thank you.

0

i want to know whether it is necessary to follow the listed directory structure.
C:\Temp\
myServletWAR\
META-INF\
WEB-INF\
classes\
HelloServlet.class
web.xml
i have seen many authors relying on the above structure to deploy .war
files.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.