1 2 Previous Next 19 Replies Latest reply: Mar 3, 2012 7:30 AM by ~= ziggy =~ RSS

webapp deploys on v7.0.2 but not on 7.1.0.CR1b

~= ziggy =~ Newbie

I have a web app that deploys fine with no problems on Jboss AS v7.0.2. When i deploy the same application on Jboss AS v7.1.0.CR1b it produces an error.

 

The error is related to javax.ws.rs.core.Application which is configured in my web.xml as

 

[code]

 

<servlet-mapping>

        <servlet-name>javax.ws.rs.core.Application</servlet-name>

        <url-pattern>/rest/*</url-pattern>

    </servlet-mapping>

 

[/code]

 

The stacktrace of the error is shown below. Any ideas why this happens with v7.1.0 but not 7.0.2?

 

[code]

10:05:38,919 INFO  (DeploymentScanner-threads - 2) JBAS018559: Deployed "JJYRestServices.war"

10:19:53,106 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/JJYRestServices]] (http--127.0.0.1-8080-1) StandardWrapper.Throwable: java.lang.RuntimeException: Unable to find a public constructor for class org.jboss.resteasy.core.AsynchronousDispatcher

        at org.jboss.resteasy.plugins.server.resourcefactory.POJOResourceFactory.registered(POJOResourceFactory.java:35) resteasy-jaxrs-2.3.0.GA.jar:

        at org.jboss.resteasy.core.ResourceMethodRegistry.addResourceFactory(ResourceMethodRegistry.java:120) resteasy-jaxrs-2.3.0.GA.jar:

        at org.jboss.resteasy.core.ResourceMethodRegistry.addResourceFactory(ResourceMethodRegistry.java:106) resteasy-jaxrs-2.3.0.GA.jar:

        at org.jboss.resteasy.core.ResourceMethodRegistry.addResourceFactory(ResourceMethodRegistry.java:83) resteasy-jaxrs-2.3.0.GA.jar:

        at org.jboss.resteasy.core.ResourceMethodRegistry.addPerRequestResource(ResourceMethodRegistry.java:72) resteasy-jaxrs-2.3.0.GA.jar:

        at org.jboss.resteasy.spi.ResteasyDeployment.registration(ResteasyDeployment.java:367) resteasy-jaxrs-2.3.0.GA.jar:

        at org.jboss.resteasy.spi.ResteasyDeployment.start(ResteasyDeployment.java:225) resteasy-jaxrs-2.3.0.GA.jar:

        at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.init(ServletContainerDispatcher.java:67) resteasy-jaxrs-2.3.0.GA.jar:

        at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.init(HttpServletDispatcher.java:36) resteasy-jaxrs-2.3.0.GA.jar:

        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1202) jbossweb-7.0.7.Final.jar:

        at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:952) jbossweb-7.0.7.Final.jar:

        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:188) jbossweb-7.0.7.Final.jar:

        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) jbossweb-7.0.7.Final.jar:

        at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50)

        at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:151)

        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)

        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)

        at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:897)

        at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:626)

        at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:2033)

        at java.lang.Thread.run(Thread.java:619)

 

10:38:07,759 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/JJYRestServices].[javax.ws.rs.core.Application]] (http--127.0.0.1-8080-1) Allocate exception for servlet javax.ws.rs.core.Application: java.lang.RuntimeException: Unable to find a public constructor for class org.jboss.resteasy.core.AsynchronousDispatcher

        at org.jboss.resteasy.plugins.server.resourcefactory.POJOResourceFactory.registered(POJOResourceFactory.java:35)

        at org.jboss.resteasy.core.ResourceMethodRegistry.addResourceFactory(ResourceMethodRegistry.java:120)

        at org.jboss.resteasy.core.ResourceMethodRegistry.addResourceFactory(ResourceMethodRegistry.java:106)

        at org.jboss.resteasy.core.ResourceMethodRegistry.addResourceFactory(ResourceMethodRegistry.java:83)

        at org.jboss.resteasy.core.ResourceMethodRegistry.addPerRequestResource(ResourceMethodRegistry.java:72)

        at org.jboss.resteasy.spi.ResteasyDeployment.registration(ResteasyDeployment.java:367)

        at org.jboss.resteasy.spi.ResteasyDeployment.start(ResteasyDeployment.java:225)

        at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.init(ServletContainerDispatcher.java:67)

        at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.init(HttpServletDispatcher.java:36)

        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1202)

        at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:952)

        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:188)

        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)

        at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50)

        at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:151)

        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)

        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)

        at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:897)

        at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:626)

        at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:2033)

        at java.lang.Thread.run(Thread.java:619)

 

10:38:07,987 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/JJYRestServices]] (http--127.0.0.1-8080-3) StandardWrapper.Throwable: java.lang.RuntimeException: Unable to find a public constructor for class org.jboss.resteasy.core.AsynchronousDispatcher

        at org.jboss.resteasy.plugins.server.resourcefactory.POJOResourceFactory.registered(POJOResourceFactory.java:35)

        at org.jboss.resteasy.core.ResourceMethodRegistry.addResourceFactory(ResourceMethodRegistry.java:120)

        at org.jboss.resteasy.core.ResourceMethodRegistry.addResourceFactory(ResourceMethodRegistry.java:106)

        at org.jboss.resteasy.core.ResourceMethodRegistry.addResourceFactory(ResourceMethodRegistry.java:83)

        at org.jboss.resteasy.core.ResourceMethodRegistry.addPerRequestResource(ResourceMethodRegistry.java:72)

        at org.jboss.resteasy.spi.ResteasyDeployment.registration(ResteasyDeployment.java:367)

        at org.jboss.resteasy.spi.ResteasyDeployment.start(ResteasyDeployment.java:225)

        at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.init(ServletContainerDispatcher.java:67)

        at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.init(HttpServletDispatcher.java:36)

        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1202)

        at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:952)

        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:188)

        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)

        at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50)

        at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:151)

        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)

        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)

        at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:897)

        at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:626)

        at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:2033)

        at java.lang.Thread.run(Thread.java:619)

 

10:38:08,009 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/JJYRestServices].[javax.ws.rs.core.Application]] (http--127.0.0.1-8080-3) Allocate exception for servlet javax.ws.rs.core.Application: java.lang.RuntimeException: Unable to find a public constructor for class org.jboss.resteasy.core.AsynchronousDispatcher

        at org.jboss.resteasy.plugins.server.resourcefactory.POJOResourceFactory.registered(POJOResourceFactory.java:35)

        at org.jboss.resteasy.core.ResourceMethodRegistry.addResourceFactory(ResourceMethodRegistry.java:120)

        at org.jboss.resteasy.core.ResourceMethodRegistry.addResourceFactory(ResourceMethodRegistry.java:106)

        at org.jboss.resteasy.core.ResourceMethodRegistry.addResourceFactory(ResourceMethodRegistry.java:83)

        at org.jboss.resteasy.core.ResourceMethodRegistry.addPerRequestResource(ResourceMethodRegistry.java:72)

        at org.jboss.resteasy.spi.ResteasyDeployment.registration(ResteasyDeployment.java:367)

        at org.jboss.resteasy.spi.ResteasyDeployment.start(ResteasyDeployment.java:225)

        at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.init(ServletContainerDispatcher.java:67)

        at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.init(HttpServletDispatcher.java:36)

        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1202)

        at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:952)

        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:188)

        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)

        at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50)

        at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:151)

        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)

        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)

        at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:897)

        at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:626)

        at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:2033)

        at java.lang.Thread.run(Thread.java:619)

 

10:38:08,165 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/JJYRestServices]] (http--127.0.0.1-8080-2) StandardWrapper.Throwable: java.lang.RuntimeException: Unable to find a public constructor for class org.jboss.resteasy.core.AsynchronousDispatcher

        at org.jboss.resteasy.plugins.server.resourcefactory.POJOResourceFactory.registered(POJOResourceFactory.java:35)

        at org.jboss.resteasy.core.ResourceMethodRegistry.addResourceFactory(ResourceMethodRegistry.java:120)

        at org.jboss.resteasy.core.ResourceMethodRegistry.addResourceFactory(ResourceMethodRegistry.java:106)

        at org.jboss.resteasy.core.ResourceMethodRegistry.addResourceFactory(ResourceMethodRegistry.java:83)

        at org.jboss.resteasy.core.ResourceMethodRegistry.addPerRequestResource(ResourceMethodRegistry.java:72)

        at org.jboss.resteasy.spi.ResteasyDeployment.registration(ResteasyDeployment.java:367)

        at org.jboss.resteasy.spi.ResteasyDeployment.start(ResteasyDeployment.java:225)

        at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.init(ServletContainerDispatcher.java:67)

        at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.init(HttpServletDispatcher.java:36)

        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1202)

        at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:952)

        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:188)

        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)

        at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50)

        at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:151)

        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)

        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)

        at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:897)

        at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:626)

        at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:2033)

        at java.lang.Thread.run(Thread.java:619)

 

10:38:08,185 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/JJYRestServices].[javax.ws.rs.core.Application]] (http--127.0.0.1-8080-2) Allocate exception for servlet javax.ws.rs.core.Application: java.lang.RuntimeException: Unable to find a public constructor for class org.jboss.resteasy.core.AsynchronousDispatcher

        at org.jboss.resteasy.plugins.server.resourcefactory.POJOResourceFactory.registered(POJOResourceFactory.java:35)

        at org.jboss.resteasy.core.ResourceMethodRegistry.addResourceFactory(ResourceMethodRegistry.java:120)

        at org.jboss.resteasy.core.ResourceMethodRegistry.addResourceFactory(ResourceMethodRegistry.java:106)

        at org.jboss.resteasy.core.ResourceMethodRegistry.addResourceFactory(ResourceMethodRegistry.java:83)

        at org.jboss.resteasy.core.ResourceMethodRegistry.addPerRequestResource(ResourceMethodRegistry.java:72)

        at org.jboss.resteasy.spi.ResteasyDeployment.registration(ResteasyDeployment.java:367)

        at org.jboss.resteasy.spi.ResteasyDeployment.start(ResteasyDeployment.java:225)

        at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.init(ServletContainerDispatcher.java:67)

        at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.init(HttpServletDispatcher.java:36)

        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1202)

        at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:952)

        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:188)

        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)

        at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50)

        at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:151)

        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)

        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)

        at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:897)

        at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:626)

        at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:2033)

        at java.lang.Thread.run(Thread.java:619)

 

[/code]

1 2 Previous Next