Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » Try to use osgi compendium services(ClassNotFoundExecption)
Try to use osgi compendium services [message #631917] Sun, 10 October 2010 14:48 Go to next message
Hüseyin Kartal is currently offline Hüseyin KartalFriend
Messages: 12
Registered: July 2009
Junior Member
Hi everybody,

i try to set up a project using "maven" defining the project. "bundlor" to create the osgi manifest, "Spring extender" to instantiate and get references of services. Virgo as the osgi runtime org.osgi.compendium as the api imported and equinox bundles as implementations of the compendium services !

in mavens pom i defined the api´s i need and defined the scope as provided, because i think they are available in the runtime. (i also provided them into the runtime to be sure they are available)

pom.xml
		<dependency>
			<groupId>org.osgi</groupId>
			<artifactId>org.osgi.core</artifactId>
			<version>4.2.0</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>org.osgi</groupId>
			<artifactId>org.osgi.compendium</artifactId>
			<version>4.2.0</version>
			<scope>provided</scope>
		</dependency>


the manifest file created by the bundlor (only the import) i think this looks right.

manifest.mf
Import-Package: org.osgi.framework,org.osgi.service.cm,org.osgi.servic
e.event,org.osgi.service.log,org.springframework.beans.factory.annotatio
n,org.springframework.core.style,org.springframework.util


the spring extender tries to get an instance of the LogService by interface

bundle-context-osgi.xml
	<reference
		id="logService"
		interface="org.osgi.service.log.LogService" />


to be sure not missing anything i served these jar into the pickup folder of vigor

pickup folder
org.eclipse.equinox.cm_1.0.200.v20100520.jar
org.eclipse.equinox.event_1.2.0.v20100503.jar
org.eclipse.equinox.log_1.2.100.v20100503.jar
org.eclipse.equinox.util_1.0.200.v20100503.jar
org.eclipse.osgi.util_3.2.100.v20100503.jar
org.osgi.compendium-4.2.0.jar
org.osgi.core-4.2.0.jar


and i face to this output and have no clue how to solve this issue.
[2010-10-10 16:45:40.066] startup-tracker              <KE0001I> Kernel starting. 
[2010-10-10 16:45:47.728] startup-tracker              <KE0002I> Kernel started. 
[2010-10-10 16:45:47.940] system-artifacts             <DE0000I> Installing plan 'org.eclipse.virgo.kernel.userregion.springdm' version '2.1.0'. 
[2010-10-10 16:45:49.229] system-artifacts             <DE0000I> Installing bundle 'org.springframework.osgi.core' version '1.2.1'. 
[2010-10-10 16:45:49.699] system-artifacts             <DE0000I> Installing bundle 'org.springframework.osgi.extender' version '1.2.1'. 
[2010-10-10 16:45:49.848] system-artifacts             <DE0000I> Installing bundle 'org.springframework.osgi.io' version '1.2.1'. 
[2010-10-10 16:45:49.967] system-artifacts             <DE0000I> Installing bundle 'org.eclipse.virgo.kernel.agent.dm' version '2.1.0.M06-incubation'. 
[2010-10-10 16:45:50.067] system-artifacts             <DE0000I> Installing bundle 'org.eclipse.virgo.kernel.deployer.dm' version '2.1.0.M06-incubation'. 
[2010-10-10 16:45:53.554] system-artifacts             <DE0001I> Installed bundle 'org.springframework.osgi.core' version '1.2.1'. 
[2010-10-10 16:45:53.567] system-artifacts             <DE0001I> Installed bundle 'org.springframework.osgi.extender' version '1.2.1'. 
[2010-10-10 16:45:53.577] system-artifacts             <DE0001I> Installed bundle 'org.springframework.osgi.io' version '1.2.1'. 
[2010-10-10 16:45:53.586] system-artifacts             <DE0001I> Installed bundle 'org.eclipse.virgo.kernel.agent.dm' version '2.1.0.M06-incubation'. 
[2010-10-10 16:45:53.598] system-artifacts             <DE0001I> Installed bundle 'org.eclipse.virgo.kernel.deployer.dm' version '2.1.0.M06-incubation'. 
[2010-10-10 16:45:53.620] system-artifacts             <DE0001I> Installed plan 'org.eclipse.virgo.kernel.userregion.springdm' version '2.1.0'. 
[2010-10-10 16:45:53.713] system-artifacts             <DE0004I> Starting plan 'org.eclipse.virgo.kernel.userregion.springdm' version '2.1.0'. 
[2010-10-10 16:45:53.734] system-artifacts             <DE0004I> Starting bundle 'org.springframework.osgi.core' version '1.2.1'. 
[2010-10-10 16:45:53.751] start-signalling-1           <DE0005I> Started bundle 'org.springframework.osgi.core' version '1.2.1'. 
[2010-10-10 16:45:53.767] system-artifacts             <DE0004I> Starting bundle 'org.springframework.osgi.extender' version '1.2.1'. 
[2010-10-10 16:45:55.021] start-signalling-1           <DE0005I> Started bundle 'org.springframework.osgi.extender' version '1.2.1'. 
[2010-10-10 16:45:55.040] system-artifacts             <DE0004I> Starting bundle 'org.springframework.osgi.io' version '1.2.1'. 
[2010-10-10 16:45:55.052] start-signalling-1           <DE0005I> Started bundle 'org.springframework.osgi.io' version '1.2.1'. 
[2010-10-10 16:45:55.068] system-artifacts             <DE0004I> Starting bundle 'org.eclipse.virgo.kernel.agent.dm' version '2.1.0.M06-incubation'. 
[2010-10-10 16:45:55.094] start-signalling-1           <DE0005I> Started bundle 'org.eclipse.virgo.kernel.agent.dm' version '2.1.0.M06-incubation'. 
[2010-10-10 16:45:55.147] system-artifacts             <DE0004I> Starting bundle 'org.eclipse.virgo.kernel.deployer.dm' version '2.1.0.M06-incubation'. 
[2010-10-10 16:45:55.364] start-signalling-1           <DE0005I> Started bundle 'org.eclipse.virgo.kernel.deployer.dm' version '2.1.0.M06-incubation'. 
[2010-10-10 16:45:55.374] start-signalling-1           <DE0005I> Started plan 'org.eclipse.virgo.kernel.userregion.springdm' version '2.1.0'. 
[2010-10-10 16:45:55.564] system-artifacts             <DE0000I> Installing plan 'org.eclipse.virgo.web' version '2.1.0'. 
[2010-10-10 16:45:55.964] system-artifacts             <DE0000I> Installing bundle 'org.eclipse.gemini.web.core' version '1.1.0.RC1-incubation'. 
[2010-10-10 16:45:56.299] system-artifacts             <DE0000I> Installing bundle 'org.eclipse.gemini.web.tomcat' version '1.1.0.RC1-incubation'. 
[2010-10-10 16:45:56.443] system-artifacts             <DE0000I> Installing bundle 'org.eclipse.virgo.web.core' version '2.1.0.M06-incubation'. 
[2010-10-10 16:45:56.523] system-artifacts             <DE0000I> Installing bundle 'org.eclipse.virgo.web.dm' version '2.1.0.M06-incubation'. 
[2010-10-10 16:45:56.674] system-artifacts             <DE0000I> Installing bundle 'org.eclipse.virgo.web.tomcat' version '2.1.0.M06-incubation'. 
[2010-10-10 16:45:58.345] system-artifacts             <DE0001I> Installed bundle 'org.eclipse.gemini.web.core' version '1.1.0.RC1-incubation'. 
[2010-10-10 16:45:58.359] system-artifacts             <DE0001I> Installed bundle 'org.eclipse.gemini.web.tomcat' version '1.1.0.RC1-incubation'. 
[2010-10-10 16:45:58.374] system-artifacts             <DE0001I> Installed bundle 'org.eclipse.virgo.web.core' version '2.1.0.M06-incubation'. 
[2010-10-10 16:45:58.383] system-artifacts             <DE0001I> Installed bundle 'org.eclipse.virgo.web.dm' version '2.1.0.M06-incubation'. 
[2010-10-10 16:45:58.392] system-artifacts             <DE0001I> Installed bundle 'org.eclipse.virgo.web.tomcat' version '2.1.0.M06-incubation'. 
[2010-10-10 16:45:58.420] system-artifacts             <DE0001I> Installed plan 'org.eclipse.virgo.web' version '2.1.0'. 
[2010-10-10 16:45:58.464] system-artifacts             <DE0004I> Starting plan 'org.eclipse.virgo.web' version '2.1.0'. 
[2010-10-10 16:45:58.498] system-artifacts             <DE0004I> Starting bundle 'org.eclipse.gemini.web.core' version '1.1.0.RC1-incubation'. 
[2010-10-10 16:45:58.550] start-signalling-1           <DE0005I> Started bundle 'org.eclipse.gemini.web.core' version '1.1.0.RC1-incubation'. 
[2010-10-10 16:45:58.572] system-artifacts             <DE0004I> Starting bundle 'org.eclipse.gemini.web.tomcat' version '1.1.0.RC1-incubation'. 
[2010-10-10 16:46:00.104] system-artifacts             <TC0000I> Starting Tomcat. 
[2010-10-10 16:46:00.193] system-artifacts             <TC0010I> Creating HTTP/1.1 connector with scheme http on port 8080. 
[2010-10-10 16:46:00.637] system-artifacts             <TC0010I> Creating HTTP/1.1 connector with scheme https on port 8443. 
[2010-10-10 16:46:00.693] system-artifacts             <TC0010I> Creating AJP/1.3 connector with scheme http on port 8009. 
[2010-10-10 16:46:00.821] system-artifacts             <TC0001I> Started Tomcat. 
[2010-10-10 16:46:00.916] system-artifacts             <DE0004I> Starting bundle 'org.eclipse.virgo.web.core' version '2.1.0.M06-incubation'. 
[2010-10-10 16:46:00.935] system-artifacts             <DE0004I> Starting bundle 'org.eclipse.virgo.web.dm' version '2.1.0.M06-incubation'. 
[2010-10-10 16:46:00.965] start-signalling-1           <DE0005I> Started bundle 'org.eclipse.virgo.web.dm' version '2.1.0.M06-incubation'. 
[2010-10-10 16:46:01.194] system-artifacts             <DE0005I> Started bundle 'org.eclipse.virgo.web.tomcat' version '2.1.0.M06-incubation'. 
[2010-10-10 16:46:01.516] start-signalling-1           <DE0005I> Started bundle 'org.eclipse.gemini.web.tomcat' version '1.1.0.RC1-incubation'. 
[2010-10-10 16:46:01.526] start-signalling-2           <DE0005I> Started bundle 'org.eclipse.virgo.web.core' version '2.1.0.M06-incubation'. 
[2010-10-10 16:46:01.536] start-signalling-2           <DE0005I> Started plan 'org.eclipse.virgo.web' version '2.1.0'. 
[2010-10-10 16:46:01.549] Thread-6                     <UR0001I> User region ready. 
[2010-10-10 16:46:01.947] deployer-recovery            <DE0000I> Installing bundle 'org.eclipse.equinox.cm' version '1.0.200.v20100520'. 
[2010-10-10 16:46:02.195] deployer-recovery            <DE0001I> Installed bundle 'org.eclipse.equinox.cm' version '1.0.200.v20100520'. 
[2010-10-10 16:46:02.227] deployer-recovery            <DE0004I> Starting bundle 'org.eclipse.equinox.cm' version '1.0.200.v20100520'. 
[2010-10-10 16:46:02.269] start-signalling-2           <DE0005I> Started bundle 'org.eclipse.equinox.cm' version '1.0.200.v20100520'. 
[2010-10-10 16:46:02.504] deployer-recovery            <DE0000I> Installing bundle 'org.eclipse.equinox.event' version '1.2.0.v20100503'. 
[2010-10-10 16:46:02.673] deployer-recovery            <DE0001I> Installed bundle 'org.eclipse.equinox.event' version '1.2.0.v20100503'. 
[2010-10-10 16:46:02.707] deployer-recovery            <DE0004I> Starting bundle 'org.eclipse.equinox.event' version '1.2.0.v20100503'. 
[2010-10-10 16:46:03.032] deployer-recovery            <DE0000I> Installing bundle 'org.eclipse.equinox.log' version '1.2.100.v20100503'. 
[2010-10-10 16:46:03.283] deployer-recovery            <DE0001I> Installed bundle 'org.eclipse.equinox.log' version '1.2.100.v20100503'. 
[2010-10-10 16:46:03.323] deployer-recovery            <DE0004I> Starting bundle 'org.eclipse.equinox.log' version '1.2.100.v20100503'. 
[2010-10-10 16:46:03.357] start-signalling-2           <DE0005I> Started bundle 'org.eclipse.equinox.log' version '1.2.100.v20100503'. 
[2010-10-10 16:46:03.942] deployer-recovery            <DE0000I> Installing bundle 'org.eclipse.equinox.util' version '1.0.200.v20100503'. 
[2010-10-10 16:46:04.201] deployer-recovery            <DE0001I> Installed bundle 'org.eclipse.equinox.util' version '1.0.200.v20100503'. 
[2010-10-10 16:46:04.212] deployer-recovery            <DE0004I> Starting bundle 'org.eclipse.equinox.util' version '1.0.200.v20100503'. 
[2010-10-10 16:46:04.402] deployer-recovery            <DE0000I> Installing bundle 'org.eclipse.osgi.util' version '3.2.100.v20100503'. 
[2010-10-10 16:46:04.508] deployer-recovery            <DE0001I> Installed bundle 'org.eclipse.osgi.util' version '3.2.100.v20100503'. 
[2010-10-10 16:46:04.548] deployer-recovery            <DE0004I> Starting bundle 'org.eclipse.osgi.util' version '3.2.100.v20100503'. 
[2010-10-10 16:46:04.560] start-signalling-2           <DE0005I> Started bundle 'org.eclipse.osgi.util' version '3.2.100.v20100503'. 
[2010-10-10 16:46:04.664] deployer-recovery            <DE0000I> Installing plan 'org.eclipse.virgo.apps.admin.plan' version '2.1.0'. 
[2010-10-10 16:46:04.896] deployer-recovery            <DE0000I> Installing bundle 'org.eclipse.virgo.apps.admin.core' version '2.1.0.M06-incubation'. 
[2010-10-10 16:46:11.768] deployer-recovery            <DE0000I> Installing bundle 'org.eclipse.virgo.apps.admin.web' version '2.1.0.M06-incubation'. 
[2010-10-10 16:46:22.385] deployer-recovery            <DE0001I> Installed bundle 'org.eclipse.virgo.apps.admin.core' version '2.1.0.M06-incubation'. 
[2010-10-10 16:46:22.394] deployer-recovery            <DE0001I> Installed bundle 'org.eclipse.virgo.apps.admin.web' version '2.1.0.M06-incubation'. 
[2010-10-10 16:46:22.403] deployer-recovery            <DE0001I> Installed plan 'org.eclipse.virgo.apps.admin.plan' version '2.1.0'. 
[2010-10-10 16:46:22.433] deployer-recovery            <DE0004I> Starting plan 'org.eclipse.virgo.apps.admin.plan' version '2.1.0'. 
[2010-10-10 16:46:22.457] deployer-recovery            <DE0004I> Starting bundle 'org.eclipse.virgo.apps.admin.core' version '2.1.0.M06-incubation'. 
[2010-10-10 16:46:22.725] deployer-recovery            <DE0004I> Starting bundle 'org.eclipse.virgo.apps.admin.web' version '2.1.0.M06-incubation'. 
[2010-10-10 16:46:22.742] Thread-7                     <WE0000I> Starting web bundle 'org.eclipse.virgo.apps.admin.web' version '2.1.0.M06-incubation' with cont
ext path '/admin'. 
[2010-10-10 16:46:23.453] start-signalling-1           <DE0005I> Started bundle 'org.eclipse.virgo.apps.admin.core' version '2.1.0.M06-incubation'. 
[2010-10-10 16:46:24.829] deployer-recovery            <DE0000I> Installing par 'org.eclipse.virgo.apps.repository' version '2.1.0.M06-incubation'. 
[2010-10-10 16:46:24.896] deployer-recovery            <DE0000I> Installing bundle 'org.eclipse.virgo.apps.repository-2.1.0.M06-incubation-org.eclipse.virgo.app
s.repository.core' version '2.1.0.M06-incubation'. 
[2010-10-10 16:46:24.916] deployer-recovery            <DE0000I> Installing bundle 'org.eclipse.virgo.apps.repository-2.1.0.M06-incubation-org.eclipse.virgo.app
s.repository.web' version '2.1.0.M06-incubation'. 
[2010-10-10 16:46:26.005] deployer-recovery            <DE0001I> Installed bundle 'org.eclipse.virgo.apps.repository-2.1.0.M06-incubation-org.eclipse.virgo.apps
.repository.core' version '2.1.0.M06-incubation'. 
[2010-10-10 16:46:26.015] deployer-recovery            <DE0001I> Installed bundle 'org.eclipse.virgo.apps.repository-2.1.0.M06-incubation-org.eclipse.virgo.apps
.repository.web' version '2.1.0.M06-incubation'. 
[2010-10-10 16:46:26.024] deployer-recovery            <DE0001I> Installed bundle 'org.eclipse.virgo.apps.repository-2.1.0.M06-incubation-synthetic.context' ver
sion '2.1.0.M06-incubation'. 
[2010-10-10 16:46:26.033] deployer-recovery            <DE0001I> Installed par 'org.eclipse.virgo.apps.repository' version '2.1.0.M06-incubation'. 
[2010-10-10 16:46:26.141] deployer-recovery            <DE0004I> Starting par 'org.eclipse.virgo.apps.repository' version '2.1.0.M06-incubation'. 
[2010-10-10 16:46:26.202] deployer-recovery            <DE0004I> Starting bundle 'org.eclipse.virgo.apps.repository-2.1.0.M06-incubation-org.eclipse.virgo.apps.
repository.core' version '2.1.0.M06-incubation'. 
[2010-10-10 16:46:26.468] deployer-recovery            <DE0004I> Starting bundle 'org.eclipse.virgo.apps.repository-2.1.0.M06-incubation-org.eclipse.virgo.apps.
repository.web' version '2.1.0.M06-incubation'. 
[2010-10-10 16:46:26.486] deployer-recovery            <DE0004I> Starting bundle 'org.eclipse.virgo.apps.repository-2.1.0.M06-incubation-synthetic.context' vers
ion '2.1.0.M06-incubation'. 
[2010-10-10 16:46:26.625] start-signalling-3           <DE0005I> Started bundle 'org.eclipse.virgo.apps.repository-2.1.0.M06-incubation-synthetic.context' versi
on '2.1.0.M06-incubation'. 
[2010-10-10 16:46:26.717] Thread-7                     <WE0000I> Starting web bundle 'org.eclipse.virgo.apps.repository-2.1.0.M06-incubation-org.eclipse.virgo.a
pps.repository.web' version '2.1.0.M06-incubation' with context path '/org.eclipse.virgo.apps.repository'. 
[2010-10-10 16:46:26.973] Thread-7                     <WE0001I> Started web bundle 'org.eclipse.virgo.apps.admin.web' version '2.1.0.M06-incubation' with conte
xt path '/admin'. 
[2010-10-10 16:46:27.053] start-signalling-2           <DE0005I> Started bundle 'org.eclipse.virgo.apps.admin.web' version '2.1.0.M06-incubation'. 
[2010-10-10 16:46:27.064] start-signalling-2           <DE0005I> Started plan 'org.eclipse.virgo.apps.admin.plan' version '2.1.0'. 
[2010-10-10 16:46:27.311] start-signalling-2           <DE0005I> Started bundle 'org.eclipse.virgo.apps.repository-2.1.0.M06-incubation-org.eclipse.virgo.apps.r
epository.core' version '2.1.0.M06-incubation'. 
[2010-10-10 16:46:28.081] deployer-recovery            <DE0000I> Installing bundle 'org.eclipse.virgo.apps.splash' version '2.1.0.M06-incubation'. 
[2010-10-10 16:46:28.596] deployer-recovery            <DE0001I> Installed bundle 'org.eclipse.virgo.apps.splash' version '2.1.0.M06-incubation'. 
[2010-10-10 16:46:28.642] Thread-7                     <WE0001I> Started web bundle 'org.eclipse.virgo.apps.repository-2.1.0.M06-incubation-org.eclipse.virgo.ap
ps.repository.web' version '2.1.0.M06-incubation' with context path '/org.eclipse.virgo.apps.repository'. 
[2010-10-10 16:46:28.652] start-signalling-1           <DE0005I> Started bundle 'org.eclipse.virgo.apps.repository-2.1.0.M06-incubation-org.eclipse.virgo.apps.r
epository.web' version '2.1.0.M06-incubation'. 
[2010-10-10 16:46:28.661] start-signalling-1           <DE0005I> Started par 'org.eclipse.virgo.apps.repository' version '2.1.0.M06-incubation'. 
[2010-10-10 16:46:28.705] deployer-recovery            <DE0004I> Starting bundle 'org.eclipse.virgo.apps.splash' version '2.1.0.M06-incubation'. 
[2010-10-10 16:46:28.800] Thread-7                     <WE0000I> Starting web bundle 'org.eclipse.virgo.apps.splash' version '2.1.0.M06-incubation' with context
 path '/'. 
[2010-10-10 16:46:29.356] Thread-7                     <WE0001I> Started web bundle 'org.eclipse.virgo.apps.splash' version '2.1.0.M06-incubation' with context 
path '/'. 
[2010-10-10 16:46:29.365] start-signalling-1           <DE0005I> Started bundle 'org.eclipse.virgo.apps.splash' version '2.1.0.M06-incubation'. 
[2010-10-10 16:46:32.857] deployer-recovery            <DE0000I> Installing bundle 'osgi.cmpn' version '4.2.0.200908310645'. 
[2010-10-10 16:46:36.047] deployer-recovery            <DE0001I> Installed bundle 'osgi.cmpn' version '4.2.0.200908310645'. 
[2010-10-10 16:46:36.066] deployer-recovery            <DE0004I> Starting bundle 'osgi.cmpn' version '4.2.0.200908310645'. 
[2010-10-10 16:46:36.076] start-signalling-1           <DE0005I> Started bundle 'osgi.cmpn' version '4.2.0.200908310645'. 
[2010-10-10 16:46:38.080] deployer-recovery            <DE0000I> Installing bundle 'osgi.core' version '4.2.0.200908310645'. 
[2010-10-10 16:46:40.622] deployer-recovery            <DE0001I> Installed bundle 'osgi.core' version '4.2.0.200908310645'. 
[2010-10-10 16:46:40.636] deployer-recovery            <DE0004I> Starting bundle 'osgi.core' version '4.2.0.200908310645'. 
[2010-10-10 16:46:40.644] start-signalling-1           <DE0005I> Started bundle 'osgi.core' version '4.2.0.200908310645'. 
[2010-10-10 16:46:41.403]  TCP Connection(4)-127.0.0.1 <DE0000I> Installing bundle 'osgi.supervisor.scada' version '0.0.0'. 
[2010-10-10 16:46:41.661] fs-watcher                   <HD0001I> Hot deployer processing 'INITIAL' event for file 'org.eclipse.equinox.cm_1.0.200.v20100520.jar'
. 
[2010-10-10 16:46:41.859]  TCP Connection(4)-127.0.0.1 <DE0001I> Installed bundle 'osgi.supervisor.scada' version '0.0.0'. 
[2010-10-10 16:46:41.879] fs-watcher                   <HD0005I> Hot deploy not performed because file 'org.eclipse.equinox.cm_1.0.200.v20100520.jar' is already
 deployed. 
[2010-10-10 16:46:41.885] fs-watcher                   <HD0001I> Hot deployer processing 'INITIAL' event for file 'org.eclipse.equinox.event_1.2.0.v20100503.jar
'. 
[2010-10-10 16:46:41.891] fs-watcher                   <HD0005I> Hot deploy not performed because file 'org.eclipse.equinox.event_1.2.0.v20100503.jar' is alread
y deployed. 
[2010-10-10 16:46:41.899] fs-watcher                   <HD0001I> Hot deployer processing 'INITIAL' event for file 'org.eclipse.equinox.log_1.2.100.v20100503.jar
'. 
[2010-10-10 16:46:41.905] fs-watcher                   <HD0005I> Hot deploy not performed because file 'org.eclipse.equinox.log_1.2.100.v20100503.jar' is alread
y deployed. 
[2010-10-10 16:46:41.913] fs-watcher                   <HD0001I> Hot deployer processing 'INITIAL' event for file 'org.eclipse.equinox.util_1.0.200.v20100503.ja
r'. 
[2010-10-10 16:46:41.924] fs-watcher                   <HD0005I> Hot deploy not performed because file 'org.eclipse.equinox.util_1.0.200.v20100503.jar' is alrea
dy deployed. 
[2010-10-10 16:46:41.931] fs-watcher                   <HD0001I> Hot deployer processing 'INITIAL' event for file 'org.eclipse.osgi.util_3.2.100.v20100503.jar'.
 
[2010-10-10 16:46:41.953] fs-watcher                   <HD0005I> Hot deploy not performed because file 'org.eclipse.osgi.util_3.2.100.v20100503.jar' is already 
deployed. 
[2010-10-10 16:46:41.975] fs-watcher                   <HD0001I> Hot deployer processing 'INITIAL' event for file 'org.eclipse.virgo.apps.admin-2.1.0.M06-incuba
tion.plan'. 
[2010-10-10 16:46:41.983] fs-watcher                   <HD0005I> Hot deploy not performed because file 'org.eclipse.virgo.apps.admin-2.1.0.M06-incubation.plan' 
is already deployed. 
[2010-10-10 16:46:41.998] fs-watcher                   <HD0001I> Hot deployer processing 'INITIAL' event for file 'org.eclipse.virgo.apps.repository-2.1.0.M06-i
ncubation.par'. 
[2010-10-10 16:46:42.005] fs-watcher                   <HD0005I> Hot deploy not performed because file 'org.eclipse.virgo.apps.repository-2.1.0.M06-incubation.p
ar' is already deployed. 
[2010-10-10 16:46:42.013] fs-watcher                   <HD0001I> Hot deployer processing 'INITIAL' event for file 'org.eclipse.virgo.apps.splash-2.1.0.M06-incub
ation.war'. 
[2010-10-10 16:46:42.021] fs-watcher                   <HD0005I> Hot deploy not performed because file 'org.eclipse.virgo.apps.splash-2.1.0.M06-incubation.war' 
is already deployed. 
[2010-10-10 16:46:42.033] fs-watcher                   <HD0001I> Hot deployer processing 'INITIAL' event for file 'org.osgi.compendium-4.2.0.jar'. 
[2010-10-10 16:46:42.117]  TCP Connection(4)-127.0.0.1 <DE0004I> Starting bundle 'osgi.supervisor.scada' version '0.0.0'. 
[2010-10-10 16:46:42.127] fs-watcher                   <HD0005I> Hot deploy not performed because file 'org.osgi.compendium-4.2.0.jar' is already deployed. 
[2010-10-10 16:46:42.135] fs-watcher                   <HD0001I> Hot deployer processing 'INITIAL' event for file 'org.osgi.core-4.2.0.jar'. 
[2010-10-10 16:46:42.148] fs-watcher                   <HD0005I> Hot deploy not performed because file 'org.osgi.core-4.2.0.jar' is already deployed. 
[2010-10-10 16:46:42.378] Thread-7                     <AG0000E> Application context creation failure for bundle 'osgi.supervisor.scada' version '0.0.0'. org.sp
ringframework.beans.factory.BeanCreationException: Error creating bean with name 'logService': Initialization of bean failed; nested exception is org.springfram
ework.beans.TypeMismatchException: Failed to convert property value of type 'java.lang.String' to required type 'java.lang.Class[]' for property 'interfaces'; n
ested exception is java.lang.IllegalArgumentException: Cannot find class [org.osgi.service.log.LogService]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)
	at org.springframework.osgi.extender.internal.dependencies.startup.MandatoryImporterDependencyFactory.getServiceDependencies(MandatoryImporterDependencyFactory
.java:63)
	at org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager.doFindDependencies(DependencyServiceManager.java:272)
	at org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager.access$700(DependencyServiceManager.java:40)
	at org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager$1.run(DependencyServiceManager.java:213)
	at org.springframework.osgi.extender.internal.util.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:124)
	at org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager.findServiceDependencies(DependencyServiceManager.java:209)
	at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecut
