954,574 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Tomcat Installed, but not working

Hi,

I just installed Tomcat 5.5 and could see the default index page (with images missing)

Upon running the sample JSPs, I get the following-

HTTP Status 404 - Servlet default is not available

In the logs, I can see a Root Cause saying something like- "java.lang.NoClassDefFoundError: org/apache/naming/resources/Resource"

Basically, I get a 404 whenever I try to access any JSP or even an image (this I could gather from the fact that the images on the default index page)

Where am I going wrong? I am new to JSP

tuse
Junior Poster
173 posts since Jul 2007
Reputation Points: 32
Solved Threads: 14
 

The exception "java.lang.NoClassDefFoundError: org/apache/naming/resources/Resource" indicates that tomcat cannot find the above class anywhere in the classpath.
In tomcat5.5 this class is in the file 'naming-resources.jar'. See if this file is present at the location \common\lib
I think due to some reason tomcat might not have installed properly. Try installing it again.

parry_kulk
Junior Poster
Team Colleague
167 posts since Jan 2007
Reputation Points: 26
Solved Threads: 41
 

You can find instruction how to install Tomcat on our forum in this post

peter_budo
Code tags enforcer
Moderator
15,436 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 902
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: