[jboss-user] [JBoss Web Services Development] - InjectionMetaDataDeploymentAspect misuse of EJBContainer.getEnc()
Carlo de Wolf
do-not-reply at jboss.com
Tue Mar 23 04:53:15 EDT 2010
Carlo de Wolf [http://community.jboss.org/people/wolfc] created the discussion
"InjectionMetaDataDeploymentAspect misuse of EJBContainer.getEnc()"
To view the discussion, visit: http://community.jboss.org/message/533419#533419
--------------------------------------------------------------
https://jira.jboss.org/jira/browse/EJBTHREE-2056 EJBTHREE-2056 changes the state of the naming context within the lifecycle of EJBContainer. In essence this is an implementation detail. With this change WS no longer deploys:
java.lang.IllegalStateException: EJBTHREE-2056: EjbEncFactory is null, usage of java:comp is not allowed before CREATE at org.jboss.ejb3.EJBContainer$1.invoke(EJBContainer.java:819) at $Proxy146.lookup(Unknown Source) at org.jboss.webservices.integration.injection.InjectionMetaDataDeploymentAspect.getJndiContext(InjectionMetaDataDeploymentAspect.java:186) at org.jboss.webservices.integration.injection.InjectionMetaDataDeploymentAspect.start(InjectionMetaDataDeploymentAspect.java:149) at org.jboss.webservices.integration.deployers.WSDeploymentAspectDeployer.internalDeploy(WSDeploymentAspectDeployer.java:114) at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55) at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179) ... 69 more
As a quick work-around you could set a dependency on the EJBContainer before you start the InjectionMetaDataDeploymentAspect.
The final resolution needs to be tied into the jboss-injection component.
PS. I can't figure out what EJB3_JNDI_PREFIX is supposed to mean.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/533419#533419]
Start a new discussion in JBoss Web Services Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2047]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100323/df4cd5ca/attachment.html
More information about the jboss-user
mailing list