5 Replies Latest reply on Nov 3, 2016 4:39 AM by Ed Mulemangabo

    WELD-000163 when I upgraded from WildFly 10.0.0 to 10.1.0

    Xavier Dury Newbie

      Hi,

       

      I tried upgrading from WildFly 10.0.0 to 10.1.0 and got the following error:

       

      15:16:51,508 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC000001: Failed to start service jboss.deployment.unit."my-app.war".WeldStartService: org.jboss.msc.service.StartException in service jboss.deployment.unit."my-app.war".WeldStartService: Failed to start service

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1904)

              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

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

      Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-000163: Non-unique bean deployment identifier detected:

        - BeanDeployment [beanDeploymentArchiveId=my-app.war/WEB-INF/lib/deltaspike-jpa-module-api-1.7.1.jar],

        - BeanDeployment [beanDeploymentArchiveId=bootstrapBDA.additionalClasses],

        - BeanDeployment [beanDeploymentArchiveId=/d:/development/git/my-project/content/my-app.war/WEB-INF/lib/rewrite-config-prettyfaces-3.4.1.Final.jar],

        - BeanDeployment [beanDeploymentArchiveId=/d:/development/git/my-project/content/my-app.war/WEB-INF/lib/deltaspike-data-module-api-1.7.1.jar],

        - BeanDeployment [beanDeploymentArchiveId=javax.xml.bind.api:main.additionalClasses],

        - BeanDeployment [beanDeploymentArchiveId=org.jboss.as.jsf:main.additionalClasses],

        - BeanDeployment [beanDeploymentArchiveId=bootstrapBDA.additionalClasses],

        - BeanDeployment [beanDeploymentArchiveId=my-app.war/WEB-INF/lib/deltaspike-partial-bean-module-api-1.7.1.jar],

        - BeanDeployment [beanDeploymentArchiveId=org.hibernate.validator:main.additionalClasses],

        - BeanDeployment [beanDeploymentArchiveId=my-app.war/WEB-INF/lib/rewrite-integration-cdi-3.4.1.Final.jar],

        - BeanDeployment [beanDeploymentArchiveId=my-app.war/WEB-INF/lib/deltaspike-jpa-module-impl-1.7.1.jar],

        - BeanDeployment [beanDeploymentArchiveId=org.jberet.jberet-core:main.additionalClasses],

        - BeanDeployment [beanDeploymentArchiveId=org.wildfly.extension.messaging-activemq:main.additionalClasses],

        - BeanDeployment [beanDeploymentArchiveId=my-app.war/WEB-INF/lib/picketlink-impl-2.7.1.Final.jar],

        - BeanDeployment [beanDeploymentArchiveId=my-app.war/WEB-INF/lib/deltaspike-proxy-module-api-1.7.1.jar],

        - BeanDeployment [beanDeploymentArchiveId=com.sun.jsf-impl:main.additionalClasses],

        - BeanDeployment [beanDeploymentArchiveId=my-app.war/WEB-INF/lib/deltaspike-core-impl-1.7.1.jar],

        - BeanDeployment [beanDeploymentArchiveId=/d:/development/git/my-project/content/my-app.war/WEB-INF/lib/rewrite-servlet-3.4.1.Final.jar],

        - BeanDeployment [beanDeploymentArchiveId=my-app.war/WEB-INF/lib/deltaspike-jsf-module-api-1.7.1.jar],

        - BeanDeployment [beanDeploymentArchiveId=my-app.war/WEB-INF/lib/deltaspike-security-module-api-1.7.1.jar],

        - BeanDeployment [beanDeploymentArchiveId=my-app.war/WEB-INF/lib/omnifaces-2.4.jar],

        - BeanDeployment [beanDeploymentArchiveId=my-app.war/WEB-INF/lib/deltaspike-security-module-impl-1.7.1.jar],

        - BeanDeployment [beanDeploymentArchiveId=org.jboss.jts:main.additionalClasses],

        - BeanDeployment [beanDeploymentArchiveId=deployment.my-app.war:main.additionalClasses],

        - BeanDeployment [beanDeploymentArchiveId=my-app.war/WEB-INF/lib/deltaspike-partial-bean-module-impl-1.7.1.jar],

        - BeanDeployment [beanDeploymentArchiveId=my-app.war/WEB-INF/lib/picketlink-api-2.7.1.Final.jar],

        - BeanDeployment [beanDeploymentArchiveId=my-app.war/WEB-INF/lib/deltaspike-data-module-impl-1.7.1.jar],

        - BeanDeployment [beanDeploymentArchiveId=my-app.war],

        - BeanDeployment [beanDeploymentArchiveId=bootstrapBDA.additionalClasses],

        - BeanDeployment [beanDeploymentArchiveId=my-app.war/WEB-INF/lib/deltaspike-core-api-1.7.1.jar],

        - BeanDeployment [beanDeploymentArchiveId=org.jboss.resteasy.resteasy-cdi:main.additionalClasses],

        - BeanDeployment [beanDeploymentArchiveId=org.hibernate.validator.cdi:main.additionalClasses],

        - BeanDeployment [beanDeploymentArchiveId=my-app.war/WEB-INF/lib/deltaspike-proxy-module-impl-asm5-1.7.1.jar],

        - BeanDeployment [beanDeploymentArchiveId=my-app.war/WEB-INF/lib/deltaspike-jsf-module-impl-1.7.1.jar],

              at org.jboss.weld.bootstrap.DeploymentVisitor.visit(DeploymentVisitor.java:51)

              at org.jboss.weld.bootstrap.WeldStartup.deployBeans(WeldStartup.java:430)

              at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:83)

              at org.jboss.as.weld.WeldStartService.start(WeldStartService.java:95)

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)

              ... 3 more

       

      From what I see, WildFly complains because there are 3 beanDeploymentArchives with Id=bootstrapBDA.additionalClasses.

       

      My application runs fine on 10.0.0. Am I missing some migration steps or something?

       

      Thanks,

       

      Xavier