[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [jetty-dev] Jetty OSGi bundles
|
Thanks Jan. I did come across that page. Certainly an updated version of the page would be useful in similar situations in future.
Regards,
Glyn
On 4 Nov 2010, at 22:44, Jan Bartel wrote:
> Hi Glyn,
>
> I know this is now horribly out of date, as it deals with jetty-6
> and not jetty-7, however we did document the jars and procedures
> to start jetty-6 under OSGi here:
>
> http://docs.codehaus.org/display/JETTY/OSGi+Tips
>
> It seems that you've probably now made it past that point, but I just
> wanted to post the link above, partly as a reminder to myself to
> update the doco for jetty-7!
>
> cheers
> Jan
>
> On 05/11/10 03:25, Hugues Malphettes wrote:
>> Hi Glyn,
>> Sorry I was on my way to the office.
>> I am on the chat on skype or IRC (freenode #jetty)
>> It is gives a warm and fuzzy feeling to see it working on virgo.
>> Cheers
>> Hugues
>>
>> On Thu, Nov 4, 2010 at 8:54 AM, Glyn Normington <gnormington@xxxxxxxxxx
>> <mailto:gnormington@xxxxxxxxxx>> wrote:
>>
>> Some more progress, after setting -Djetty.home and putting a
>> jetty.xml in place I get:
>>
>> [2010-11-04 15:50:26.782] OSGi Console System.err
>> Configuring
>> the default jetty server with
>> file:/Users/glynnormington/jetty-7.2.0.v20101020/jetty-virgo/virgo-kernel-2.2.0.M01/jetty/etc/jetty.xml
>> [2010-11-04 15:50:26.884] OSGi Console System.err
>>
>> java.lang.IllegalStateException: ERROR: No
>> ContextHandlerCollection or OSGiAppProvider configured
>> [2010-11-04 15:50:26.884] OSGi Console System.err
>> at
>> org.eclipse.jetty.osgi.boot.internal.serverfactory.ServerInstanceWrapper.init(ServerInstanceWrapper.java:333)
>> [2010-11-04 15:50:26.884] OSGi Console System.err
>> at
>> org.eclipse.jetty.osgi.boot.internal.serverfactory.ServerInstanceWrapper.start(ServerInstanceWrapper.java:159)
>> [2010-11-04 15:50:26.885] OSGi Console System.err
>> at
>> org.eclipse.jetty.osgi.boot.internal.serverfactory.JettyServerServiceTracker.serviceChanged(JettyServerServiceTracker.java:108)
>> [2010-11-04 15:50:26.885] OSGi Console System.err
>> at
>> org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:104)
>> [2010-11-04 15:50:26.885] OSGi Console System.err
>> at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:933)
>> [2010-11-04 15:50:26.885] OSGi Console System.err
>> at
>> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:227)
>> [2010-11-04 15:50:26.885] OSGi Console System.err
>> at
>> org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:149)
>> [2010-11-04 15:50:26.885] OSGi Console System.err
>> at
>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:756)
>> [2010-11-04 15:50:26.886] OSGi Console System.err
>> at
>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:711)
>> [2010-11-04 15:50:26.886] OSGi Console System.err
>> at
>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
>> [2010-11-04 15:50:26.886] OSGi Console System.err
>> at
>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:206)
>> [2010-11-04 15:50:26.886] OSGi Console System.err
>> at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:507)
>> [2010-11-04 15:50:26.886] OSGi Console System.err
>> at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:525)
>> [2010-11-04 15:50:26.886] OSGi Console System.err
>> at
>> org.eclipse.jetty.osgi.boot.internal.serverfactory.DefaultJettyAtJettyHomeHelper.startJettyAtJettyHome(DefaultJettyAtJettyHomeHelper.java:146)
>> [2010-11-04 15:50:26.887] OSGi Console System.err
>> at
>> org.eclipse.jetty.osgi.boot.JettyBootstrapActivator.start(JettyBootstrapActivator.java:110)
>> [2010-11-04 15:50:26.887] OSGi Console System.err
>> at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:783)
>> [2010-11-04 15:50:26.887] OSGi Console System.err
>> at
>> java.security.AccessController.doPrivileged(Native Method)
>> [2010-11-04 15:50:26.887] OSGi Console System.err
>> at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:774)
>> [2010-11-04 15:50:26.887] OSGi Console System.err
>> at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:755)
>> [2010-11-04 15:50:26.887] OSGi Console System.err
>> at
>> org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:370)
>> [2010-11-04 15:50:26.887] OSGi Console System.err
>> at
>> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:284)
>> [2010-11-04 15:50:26.888] OSGi Console System.err
>> at
>> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:276)
>> [2010-11-04 15:50:26.888] OSGi Console System.err
>> at
>> org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:252)
>> [2010-11-04 15:50:26.888] OSGi Console System.err
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> [2010-11-04 15:50:26.888] OSGi Console System.err
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> [2010-11-04 15:50:26.888] OSGi Console System.err
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> [2010-11-04 15:50:26.888] OSGi Console System.err
>> at
>> java.lang.reflect.Method.invoke(Method.java:597)
>> [2010-11-04 15:50:26.888] OSGi Console System.err
>> at
>> org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:155)
>> [2010-11-04 15:50:26.889] OSGi Console System.err
>> at
>> org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:156)
>> [2010-11-04 15:50:26.889] OSGi Console System.err
>> at
>> org.eclipse.osgi.framework.internal.core.FrameworkConsole.runConsole(FrameworkConsole.java:141)
>> [2010-11-04 15:50:26.889] OSGi Console System.err
>> at
>> org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:105)
>> [2010-11-04 15:50:26.889] OSGi Console System.err
>> at
>> java.lang.Thread.run(Thread.java:680)
>>
>> I feel I'm getting closer. Sorry for the stream of consciousness
>> represented by these posts. If they are too annoying tell me to get
>> lost until I am truly stuck.
>>
>> Regards,
>> Glyn
>>
>> On 4 Nov 2010, at 15:26, Glyn Normington wrote:
>>
>>> I now have a resolved and active Jetty boot bundle running on the
>> Virgo kernel and Virgo seems to have faulted in a reasonable set of
>> bundles (I put all the ones below in Virgo's repository). The log shows:
>>>
>>> [2010-11-04 15:16:29.072] fs-watcher
>> org.eclipse.virgo.medic.eventlog.default
>> HD0001I Hot deployer processing 'CREATED' event for file
>> 'jetty-osgi-boot-7.2.0.v20101020.jar'.
>>> [2010-11-04 15:16:29.072] fs-watcher
>> o.e.virgo.kernel.deployer.hot.HotDeploymentFileSystemListener
>> ApplicationDeploying path
>> '/Users/glynnormington/jetty-7.2.0.v20101020/jetty-virgo/virgo-kernel-2.2.0.M01/pickup/jetty-osgi-boot-7.2.0.v20101020.jar'.
>>> [2010-11-04 15:16:29.128] fs-watcher
>> o.e.v.k.m.i.deployer.ModelInstallArtifactLifecycleListener
>> Processing installing event for bundle
>> 'org.eclipse.jetty.osgi.boot' version '7.2.0.v20101020'
>>> [2010-11-04 15:16:29.133] fs-watcher
>> org.eclipse.virgo.medic.eventlog.default
>> DE0000I Installing bundle 'org.eclipse.jetty.osgi.boot' version
>> '7.2.0.v20101020'.
>>> [2010-11-04 15:16:29.135] fs-watcher
>> o.e.virgo.kernel.userregion.internal.quasi.DependencyCalculator
>> Calculating missing dependencies of bundle(s)
>> 'org.eclipse.jetty.osgi.boot_7.2.0.v20101020'
>>> [2010-11-04 15:16:29.225] fs-watcher
>> o.e.virgo.kernel.userregion.internal.quasi.DependencyCalculator
>> The dependencies of '[org.eclipse.jetty.osgi.boot_7.2.0.v20101020]'
>> are '[org.eclipse.jetty.http_7.2.0.v20101020,
>> javax.servlet_2.5.0.v200910301333,
>> org.eclipse.jetty.util_7.2.0.v20101020,
>> org.eclipse.jetty.xml_7.2.0.v20101020,
>> org.eclipse.jetty.deploy_7.2.0.v20101020,
>> org.eclipse.jetty.continuation_7.2.0.v20101020,
>> org.eclipse.jetty.webapp_7.2.0.v20101020,
>> org.eclipse.jetty.servlet_7.2.0.v20101020,
>> javax.mail.glassfish_1.4.1.v201005082020,
>> org.eclipse.jetty.server_7.2.0.v20101020,
>> org.eclipse.jetty.security_7.2.0.v20101020,
>> org.eclipse.jetty.osgi.boot_7.2.0.v20101020,
>> org.eclipse.jetty.io_7.2.0.v20101020]'
>>> [2010-11-04 15:16:29.331] fs-watcher
>> o.eclipse.virgo.kernel.model.internal.bundle.ModelBundleListener
>> Processing installed event for
>> 'org.eclipse.jetty.osgi.boot:7.2.0.v20101020'
>>> [2010-11-04 15:16:29.342] fs-watcher
>> o.eclipse.virgo.kernel.model.internal.bundle.ModelBundleListener
>> Processing installed event for
>> 'javax.mail.glassfish:1.4.1.v201005082020'
>>> [2010-11-04 15:16:29.348] fs-watcher
>> o.eclipse.virgo.kernel.model.internal.bundle.ModelBundleListener
>> Processing installed event for 'javax.servlet:2.5.0.v200910301333'
>>> [2010-11-04 15:16:29.352] fs-watcher
>> o.eclipse.virgo.kernel.model.internal.bundle.ModelBundleListener
>> Processing installed event for
>> 'org.eclipse.jetty.continuation:7.2.0.v20101020'
>>> [2010-11-04 15:16:29.357] fs-watcher
>> o.eclipse.virgo.kernel.model.internal.bundle.ModelBundleListener
>> Processing installed event for
>> 'org.eclipse.jetty.deploy:7.2.0.v20101020'
>>> [2010-11-04 15:16:29.363] fs-watcher
>> o.eclipse.virgo.kernel.model.internal.bundle.ModelBundleListener
>> Processing installed event for
>> 'org.eclipse.jetty.http:7.2.0.v20101020'
>>> [2010-11-04 15:16:29.368] fs-watcher
>> o.eclipse.virgo.kernel.model.internal.bundle.ModelBundleListener
>> Processing installed event for 'org.eclipse.jetty.io:7.2.0.v20101020'
>>> [2010-11-04 15:16:29.374] fs-watcher
>> o.eclipse.virgo.kernel.model.internal.bundle.ModelBundleListener
>> Processing installed event for
>> 'org.eclipse.jetty.security:7.2.0.v20101020'
>>> [2010-11-04 15:16:29.383] fs-watcher
>> o.eclipse.virgo.kernel.model.internal.bundle.ModelBundleListener
>> Processing installed event for
>> 'org.eclipse.jetty.server:7.2.0.v20101020'
>>> [2010-11-04 15:16:29.388] fs-watcher
>> o.eclipse.virgo.kernel.model.internal.bundle.ModelBundleListener
>> Processing installed event for
>> 'org.eclipse.jetty.servlet:7.2.0.v20101020'
>>> [2010-11-04 15:16:29.395] fs-watcher
>> o.eclipse.virgo.kernel.model.internal.bundle.ModelBundleListener
>> Processing installed event for
>> 'org.eclipse.jetty.util:7.2.0.v20101020'
>>> [2010-11-04 15:16:29.409] fs-watcher
>> o.eclipse.virgo.kernel.model.internal.bundle.ModelBundleListener
>> Processing installed event for
>> 'org.eclipse.jetty.webapp:7.2.0.v20101020'
>>> [2010-11-04 15:16:29.414] fs-watcher
>> o.eclipse.virgo.kernel.model.internal.bundle.ModelBundleListener
>> Processing installed event for 'org.eclipse.jetty.xml:7.2.0.v20101020'
>>> [2010-11-04 15:16:29.442] fs-watcher
>> org.eclipse.virgo.medic.eventlog.default
>> DE0001I Installed bundle 'org.eclipse.jetty.osgi.boot' version
>> '7.2.0.v20101020'.
>>> [2010-11-04 15:16:29.446] fs-watcher
>> o.e.v.k.i.artifact.internal.bundle.BundleThreadContextManager
>> Thread context class loader 'BundleDelegatingClassLoader for [Virgo
>> Kernel Deployer (org.eclipse.virgo.kernel.deployer)]' pushed and set
>> to 'KernelBundleClassLoader:
>> [bundle=org.eclipse.jetty.osgi.boot_7.2.0.v20101020]'
>>> [2010-11-04 15:16:29.446] fs-watcher
>> o.e.v.k.i.artifact.internal.bundle.BundleThreadContextManager
>> Thread context class loader 'KernelBundleClassLoader:
>> [bundle=org.eclipse.jetty.osgi.boot_7.2.0.v20101020]' popped and set
>> to 'BundleDelegatingClassLoader for [Virgo Kernel Deployer
>> (org.eclipse.virgo.kernel.deployer)]'
>>> [2010-11-04 15:16:29.448] fs-watcher
>> o.e.v.k.i.artifact.internal.bundle.BundleThreadContextManager
>> Thread context class loader 'BundleDelegatingClassLoader for [Virgo
>> Kernel Deployer (org.eclipse.virgo.kernel.deployer)]' pushed and set
>> to 'KernelBundleClassLoader:
>> [bundle=org.eclipse.jetty.osgi.boot_7.2.0.v20101020]'
>>> [2010-11-04 15:16:29.449] fs-watcher
>> o.e.v.k.i.artifact.internal.bundle.BundleThreadContextManager
>> Thread context class loader 'KernelBundleClassLoader:
>> [bundle=org.eclipse.jetty.osgi.boot_7.2.0.v20101020]' popped and set
>> to 'BundleDelegatingClassLoader for [Virgo Kernel Deployer
>> (org.eclipse.virgo.kernel.deployer)]'
>>> [2010-11-04 15:16:29.474] fs-watcher
>> o.e.v.k.i.artifact.internal.bundle.BundleThreadContextManager
>> Thread context class loader 'BundleDelegatingClassLoader for [Virgo
>> Kernel Deployer (org.eclipse.virgo.kernel.deployer)]' pushed and set
>> to 'KernelBundleClassLoader:
>> [bundle=org.eclipse.jetty.osgi.boot_7.2.0.v20101020]'
>>> [2010-11-04 15:16:29.475] fs-watcher
>> o.e.v.k.i.artifact.internal.bundle.BundleThreadContextManager
>> Thread context class loader 'KernelBundleClassLoader:
>> [bundle=org.eclipse.jetty.osgi.boot_7.2.0.v20101020]' pushed and set
>> to 'KernelBundleClassLoader:
>> [bundle=org.eclipse.jetty.osgi.boot_7.2.0.v20101020]'
>>> [2010-11-04 15:16:29.475] fs-watcher
>> org.eclipse.virgo.kernel.core.internal.BundleStartTracker
>> Adding signal
>> 'org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact$StateMonitorSignal@5c382de5'
>> for bundle 'org.eclipse.jetty.osgi.boot_7.2.0.v20101020 [17]'
>>> [2010-11-04 15:16:29.475] fs-watcher
>> o.e.v.k.i.artifact.internal.bundle.BundleThreadContextManager
>> Thread context class loader 'KernelBundleClassLoader:
>> [bundle=org.eclipse.jetty.osgi.boot_7.2.0.v20101020]' popped and set
>> to 'KernelBundleClassLoader:
>> [bundle=org.eclipse.jetty.osgi.boot_7.2.0.v20101020]'
>>> [2010-11-04 15:16:29.476] fs-watcher
>> o.e.v.k.i.artifact.internal.bundle.BundleThreadContextManager
>> Thread context class loader 'KernelBundleClassLoader:
>> [bundle=org.eclipse.jetty.osgi.boot_7.2.0.v20101020]' popped and set
>> to 'BundleDelegatingClassLoader for [Virgo Kernel Deployer
>> (org.eclipse.virgo.kernel.deployer)]'
>>> [2010-11-04 15:17:03.707] OSGi Console
>> o.e.v.k.i.a.internal.AtomicInstallArtifactLifecycleListener No
>> atomic parent of bundle 'org.eclipse.jetty.osgi.boot' version
>> '7.2.0.v20101020' in scope 'null' to propagate starting event to
>>> [2010-11-04 15:17:03.711] OSGi Console
>> org.eclipse.virgo.medic.eventlog.default
>> DE0004I Starting bundle 'org.eclipse.jetty.osgi.boot' version
>> '7.2.0.v20101020'.
>>> [2010-11-04 15:17:03.739] OSGi Console System.err
>> No default
>> jetty started.
>>> [2010-11-04 15:17:03.743] OSGi Console
>> org.eclipse.virgo.kernel.core.internal.BundleStartTracker
>> Non-Spring DM powered bundle
>> 'org.eclipse.jetty.osgi.boot_7.2.0.v20101020 [17]' has started.
>> Driving signals
>> '[org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact$StateMonitorSignal@5c382de5]'.
>>> [2010-11-04 15:17:03.743] start-signalling-1
>> org.eclipse.virgo.kernel.core.internal.BundleStartTracker
>> Driving signal
>> 'org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact$StateMonitorSignal@5c382de5'
>>> [2010-11-04 15:17:03.744] start-signalling-1
>> o.e.v.k.i.artifact.internal.bundle.BundleThreadContextManager
>> Thread context class loader
>> 'sun.misc.Launcher$AppClassLoader@138d107f' pushed and set to
>> 'KernelBundleClassLoader:
>> [bundle=org.eclipse.jetty.osgi.boot_7.2.0.v20101020]'
>>> [2010-11-04 15:17:03.744] start-signalling-2
>> org.eclipse.virgo.kernel.core.internal.BundleStartTracker
>> Driving signal
>> 'org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact$StateMonitorSignal@7b5e236a'
>>> [2010-11-04 15:17:03.744] start-signalling-2
>> o.e.v.k.i.artifact.internal.bundle.BundleThreadContextManager
>> Thread context class loader
>> 'org.eclipse.core.runtime.internal.adaptor.ContextFinder@6167436c'
>> pushed and set to 'KernelBundleClassLoader:
>> [bundle=org.eclipse.jetty.osgi.boot_7.2.0.v20101020]'
>>> [2010-11-04 15:17:03.745] start-signalling-2
>> o.e.v.k.i.artifact.internal.bundle.BundleThreadContextManager
>> Thread context class loader 'KernelBundleClassLoader:
>> [bundle=org.eclipse.jetty.osgi.boot_7.2.0.v20101020]' popped and set
>> to 'org.eclipse.core.runtime.internal.adaptor.ContextFinder@6167436c'
>>> [2010-11-04 15:17:03.748] start-signalling-1
>> org.eclipse.virgo.medic.eventlog.default
>> DE0005I Started bundle 'org.eclipse.jetty.osgi.boot' version
>> '7.2.0.v20101020'.
>>> [2010-11-04 15:17:03.749] start-signalling-1
>> o.e.v.k.i.artifact.internal.bundle.BundleThreadContextManager
>> Thread context class loader 'KernelBundleClassLoader:
>> [bundle=org.eclipse.jetty.osgi.boot_7.2.0.v20101020]' popped and set
>> to 'sun.misc.Launcher$AppClassLoader@138d107f'
>>>
>>> What I don't understand is: "No default jetty started".
>>>
>>> I did try an experiment of deploying the Jetty start.jar and then
>> restarting the osgi.boot bundle, but this didn't help.
>>>
>>> Regards,
>>> Glyn
>>>
>>> On 4 Nov 2010, at 14:58, Glyn Normington wrote:
>>>
>>>> So presumably all these except start.jar are what you have in
>> mind. Are these all valid OSGi bundles? If so, I'll try them along
>> with the OSGi boot bundle.
>>>
>>> _______________________________________________
>>> jetty-dev mailing list
>>> jetty-dev@xxxxxxxxxxx <mailto:jetty-dev@xxxxxxxxxxx>
>>> https://dev.eclipse.org/mailman/listinfo/jetty-dev
>>
>> _______________________________________________
>> jetty-dev mailing list
>> jetty-dev@xxxxxxxxxxx <mailto:jetty-dev@xxxxxxxxxxx>
>> https://dev.eclipse.org/mailman/listinfo/jetty-dev
>>
>>
>>
>>
>> _______________________________________________
>> jetty-dev mailing list
>> jetty-dev@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/jetty-dev
>
> --
> Jan Bartel, Webtide LLC | janb@xxxxxxxxxxx | http://www.webtide.com
> _______________________________________________
> jetty-dev mailing list
> jetty-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/jetty-dev