1 Reply Latest reply on Mar 8, 2011 6:27 AM by Jozef Hartinger

    java.lang.ClassCastException: org.jboss.seam.resteasy.Application cannot be cast to javax.ws.rs.core.Application

    Cesar Izurieta Newbie

      Hi, I have a fully working seam 2.2.1.Final + Maven 3 ear application. I added a jboss-seam-resteasy dependency and then I got this error while deploying to Jboss AS 6:



      java.lang.ClassCastException: org.jboss.seam.resteasy.Application cannot be cast to javax.ws.rs.core.Application
           at org.jboss.resteasy.spi.ResteasyDeployment.createApplication(ResteasyDeployment.java:249) [:]
           at org.jboss.resteasy.spi.ResteasyDeployment.start(ResteasyDeployment.java:192) [:]
           at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.init(ServletContainerDispatcher.java:67) [:6.0.0.Final]
           at org.jboss.resteasy.plugins.server.servlet.FilterDispatcher.init(FilterDispatcher.java:39) [:6.0.0.Final]
           at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:447) [:6.0.0.Final]
           at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3246) [:6.0.0.Final]
           at org.apache.catalina.core.StandardContext.start(StandardContext.java:3843) [:6.0.0.Final]
           at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:294) [:6.0.0.Final]
           at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:146) [:6.0.0.Final]
           at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:477) [:6.0.0.Final]
           at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118) [:6.0.0.Final]
           at org.jboss.web.deployers.WebModule.start(WebModule.java:95) [:6.0.0.Final]
              ...



      Does anybody has an idea what is happening?