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

WebServiceContext injection requires mapped-name

XMLWordPrintable

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

      /home/tdiesler/svn/jbossws/stack/native/trunk
      [tdiesler@tddell trunk]$ ant -Dtest=org.jboss.test.ws.jaxws.samples.context.WebServiceContextEJBTestCase one-test

      one-test:
      [junit] Running org.jboss.test.ws.jaxws.samples.context.WebServiceContextEJBTestCase
      [junit] Tests run: 3, Failures: 0, Errors: 3, Time elapsed: 3.361 sec
      [junit] Test org.jboss.test.ws.jaxws.samples.context.WebServiceContextEJBTestCase FAILED

      Caused by: java.lang.RuntimeException: mapped-name is required for wsCtx of deployment EndpointEJB
      at org.jboss.injection.ResourceHandler.loadXmlResourceEnvRefs(ResourceHandler.java:228)
      at org.jboss.injection.ResourceHandler.loadXml(ResourceHandler.java:268)
      at org.jboss.ejb3.EJBContainer.processMetadata(EJBContainer.java:455)
      at org.jboss.ejb3.Ejb3Deployment.processEJBContainerMetadata(Ejb3Deployment.java:343)
      at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:405)
      at org.jboss.ejb3.deployers.EJBStage2Deployer.deploy(EJBStage2Deployer.java:53)

      public class EndpointEJB
      {
      @Resource
      WebServiceContext wsCtx;

      ...
      }

      This used to work in AS5 and still does in AS42

              rhn-engineering-cdewolf Carlo de Wolf
              tdiesler@redhat.com Thomas Diesler
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: