Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Deploying Eclipse OSGI Plugin Project to a Running Equinox
Deploying Eclipse OSGI Plugin Project to a Running Equinox [message #52526] Sun, 06 November 2005 03:50 Go to next message
Cameron Taggart is currently offline Cameron TaggartFriend
Messages: 28
Registered: July 2009
Junior Member
I started up Equinox from Eclipse 3.2 M3:
java -jar org.eclipse.osgi_3.2.0.v20051030.jar -console

I downloaded, installed, and started two bundles from Oscar's Bundle
Repository.
http://oscar-osgi.sourceforge.net/
install reference:file:/projects/osgi/obr/servlet.jar
install reference:file:/projects/osgi/obr/http.jar

I created a new OSGI Plugin Project in Eclipse 3.2M3. I want to create
a servlet application bundle. What is the easiest way to deploy it to
my running Equinox? Do I have to export the jar every time?

Thanks,
Cameron
(Yes, I'm an OSGI newbie.)
Re: Deploying Eclipse OSGI Plugin Project to a Running Equinox [message #52553 is a reply to message #52526] Sun, 06 November 2005 20:05 Go to previous messageGo to next message
Cameron Taggart is currently offline Cameron TaggartFriend
Messages: 28
Registered: July 2009
Junior Member
I was trying to follow the steps in the "Coding bundles on the Slug
(demo movie)", but I missed a Equinox startup switch "-dev bin" which I
finally noticed in the debug demo movie. Those are excellent demo
moview by-the-way! Would it be possible to "cat ./equinox" for us from
the first demo?

In the Slug Debug Demo, here is the command which I copied down:
cat ./equinox-debug
.../j9/j9/j9
-Xrunjdwp:transport=dt_socket,suspend=y,server=y,address=loc alhost:8082
-Xint -cp /public/eclipse/plugins/org.eclipse.osgi_3.2.0.jar
org.eclipse.core.runtime.adaptor.EclipseStarter -console -noexit -dev bin

What does org.eclipse.core.runtime.adaptor.EclipseStarter do?

It seams to be working now:
-----------------------------------------------------

viscosity:/projects/osgi ctaggart$ java -jar
org.eclipse.osgi_3.2.0.v20051030.jar -console -dev bin

osgi> ss

Framework is launched.

id State Bundle
0 ACTIVE system.bundle_3.2.0.v20051030

osgi> install reference:file:/projects/osgi/test
Bundle id is 5

osgi> ss

Framework is launched.

id State Bundle
0 ACTIVE system.bundle_3.2.0.v20051030
5 INSTALLED test_1.0.0

osgi> start 5
Starting to listen for service events.

osgi> ss

Framework is launched.

id State Bundle
0 ACTIVE system.bundle_3.2.0.v20051030
5 ACTIVE test_1.0.0

osgi> stop 5
Stopped listening for service events.

osgi> ss

Framework is launched.

id State Bundle
0 ACTIVE system.bundle_3.2.0.v20051030
5 RESOLVED test_1.0.0

osgi> uninstall 5

osgi> ss

Framework is launched.

id State Bundle
0 ACTIVE system.bundle_3.2.0.v20051030

osgi> close
-----------------------------------------------------

Thanks,
Cameron


Cameron Taggart wrote:
> I started up Equinox from Eclipse 3.2 M3:
> java -jar org.eclipse.osgi_3.2.0.v20051030.jar -console
>
> I downloaded, installed, and started two bundles from Oscar's Bundle
> Repository.
> http://oscar-osgi.sourceforge.net/
> install reference:file:/projects/osgi/obr/servlet.jar
> install reference:file:/projects/osgi/obr/http.jar
>
> I created a new OSGI Plugin Project in Eclipse 3.2M3. I want to create
> a servlet application bundle. What is the easiest way to deploy it to
> my running Equinox? Do I have to export the jar every time?
>
> Thanks,
> Cameron
> (Yes, I'm an OSGI newbie.)
Re: Deploying Eclipse OSGI Plugin Project to a Running Equinox [message #53252 is a reply to message #52553] Wed, 16 November 2005 02:01 Go to previous message
Eclipse UserFriend
Originally posted by: jeff_nospam_mcaffer.ca.ibm.com

"Cameron Taggart" <cameron.taggart@gmail.com> wrote in message
news:dklnmh$poc$1@news.eclipse.org...
> I was trying to follow the steps in the "Coding bundles on the Slug
> (demo movie)", but I missed a Equinox startup switch "-dev bin" which I
> finally noticed in the debug demo movie. Those are excellent demo
> moview by-the-way! Would it be possible to "cat ./equinox" for us from
> the first demo?

It is the same as equinox-debug but without the debug stuff. (remove all VM
args other than -cp)

> In the Slug Debug Demo, here is the command which I copied down:
> cat ./equinox-debug
> ../j9/j9/j9
> -Xrunjdwp:transport=dt_socket,suspend=y,server=y,address=loc alhost:8082
> -Xint -cp /public/eclipse/plugins/org.eclipse.osgi_3.2.0.jar
> org.eclipse.core.runtime.adaptor.EclipseStarter -console -noexit -dev bin
>
> What does org.eclipse.core.runtime.adaptor.EclipseStarter do?

EclipseStarter is an embedded lauchner. It has a main() that starts the
framework and kicks off the whole show. Normal Eclipse uses the Main in
startup.jar that does some extra classpath tweaks, command line processing
etc and the calls some API on EclipseStarter.

Glad to see you got it going. Look forward to you reporting some cool stuff
:-)

Jeff

> It seams to be working now:
> -----------------------------------------------------
>
> viscosity:/projects/osgi ctaggart$ java -jar
> org.eclipse.osgi_3.2.0.v20051030.jar -console -dev bin
>
> osgi> ss
>
> Framework is launched.
>
> id State Bundle
> 0 ACTIVE system.bundle_3.2.0.v20051030
>
> osgi> install reference:file:/projects/osgi/test
> Bundle id is 5
>
> osgi> ss
>
> Framework is launched.
>
> id State Bundle
> 0 ACTIVE system.bundle_3.2.0.v20051030
> 5 INSTALLED test_1.0.0
>
> osgi> start 5
> Starting to listen for service events.
>
> osgi> ss
>
> Framework is launched.
>
> id State Bundle
> 0 ACTIVE system.bundle_3.2.0.v20051030
> 5 ACTIVE test_1.0.0
>
> osgi> stop 5
> Stopped listening for service events.
>
> osgi> ss
>
> Framework is launched.
>
> id State Bundle
> 0 ACTIVE system.bundle_3.2.0.v20051030
> 5 RESOLVED test_1.0.0
>
> osgi> uninstall 5
>
> osgi> ss
>
> Framework is launched.
>
> id State Bundle
> 0 ACTIVE system.bundle_3.2.0.v20051030
>
> osgi> close
> -----------------------------------------------------
>
> Thanks,
> Cameron
>
>
> Cameron Taggart wrote:
> > I started up Equinox from Eclipse 3.2 M3:
> > java -jar org.eclipse.osgi_3.2.0.v20051030.jar -console
> >
> > I downloaded, installed, and started two bundles from Oscar's Bundle
> > Repository.
> > http://oscar-osgi.sourceforge.net/
> > install reference:file:/projects/osgi/obr/servlet.jar
> > install reference:file:/projects/osgi/obr/http.jar
> >
> > I created a new OSGI Plugin Project in Eclipse 3.2M3. I want to create
> > a servlet application bundle. What is the easiest way to deploy it to
> > my running Equinox? Do I have to export the jar every time?
> >
> > Thanks,
> > Cameron
> > (Yes, I'm an OSGI newbie.)
Previous Topic:Is there any Tutorial for migrating a RCP Standalone APP to Exquinox?
Next Topic:With 3.2M3, CANNOT export and import the same package
Goto Forum:
  


Current Time: Fri Apr 19 18:55:02 GMT 2024

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

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

Back to the top