[JBoss OSGi Users] - Re: Access OSGIFramework from Stateless
by thomas.diesler@jboss.com
| @Remote
| @Stateless(name="StatelessBean")
| public class StatelessBeanImpl implements StatelessBean
| {
| @Depends("jboss.osgi:service=ManagedFramework")
| ManagedFrameworkMBean framework;
|
| public String getFraemworkSymbolicName()
| {
| ObjectName bundle = framework.getBundle(0);
| return bundle.getKeyProperty(ManagedBundle.PROPERTY_SYMBOLIC_NAME);
| }
| }
|
which currently fails with
| 17:56:53,548 INFO [MainDeployer] deploy, url=file:/home/tdiesler/svn/jboss-osgi/trunk/testsuite/functional/target/test-libs/jbosgi58-ejb.jar
| 17:56:53,952 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@22494867{vfszip:/home/tdiesler/svn/jboss-osgi/trunk/testsuite/functional/target/test-libs/jbosgi58-ejb.jar/}
| 17:56:53,953 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@22494867{vfszip:/home/tdiesler/svn/jboss-osgi/trunk/testsuite/functional/target/test-libs/jbosgi58-ejb.jar/}
| 17:56:53,982 WARN [InterceptorInfoRepository] EJBTHREE-1852: InterceptorInfoRepository is deprecated
| 17:56:54,892 INFO [JBossASKernel] Created KernelDeployment for: jbosgi58-ejb.jar
| 17:56:54,900 INFO [JBossASKernel] installing bean: jboss.j2ee:jar=jbosgi58-ejb.jar,name=StatelessBean,service=EJB3
| 17:56:54,901 INFO [JBossASKernel] with dependencies:
| 17:56:54,901 INFO [JBossASKernel] and demands:
| 17:56:54,901 INFO [JBossASKernel] jboss.osgi:service=ManagedFramework
| 17:56:54,901 INFO [JBossASKernel] jboss.ejb:service=EJBTimerService
| 17:56:54,901 INFO [JBossASKernel] and supplies:
| 17:56:54,902 INFO [JBossASKernel] jndi:StatelessBean/remote
| 17:56:54,902 INFO [JBossASKernel] Class:org.jboss.test.osgi.jbossas.jbosgi58.ejb.StatelessBean
| 17:56:54,902 INFO [JBossASKernel] jndi:StatelessBean/remote-org.jboss.test.osgi.jbossas.jbosgi58.ejb.StatelessBean
| 17:56:54,902 INFO [JBossASKernel] Added bean(jboss.j2ee:jar=jbosgi58-ejb.jar,name=StatelessBean,service=EJB3) to KernelDeployment of: jbosgi58-ejb.jar
| 17:56:55,251 WARN [MainDeployer] Failed to deploy: file:/home/tdiesler/svn/jboss-osgi/trunk/testsuite/functional/target/test-libs/jbosgi58-ejb.jar
| org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
|
| 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")
|
| DEPLOYMENTS IN ERROR:
| Deployment "<UNKNOWN jboss.j2ee:jar=jbosgi58-ejb.jar,name=StatelessBean,service=EJB3>" is in error due to the following reason(s): ** UNRESOLVED Demands 'jboss.osgi:service=ManagedFramework' **
|
| at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1002)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:948)
| at org.jboss.osgi.framework.deployers.OSGiDeployersWrapper.checkComplete(OSGiDeployersWrapper.java:182)
| at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:870)
| at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:859)
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4269398#4269398
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4269398
14 years, 12 months