or.java:239)
	at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecuto
r.java:169)
	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175)
	at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:716)
	at org.eclipse.virgo.kernel.agent.dm.ContextPropagatingTaskExecutor$2.run(ContextPropagatingTaskExecutor.java:95)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:619)
Caused by: org.springframework.beans.TypeMismatchException: Failed to convert property value of type 'java.lang.String' to required type 'java.lang.Class[]' for
 property 'interfaces'; nested exception is java.lang.IllegalArgumentException: Cannot find class [org.osgi.service.log.LogService]
	at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:457)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1351)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1310)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1067)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:511)
	... 19 common frames omitted
Caused by: java.lang.IllegalArgumentException: Cannot find class [org.osgi.service.log.LogService]
	at org.springframework.util.ClassUtils.resolveClassName(ClassUtils.java:294)
	at org.springframework.beans.propertyeditors.ClassArrayEditor.setAsText(ClassArrayEditor.java:67)
	at org.springframework.beans.TypeConverterDelegate.doConvertTextValue(TypeConverterDelegate.java:474)
	at org.springframework.beans.TypeConverterDelegate.doConvertValue(TypeConverterDelegate.java:446)
	at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:215)
	at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:154)
	at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:452)
	... 23 common frames omitted
Caused by: java.lang.ClassNotFoundException: org.osgi.service.log.LogService not found from bundle [osgi.supervisor.scada]
	at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:103)
	at org.springframework.osgi.util.BundleDelegatingClassLoader.loadClass(BundleDelegatingClassLoader.java:156)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
	at org.springframework.util.ClassUtils.forName(ClassUtils.java:258)
	at org.springframework.util.ClassUtils.resolveClassName(ClassUtils.java:291)
	... 29 common frames omitted
