wood burning stoves 2.0*
The moose likes Tomcat and the fly likes Servlet org.apache.jsp.index_jsp is not available Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Servlet org.apache.jsp.index_jsp is not available" Watch "Servlet org.apache.jsp.index_jsp is not available" New topic
Author

Servlet org.apache.jsp.index_jsp is not available

Varghese Paul
Greenhorn

Joined: Aug 02, 2004
Posts: 14
Hi... I just recently installed Tomcat 5.5.17 on my Windows 2K machine. Let me just say that it's like a baptism by fire. I could solve a few problems. However, I'm really stuck on this one.

When connecting to http://localhost:8080/ I'm getting a page with http status 404 and the message "Servlet org.apache.jsp.index_jsp is not available"

After consulting numerous sites and friends and collegues, the problem still persists (real tough nut).

I checked the locations. I have the application at %CATALINA_HOME%\webapps\ROOT\WEB-INF\lib.

In the WEB-INF folder there is a web.xml and it seem to be ok.

Also in the ROOT\ folder there is a index.jsp.

I'm convinced that is a problem in the configuration file. But I'm not able to place my finger on it. After spending one whole day on it, Im really tired. So I thought, maybe someone could suggest some way to get the welcome page. (Two heads are greater than one).


Thanking You in advance.

Varghese
Hassan Schnieder
Greenhorn

Joined: Jun 09, 2006
Posts: 11
Hello,

Not a total expert here but I did notice one thing about your post that made me twitch.

"I have the application at %CATALINA_HOME%\webapps\ROOT\WEB-INF\lib"

If you have an application it should be sitting in %CATALINA_HOME%\webapps

regards,
Hassan
Varghese Paul
Greenhorn

Joined: Aug 02, 2004
Posts: 14
Hi

Thank you very much for your reply. I guess if the experts find your problem too insignificant, then it's upto the "not-experts" to help each others.

I tried placing the contents in webapps/ROOT/ folder into the webapps folder but still the same error. BTW, the ROOT/ directory was shipped along with the installable and it contains the Welcome page for Tomcat.

When I go to

http://localhost:8080/

I dont get the welcome page. However, there are other examples like servlet-examples/ which I can access when I go to

http://localhost:8080/servlet-examples/

(Yes, I also tried http://localhost:8080/ROOT/ but to no avail).

Probably, there need to be some mappining for '/' to 'ROOT/' in the configuration, but I dont know where to put and how to put.

Could you help me?
Thanks anyways

Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

ROOT is an application that lives under the webapps directory.
Your applications should also be placed under the webapps directory.

ROOT is mapped to "/", making it the default web app.

To see an example, download http://simple.souther.us/SimpleServlet.war to your webapps directory and go to http://localhost:8080/SimpleServlet.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Servlet org.apache.jsp.index_jsp is not available
 
Similar Threads
Head First Servlet JSP: BeerSelect example: requested resource not available
Changing the default Page in Tomcat
compile?????
can connect to localhost but not domain
404 error while compiling the servlet