0 Replies Latest reply on Oct 2, 2006 2:25 PM by Sureshbabu Thyvalappil

    HELP HELP.. Error in using @Resource WebServiceContext in  a

    Sureshbabu Thyvalappil Newbie

      Hi,
      I am using @Resource WebServiceContext in annotated web service and got the error

      11:53:11,847 WARN [ServiceController] Problem starting service jboss.j2ee:jar=thesearchagencyservices.jar,name=ReportService,service=EJB3
      java.lang.RuntimeException: You did not specify a @Resource.mappedName() on javax.xml.ws.WebServiceContext com.tsa.facade.ReportService.wsContext and there is no binding for that enc name in XML
      at org.jboss.ejb3.injection.ResourceHandler.loadFieldInjectors(ResourceHandler.java:362)
      at org.jboss.ejb3.injection.ResourceHandler.loadInjectors(ResourceHandler.java:401)
      at org.jboss.ejb3.injection.ResourceHandler.loadInjectors(ResourceHandler.java:381)
      at org.jboss.ejb3.EJBContainer.resolveInjectors(EJBContainer.java:640)
      at org.jboss.ejb3.EJBContainer.initializePool(EJBContainer.java:576)
      at org.jboss.ejb3.EJBContainer.start(EJBContainer.java:507)

      Looks like the @Resource injection is not working. I saw a post saying it is fixed in
      JBOSS WS 2.0 Beta. Where can i download it?
      I was getting the WebServiceContext to get the SOAPHeader from it.
      If it is not immediately available, what is the alternative way to get SOAPHeader in a annotated ejb 3.0 web service?