Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Deploying Bridge.war on Tomcat
Deploying Bridge.war on Tomcat [message #107755] Wed, 09 April 2008 05:01 Go to next message
Setya Nugdjaja is currently offline Setya NugdjajaFriend
Messages: 567
Registered: July 2009
Senior Member
Hi all,

I deployed bridge.war on Tomcat when I first type 'ss' in OSGI console it
shows the following output:

osgi> ss

Framework is launched.

id State Bundle
0 ACTIVE org.eclipse.osgi_3.3.0.200704022148
Fragments=10
1 ACTIVE org.eclipse.equinox.common_3.3.0.200704022148
2 ACTIVE org.eclipse.update.configurator_3.2.100.v20070322
3 ACTIVE
org.eclipse.equinox.http.servletbridge_1.0.0.200704022148
4 ACTIVE org.eclipse.equinox.http.registry_1.0.0.200704022148
8 ACTIVE org.eclipse.equinox.http.servlet_1.0.0.200704022148
9 ACTIVE org.eclipse.equinox.registry_3.3.0.v20070318
10 RESOLVED org.eclipse.equinox.servletbridge.extensionbundle_1.0.0
Master=0
11 RESOLVED org.eclipse.osgi.services_3.1.100.200704022148

osgi>

Then I start bundle id 11 :

osgi> start 11

osgi> ss

Framework is launched.

id State Bundle
0 ACTIVE org.eclipse.osgi_3.3.0.200704022148
Fragments=10
1 ACTIVE org.eclipse.equinox.common_3.3.0.200704022148
2 ACTIVE org.eclipse.update.configurator_3.2.100.v20070322
3 ACTIVE
org.eclipse.equinox.http.servletbridge_1.0.0.200704022148
4 ACTIVE org.eclipse.equinox.http.registry_1.0.0.200704022148
8 ACTIVE org.eclipse.equinox.http.servlet_1.0.0.200704022148
9 ACTIVE org.eclipse.equinox.registry_3.3.0.v20070318
10 RESOLVED org.eclipse.equinox.servletbridge.extensionbundle_1.0.0
Master=0
11 ACTIVE org.eclipse.osgi.services_3.1.100.200704022148

osgi>

But when I start bundle id 10 it throws exception:

osgi> start 10
org.osgi.framework.BundleException: A fragment bundle cannot be started:
update@plugins/org.eclipse.
equinox.servletbridge.extensionbundle_1.0.0.jar [10]
at
org.eclipse.osgi.framework.internal.core.BundleFragment.star tWorker(BundleFragment.java:2
24)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:260)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:252)
at
org.eclipse.osgi.framework.internal.core.FrameworkCommandPro vider._start(FrameworkCommand
Provider.java:260)
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(FrameworkCom
mandInterpreter.java:145)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.do command(FrameworkConsole.java
:294)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.co nsole(FrameworkConsole.java:2
79)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.ru n(FrameworkConsole.java:214)
at java.lang.Thread.run(Unknown Source)

osgi>

I tried both Tomcat 5 & 6 with the same result.

What's wrong ?

Any help would be greatly appreciated.

Best Regards,

Setya
Re: Deploying Bridge.war on Tomcat [message #107797 is a reply to message #107755] Wed, 09 April 2008 15:27 Go to previous messageGo to next message
Simon Kaegi is currently offline Simon KaegiFriend
Messages: 381
Registered: July 2009
Senior Member
Nothing is wrong.
The servlet bridge extension bundle does not get started since its a
fragment.
You also don't need to start the org.eclipse.osgi.services bundle as it just
provides packages and does not have an Activator.
-Simon


"Setya" <jsetya@gmail.com> wrote in message
news:c83046039898453605dabbdf508267b8$1@www.eclipse.org...
> Hi all,
>
> I deployed bridge.war on Tomcat when I first type 'ss' in OSGI console it
> shows the following output:
>
> osgi> ss
>
> Framework is launched.
>
> id State Bundle
> 0 ACTIVE org.eclipse.osgi_3.3.0.200704022148
> Fragments=10
> 1 ACTIVE org.eclipse.equinox.common_3.3.0.200704022148
> 2 ACTIVE org.eclipse.update.configurator_3.2.100.v20070322
> 3 ACTIVE
> org.eclipse.equinox.http.servletbridge_1.0.0.200704022148
> 4 ACTIVE org.eclipse.equinox.http.registry_1.0.0.200704022148
> 8 ACTIVE org.eclipse.equinox.http.servlet_1.0.0.200704022148
> 9 ACTIVE org.eclipse.equinox.registry_3.3.0.v20070318
> 10 RESOLVED
> org.eclipse.equinox.servletbridge.extensionbundle_1.0.0
> Master=0
> 11 RESOLVED org.eclipse.osgi.services_3.1.100.200704022148
>
> osgi>
>
> Then I start bundle id 11 :
>
> osgi> start 11
>
> osgi> ss
>
> Framework is launched.
>
> id State Bundle
> 0 ACTIVE org.eclipse.osgi_3.3.0.200704022148
> Fragments=10
> 1 ACTIVE org.eclipse.equinox.common_3.3.0.200704022148
> 2 ACTIVE org.eclipse.update.configurator_3.2.100.v20070322
> 3 ACTIVE
> org.eclipse.equinox.http.servletbridge_1.0.0.200704022148
> 4 ACTIVE org.eclipse.equinox.http.registry_1.0.0.200704022148
> 8 ACTIVE org.eclipse.equinox.http.servlet_1.0.0.200704022148
> 9 ACTIVE org.eclipse.equinox.registry_3.3.0.v20070318
> 10 RESOLVED
> org.eclipse.equinox.servletbridge.extensionbundle_1.0.0
> Master=0
> 11 ACTIVE org.eclipse.osgi.services_3.1.100.200704022148
>
> osgi>
>
> But when I start bundle id 10 it throws exception:
>
> osgi> start 10
> org.osgi.framework.BundleException: A fragment bundle cannot be started:
> update@plugins/org.eclipse.
> equinox.servletbridge.extensionbundle_1.0.0.jar [10]
> at
> org.eclipse.osgi.framework.internal.core.BundleFragment.star tWorker(BundleFragment.java:2
> 24)
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:260)
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:252)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkCommandPro vider._start(FrameworkCommand
> Provider.java:260)
> 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(FrameworkCom
> mandInterpreter.java:145)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.do command(FrameworkConsole.java
> :294)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.co nsole(FrameworkConsole.java:2
> 79)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.ru n(FrameworkConsole.java:214)
> at java.lang.Thread.run(Unknown Source)
>
> osgi>
>
> I tried both Tomcat 5 & 6 with the same result.
>
> What's wrong ?
>
> Any help would be greatly appreciated.
>
> Best Regards,
>
> Setya
>
Re: Deploying Bridge.war on Tomcat [message #107848 is a reply to message #107797] Thu, 10 April 2008 03:55 Go to previous message
Setya Nugdjaja is currently offline Setya NugdjajaFriend
Messages: 567
Registered: July 2009
Senior Member
Simon,

Thank you for the clarification.

Yes it's indeed no problem.
I was just wondering why not all bundle is in active state when I first
invoke 'ss' command.

Regards,

Setya
Previous Topic:same osgi application in differnt tomcat contexts
Next Topic:P2 and installing DeltaPack?
Goto Forum:
  


Current Time: Sat Oct 16 23:16:55 GMT 2021

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

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

Back to the top