Only 48 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!

  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

Manusha Nadendla
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[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(
at org.apache.catalina.loader.WebappClassLoader.loadClass(
at org.apache.catalina.core.DefaultInstanceManager.loadClass(
at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(
at org.apache.catalina.core.DefaultInstanceManager.newInstance(
at org.apache.catalina.core.StandardWrapper.loadServlet(
at org.apache.catalina.core.StandardWrapper.load(
at org.apache.catalina.core.StandardContext.loadOnStartup(
at org.apache.catalina.core.StandardContext.startInternal(
at org.apache.catalina.util.LifecycleBase.start(
at org.apache.catalina.core.ContainerBase$
at org.apache.catalina.core.ContainerBase$
at java.util.concurrent.FutureTask$Sync.innerRun(
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
at java.util.concurrent.ThreadPoolExecutor$

Thanks for your time in advance.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!