Activator is Invalid [message #92380] |
Thu, 19 July 2007 14:14  |
Eclipse User |
|
|
|
Originally posted by: latro2000.hotmail.com
I've been following Neil Bartlett's tutorial about OSGI. However when we
try to start the service it sends the error shown below. We're using Java
jdk 1.6.0_01, Windows XP and Equinox Console
org.eclipse.osgi_3.2.2.R32x_v20070118.jar
osgi> start 6
org.osgi.framework.BundleException: The activator
osgitut.movies.impl.MovieListe
rActivator for bundle MovieListerImpl is invalid
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load BundleAct
ivator(AbstractBundle.java:141)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(Bund
leContextImpl.java:962)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(Bundl
eHost.java:317)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(Abstrac
tBundle.java:256)
at
org.eclipse.osgi.framework.internal.core.FrameworkCommandPro vider._st
art(FrameworkCommandProvider.java:239)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.eclipse.osgi.framework.internal.core.FrameworkCommandInt erpreter.
execute(FrameworkCommandInterpreter.java:145)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.do command(F
rameworkConsole.java:293)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.co nsole(Fra
meworkConsole.java:278)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.ru n(Framewo
rkConsole.java:213)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NoClassDefFoundError: osgitut/movies/MovieLister
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
at java.lang.Class.getConstructor0(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load BundleAct
ivator(AbstractBundle.java:136)
... 13 more
Nested Exception:
java.lang.NoClassDefFoundError: osgitut/movies/MovieLister
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
at java.lang.Class.getConstructor0(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load BundleAct
ivator(AbstractBundle.java:136)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(Bund
leContextImpl.java:962)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(Bundl
eHost.java:317)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(Abstrac
tBundle.java:256)
at
org.eclipse.osgi.framework.internal.core.FrameworkCommandPro vider._st
art(FrameworkCommandProvider.java:239)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.eclipse.osgi.framework.internal.core.FrameworkCommandInt erpreter.
execute(FrameworkCommandInterpreter.java:145)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.do command(F
rameworkConsole.java:293)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.co nsole(Fra
meworkConsole.java:278)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.ru n(Framewo
rkConsole.java:213)
at java.lang.Thread.run(Unknown Source)
Nested Exception:
java.lang.NoClassDefFoundError: osgitut/movies/MovieLister
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
at java.lang.Class.getConstructor0(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load BundleAct
ivator(AbstractBundle.java:136)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(Bund
leContextImpl.java:962)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(Bundl
eHost.java:317)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(Abstrac
tBundle.java:256)
at
org.eclipse.osgi.framework.internal.core.FrameworkCommandPro vider._st
art(FrameworkCommandProvider.java:239)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.eclipse.osgi.framework.internal.core.FrameworkCommandInt erpreter.
execute(FrameworkCommandInterpreter.java:145)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.do command(F
rameworkConsole.java:293)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.co nsole(Fra
meworkConsole.java:278)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.ru n(Framewo
rkConsole.java:213)
at java.lang.Thread.run(Unknown Source)
osgi>
Any help will be appreciated.
Bruno.
|
|
|
|
Re: Activator is Invalid [message #92569 is a reply to message #92426] |
Fri, 20 July 2007 14:50   |
Eclipse User |
|
|
|
Originally posted by: latro2000.hotmail.com
Dear Alex.
Sorry, but I have no clear if article "Debugging a failed Eclipse
launch"applies for who are working outside Eclipse, it means who are not
using Eclipse IDE, instead of that, who use OSGi Console.
We have followed your article but we haven't gotten a solution. I'd like
to know some persons who have followed Bartlett tutorial without problems,
of course, having the same environment (jdk 1.6, equinox, windows xp)
We followed Bartlett instructions: copy of it right out of your existing
Eclipse installation: just find the file
org.eclipse.osgi_3.2.2.R32x_v20070118.jar and copy it to an empty
directory.
We donŽt know if we had to do some extra configurations or copy another
files, etc. Because the manifest files seems okay. And import and export
instructions seems well done.
MovieLister.mf
Manifest-Version: 1.0
Bundle-Name: Movie Lister
Bundle-SymbolicName: MovieLister
Bundle-Version: 1.0
Export-Package: osgitut.movies
MovieListerImpl.mf
Manifest-Version: 1.0
Bundle-Name: Movie Lister Impl
Bundle-SymbolicName: MovieListerImpl
Bundle-Version: 1.0
Bundle-Activator: osgitut.movies.impl.MovieListerActivator
Import-Package: org.osgi.framework, osgitut.movies, org.osgi.util.tracker
We appreciate your answer for this newer member.
Regards, Bruno
|
|
|
Re: Activator is Invalid [message #92583 is a reply to message #92569] |
Fri, 20 July 2007 17:50  |
Eclipse User |
|
|
|
Originally posted by: alex_blewitt.yahoo.com
Read the post I linked. It gives some clues on how to figure out what's going on with the OSGi console.
Alex.
|
|
|
Powered by
FUDForum. Page generated in 0.06623 seconds