Caused by: org.eclipse.virgo.kernel.osgi.framework.ExtendedClassNotFoundException: org.osgi.service.log.LogService in KernelBundleClassLoader: [bundle=osgi.supe
rvisor.scada_0.0.0]
	at org.eclipse.virgo.kernel.userregion.internal.equinox.KernelBundleClassLoader.loadClass(KernelBundleClassLoader.java:139)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
	at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:338)
	at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:232)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1197)
	at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:99)
	... 33 common frames omitted
Caused by: java.lang.ClassNotFoundException: org.osgi.service.log.LogService
	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:506)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
	at org.eclipse.virgo.kernel.userregion.internal.equinox.KernelBundleClassLoader.loadClass(KernelBundleClassLoader.java:135)
	... 38 common frames omitted

[2010-10-10 16:46:42.395] start-signalling-1           <DE0006E> Start failed for bundle 'osgi.supervisor.scada' version '0.0.0'. org.springframework.beans.fact
ory.BeanCreationException: Error creating bean with name 'logService': Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatch
Exception: Failed to convert property value of type 'java.lang.String' to required type 'java.lang.Class[]' for property 'interfaces'; nested exception is java.
lang.IllegalArgumentException: Cannot find class [org.osgi.service.log.LogService]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)
	at org.springframework.osgi.extender.internal.dependencies.startup.MandatoryImporterDependencyFactory.getServiceDependencies(MandatoryImporterDependencyFactory
.java:63)
	at org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager.doFindDependencies(DependencyServiceManager.java:272)
	at org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager.access$700(DependencyServiceManager.java:40)
	at org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager$1.run(DependencyServiceManager.java:213)
	at org.springframework.osgi.extender.internal.util.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:124)
	at org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager.findServiceDependencies(DependencyServiceManager.java:209)
	at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecut
