2 Replies Latest reply on Jan 11, 2013 3:57 PM by X Chen

    EJB3 and OSGI

    X Chen Newbie

      Post http://community.jboss.org/message/614884 has an example of invoking an EJB from an OSGi bundle. I tried to make it work with the current version AS 7.1.1 but it doesn’t. Anyone has a clue? The exact same packages deploy successfully on AS 7.0. BTW, how do I run the consumer?

       

      Here is the error message I got from AS 7.1.1:

       

      ERROR [org.jboss.msc.service.fail] (MSC service thread 1-13) MSC00001: Failed to start service jboss.deployment.unit."ascii-pics-provider-ejb-mbp-1.0.0.jar".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."ascii-pics-provider-ejb-mbp-1.0.0.jar".POST_MODULE: Failed to process phase POST_MODULE of deployment "ascii-pics-provider-ejb-mbp-1.0.0.jar"

      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

      at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_24]

      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_24]

      at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_24]

       

      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: Could not determine type of ejb-ref java:comp/env/ejb/AsciiPicEJB for org.jboss.as.ejb3.component.stateless.StatelessComponentDescription{serviceName=service jboss.deployment.unit."ascii-pics-provider-ejb-mbp-1.0.0.jar".component.AsciiPicEJB}@5c1044

      at org.jboss.as.ejb3.deployment.processors.EjbRefProcessor.processDescriptorEntries(EjbRefProcessor.java:123)

      at org.jboss.as.ee.component.deployers.AbstractDeploymentDescriptorBindingsProcessor.deploy(AbstractDeploymentDescriptorBindingsProcessor.java:105)

      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

       

      ... 5 more

       

      Thanks

      X