Forums Register Login

Unable to run application in eclipse but the war file for same worked fine in tomcat webapps

+Pie Number of slices to send: Send
[Hi all ,

I wrote a sample restful web service with maven. I'm unable to run the app from eclipse. But I tried to run the war file by deploying in tomcat wabapps directory. It is working fine.
Can anybody tell me what is the reason for this.

When trying to run in eclipse it is troughing below error:
SEVERE: Servlet /restwebservice threw load() exception
java.lang.ClassNotFoundException: com.sun.jersey.spi.container.servlet.ServletContainer
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1711)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1556)
at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:532)
at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:514)
at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:133)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1136)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1080)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5027)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5314)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)


Thanks for your time in advance.
please buy my thing and then I'll have more money:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1075 times.
Similar Threads
Tomcat 7 java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener
struts2-maven File not found exception problem
Problem configuring the struts in Eclipse
Eclipse Tomcat Plugin Issue
[ASK] Error org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 03:58:07.