remove the validation jars from your deployment: *validator*.jar
On 8/13/2013 3:25 AM, 刘日新 wrote: > HI, all. > > This is a NOSuchMethodError occurred with resteasy 3.0.2, 3.0.5, my > local web server was tomcat 7.9, jdk: oracle jdk 7. > > The scraps of web.xml: > > <servlet> > > <servlet-name>_Resteasy_</servlet-name> > > <servlet-class> > > org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher > > </servlet-class> > > </servlet> > > <servlet-mapping> > > <servlet-name>_Resteasy_</servlet-name> > > <url-pattern>/rest/*</url-pattern> > > </servlet-mapping> > > <context-param> > > <param-name>resteasy.servlet.mapping.prefix</param-name> > > <param-value>/rest</param-value> > > </context-param> > > <context-param> > > <param-name>resteasy.scan.resources</param-name> > > <param-value>true</param-value> > > </context-param> > > The detail of exception stack was: > > SEVERE: Exception starting filter > org.jboss.resteasy.plugins.server.servlet.Filter30Dispatcher > > java.lang.NoSuchMethodError: > javax.validation.Configuration.getBootstrapConfiguration()Ljavax/validation/BootstrapConfiguration; > > at > org.jboss.resteasy.plugins.validation.ValidatorContextResolver.getContext(_ValidatorContextResolver.java:73_) > > at > org.jboss.resteasy.plugins.validation.ValidatorContextResolver.getContext(_ValidatorContextResolver.java:30_) > > at > org.jboss.resteasy.spi.ResteasyProviderFactory$1.getContext(_ResteasyProviderFactory.java:2154_) > > at > org.jboss.resteasy.core.ResourceMethodInvoker.<init>(_ResourceMethodInvoker.java:115_) > > at > org.jboss.resteasy.core.ResourceMethodRegistry.processMethod(_ResourceMethodRegistry.java:280_) > > at > org.jboss.resteasy.core.ResourceMethodRegistry.register(_ResourceMethodRegistry.java:251_) > > at > org.jboss.resteasy.core.ResourceMethodRegistry.addResourceFactory(_ResourceMethodRegistry.java:221_) > > at > org.jboss.resteasy.core.ResourceMethodRegistry.addResourceFactory(_ResourceMethodRegistry.java:193_) > > at > org.jboss.resteasy.core.ResourceMethodRegistry.addResourceFactory(_ResourceMethodRegistry.java:179_) > > at > org.jboss.resteasy.core.ResourceMethodRegistry.addResourceFactory(_ResourceMethodRegistry.java:156_) > > at > org.jboss.resteasy.core.ResourceMethodRegistry.addPerRequestResource(_ResourceMethodRegistry.java:75_) > > at > org.jboss.resteasy.spi.ResteasyDeployment.registration(_ResteasyDeployment.java:400_) > > at > org.jboss.resteasy.spi.ResteasyDeployment.start(_ResteasyDeployment.java:241_) > > at > org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.init(_ServletContainerDispatcher.java:112_) > > at > org.jboss.resteasy.plugins.server.servlet.FilterDispatcher.init(_FilterDispatcher.java:42_) > > at > org.apache.catalina.core.ApplicationFilterConfig.initFilter(_ApplicationFilterConfig.java:281_) > > at > org.apache.catalina.core.ApplicationFilterConfig.getFilter(_ApplicationFilterConfig.java:262_) > > at > org.apache.catalina.core.ApplicationFilterConfig.<init>(_ApplicationFilterConfig.java:107_) > > at > org.apache.catalina.core.StandardContext.filterStart(_StandardContext.java:4746_) > > at > org.apache.catalina.core.StandardContext.startInternal(_StandardContext.java:5399_) > > 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:334_) > > at java.util.concurrent.FutureTask.run(_FutureTask.java:166_) > > at > java.util.concurrent.ThreadPoolExecutor.runWorker(_ThreadPoolExecutor.java:1145_) > > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(_ThreadPoolExecutor.java:615_) > > at java.lang.Thread.run(_Thread.java:722_) > > 八月13, 2013 3:24:04 下午org.apache.catalina.core.StandardContext > startInternal > > SEVERE: Error filterStart > > Who could help me ? any advice will be appropriated. > > Best Regards. > > Rixin Liu > > > > ------------------------------------------------------------------------------ > Get 100% visibility into Java/.NET code with AppDynamics Lite! > It's a free troubleshooting tool designed for production. > Get down to code-level detail for bottlenecks, with <2% overhead. > Download for free and get started troubleshooting in minutes. > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk > > > > _______________________________________________ > Resteasy-users mailing list > Resteasy-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/resteasy-users > -- Bill Burke JBoss, a division of Red Hat http://bill.burkecentral.com ------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite! It's a free troubleshooting tool designed for production. Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk _______________________________________________ Resteasy-users mailing list Resteasy-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/resteasy-users