[jboss-dev] mapped-name is required for context of deployment

Carlo de Wolf cdewolf at redhat.com
Tue Apr 1 09:09:34 EDT 2008


No, you should create a WebServiceContextInjectorPlugin which should 
hook into the injection framework. That should take the place of the 
current ResourceHandler.

Carlo

Thomas Diesler wrote:
> Folks,
> 
> http://jira.jboss.org/jira/browse/JBAS-5359
> 
> FYI any webapp deployment that uses
> 
>    @Resource
>    public WebServiceContext context;
> 
> currently fails with
> 
> 14:36:47,407 ERROR [BaseModelMBean] Exception invoking method addChild
> java.lang.RuntimeException: mapped-name is required for context of 
> deployment jaxws-binding.war
>         at 
> org.jboss.injection.ResourceHandler.loadXmlResourceEnvRefs(ResourceHandler.java:228) 
> 
>         at 
> org.jboss.injection.ResourceHandler.loadXml(ResourceHandler.java:268)
>         at 
> org.jboss.web.tomcat.service.TomcatInjectionContainer.processMetadata(TomcatInjectionContainer.java:348) 
> 
>         at 
> org.jboss.web.tomcat.service.WebCtxLoader.start(WebCtxLoader.java:158)
> 
> Is it really required to have a mapped-name?
> 
> cheers
> -thomas
> 




More information about the jboss-development mailing list