or.java:239)
	at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecuto
r.java:169)
	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175)
	at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:716)
	at org.eclipse.virgo.kernel.agent.dm.ContextPropagatingTaskExecutor$2.run(ContextPropagatingTaskExecutor.java:95)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:619)
Caused by: org.springframework.beans.TypeMismatchException: Failed to convert property value of type 'java.lang.String' to required type 'java.lang.Class[]' for
 property 'interfaces'; nested exception is java.lang.IllegalArgumentException: Cannot find class [org.osgi.service.log.LogService]
	at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:457)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1351)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1310)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1067)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:511)
	... 19 common frames omitted
Caused by: java.lang.IllegalArgumentException: Cannot find class [org.osgi.service.log.LogService]
	at org.springframework.util.ClassUtils.resolveClassName(ClassUtils.java:294)
	at org.springframework.beans.propertyeditors.ClassArrayEditor.setAsText(ClassArrayEditor.java:67)
	at org.springframework.beans.TypeConverterDelegate.doConvertTextValue(TypeConverterDelegate.java:474)
	at org.springframework.beans.TypeConverterDelegate.doConvertValue(TypeConverterDelegate.java:446)
	at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:215)
	at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:154)
	at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:452)
	... 23 common frames omitted
Caused by: java.lang.ClassNotFoundException: org.osgi.service.log.LogService not found from bundle [osgi.supervisor.scada]
	at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:103)
	at org.springframework.osgi.util.BundleDelegatingClassLoader.loadClass(BundleDelegatingClassLoader.java:156)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
	at org.springframework.util.ClassUtils.forName(ClassUtils.java:258)
	at org.springframework.util.ClassUtils.resolveClassName(ClassUtils.java:291)
	... 29 common frames omitted
