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

Recommended Answers

All 2 Replies

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 <tomcat5.5>\common\lib
I think due to some reason tomcat might not have installed properly. Try installing it again.

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.