2 Replies Latest reply on Mar 14, 2013 2:10 PM by ramsrib

    JBoss & resteasy problem

    b3lowster

      Our system is working on JBoss 4.3.2GA very long time. Now we try to relocate to JBoss 7. Our system already use resteasy-spring and resteasy-jaxb-provider. JBoss 7 include self resteasy modules and that is a reason of conflict. I excluded resteasy modul from JBoss 7:

       

      <jboss-deployment-structure>
          <deployment>
              <exclusions>
                  <module name="org.jboss.resteasy.resteasy-atom-provider"/>
                  <module name="org.jboss.resteasy.resteasy-cdi"/>
                  <module name="org.jboss.resteasy.resteasy-jackson-provider"/>
                  <module name="org.jboss.resteasy.resteasy-jaxb-provider"/>
                  <module name="org.jboss.resteasy.resteasy-jaxrs"/>
                  <module name="org.jboss.resteasy.resteasy-jettison-provider"/>
                  <module name="org.jboss.resteasy.resteasy-jsapi"/>
                  <module name="org.jboss.resteasy.resteasy-multipart-provider"/>
                  <module name="org.jboss.resteasy.resteasy-yaml-provider"/>
                  <module name="org.apache.log4j"/>
                  <module name="org.apache.commons.pool"/>
              </exclusions>
              <dependencies>
                  <system>
                      <paths>
                          <path name="com/sun/rowset"/>
                          <path name="com/sun/rowset/internal"/>
                          <path name="com/sun/rowset/providers"/>
                      </paths>
                  </system>
              </dependencies>
          </deployment>
      </jboss-deployment-structure>
      

      But I still have a problem with deploy:

       

      Constructor threw exception; nested exception is java.lang.ClassCastException: org.jboss.resteasy.spi.ResteasyProviderFactory cannot be cast to org.jboss.resteasy.spi.ResteasyProviderFactory

       

      Java code where have thrown exception:

      RegisterBuiltin.register(ResteasyProviderFactory.getInstance());
      

      I need a help. What wrong in my deployment settings.

      ThankYou