Eq Server / Jetty Problem / NoClassDef found [message #83623] |
Sun, 25 February 2007 10:14  |
Eclipse User |
|
|
|
Hey,
I just rechecked out the Jetty Equinox bundles with the TeamProject Set
import from http://www.eclipse.org/equinox/server/http_in_equinox.php.
( Jetty-based Http Service: (regular) )
After I tried to run this, described in the same place I've got the
following error:
osgi> ss
id State Bundle
0 ACTIVE system.bundle_3.2.2.R32x_v20070118
1 ACTIVE javax.servlet_2.4.0.qualifier
2 ACTIVE org.apache.batik_1.6.0.v20060613-1220
3 ACTIVE org.apache.commons.logging_1.0.4.qualifier
4 ACTIVE org.eclipse.core.jobs_3.2.0.v20060603
5 RESOLVED
org.eclipse.core.runtime.compatibility.registry_3.2.1.R32x_v 20060907
Master=10
6 ACTIVE org.eclipse.equinox.common_3.2.0.v20060603
7 RESOLVED org.eclipse.equinox.http.jetty_1.0.0.qualifier
8 ACTIVE org.eclipse.equinox.http.registry_1.0.0.qualifier
9 ACTIVE org.eclipse.equinox.http.servlet_1.0.0.qualifier
10 ACTIVE org.eclipse.equinox.registry_3.2.1.R32x_v20060814
Fragments=5
11 ACTIVE org.eclipse.osgi.services_3.1.100.v20060601
12 ACTIVE org.mortbay.jetty_5.1.11.qualifier
osgi> start 7
org.osgi.framework.BundleException: Exception in
org.eclipse.equinox.http.jetty.internal.Activator.start() of bundle
org.eclipse.equinox.http.jetty.
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:1010)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:966)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:317)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:256)
at
org.eclipse.osgi.framework.internal.core.FrameworkCommandPro vider._start(FrameworkCommandProvider.java:239)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.eclipse.osgi.framework.internal.core.FrameworkCommandInt erpreter.execute(FrameworkCommandInterpreter.java:145)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.do command(FrameworkConsole.java:293)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.co nsole(FrameworkConsole.java:278)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.ru n(FrameworkConsole.java:213)
at java.lang.Thread.run(Thread.java:613)
Caused by: java.lang.NoClassDefFoundError
at
org.eclipse.equinox.http.jetty.internal.HttpServerManager.up dated(HttpServerManager.java:72)
at
org.eclipse.equinox.http.jetty.internal.Activator.start(Acti vator.java:45)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:991)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:985)
... 13 more
Nested Exception:
java.lang.NoClassDefFoundError
at
org.eclipse.equinox.http.jetty.internal.HttpServerManager.up dated(HttpServerManager.java:72)
at
org.eclipse.equinox.http.jetty.internal.Activator.start(Acti vator.java:45)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:991)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:985)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:966)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:317)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:256)
at
org.eclipse.osgi.framework.internal.core.FrameworkCommandPro vider._start(FrameworkCommandProvider.java:239)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.eclipse.osgi.framework.internal.core.FrameworkCommandInt erpreter.execute(FrameworkCommandInterpreter.java:145)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.do command(FrameworkConsole.java:293)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.co nsole(FrameworkConsole.java:278)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.ru n(FrameworkConsole.java:213)
at java.lang.Thread.run(Thread.java:613)
Nested Exception:
java.lang.NoClassDefFoundError
at
org.eclipse.equinox.http.jetty.internal.HttpServerManager.up dated(HttpServerManager.java:72)
at
org.eclipse.equinox.http.jetty.internal.Activator.start(Acti vator.java:45)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:991)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:985)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:966)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:317)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:256)
at
org.eclipse.osgi.framework.internal.core.FrameworkCommandPro vider._start(FrameworkCommandProvider.java:239)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.eclipse.osgi.framework.internal.core.FrameworkCommandInt erpreter.execute(FrameworkCommandInterpreter.java:145)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.do command(FrameworkConsole.java:293)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.co nsole(FrameworkConsole.java:278)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.ru n(FrameworkConsole.java:213)
at java.lang.Thread.run(Thread.java:613)
So, I tried to figure out what's wrong. I came to the commons logging
bundle. Something is wrong... because all stuff is precompiled, Eclipse
cannot resolve missing imports, and the error message above is
misdirecting I cannot trace it easily back...
After some experience in funny OSGi error messages I can less or more
say what's going on here...
the HttpServer cannot be instantiated because it needs Log and
LogFactory from the org.apache.commons.logging bundle... which is there
and the packages are exported... this might means that this bundle is
missing something else. But I cannot keep tracing it down...
I have created a new Working Space so nothing should be disturbing.
Eclipse 3.2.2. In the Run->Run...->OSGi Framework I choosed all the
bundles from the Team Project Set and clicked on "Add Required Plug
In's" to get the Eclipse OSGi bundle.
btw. the "Add Required Plug-Ins" step is missing in the describtion in
the link above.
The funny thing ist, that I've had a running jetty in OSGi last week...
but I decided to create a new working space and to get the latest
version. The running jetty was under Eclipse 3.2.1 I think.
Thank you for help!
Martin.
|
|
|
|
Re: Eq Server / Jetty Problem / org.apache.batik bundle [message #83650 is a reply to message #83637] |
Mon, 26 February 2007 06:01  |
Eclipse User |
|
|
|
Hi Simon,
yes you were right. It was the batik bundle. Eclipse is selecting this
automatigally when I click "Add Required Plug Ins".
Hmm... I rechecked this too now, with a fresh install of Eclipse 3.2.2
and it works as well, like yours. Maybe it has to do with my update of
Eclipse 3.2.1 to 3.2.2 or with a plug-in that I have installed.
Funny.
Well... thanks for rechecking.
Martin.
Simon Kaegi schrieb:
> Hi Martin,
>
> I just downloaded a fresh copy of 3.2.2 and re-validated that everything is
> working correctly.
> One thing I noticed was that you have an extra bundle involved...
> org.apache.batik.
> Is it possible that it's adding extra exports and/or interacting with your
> environment in a strange way?
> Perhaps try removing it and cleaning your configuration area.
>
> -Simon
>
>
> "Martin Dames" <m.dames@gmx.de> wrote in message
> news:ers959$bg4$1@utils.eclipse.org...
>> Hey,
>>
>> I just rechecked out the Jetty Equinox bundles with the TeamProject Set
>> import from http://www.eclipse.org/equinox/server/http_in_equinox.php.
>> ( Jetty-based Http Service: (regular) )
>>
>> After I tried to run this, described in the same place I've got the
>> following error:
>>
>> osgi> ss
>>
>> id State Bundle
>> 0 ACTIVE system.bundle_3.2.2.R32x_v20070118
>> 1 ACTIVE javax.servlet_2.4.0.qualifier
>> 2 ACTIVE org.apache.batik_1.6.0.v20060613-1220
>> 3 ACTIVE org.apache.commons.logging_1.0.4.qualifier
>> 4 ACTIVE org.eclipse.core.jobs_3.2.0.v20060603
>> 5 RESOLVED
>> org.eclipse.core.runtime.compatibility.registry_3.2.1.R32x_v 20060907
>> Master=10
>> 6 ACTIVE org.eclipse.equinox.common_3.2.0.v20060603
>> 7 RESOLVED org.eclipse.equinox.http.jetty_1.0.0.qualifier
>> 8 ACTIVE org.eclipse.equinox.http.registry_1.0.0.qualifier
>> 9 ACTIVE org.eclipse.equinox.http.servlet_1.0.0.qualifier
>> 10 ACTIVE org.eclipse.equinox.registry_3.2.1.R32x_v20060814
>> Fragments=5
>> 11 ACTIVE org.eclipse.osgi.services_3.1.100.v20060601
>> 12 ACTIVE org.mortbay.jetty_5.1.11.qualifier
>>
>>
>> osgi> start 7
>>
>>
>> org.osgi.framework.BundleException: Exception in
>> org.eclipse.equinox.http.jetty.internal.Activator.start() of bundle
>> org.eclipse.equinox.http.jetty.
>> at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:1010)
>> at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:966)
>> at
>> org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:317)
>> at
>> org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:256)
>> at
>> org.eclipse.osgi.framework.internal.core.FrameworkCommandPro vider._start(FrameworkCommandProvider.java:239)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>> at java.lang.reflect.Method.invoke(Method.java:585)
>> at
>> org.eclipse.osgi.framework.internal.core.FrameworkCommandInt erpreter.execute(FrameworkCommandInterpreter.java:145)
>> at
>> org.eclipse.osgi.framework.internal.core.FrameworkConsole.do command(FrameworkConsole.java:293)
>> at
>> org.eclipse.osgi.framework.internal.core.FrameworkConsole.co nsole(FrameworkConsole.java:278)
>> at
>> org.eclipse.osgi.framework.internal.core.FrameworkConsole.ru n(FrameworkConsole.java:213)
>> at java.lang.Thread.run(Thread.java:613)
>>
>> Caused by: java.lang.NoClassDefFoundError
>> at
>> org.eclipse.equinox.http.jetty.internal.HttpServerManager.up dated(HttpServerManager.java:72)
>> at
>> org.eclipse.equinox.http.jetty.internal.Activator.start(Acti vator.java:45)
>> at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:991)
>> at java.security.AccessController.doPrivileged(Native Method)
>> at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:985)
>> ... 13 more
>>
>> Nested Exception:
>> java.lang.NoClassDefFoundError
>> at
>> org.eclipse.equinox.http.jetty.internal.HttpServerManager.up dated(HttpServerManager.java:72)
>> at
>> org.eclipse.equinox.http.jetty.internal.Activator.start(Acti vator.java:45)
>> at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:991)
>> at java.security.AccessController.doPrivileged(Native Method)
>> at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:985)
>> at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:966)
>> at
>> org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:317)
>> at
>> org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:256)
>> at
>> org.eclipse.osgi.framework.internal.core.FrameworkCommandPro vider._start(FrameworkCommandProvider.java:239)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>> at java.lang.reflect.Method.invoke(Method.java:585)
>> at
>> org.eclipse.osgi.framework.internal.core.FrameworkCommandInt erpreter.execute(FrameworkCommandInterpreter.java:145)
>> at
>> org.eclipse.osgi.framework.internal.core.FrameworkConsole.do command(FrameworkConsole.java:293)
>> at
>> org.eclipse.osgi.framework.internal.core.FrameworkConsole.co nsole(FrameworkConsole.java:278)
>> at
>> org.eclipse.osgi.framework.internal.core.FrameworkConsole.ru n(FrameworkConsole.java:213)
>> at java.lang.Thread.run(Thread.java:613)
>>
>> Nested Exception:
>> java.lang.NoClassDefFoundError
>> at
>> org.eclipse.equinox.http.jetty.internal.HttpServerManager.up dated(HttpServerManager.java:72)
>> at
>> org.eclipse.equinox.http.jetty.internal.Activator.start(Acti vator.java:45)
>> at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:991)
>> at java.security.AccessController.doPrivileged(Native Method)
>> at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:985)
>> at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:966)
>> at
>> org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:317)
>> at
>> org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:256)
>> at
>> org.eclipse.osgi.framework.internal.core.FrameworkCommandPro vider._start(FrameworkCommandProvider.java:239)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>> at java.lang.reflect.Method.invoke(Method.java:585)
>> at
>> org.eclipse.osgi.framework.internal.core.FrameworkCommandInt erpreter.execute(FrameworkCommandInterpreter.java:145)
>> at
>> org.eclipse.osgi.framework.internal.core.FrameworkConsole.do command(FrameworkConsole.java:293)
>> at
>> org.eclipse.osgi.framework.internal.core.FrameworkConsole.co nsole(FrameworkConsole.java:278)
>> at
>> org.eclipse.osgi.framework.internal.core.FrameworkConsole.ru n(FrameworkConsole.java:213)
>> at java.lang.Thread.run(Thread.java:613)
>>
>>
>>
>>
>>
>> So, I tried to figure out what's wrong. I came to the commons logging
>> bundle. Something is wrong... because all stuff is precompiled, Eclipse
>> cannot resolve missing imports, and the error message above is
>> misdirecting I cannot trace it easily back...
>>
>> After some experience in funny OSGi error messages I can less or more say
>> what's going on here...
>>
>> the HttpServer cannot be instantiated because it needs Log and LogFactory
>> from the org.apache.commons.logging bundle... which is there and the
>> packages are exported... this might means that this bundle is missing
>> something else. But I cannot keep tracing it down...
>>
>>
>> I have created a new Working Space so nothing should be disturbing.
>> Eclipse 3.2.2. In the Run->Run...->OSGi Framework I choosed all the
>> bundles from the Team Project Set and clicked on "Add Required Plug In's"
>> to get the Eclipse OSGi bundle.
>>
>> btw. the "Add Required Plug-Ins" step is missing in the describtion in the
>> link above.
>>
>>
>> The funny thing ist, that I've had a running jetty in OSGi last week...
>> but I decided to create a new working space and to get the latest version.
>> The running jetty was under Eclipse 3.2.1 I think.
>>
>> Thank you for help!
>>
>> Martin.
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03509 seconds