[jboss-osgi-issues] [JBoss JIRA] Commented: (JBOSGI-58) Framework injection in SLSB

Thomas Diesler (JIRA) jira-events at lists.jboss.org
Mon Dec 7 12:07:21 EST 2009


    [ https://jira.jboss.org/jira/browse/JBOSGI-58?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12498649#action_12498649 ] 

Thomas Diesler commented on JBOSGI-58:
--------------------------------------

[tdiesler at tdbell functional]$ mvn -Dtarget.container=jboss600 -Dtest=OSGI58TestCase test

Running org.jboss.test.osgi.jbossas.jbosgi58.OSGI58TestCase
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 3.565 sec <<< FAILURE!

DEPLOYMENTS MISSING DEPENDENCIES:
  Deployment "jboss.j2ee:jar=jbosgi58-ejb.jar,name=StatelessBean,service=EJB3" is missing the following dependencies:
    Dependency "<UNKNOWN jboss.j2ee:jar=jbosgi58-ejb.jar,name=StatelessBean,service=EJB3>" (should be in state "Installed", but is actually in state "** UNRESOLVED Demands 'jboss.osgi:service=ManagedFramework' **")
  Deployment "jboss.j2ee:jar=jbosgi58-ejb.jar,name=StatelessBean,service=EJB3_endpoint" is missing the following dependencies:
    Dependency "jboss.j2ee:jar=jbosgi58-ejb.jar,name=StatelessBean,service=EJB3" (should be in state "Installed", but is actually in state "PreInstall")



> Framework injection in SLSB
> ---------------------------
>
>                 Key: JBOSGI-58
>                 URL: https://jira.jboss.org/jira/browse/JBOSGI-58
>             Project: JBoss OSGi
>          Issue Type: Task
>      Security Level: Public(Everyone can see) 
>          Components: Integration (JBoss)
>            Reporter: Thomas Diesler
>            Assignee: Kabir Khan
>             Fix For:  JBossOSGi 1.0.x
>
>
> I'm tring to access the OSGIFramework from my Stateless and I got this error:
> Caused by: javax.management.InstanceNotFoundException: jboss.osgi:service=Framework is not registered.
> at org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java:529)
> at org.jboss.mx.server.MBeanServerImpl.getMBeanInfo(MBeanServerImpl.java:675)
> at org.jboss.mx.util.MBeanProxyExt.init(MBeanProxyExt.java:407)
> at org.jboss.mx.util.MBeanProxyExt.(MBeanProxyExt.java:99)
> at org.jboss.mx.util.MBeanProxyExt.create(MBeanProxyExt.java:394)
> at org.jboss.mx.util.MBeanProxyExt.create(MBeanProxyExt.java:349)
> at org.jboss.injection.DependsFieldInjector.inject(DependsFieldInjector.java:66)
> @Stateless
> public class TestStatelessBean implements TestStatelessRemote
> {
> @Depends("jboss.osgi:service=Framework")
> OSGiFramework framework;
> @Override
> public void test() throws NamingException
> {
> System.out.println(framework.getSystemBundle());
> } 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-osgi-issues mailing list