Caused by: org.eclipse.virgo.kernel.osgi.framework.ExtendedClassNotFoundException: org.osgi.service.log.LogService in KernelBundleClassLoader: [bundle=osgi.supe
rvisor.scada_0.0.0]
	at org.eclipse.virgo.kernel.userregion.internal.equinox.KernelBundleClassLoader.loadClass(KernelBundleClassLoader.java:139)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
	at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:338)
	at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:232)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1197)
	at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:99)
	... 33 common frames omitted
Caused by: java.lang.ClassNotFoundException: org.osgi.service.log.LogService
	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:506)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
	at org.eclipse.virgo.kernel.userregion.internal.equinox.KernelBundleClassLoader.loadClass(KernelBundleClassLoader.java:135)
	... 38 common frames omitted

[2010-10-10 16:46:42.412] start-signalling-1           <DE0010I> Stopping bundle 'osgi.supervisor.scada' version '0.0.0'. 
[2010-10-10 16:46:42.732] start-signalling-1           <DE0011I> Stopped bundle 'osgi.supervisor.scada' version '0.0.0'. 
[2010-10-10 16:46:42.743]  TCP Connection(4)-127.0.0.1 <DE0013I> Uninstalling bundle 'osgi.supervisor.scada' version '0.0.0'. 
[2010-10-10 16:46:42.876]  TCP Connection(4)-127.0.0.1 <DE0014I> Uninstalled bundle 'osgi.supervisor.scada' version '0.0.0'. 
[2010-10-10 16:46:44.666]  TCP Connection(4)-127.0.0.1 <DE0000I> Installing bundle 'osgi.supervisor.dlog' version '0.0.0'. 
[2010-10-10 16:46:44.733]  TCP Connection(4)-127.0.0.1 <DE0001I> Installed bundle 'osgi.supervisor.dlog' version '0.0.0'. 
[2010-10-10 16:46:44.750]  TCP Connection(4)-127.0.0.1 <DE0004I> Starting bundle 'osgi.supervisor.dlog' version '0.0.0'. 
[2010-10-10 16:46:44.763] start-signalling-1           <DE0005I> Started bundle 'osgi.supervisor.dlog' version '0.0.0'. 




Re: Try to use osgi compendium services [message #631947 is a reply to message #631917] Sun, 10 October 2010 23:36 Go to previous messageGo to next message
Dmitry Sklyut is currently offline Dmitry SklyutFriend
Messages: 279
Registered: January 2010
Senior Member
Few things:
org.eclipse.equinox.cm_1.0.200.v20100520.jar
org.eclipse.equinox.event_1.2.0.v20100503.jar
org.eclipse.equinox.log_1.2.100.v20100503.jar
org.eclipse.equinox.util_1.0.200.v20100503.jar
org.eclipse.osgi.util_3.2.100.v20100503.jar
org.osgi.compendium-4.2.0.jar
org.osgi.core-4.2.0.jar


1. you do not need to deploy org.osgi and org.osgi.compendium.
Those are already there.

2. event service and config admin are already there also in kernel region (Felix implementation but still there). Look in lib/kernel

3. I am not sure why you want Log service, but if you do want it try to deploy it first from pickup and report back issues that you see.

Virgo comes equipped with Logback based log support. So if you use sl4j/logback/commons-logging/log4j/jul you should be covered.

I would just try to deploy org.eclipse.equinox.log and forget the rest. Not sure what kind of dependencies that has but at least the rest of the stuff is already there.

You can switch event/config admin implementations in kernel region and the will be available in user region.

Take a look at lib/kernel/org.eclipse.virgo.kenel.launch.properties for list of "launcher.bundles".

Also you should know that if you drop something in pickup - it will be deployed in alphabetical order. That might be the reason that you see CNF.

Hope this helps. Let us know how deploying log service go for you and
Re: Try to use osgi compendium services [message #634670 is a reply to message #631947] Fri, 22 October 2010 16:51 Go to previous messageGo to next message
Hüseyin Kartal is currently offline Hüseyin KartalFriend
Messages: 12
Registered: July 2009
Junior Member
Hi Dmitry,

and thanks for your reply.

As you mentioned the bundles are already deployed in virgo i marked them as provided in my maven POM and removed form the pickup folder.

I also switched form logService to eventAdmin as the first service try to use of the compendium package.

But i still get a CNF.

I assume its something with the kernel/user region. You mentioned something about switching these services to user region. How to do this?

I would appreciate your help.

Thx
Re: Try to use osgi compendium services [message #635208 is a reply to message #634670] Tue, 26 October 2010 01:02 Go to previous messageGo to next message
Dmitry Sklyut is currently offline Dmitry SklyutFriend
Messages: 279
Registered: January 2010
Senior Member
Hi,

Not sure why you get CNF with the eventAdmin.

Try this. Remove all extra bundles that you deployed prior. Just deploy your bundle that consumes EventAdmin service.

If you want to use spring framework, you will need at least these bundles:
Import-Bundle: com.springsource.org.aopalliance,
 org.springframework.aop,
 org.springframework.beans,
 org.springframework.context,
 org.springframework.core

// or you can import the whole library and skip import-bundle
Import-Library: org.springframework.spring


You will also have to import:
Import-Package: org.osgi.framework;version="0",
 org.osgi.service.event;version="0"


Give this a try. CNF might be coming in from incomplete spring framework import.
Re: Try to use osgi compendium services [message #641709 is a reply to message #635208] Sat, 27 November 2010 00:29 Go to previous messageGo to next message
Hüseyin Kartal is currently offline Hüseyin KartalFriend
Messages: 12
Registered: July 2009
Junior Member
Hi Dimitry,

thanks for your tips, but i have still the same issue.

well this time i packed a small project, just with the aim to get a reference to the eventAdmin Service with spring tools.

maybe you could give it a try ? please.


in the project there is only one OSGi class whitch sould autowired with an instance of the eventAdmin Service.

the eventAdmin service is defined in the osgi-bundle-context.xml.

the imports are all generated with spring-bundlor and an template definition.

hope you or anyone can find a solution for my problem.

i use a default virgo.webserver installation without any modifications and start all out of SpringToolsSuite (eclipse)

thx
Re: Try to use osgi compendium services [message #642098 is a reply to message #641709] Mon, 29 November 2010 20:09 Go to previous message
Dmitry Sklyut is currently offline Dmitry SklyutFriend
Messages: 279
Registered: January 2010
Senior Member
Autowiring is not automatic. You need to enabled it.

http://static.springsource.org/spring/docs/3.0.x/spring-fram ework-reference/html/beans.html#beans-annotation-config
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xmlns:context="http://www.springframework.org/schema/context"
     xsi:schemaLocation="http://www.springframework.org/schema/beans
         http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
         http://www.springframework.org/schema/context
         http://www.springframework.org/schema/context/spring-context-3.0.xsd">

   <context:annotation-config/>

</beans>



Previous Topic:Class loader exception during JPA processing
Next Topic:Virgo Snaps / Spring DM Slices in Glassfish 3
Goto Forum:
  


Current Time: Sat Dec 07 20:17:08 GMT 2024

Powered by FUDForum. Page generated in 0.04175 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top