Advertisement

07.23.2008 at 03:20PM PDT, ID: 23590413
[x]
Attachment Details

How can I resolve "ClassNotFoundException" with Servlet created in Eclipse 3.4?

Asked by RobWoody in Eclipse, Apache Tomcat Application Server, Java Servlets

I created a simple Servlet using Eclipse 3.4 (JEE version) using the Wizard.  I Run as > Run on Server > Tomcat v6.0 Server on localhost and my web page appears, but when I click button to post to my Servlet I get: "Servlet CounterServlet is not available", and in the log file: /WEB-INF/classes/
----------> Parent Classloader:
org.apache.catalina.loader.StandardClassLoader@f12c4e
 CounterServlet
java.lang.ClassNotFoundException: CounterServlet

I expect there is some Eclipse IDE step / trick I'm missing.

Thanks,
RobStart Free Trial
 
Loading Advertisement...
 
[+][-]07.23.2008 at 11:06PM PDT, ID: 22076407

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Eclipse, Apache Tomcat Application Server, Java Servlets
Sign Up Now!
Solution Provided By: humanonomics
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628