1 2 Previous Next 19 Replies Latest reply on Mar 3, 2012 7:30 AM by ziggy25 Go to original post
      • 15. Re: webapp deploys on v7.0.2 but not on 7.1.0.CR1b
        rkilcoyne

        Use 2.3.1.GA -- that's the version that ships with 7.1.0. The difference is that I make sure that no older versions of resteasy are included via transitive dependencies. FWIW, this isn't my EXACT pom. The first two dependencies are in a parent pom while the last two are in a submodule, hence the lack of version tags in the last two dependencies.

        • 16. Re: webapp deploys on v7.0.2 but not on 7.1.0.CR1b
          ziggy25

          Thanks i did try it and it worked with the changes you suggested.

          • 17. Re: webapp deploys on v7.0.2 but not on 7.1.0.CR1b
            rkilcoyne

            Cool! Glad you're up and running. Maven can be a strange beast -- mvn dependency:tree is your friend!

            • 18. Re: webapp deploys on v7.0.2 but not on 7.1.0.CR1b
              erik.paulsen

              I ran into the same error moving to 7.1.0, and this thread was hugely helpful in fixing it.  But in my case the fix turned out to be simpler, and I thought I should share.

               

              In my original POM, as in Ziggy's, I had a simple dependency on resteasy-jaxrs.  Meaning that I was deploying that library in my WAR file.  And therefore I was impacted by the internal resteasy issue that Rick explained.

               

              But I was able fix this by simply flagging the dependency as "provided":

               

                  <dependency>

                    <groupId>org.jboss.resteasy</groupId>

                    <artifactId>resteasy-jaxrs</artifactId>

                    <version>2.2.0.GA</version>

                    <scope>provided</scope>

                  </dependency>

               

              Meaning that I am not deploying resteasy at all.  JBoss includes a valid version of the resteasy libs, so no need to bundle them with my app.

               

              This fix might not work for everybody.  There could be scenarios where you actually need to deploy resteasy.  But if anybody else has this problem, I'd suggest trying the simple fix first.

              1 of 1 people found this helpful
              • 19. Re: webapp deploys on v7.0.2 but not on 7.1.0.CR1b
                ziggy25

                Erik, i tried your suggestion as well and it works so both solutions work fine. Thanks

                1 2 Previous Next