[jboss-user] [JBossWS] - HELP HELP.. Error in using @Resource WebServiceContext in a
sursha
do-not-reply at jboss.com
Mon Oct 2 14:25:19 EDT 2006
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?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3975577#3975577
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3975577
More information about the jboss-user
mailing list