Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlet org.apache.jsp.index_jsp is not available

 
Varghese Paul
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic