MyEclipse: ClassNotFound - com.sun.jersey.spi.container.servlet.Servlet

peclements - Oct 15, 2011 - 03:43 PM
Post subject: ClassNotFound - com.sun.jersey.spi.container.servlet.Servlet
Hi,

I have just installed MyEclipse 9 (Build Id - 9.1-20110701) running on Mac OS X (10.7.1)
and have started to do your Restful Web Services Demo and as I start to run the MyEclipse Server Application I get the error

SEVERE: Error loading WebappClassLoader
delegate: false
repositories:
/WEB-INF/classes/
----------> Parent Classloader:
org.apache.catalina.loader.StandardClassLoader@62facf0b
com.sun.jersey.spi.container.servlet.ServletContainer
java.lang.ClassNotFoundException: com.sun.jersey.spi.container.servlet.ServletContainer
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)

Any pointers would be appreciated, log and project are attached.

Clemo
support-swapna - Oct 17, 2011 - 06:12 AM
Post subject:
peclements,

Sorry that you are seeing this issue with MyEclipse.

Can you answer some more questions for us to understand the issue better ?

1) Are you running the application on MyEclipse Tomcat ? Are you running Groovy on the server ?

2) Can you recheck if you have included the “jersey-server.jar“ in the classpath and under web-inf/lib ?

3) Also take a look at this thread which discusses the same issue :
http://www.myeclipseide.com/PNphpBB2-printview-t-26453-start-0.html

4) Clear the contents of the .log file which is located at <workspace dir>/.metadata/.log , replicate the issue and copy paste the entire contents of the .log file here for us to investigate it further.
peclements - Oct 17, 2011 - 05:41 PM
Post subject:
Hi,

Sorted by recreating the project and selecting the jersey-server.jar (not shown on the myeclipseide tutorial I followed) and it all works :)

Thanks

Clemo
support-swapna - Oct 18, 2011 - 05:53 AM
Post subject:
peclements,

Glad that it is working.
Do let us know if you have any other issues.
All times are GMT - 6 Hours
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits