java - Getting "ClassNotFoundException: ResteasyBootstrap" and "ClassNotFoundException:SpringContextLoaderListenerexception" -
i getting following exception:
java.lang.classnotfoundexception: org.jboss.resteasy.plugins.server.servlet.resteasybootstrap @ org.apache.catalina.loader.webappclassloader.loadclass(webappclassloader.java:1711) @ org.apache.catalina.loader.webappclassloader.loadclass(webappclassloader.java:1556) @ org.apache.catalina.core.defaultinstancemanager.loadclass(defaultinstancemanager.java:525) @ org.apache.catalina.core.defaultinstancemanager.loadclassmaybeprivileged(defaultinstancemanager.java:507) @ org.apache.catalina.core.defaultinstancemanager.newinstance(defaultinstancemanager.java:124) @ org.apache.catalina.core.standardcontext.listenerstart(standardcontext.java:4715) @ org.apache.catalina.core.standardcontext.startinternal(standardcontext.java:5273) @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150) @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1566) @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1556) @ java.util.concurrent.futuretask$sync.innerrun(futuretask.java:334) @ java.util.concurrent.futuretask.run(futuretask.java:166) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1110) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:603) @ java.lang.thread.run(thread.java:722)
i have following dependencies in pom file:
<dependency> <groupid>org.jboss.resteasy</groupid> <artifactid>resteasy-spring</artifactid> <version>${resteasy.version}</version><!--$no-mvn-man-ver$ --> </dependency> <dependency> <groupid>org.jboss.resteasy</groupid> <artifactid>resteasy-jaxrs</artifactid> <version>2.3.0.ga</version> </dependency>
i see resteasy-jaxrs-2.3.0.ga.jar in web/inf/lib folder. please let me know dependency missing. checked getting "java.lang.classnotfoundexception: javax.servlet.http.httpservlet" in eclipse + jboss 5.1.0 , have in place.
i following error:
severe: error configuring application listener of class org.jboss.resteasy.plugins.spring.springcontextloaderlistener java.lang.classnotfoundexception: org.jboss.resteasy.plugins.spring.springcontextloaderlistener
despite having following dependency:
<dependency> <groupid>org.jboss.resteasy</groupid> <artifactid>resteasy-spring</artifactid> <version>${resteasy.version}</version> </dependency>
i solved it. solution simple. right click on project , select 'properties'. under project properties, select 'deployment assembly'. add maven dependency here. need tell eclipse want maven dependencies published too.
Comments
Post a Comment