mburbidg
May 16th, 2008, 04:15 PM
I gave up on trying to get pax-runner to work for me. I could not get it to find the artifacts at http://maven.springframework.org/osgi. I verified that it is something with pax-runner, because I was able to use maven to download the artifacts.
So now I'm on to try to get raw equinox to work. I'm just trying to get a hello world web application working with equinox and catalina. So first, I'm just trying to get catalina running within equinox using the catalina.osgi-5.5.23, and catalina.start.osgi-1.0. I downloaded these from the spring osgi repository.
I followed the instructions at http://www.eclipse.org/equinox/documents/quickstart.php to try and get this going. It seems like it should be simple.
I have a directory with the following layout:
root
configuration
config.ini
org.eclipse.equinox.common_3.3.0.v20070426.jar
org.eclipse.osgi_3.3.2.R33x_v20080105.jar
org.eclipse.update.configurator_3.2.101.R33x_v2007 0810
plugins
catalina.osgi-5.5.23-SNAPSHOT.jar
catalina.start.osgi-1.0-SNAPSHOT.jar
My config.ini contains the following:
eclipse.ignoreApp=true
osgi.clean=true
osgi.startLevel=6
osgi.bundles.defaultStartLevel=5
osgi.bundles=\
org.eclipse.equinox.common@2:start,\
org.eclipse.update.configurator@3:start
I start equinox using the following command:
java -jar org.eclipse.osgi_3.3.2.R33x_v20080105.jar -console
Equinox starts up fine and if I do a status it reports the following as you would expect:
id Bundle Location
State Bundle File Name
0 System Bundle
ACTIVE org.eclipse.osgi_3.3.2.R33x_v20080105
1 initial@reference:file:org.eclipse.equinox.common_ 3.3.0.v20070426.jar/
ACTIVE org.eclipse.equinox.common_3.3.0.v20070426
2 initial@reference:file:org.eclipse.update.configur ator_3.2.101.R33x_v20070810.jar/
ACTIVE org.eclipse.update.configurator_3.2.101.R33x_v2007 0810
3 update@plugins/catalina.osgi-5.5.23-SNAPSHOT.jar
INSTALLED org.springframework.osgi.catalina.osgi_5.5.23.SNAP SHOT
4 update@plugins/catalina.start.osgi-1.0-SNAPSHOT.jar
RESOLVED org.springframework.osgi.catalina.start.osgi_1.0.0 .SNAPSHOT
But if I execute the following command to start up the catalina.start.osgi bundle:
start org.springframework.osgi.catalina.start.osgi
I get the following exceptions, which indicate to me that somehow catalina.start.osgi is not able to find catalina.osgi.
org.osgi.framework.BundleException: The activator org.springframework.osgi.web.tomcat.internal.Activ ator for bundle org.springframework.osgi.catalina.start.osgi is invalid
at org.eclipse.osgi.framework.internal.core.AbstractB undle.loadBundleActivator(AbstractBundle.java:141)
at org.eclipse.osgi.framework.internal.core.BundleCon textImpl.start(BundleContextImpl.java:970)
at org.eclipse.osgi.framework.internal.core.BundleHos t.startWorker(BundleHost.java:346)
at org.eclipse.osgi.framework.internal.core.AbstractB undle.start(AbstractBundle.java:260)
at org.eclipse.osgi.framework.internal.core.AbstractB undle.start(AbstractBundle.java:252)
at org.eclipse.osgi.framework.internal.core.Framework CommandProvider._start(FrameworkCommandProvider.ja va:260)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.osgi.framework.internal.core.Framework CommandInterpreter.execute(FrameworkCommandInterpr eter.java:150)
at org.eclipse.osgi.framework.internal.core.Framework Console.docommand(FrameworkConsole.java:300)
at org.eclipse.osgi.framework.internal.core.Framework Console.console(FrameworkConsole.java:285)
at org.eclipse.osgi.framework.internal.core.Framework Console.run(FrameworkConsole.java:221)
at java.lang.Thread.run(Thread.java:613)
Caused by: java.lang.NoClassDefFoundError: org/apache/catalina/Container
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Cla ss.java:2357)
at java.lang.Class.getConstructor0(Class.java:2671)
at java.lang.Class.newInstance0(Class.java:321)
at java.lang.Class.newInstance(Class.java:303)
at org.eclipse.osgi.framework.internal.core.AbstractB undle.loadBundleActivator(AbstractBundle.java:136)
... 14 more
Nested Exception:
java.lang.NoClassDefFoundError: org/apache/catalina/Container
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Cla ss.java:2357)
at java.lang.Class.getConstructor0(Class.java:2671)
at java.lang.Class.newInstance0(Class.java:321)
at java.lang.Class.newInstance(Class.java:303)
at org.eclipse.osgi.framework.internal.core.AbstractB undle.loadBundleActivator(AbstractBundle.java:136)
at org.eclipse.osgi.framework.internal.core.BundleCon textImpl.start(BundleContextImpl.java:970)
at org.eclipse.osgi.framework.internal.core.BundleHos t.startWorker(BundleHost.java:346)
at org.eclipse.osgi.framework.internal.core.AbstractB undle.start(AbstractBundle.java:260)
at org.eclipse.osgi.framework.internal.core.AbstractB undle.start(AbstractBundle.java:252)
at org.eclipse.osgi.framework.internal.core.Framework CommandProvider._start(FrameworkCommandProvider.ja va:260)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.osgi.framework.internal.core.Framework CommandInterpreter.execute(FrameworkCommandInterpr eter.java:150)
at org.eclipse.osgi.framework.internal.core.Framework Console.docommand(FrameworkConsole.java:300)
at org.eclipse.osgi.framework.internal.core.Framework Console.console(FrameworkConsole.java:285)
at org.eclipse.osgi.framework.internal.core.Framework Console.run(FrameworkConsole.java:221)
at java.lang.Thread.run(Thread.java:613)
Nested Exception:
java.lang.NoClassDefFoundError: org/apache/catalina/Container
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Cla ss.java:2357)
at java.lang.Class.getConstructor0(Class.java:2671)
at java.lang.Class.newInstance0(Class.java:321)
at java.lang.Class.newInstance(Class.java:303)
at org.eclipse.osgi.framework.internal.core.AbstractB undle.loadBundleActivator(AbstractBundle.java:136)
at org.eclipse.osgi.framework.internal.core.BundleCon textImpl.start(BundleContextImpl.java:970)
at org.eclipse.osgi.framework.internal.core.BundleHos t.startWorker(BundleHost.java:346)
at org.eclipse.osgi.framework.internal.core.AbstractB undle.start(AbstractBundle.java:260)
at org.eclipse.osgi.framework.internal.core.AbstractB undle.start(AbstractBundle.java:252)
at org.eclipse.osgi.framework.internal.core.Framework CommandProvider._start(FrameworkCommandProvider.ja va:260)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.osgi.framework.internal.core.Framework CommandInterpreter.execute(FrameworkCommandInterpr eter.java:150)
at org.eclipse.osgi.framework.internal.core.Framework Console.docommand(FrameworkConsole.java:300)
at org.eclipse.osgi.framework.internal.core.Framework Console.console(FrameworkConsole.java:285)
at org.eclipse.osgi.framework.internal.core.Framework Console.run(FrameworkConsole.java:221)
at java.lang.Thread.run(Thread.java:613)
Now I'm expecting that when it is able to find it that there will be a lot of other dependencies that I will have to download, but I'm just trying to take it one step at a time.
Any clues as to why catalina.osgi is not found?
Thanks,
Michael-
So now I'm on to try to get raw equinox to work. I'm just trying to get a hello world web application working with equinox and catalina. So first, I'm just trying to get catalina running within equinox using the catalina.osgi-5.5.23, and catalina.start.osgi-1.0. I downloaded these from the spring osgi repository.
I followed the instructions at http://www.eclipse.org/equinox/documents/quickstart.php to try and get this going. It seems like it should be simple.
I have a directory with the following layout:
root
configuration
config.ini
org.eclipse.equinox.common_3.3.0.v20070426.jar
org.eclipse.osgi_3.3.2.R33x_v20080105.jar
org.eclipse.update.configurator_3.2.101.R33x_v2007 0810
plugins
catalina.osgi-5.5.23-SNAPSHOT.jar
catalina.start.osgi-1.0-SNAPSHOT.jar
My config.ini contains the following:
eclipse.ignoreApp=true
osgi.clean=true
osgi.startLevel=6
osgi.bundles.defaultStartLevel=5
osgi.bundles=\
org.eclipse.equinox.common@2:start,\
org.eclipse.update.configurator@3:start
I start equinox using the following command:
java -jar org.eclipse.osgi_3.3.2.R33x_v20080105.jar -console
Equinox starts up fine and if I do a status it reports the following as you would expect:
id Bundle Location
State Bundle File Name
0 System Bundle
ACTIVE org.eclipse.osgi_3.3.2.R33x_v20080105
1 initial@reference:file:org.eclipse.equinox.common_ 3.3.0.v20070426.jar/
ACTIVE org.eclipse.equinox.common_3.3.0.v20070426
2 initial@reference:file:org.eclipse.update.configur ator_3.2.101.R33x_v20070810.jar/
ACTIVE org.eclipse.update.configurator_3.2.101.R33x_v2007 0810
3 update@plugins/catalina.osgi-5.5.23-SNAPSHOT.jar
INSTALLED org.springframework.osgi.catalina.osgi_5.5.23.SNAP SHOT
4 update@plugins/catalina.start.osgi-1.0-SNAPSHOT.jar
RESOLVED org.springframework.osgi.catalina.start.osgi_1.0.0 .SNAPSHOT
But if I execute the following command to start up the catalina.start.osgi bundle:
start org.springframework.osgi.catalina.start.osgi
I get the following exceptions, which indicate to me that somehow catalina.start.osgi is not able to find catalina.osgi.
org.osgi.framework.BundleException: The activator org.springframework.osgi.web.tomcat.internal.Activ ator for bundle org.springframework.osgi.catalina.start.osgi is invalid
at org.eclipse.osgi.framework.internal.core.AbstractB undle.loadBundleActivator(AbstractBundle.java:141)
at org.eclipse.osgi.framework.internal.core.BundleCon textImpl.start(BundleContextImpl.java:970)
at org.eclipse.osgi.framework.internal.core.BundleHos t.startWorker(BundleHost.java:346)
at org.eclipse.osgi.framework.internal.core.AbstractB undle.start(AbstractBundle.java:260)
at org.eclipse.osgi.framework.internal.core.AbstractB undle.start(AbstractBundle.java:252)
at org.eclipse.osgi.framework.internal.core.Framework CommandProvider._start(FrameworkCommandProvider.ja va:260)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.osgi.framework.internal.core.Framework CommandInterpreter.execute(FrameworkCommandInterpr eter.java:150)
at org.eclipse.osgi.framework.internal.core.Framework Console.docommand(FrameworkConsole.java:300)
at org.eclipse.osgi.framework.internal.core.Framework Console.console(FrameworkConsole.java:285)
at org.eclipse.osgi.framework.internal.core.Framework Console.run(FrameworkConsole.java:221)
at java.lang.Thread.run(Thread.java:613)
Caused by: java.lang.NoClassDefFoundError: org/apache/catalina/Container
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Cla ss.java:2357)
at java.lang.Class.getConstructor0(Class.java:2671)
at java.lang.Class.newInstance0(Class.java:321)
at java.lang.Class.newInstance(Class.java:303)
at org.eclipse.osgi.framework.internal.core.AbstractB undle.loadBundleActivator(AbstractBundle.java:136)
... 14 more
Nested Exception:
java.lang.NoClassDefFoundError: org/apache/catalina/Container
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Cla ss.java:2357)
at java.lang.Class.getConstructor0(Class.java:2671)
at java.lang.Class.newInstance0(Class.java:321)
at java.lang.Class.newInstance(Class.java:303)
at org.eclipse.osgi.framework.internal.core.AbstractB undle.loadBundleActivator(AbstractBundle.java:136)
at org.eclipse.osgi.framework.internal.core.BundleCon textImpl.start(BundleContextImpl.java:970)
at org.eclipse.osgi.framework.internal.core.BundleHos t.startWorker(BundleHost.java:346)
at org.eclipse.osgi.framework.internal.core.AbstractB undle.start(AbstractBundle.java:260)
at org.eclipse.osgi.framework.internal.core.AbstractB undle.start(AbstractBundle.java:252)
at org.eclipse.osgi.framework.internal.core.Framework CommandProvider._start(FrameworkCommandProvider.ja va:260)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.osgi.framework.internal.core.Framework CommandInterpreter.execute(FrameworkCommandInterpr eter.java:150)
at org.eclipse.osgi.framework.internal.core.Framework Console.docommand(FrameworkConsole.java:300)
at org.eclipse.osgi.framework.internal.core.Framework Console.console(FrameworkConsole.java:285)
at org.eclipse.osgi.framework.internal.core.Framework Console.run(FrameworkConsole.java:221)
at java.lang.Thread.run(Thread.java:613)
Nested Exception:
java.lang.NoClassDefFoundError: org/apache/catalina/Container
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Cla ss.java:2357)
at java.lang.Class.getConstructor0(Class.java:2671)
at java.lang.Class.newInstance0(Class.java:321)
at java.lang.Class.newInstance(Class.java:303)
at org.eclipse.osgi.framework.internal.core.AbstractB undle.loadBundleActivator(AbstractBundle.java:136)
at org.eclipse.osgi.framework.internal.core.BundleCon textImpl.start(BundleContextImpl.java:970)
at org.eclipse.osgi.framework.internal.core.BundleHos t.startWorker(BundleHost.java:346)
at org.eclipse.osgi.framework.internal.core.AbstractB undle.start(AbstractBundle.java:260)
at org.eclipse.osgi.framework.internal.core.AbstractB undle.start(AbstractBundle.java:252)
at org.eclipse.osgi.framework.internal.core.Framework CommandProvider._start(FrameworkCommandProvider.ja va:260)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.osgi.framework.internal.core.Framework CommandInterpreter.execute(FrameworkCommandInterpr eter.java:150)
at org.eclipse.osgi.framework.internal.core.Framework Console.docommand(FrameworkConsole.java:300)
at org.eclipse.osgi.framework.internal.core.Framework Console.console(FrameworkConsole.java:285)
at org.eclipse.osgi.framework.internal.core.Framework Console.run(FrameworkConsole.java:221)
at java.lang.Thread.run(Thread.java:613)
Now I'm expecting that when it is able to find it that there will be a lot of other dependencies that I will have to download, but I'm just trying to take it one step at a time.
Any clues as to why catalina.osgi is not found?
Thanks,
Michael-