[jboss-osgi-issues] [JBoss JIRA] Resolved: (JBOSGI-58) Framework injection in SLSB
Thomas Diesler (JIRA)
jira-events at lists.jboss.org
Tue Jul 26 05:53:25 EDT 2011
[ https://issues.jboss.org/browse/JBOSGI-58?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thomas Diesler resolved JBOSGI-58.
----------------------------------
Resolution: Out of Date
Out of Date
> Framework injection in SLSB
> ---------------------------
>
> Key: JBOSGI-58
> URL: https://issues.jboss.org/browse/JBOSGI-58
> Project: JBoss OSGi
> Issue Type: Task
> Security Level: Public(Everyone can see)
> Components: Integration (JBoss)
> Reporter: Thomas Diesler
> Fix For: Approved and Unscheduled
>
>
> 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-osgi-issues
mailing list