wood burning stoves*
The moose likes Web Services and the fly likes Unable to run  application in eclipse but the war file for same worked fine in tomcat webapps Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Unable to run  application in eclipse but the war file for same worked fine in tomcat webapps " Watch "Unable to run  application in eclipse but the war file for same worked fine in tomcat webapps " New topic
Author

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

Manusha Nadendla
Greenhorn

Joined: Sep 17, 2012
Posts: 4
[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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unable to run application in eclipse but the war file for same worked fine in tomcat webapps