1 Reply Latest reply: Aug 21, 2012 8:38 AM by rsmeral RSS

    Solder and error message

    Tomasz K Newbie

      I use the jBoss AS 7.1.1 Final and Seam Framework 3 to develop my application.

       

      I added the following dependencies into my pom.xml file:

       

       

      <dependencyManagement>
       <dependencies>
       <dependency>
       <groupId>org.jboss.seam</groupId>
       <artifactId>seam-bom</artifactId>
       <version>${jboss-seam.version}</version>
       <type>pom</type>
       <scope>import</scope>
       </dependency>
       </dependencies>
      </dependencyManagement>
      
      <dependencies>
       <dependency>
       <groupId>org.jboss.solder</groupId>
       <artifactId>solder-api</artifactId>
       <scope>compile</scope>
       </dependency>
      
       <dependency>
       <groupId>org.jboss.solder</groupId>
       <artifactId>solder-impl</artifactId>
       <scope>runtime</scope>
       </dependency>
      </dependencies>
      

       

       

       

      When I deploy my application I gets the foloowing message:

       

      16:25:41,248 INFO  [org.jboss.as.repository] (management-handler-thread - 72) JBAS014900: Content added at location /home/tk/jboss-as-7.1.1.Final/standalone/data/content/d5/6a0631867575587244ce43c4f032ef589b32da/content
      16:25:41,250 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015876: Starting deployment of "organizer.ear"
      16:25:41,297 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015876: Starting deployment of "organizer-web-0.0.1-SNAPSHOT.war"
      16:25:41,356 INFO  [org.jboss.weld.deployer] (MSC service thread 1-1) JBAS016002: Processing weld deployment organizer.ear
      16:25:41,409 INFO  [org.jboss.weld.deployer] (MSC service thread 1-3) JBAS016002: Processing weld deployment organizer-web-0.0.1-SNAPSHOT.war
      16:25:41,453 INFO  [org.jboss.weld.deployer] (MSC service thread 1-3) JBAS016005: Starting Services for CDI deployment: organizer.ear
      16:25:41,461 INFO  [org.jboss.weld.deployer] (MSC service thread 1-2) JBAS016008: Starting weld service for deployment organizer.ear
      16:25:41,509 INFO  [org.jboss.solder.config.xml.bootstrap.XmlConfigExtension] (MSC service thread 1-2) Solder Config XML provider starting...
      16:25:41,510 INFO  [org.jboss.solder.config.xml.bootstrap.XmlConfigExtension] (MSC service thread 1-2) Loading XmlDocumentProvider: org.jboss.solder.config.xml.bootstrap.ResourceLoaderXmlDocumentProvider
      16:25:41,520 INFO  [org.jboss.solder.Version] (MSC service thread 1-2) Solder 3.1.0.Final (build id: 3.1.0.Final)
      16:25:42,145 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.deployment.unit."organizer.ear".WeldService: org.jboss.msc.service.StartException in service jboss.deployment.unit."organizer.ear".WeldService: org.jboss.weld.exceptions.DeploymentException: WELD-001414 Bean name is ambiguous. Name handledException resolves to beans [Producer Method [ExceptionStack] with qualifiers [@Any @Default @Named] declared as [[method] @Produces @ConversationScoped @Named public org.jboss.solder.exception.control.ExceptionHandlerDispatch.getExceptionStack()], Producer Method [ExceptionStack] with qualifiers [@Any @Default @Named] declared as [[method] @Produces @ConversationScoped @Named public org.jboss.solder.exception.control.ExceptionHandlerDispatch.getExceptionStack()]]
       at org.jboss.as.weld.services.WeldService.start(WeldService.java:83)
       at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
       at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_05]
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_05]
       at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_05]
      Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001414 Bean name is ambiguous. Name handledException resolves to beans [Producer Method [ExceptionStack] with qualifiers [@Any @Default @Named] declared as [[method] @Produces @ConversationScoped @Named public org.jboss.solder.exception.control.ExceptionHandlerDispatch.getExceptionStack()], Producer Method [ExceptionStack] with qualifiers [@Any @Default @Named] declared as [[method] @Produces @ConversationScoped @Named public org.jboss.solder.exception.control.ExceptionHandlerDispatch.getExceptionStack()]]
       at org.jboss.weld.bootstrap.Validator.validateBeanNames(Validator.java:440)
       at org.jboss.weld.bootstrap.Validator.validateDeployment(Validator.java:337)
       at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:366)
       at org.jboss.as.weld.WeldContainer.start(WeldContainer.java:83)
       at org.jboss.as.weld.services.WeldService.start(WeldService.java:76)
       ... 5 more
      
      16:25:42,353 INFO  [org.jboss.as.server] (management-handler-thread - 72) JBAS015870: Deploy of deployment "organizer.ear" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"organizer.ear\".WeldService" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"organizer.ear\".WeldService: org.jboss.weld.exceptions.DeploymentException: WELD-001414 Bean name is ambiguous. Name handledException resolves to beans [Producer Method [ExceptionStack] with qualifiers [@Any @Default @Named] declared as [[method] @Produces @ConversationScoped @Named public org.jboss.solder.exception.control.ExceptionHandlerDispatch.getExceptionStack()], Producer Method [ExceptionStack] with qualifiers [@Any @Default @Named] declared as [[method] @Produces @ConversationScoped @Named public org.jboss.solder.exception.control.ExceptionHandlerDispatch.getExceptionStack()]]"}}
      16:25:42,361 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015877: Stopped deployment organizer-web-0.0.1-SNAPSHOT.war in 8ms
      16:25:42,364 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015877: Stopped deployment organizer.ear in 10ms
      16:25:42,365 INFO  [org.jboss.as.controller] (management-handler-thread - 72) JBAS014774: Service status report
      JBAS014777:   Services which failed to start:      service jboss.deployment.unit."organizer.ear".WeldService: org.jboss.msc.service.StartException in service jboss.deployment.unit."organizer.ear".WeldService: org.jboss.weld.exceptions.DeploymentException: WELD-001414 Bean name is ambiguous. Name handledException resolves to beans [Producer Method [ExceptionStack] with qualifiers [@Any @Default @Named] declared as [[method] @Produces @ConversationScoped @Named public org.jboss.solder.exception.control.ExceptionHandlerDispatch.getExceptionStack()], Producer Method [ExceptionStack] with qualifiers [@Any @Default @Named] declared as [[method] @Produces @ConversationScoped @Named public org.jboss.solder.exception.control.ExceptionHandlerDispatch.getExceptionStack()]]
       

       

       

      Any idea?

        • 1. Re: Solder and error message
          rsmeral Newbie

          Hi Tomasz,

           

          a similar problem has been solved in this thread: https://community.jboss.org/message/653315#653315

           

          Weld seems to encounter the same bean twice (org.jboss.solder.exception.control.ExceptionHandlerDispatch).

          That is because you most likely have two instances of solder packaged in the archive (possibly different versions). One defined by you in the pom.xml you describe, and another as a transitive dependency of another lib you might be using (like Seam Faces, etc.)