7 Replies Latest reply on Nov 19, 2013 5:22 AM by rhusar

    Problem migrating project from Jboss as 7.1.1 to WildFly 8.0.0.Beta1

    belvain

      Hi,

       

      I'm trying to migrate project from JBoss as 7.1.1 to WildFly 8.0.0.Beta1 but I'm having some problems.

      Project works fine with JBoss as 7.1.1 but when deploying it to WidFly I get following error:

       

      14:40:13,083 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC000001: Failed to start service jboss.deployment.unit."muikku.war".WeldStartService: org.jboss.msc.service.StartException in service jboss.deployment.unit."muikku.war".WeldStartService: Failed to start service

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1900) [jboss-msc-1.2.0.Beta2.jar:1.2.0.Beta2]

          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_25]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_25]

          at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_25]

      Caused by: org.jboss.weld.exceptions.DeploymentException: Exception List with 2 exceptions:

      Exception 0 :

      org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type Injector with qualifiers @Default

        at injection point [BackedAnnotatedField] @Inject private org.sonatype.guice.bean.binders.TypeConverterMap.injector

        at org.sonatype.guice.bean.binders.TypeConverterMap.injector(TypeConverterMap.java:0)

       

          at org.jboss.weld.bootstrap.Validator.validateInjectionPointForDeploymentProblems(Validator.java:361)

          at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:282)

          at org.jboss.weld.bootstrap.Validator.validateGeneralBean(Validator.java:133)

          at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:164)

          at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:507)

          at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:68)

          at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:66)

          at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:60)

          at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:53)

          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:724)

       

      Any ideas on how to solve this would be appriciated.

        • 1. Re: Problem migrating project from Jboss as 7.1.1 to WildFly 8.0.0.Beta1
          ctomc

          Hey,

           

          do you deliberately use org.sonatype.guice.bean.binders.TypeConverterMap or is this something that should not be part of your application?


          i would say that you have included in your application some maven/sonatype jars that should not be there in first place.


          can you post contents(names of jars) of your lib folder?



          --

          tomaz

          • 2. Re: Problem migrating project from Jboss as 7.1.1 to WildFly 8.0.0.Beta1
            belvain

            I use maven for dependency management and sisu-guice as an injection framework (org.sonatype.guice class comes from sisu-guice which is patched build of google-guice. The main difference between Sisu-Guice and Google-Guice is that Guava is now exposed as a direct Maven dependency.).


            Maven dependencies copied from eclipse:


            org/jboss/spec/javax/annotation/jboss-annotations-api_1.1_spec/1.0.0.Final/jboss-annotations-api_1.1_spec-1.0.0.Final.jar

            org/jboss/spec/javax/resource/jboss-connector-api_1.5_spec/1.0.0.Final/jboss-connector-api_1.5_spec-1.0.0.Final.jar

            org/jboss/spec/javax/ejb/jboss-ejb-api_3.1_spec/1.0.0.CR2/jboss-ejb-api_3.1_spec-1.0.0.CR2.jar

            org/jboss/spec/javax/el/jboss-el-api_2.2_spec/1.0.0.Final/jboss-el-api_2.2_spec-1.0.0.Final.jar

            org/jboss/spec/javax/interceptor/jboss-interceptors-api_1.1_spec/1.0.0.Beta1/jboss-interceptors-api_1.1_spec-1.0.0.Beta1.jar

            org/jboss/spec/javax/security/jacc/jboss-jacc-api_1.4_spec/1.0.0.Final/jboss-jacc-api_1.4_spec-1.0.0.Final.jar

            org/jboss/spec/javax/enterprise/deploy/jboss-jad-api_1.2_spec/1.0.0.Final/jboss-jad-api_1.2_spec-1.0.0.Final.jar

            org/jboss/spec/javax/security/auth/message/jboss-jaspi-api_1.0_spec/1.0.0.Final/jboss-jaspi-api_1.0_spec-1.0.0.Final.jar

            org/jboss/spec/javax/xml/registry/jboss-jaxr-api_1.0_spec/1.0.0.Final/jboss-jaxr-api_1.0_spec-1.0.0.Final.jar

            org/jboss/spec/javax/jms/jboss-jms-api_1.1_spec/1.0.0.Final/jboss-jms-api_1.1_spec-1.0.0.Final.jar

            org/jboss/spec/javax/servlet/jsp/jboss-jsp-api_2.2_spec/1.0.0.Final/jboss-jsp-api_2.2_spec-1.0.0.Final.jar

            org/jboss/spec/javax/servlet/jboss-servlet-api_3.0_spec/1.0.0.Final/jboss-servlet-api_3.0_spec-1.0.0.Final.jar

            org/jboss/spec/javax/transaction/jboss-transaction-api_1.1_spec/1.0.0.Final/jboss-transaction-api_1.1_spec-1.0.0.Final.jar

            org/jboss/spec/javax/xml/bind/jboss-jaxb-api_2.2_spec/1.0.0.Final/jboss-jaxb-api_2.2_spec-1.0.0.Final.jar

            org/jboss/spec/javax/xml/rpc/jboss-jaxrpc-api_1.1_spec/1.0.0.Final/jboss-jaxrpc-api_1.1_spec-1.0.0.Final.jar

            org/jboss/spec/javax/xml/soap/jboss-saaj-api_1.3_spec/1.0.0.Final/jboss-saaj-api_1.3_spec-1.0.0.Final.jar

            org/jboss/spec/javax/xml/ws/jboss-jaxws-api_2.2_spec/1.0.0.Final/jboss-jaxws-api_2.2_spec-1.0.0.Final.jar

            javax/activation/activation/1.1/activation-1.1.jar

            javax/enterprise/cdi-api/1.0-SP4/cdi-api-1.0-SP4.jar

            com/sun/faces/jsf-api/2.0.3-b05/jsf-api-2.0.3-b05.jar

            javax/inject/javax.inject/1/javax.inject-1.jar

            javax/jws/jsr181-api/1.0-MR1/jsr181-api-1.0-MR1.jar

            javax/mail/mail/1.4.2/mail-1.4.2.jar

            javax/servlet/jstl/1.2/jstl-1.2.jar

            org/hibernate/javax/persistence/hibernate-jpa-2.0-api/1.0.0.Final/hibernate-jpa-2.0-api-1.0.0.Final.jar

            org/jboss/resteasy/jaxrs-api/2.1.0.GA/jaxrs-api-2.1.0.GA.jar

            stax/stax-api/1.0.1/stax-api-1.0.1.jar

            javax/validation/validation-api/1.0.0.GA/validation-api-1.0.0.GA.jar

            org/jboss/spec/javax/faces/jboss-jsf-api_2.1_spec/2.0.6.Final/jboss-jsf-api_2.1_spec-2.0.6.Final.jar

            com/sun/faces/jsf-impl/2.1.7/jsf-impl-2.1.7.jar

            org/hibernate/hibernate-jpamodelgen/1.1.1.Final/hibernate-jpamodelgen-1.1.1.Final.jar

            org/hibernate/hibernate-validator/4.2.0.Final/hibernate-validator-4.2.0.Final.jar

            org/slf4j/slf4j-api/1.5.10/slf4j-api-1.5.10.jar

            org/apache/commons/commons-lang3/3.1/commons-lang3-3.1.jar

            org/hibernate/hibernate-entitymanager/4.0.1.Final/hibernate-entitymanager-4.0.1.Final.jar

            dom4j/dom4j/1.6.1/dom4j-1.6.1.jar

            xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar

            org/hibernate/hibernate-core/4.0.1.Final/hibernate-core-4.0.1.Final.jar

            commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.jar

            antlr/antlr/2.7.7/antlr-2.7.7.jar

            org/jboss/logging/jboss-logging/3.1.0.CR2/jboss-logging-3.1.0.CR2.jar

            org/javassist/javassist/3.14.0-GA/javassist-3.14.0-GA.jar

            org/hibernate/common/hibernate-commons-annotations/4.0.1.Final/hibernate-commons-annotations-4.0.1.Final.jar

            org/slf4j/slf4j-simple/1.5.6/slf4j-simple-1.5.6.jar

            org/hibernate/hibernate-infinispan/4.0.1.Final/hibernate-infinispan-4.0.1.Final.jar

            org/infinispan/infinispan-core/5.1.0.CR3/infinispan-core-5.1.0.CR3.jar

            org/jgroups/jgroups/3.0.2.Final/jgroups-3.0.2.Final.jar

            org/jboss/javaee/jboss-transaction-api/1.0.1.GA/jboss-transaction-api-1.0.1.GA.jar

            org/jboss/marshalling/jboss-marshalling-river/1.3.0.GA/jboss-marshalling-river-1.3.0.GA.jar

            org/jboss/marshalling/jboss-marshalling/1.3.0.GA/jboss-marshalling-1.3.0.GA.jar

            org/codehaus/woodstox/woodstox-core-asl/4.1.1/woodstox-core-asl-4.1.1.jar

            org/codehaus/woodstox/stax2-api/3.1.1/stax2-api-3.1.1.jar

            org/jboss/staxmapper/1.0.0.Final/staxmapper-1.0.0.Final.jar

            org/rhq/helpers/rhq-pluginAnnotations/3.0.4/rhq-pluginAnnotations-3.0.4.jar

            joda-time/joda-time/1.6/joda-time-1.6.jar

            org/apache/santuario/xmlsec/1.4.4/xmlsec-1.4.4.jar

            commons-logging/commons-logging/1.1/commons-logging-1.1.jar

            log4j/log4j/1.2.12/log4j-1.2.12.jar

            logkit/logkit/1.0.1/logkit-1.0.1.jar

            avalon-framework/avalon-framework/4.1.3/avalon-framework-4.1.3.jar

            javax/servlet/servlet-api/2.5/servlet-api-2.5.jar

            org/apache/deltaspike/core/deltaspike-core-api/0.3-incubating/deltaspike-core-api-0.3-incubating.jar

            org/apache/deltaspike/core/deltaspike-core-impl/0.3-incubating/deltaspike-core-impl-0.3-incubating.jar

            org/apache/maven/maven-aether-provider/3.0.4/maven-aether-provider-3.0.4.jar

            org/apache/maven/maven-model/3.0.4/maven-model-3.0.4.jar

            org/apache/maven/maven-model-builder/3.0.4/maven-model-builder-3.0.4.jar

            org/codehaus/plexus/plexus-interpolation/1.14/plexus-interpolation-1.14.jar

            org/apache/maven/maven-repository-metadata/3.0.4/maven-repository-metadata-3.0.4.jar

            org/sonatype/aether/aether-api/1.13.1/aether-api-1.13.1.jar

            org/sonatype/aether/aether-spi/1.13.1/aether-spi-1.13.1.jar

            org/sonatype/aether/aether-util/1.13.1/aether-util-1.13.1.jar

            org/sonatype/aether/aether-impl/1.13.1/aether-impl-1.13.1.jar

            org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar

            org/codehaus/plexus/plexus-utils/2.0.6/plexus-utils-2.0.6.jar

            org/sonatype/aether/aether-connector-wagon/1.13.1/aether-connector-wagon-1.13.1.jar

            org/apache/maven/wagon/wagon-provider-api/1.0-beta-6/wagon-provider-api-1.0-beta-6.jar

            org/codehaus/plexus/plexus-classworlds/2.4/plexus-classworlds-2.4.jar

            org/sonatype/sisu/sisu-inject-plexus/2.2.3/sisu-inject-plexus-2.2.3.jar

            org/sonatype/sisu/sisu-inject-bean/2.2.3/sisu-inject-bean-2.2.3.jar

            org/sonatype/sisu/sisu-guice/3.0.3/sisu-guice-3.0.3-no_aop.jar

            org/apache/maven/wagon/wagon-http-lightweight/2.3/wagon-http-lightweight-2.3.jar

            org/apache/maven/wagon/wagon-http-shared4/2.3/wagon-http-shared4-2.3.jar

            org/jsoup/jsoup/1.7.1/jsoup-1.7.1.jar

            org/apache/httpcomponents/httpcore/4.1.2/httpcore-4.1.2.jar

            fi/tranquil-model/tranquil-model/1.0.3-SNAPSHOT/tranquil-model-1.0.3-SNAPSHOT.jar

            commons-io/commons-io/2.4/commons-io-2.4.jar

            commons-codec/commons-codec/1.8/commons-codec-1.8.jar

            com/ocpsoft/prettyfaces-jsf2/3.3.3/prettyfaces-jsf2-3.3.3.jar

            org/jboss/resteasy/resteasy-oauth/2.3.2.Final/resteasy-oauth-2.3.2.Final.jar

            net/oauth/core/oauth-provider/20100527/oauth-provider-20100527.jar

            net/oauth/core/oauth/20100527/oauth-20100527.jar

            org/jboss/resteasy/resteasy-jaxrs/2.3.2.Final/resteasy-jaxrs-2.3.2.Final.jar

            org/scannotation/scannotation/1.0.3/scannotation-1.0.3.jar

            javax/annotation/jsr250-api/1.0/jsr250-api-1.0.jar

            commons-httpclient/commons-httpclient/3.1/commons-httpclient-3.1.jar

            org/apache/httpcomponents/httpclient/4.1.2/httpclient-4.1.2.jar

            net/jcip/jcip-annotations/1.0/jcip-annotations-1.0.jar

            org/codehaus/jackson/jackson-mapper-asl/1.9.2/jackson-mapper-asl-1.9.2.jar

            org/codehaus/jackson/jackson-core-asl/1.9.2/jackson-core-asl-1.9.2.jar

            • 3. Re: Problem migrating project from Jboss as 7.1.1 to WildFly 8.0.0.Beta1
              ctomc

              Do all this dependencies end up in your deployment? war/ear ?

               

              what is in your lib?

               

              most of dependencies you listed there are fine by itself but should not be present in resulting deployment as they are compile only dependencies and not runtime.

               

              i would avoid using maven dependencies as part of your runtime ones.

              and use google juice directly as it will give you much less problems than what you get now.

              guaua dependency  is noting special just one more entry in your pom.xml that is really small comparing that you now bring in extra 20 jars instead just one.

              1 of 1 people found this helpful
              • 4. Re: Problem migrating project from Jboss as 7.1.1 to WildFly 8.0.0.Beta1
                rhusar

                See "My application bundles a third-party library which uses javax.inject annotations. This library was not intended to be a CDI library but on CDI 1.1 this library is being picked up as an implicit bean archive and breaks the deployment of my application. Why is this happening" on the FAQ.

                 

                http://weld.cdi-spec.org/documentation/#4

                • 5. Re: Problem migrating project from Jboss as 7.1.1 to WildFly 8.0.0.Beta1
                  belvain

                  This was it, Thanks!

                  • 6. Re: Problem migrating project from Jboss as 7.1.1 to WildFly 8.0.0.Beta1
                    pmm

                    Radoslav Husar wrote:

                     

                    See "My application bundles a third-party library which uses javax.inject annotations. This library was not intended to be a CDI library but on CDI 1.1 this library is being picked up as an implicit bean archive and breaks the deployment of my application. Why is this happening" on the FAQ.

                     

                    http://weld.cdi-spec.org/documentation/#4

                    That is really funny. I reported this exact issue to the EG and told them this would gonna happen. But they put their finger in their ears and went "lalalalala I can't hear you". Now we have to have application server specific workarounds to get applications working. And then you wonder why people hate on JavaEE, joke about EGs and just use Tomcat and Spring.

                    • 7. Re: Problem migrating project from Jboss as 7.1.1 to WildFly 8.0.0.Beta1
                      rhusar

                      Philippe Marschall wrote:

                       

                      Radoslav Husar wrote:

                       

                      See "My application bundles a third-party library which uses javax.inject annotations. This library was not intended to be a CDI library but on CDI 1.1 this library is being picked up as an implicit bean archive and breaks the deployment of my application. Why is this happening" on the FAQ.

                       

                      http://weld.cdi-spec.org/documentation/#4

                      That is really funny. I reported this exact issue to the EG and told them this would gonna happen. But they put their finger in their ears and went "lalalalala I can't hear you". Now we have to have application server specific workarounds to get applications working. And then you wonder why people hate on JavaEE, joke about EGs and just use Tomcat and Spring.

                      Agreed. This has been pretty silly and they should have listened to reason.

                       

                      Now this issue is the topic for the next call and the spec itself is going to get amended so the 'workaround' does not have to be vendor-specific.