I would like to implement EJBs both inside a war module and inside an ejb module. Both kinds of EJBs must be invoked from the war module. Therefore, I have created a minor test application in which a servlet (using @EJB annotations) invokes both a EJB implemented inside the same war module as contains the servlet and another EJB implemented inside an ejb-module within the same ear file. But as soon as I add the ejb module to the manifest file of war-module, the application can not be deployed anymore. The following exception is thrown:
011-01-03 20:31:25,864 WARN [org.jboss.ejb3.interceptor.InterceptorInfoRepository] (HDScanner) EJBTHREE-1852: InterceptorInfoRepository is deprecated 2011-01-03 20:31:26,431 WARN [org.jboss.ejb3.interceptor.InterceptorInfoRepository] (HDScanner) EJBTHREE-1852: InterceptorInfoRepository is deprecated 2011-01-03 20:31:26,443 WARN [org.jboss.ejb3.Ejb3AnnotationHandler] (HDScanner) JBMETA-4: did not find any bean meta data for annotation bean EJBTestBean, will create some 2011-01-03 20:31:26,461 ERROR [org.jboss.weld.integration.instantiator.RedirectingBeanInstantiatorDeployer] (HDScanner) Error during undeploy: vfs:///D:/udvikling/jboss-6.0.0.Final/server/default/deploy/mytest.ear/mytest.web.war/: java.lang.IllegalStateException: Not installed: org.jboss.ejb.bean.instantiator/mytest/mytest.web/EJBTestBean at org.jboss.dependency.plugins.AbstractController.uninstall(AbstractController.java:790) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractController.uninstall(AbstractController.java:669) [jboss-dependency.jar:2.2.0.GA] at org.jboss.ejb3.instantiator.deployer.BeanInstantiatorDeployerBase.undeploy(BeanInstantiatorDeployerBase.java:157) [:1.0.0-alpha-4] at org.jboss.weld.integration.instantiator.RedirectingBeanInstantiatorDeployer.undeploy(RedirectingBeanInstantiatorDeployer.java:74) [:6.0.0.Final] at org.jboss.deployers.plugins.deployers.DeployerWrapper.undeploy(DeployerWrapper.java:204) [:2.2.0.GA]
I have attached both the complete log file and the minor application causing the problems.
I would like to know how I can get the above scenario working. As far as I can see jboss tries to scan the ejb module for EJBs even though I have indicated inside the application.xml that it is an ejb module.
JBoss 6.0.0 Final
OS: Windows 7