jboss osgi services doesn't start on windows
amit_archie Mar 9, 2011 7:23 AMHi,
I am trying to run Jboss OSGI on windows. I have copied run.cmd from one of the discussion. I am getting below error while starting the services. Kindly note that the required jars are there on classpath. run.cmd is attached.
F:\JBOSS-~1.BET\runtime\bin\..\conf;F:\JBOSS-~1.BET\runtime\bin\..\lib\args4j.jar;F:\JBOSS-~1.BET\runtime\bin\..\lib\javax.inject.jar;F:\JBOSS-~1.BET\runtime\bi
n\..\lib\jbosgi-framework-core.jar;F:\JBOSS-~1.BET\runtime\bin\..\lib\jbosgi-resolver-api.jar;F:\JBOSS-~1.BET\runtime\bin\..\lib\jbosgi-resolver-felix.jar;F:\JB
OSS-~1.BET\runtime\bin\..\lib\jbosgi-resolver-metadata.jar;F:\JBOSS-~1.BET\runtime\bin\..\lib\jbosgi-resolver-spi.jar;F:\JBOSS-~1.BET\runtime\bin\..\lib\jboss-c
ommon-core.jar;F:\JBOSS-~1.BET\runtime\bin\..\lib\jboss-logging.jar;F:\JBOSS-~1.BET\runtime\bin\..\lib\jboss-modules.jar;F:\JBOSS-~1.BET\runtime\bin\..\lib\jbos
s-msc.jar;F:\JBOSS-~1.BET\runtime\bin\..\lib\jboss-osgi-common.jar;F:\JBOSS-~1.BET\runtime\bin\..\lib\jboss-osgi-deployment.jar;F:\JBOSS-~1.BET\runtime\bin\..\l
ib\jboss-osgi-hotdeploy.jar;F:\JBOSS-~1.BET\runtime\bin\..\lib\jboss-osgi-spi.jar;F:\JBOSS-~1.BET\runtime\bin\..\lib\jboss-osgi-vfs.jar;F:\JBOSS-~1.BET\runtime\
bin\..\lib\jboss-osgi-vfs30.jar;F:\JBOSS-~1.BET\runtime\bin\..\lib\jboss-vfs.jar;F:\JBOSS-~1.BET\runtime\bin\..\lib\log4j.jar;F:\JBOSS-~1.BET\runtime\bin\..\lib
\org.apache.felix.log.jar;F:\JBOSS-~1.BET\runtime\bin\..\lib\org.osgi.compendium.jar;F:\JBOSS-~1.BET\runtime\bin\..\lib\org.osgi.core.jar;F:\JBOSS-~1.BET\runtim
e\bin\..\lib\shrinkwrap-api.jar;F:\JBOSS-~1.BET\runtime\bin\..\lib\xercesImpl.jar
"========================================================================="
""
" JBossOSGi Bootstrap Environment"
""
" OSGI_HOME: F:\JBOSS-~1.BET\runtime\bin\.."
""
" JAVA: C:\Windows\System32\java.exe"
java version "1.6.0_23"
Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
Java HotSpot(TM) Client VM (build 19.0-b09, mixed mode, sharing)
""
" JAVA_OPTS: -Dprogram.name=run.cmd -Dosgi.home=F:\JBOSS-~1.BET\runtime\bin\.."
""
"========================================================================="
""
17:15:16,908 INFO [FrameworkState] JBossOSGi Framework Core - 1.0.0.Alpha8
17:15:17,016 INFO [FrameworkEventsPluginImpl] Bundle STARTED: system.bundle:0.0.0
17:15:17,048 WARN [vfs] VFS was unable to set the URLStreamHandlerFactory. This will have unpredictable results
17:15:17,155 INFO [FrameworkEventsPluginImpl] Bundle INSTALLED: osgi.cmpn:4.2.0.200908310645
17:15:19,475 INFO [FrameworkEventsPluginImpl] Bundle INSTALLED: org.apache.felix.log:1.0.0
17:15:19,528 INFO [FrameworkEventsPluginImpl] Bundle INSTALLED: jboss-osgi-common:1.0.6
17:15:19,557 INFO [FrameworkEventsPluginImpl] Bundle INSTALLED: jboss-osgi-hotdeploy:1.0.8
17:15:19,559 INFO [StartLevelPluginImpl] Starting bundles for start level 1
17:15:19,682 INFO [FrameworkEventsPluginImpl] Bundle STOPPED: org.apache.felix.log:1.0.0
17:15:19,692 ERROR [FrameworkEventsPluginImpl] Framwork ERROR
org.osgi.framework.BundleException: Cannot start bundle: org.apache.felix.log:1.0.0
at org.jboss.osgi.framework.bundle.HostBundle.startInternal(HostBundle.java:245)
at org.jboss.osgi.framework.bundle.AbstractBundle.start(AbstractBundle.java:462)
at org.jboss.osgi.framework.plugin.internal.StartLevelPluginImpl.increaseStartLevel(StartLevelPluginImpl.java:259)
at org.jboss.osgi.framework.bundle.FrameworkState.start(FrameworkState.java:254)
at org.jboss.osgi.framework.bundle.FrameworkState.start(FrameworkState.java:230)
at org.jboss.osgi.framework.bundle.BundleWrapper.start(BundleWrapper.java:166)
at org.jboss.osgi.spi.framework.FrameworkWrapper.start(FrameworkWrapper.java:168)
at org.jboss.osgi.spi.framework.PropertiesBootstrapProvider$1.start(PropertiesBootstrapProvider.java:170)
at org.jboss.osgi.spi.internal.OSGiBootstrapBean$StartupThread.run(OSGiBootstrapBean.java:189)
Caused by: java.lang.ClassNotFoundException: org.apache.felix.log.Activator from [Module "module:jbosgi.org.apache.felix.log-1.0.0:rev1"]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:194)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:268)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:52)
at org.jboss.osgi.framework.bundle.HostRevision.loadClass(HostRevision.java:115)
at org.jboss.osgi.framework.bundle.AbstractBundle.loadClass(AbstractBundle.java:692)
at org.jboss.osgi.framework.bundle.HostBundle.startInternal(HostBundle.java:198)
... 8 more
17:15:19,721 INFO [FrameworkEventsPluginImpl] Bundle STOPPED: jboss-osgi-common:1.0.6
17:15:19,722 ERROR [FrameworkEventsPluginImpl] Framwork ERROR
org.osgi.framework.BundleException: Cannot start bundle: jboss-osgi-common:1.0.6
at org.jboss.osgi.framework.bundle.HostBundle.startInternal(HostBundle.java:245)
at org.jboss.osgi.framework.bundle.AbstractBundle.start(AbstractBundle.java:462)
at org.jboss.osgi.framework.plugin.internal.StartLevelPluginImpl.increaseStartLevel(StartLevelPluginImpl.java:259)
at org.jboss.osgi.framework.bundle.FrameworkState.start(FrameworkState.java:254)
at org.jboss.osgi.framework.bundle.FrameworkState.start(FrameworkState.java:230)
at org.jboss.osgi.framework.bundle.BundleWrapper.start(BundleWrapper.java:166)
at org.jboss.osgi.spi.framework.FrameworkWrapper.start(FrameworkWrapper.java:168)
at org.jboss.osgi.spi.framework.PropertiesBootstrapProvider$1.start(PropertiesBootstrapProvider.java:170)
at org.jboss.osgi.spi.internal.OSGiBootstrapBean$StartupThread.run(OSGiBootstrapBean.java:189)
Caused by: java.lang.ClassNotFoundException: org.jboss.osgi.common.internal.CommonServicesActivator from [Module "module:jbosgi.jboss-osgi-common-1.0.6:rev1"]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:194)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:268)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:52)
at org.jboss.osgi.framework.bundle.HostRevision.loadClass(HostRevision.java:115)
at org.jboss.osgi.framework.bundle.AbstractBundle.loadClass(AbstractBundle.java:692)
at org.jboss.osgi.framework.bundle.HostBundle.startInternal(HostBundle.java:198)
... 8 more
17:15:19,796 INFO [FrameworkEventsPluginImpl] Bundle STOPPED: jboss-osgi-hotdeploy:1.0.8
17:15:19,798 ERROR [FrameworkEventsPluginImpl] Framwork ERROR
org.osgi.framework.BundleException: Cannot start bundle: jboss-osgi-hotdeploy:1.0.8
at org.jboss.osgi.framework.bundle.HostBundle.startInternal(HostBundle.java:245)
at org.jboss.osgi.framework.bundle.AbstractBundle.start(AbstractBundle.java:462)
at org.jboss.osgi.framework.plugin.internal.StartLevelPluginImpl.increaseStartLevel(StartLevelPluginImpl.java:259)
at org.jboss.osgi.framework.bundle.FrameworkState.start(FrameworkState.java:254)
at org.jboss.osgi.framework.bundle.FrameworkState.start(FrameworkState.java:230)
at org.jboss.osgi.framework.bundle.BundleWrapper.start(BundleWrapper.java:166)
at org.jboss.osgi.spi.framework.FrameworkWrapper.start(FrameworkWrapper.java:168)
at org.jboss.osgi.spi.framework.PropertiesBootstrapProvider$1.start(PropertiesBootstrapProvider.java:170)
at org.jboss.osgi.spi.internal.OSGiBootstrapBean$StartupThread.run(OSGiBootstrapBean.java:189)
Caused by: java.lang.ClassNotFoundException: org.jboss.osgi.hotdeploy.internal.DeploymentScannerActivator from [Module "module:jbosgi.jboss-osgi-hotdeploy-1.0.8
:rev1"]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:194)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:268)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:52)
at org.jboss.osgi.framework.bundle.HostRevision.loadClass(HostRevision.java:115)
at org.jboss.osgi.framework.bundle.AbstractBundle.loadClass(AbstractBundle.java:692)
at org.jboss.osgi.framework.bundle.HostBundle.startInternal(HostBundle.java:198)
... 8 more
17:15:19,853 INFO [FrameworkEventsPluginImpl] Framwork STARTED
17:15:19,870 INFO [OSGiBootstrapBean] JBossOSGi Runtime booted in 2.961sec
-
run.cmd.zip 622 bytes