Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-1100

CDI extension for SEAM REST not working

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • 7.0.0.CR1
    • 7.0.0.Beta3
    • CDI / Weld
    • None

    Description

      I'm using Jenkins build 1267. I extended my EAR:

      • in lib: seam-solder.jar, seam-rest.jar, seam-catch.jar
      • beans.xml in WEB-INF of the web module:
        <?xml version="1.0" encoding="UTF-8"?>
        <beans xmlns="http://java.sun.com/xml/ns/javaee"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
        http://java.sun.com/xml/ns/javaee/beans_1_0.xsd">
        <interceptors>
        <class>
        org.jboss.seam.rest.validation.ValidationInterceptor
        </class>
        </interceptors>
        </beans>

      Error message stacktrace:
      09:34:23,610 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed to start service jboss.deployment.unit."swe1.ear".WeldService: org.jboss.msc.service.StartException in service jboss.deployment.unit."swe1.ear".WeldService: org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied dependencies for type [ClientExecutor] with qualifiers [@Default] at injection point [[parameter 2] of [method] @Produces @RestClient public org.jboss.seam.rest.client.RestClientProducer.produceClientRequest(InjectionPoint, ClientExecutor)]
      at org.jboss.as.weld.services.WeldService.start(WeldService.java:96)
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)
      at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_26]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_26]
      at java.lang.Thread.run(Thread.java:662) [:1.6.0_26]
      Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied dependencies for type [ClientExecutor] with qualifiers [@Default] at injection point [[parameter 2] of [method] @Produces @RestClient public org.jboss.seam.rest.client.RestClientProducer.produceClientRequest(InjectionPoint, ClientExecutor)]
      at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:270)
      at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:106)
      at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:129)
      at org.jboss.weld.bootstrap.Validator.validateBeans(Validator.java:351)
      at org.jboss.weld.bootstrap.Validator.validateDeployment(Validator.java:336)
      at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:396)
      at org.jboss.as.weld.WeldContainer.start(WeldContainer.java:82)
      at org.jboss.as.weld.services.WeldService.start(WeldService.java:89)
      ... 5 more

      Attachments

        1. testcase.ear
          429 kB
        2. testcase-src.zip
          429 kB

        Activity

          People

            sdouglas1@redhat.com Stuart Douglas
            juergen.zimmermann Juergen Zimmermann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: