Uploaded image for project: 'EJB 3.0'
  1. EJB 3.0
  2. EJBTHREE-1426

Injection and @WebServiceRef on types

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • AS 5.0.0.CR1
    • None
    • None
    • None

    Description

      Use cases with classes like this:

      @WebServiceRef(name = "Service1")
      // Test multiple on type
      @WebServiceRefs(

      { @WebServiceRef(name = "Service2"), @WebServiceRef(name = "Port1", type = TestEndpoint.class) }

      )
      public class TestEndpointClientTwo
      {
      // provide logging
      private static final Logger log = Logger.getLogger(org.jboss.test.ws.jaxws.webserviceref.TestEndp
      ointClientTwo.class);

      // Test on field
      @WebServiceRef(name = "Service3")
      static Service service3;
      ...

      result in this exception being thrown:

      Caused by: java.lang.IllegalStateException: Annotated element for 'env/Service1' is niether Method n
      or Field: class org.jboss.test.ws.jaxws.webserviceref.TestEndpointClientTwo
      at org.jboss.injection.WebServiceRefHandler.addInjector(WebServiceRefHandler.java:113)
      at org.jboss.injection.WebServiceRefHandler.loadXml(WebServiceRefHandler.java:82)
      at org.jboss.ejb3.clientmodule.ClientENCInjectionContainer.processMetaData(ClientENCInjectio
      nContainer.java:319)
      at org.jboss.ejb3.clientmodule.ClientENCInjectionContainer.<init>(ClientENCInjectionContainer.java:164)
      at org.jboss.ejb3.deployers.Ejb3ClientDeployer.deploy(Ejb3ClientDeployer.java:122)

      Attachments

        Issue Links

          Activity

            People

              olubyans@redhat.com Alexey Loubyansky
              rhn-support-asoldano Alessio Soldano
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: