Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » getting started with eclipse server-side
getting started with eclipse server-side [message #56836] Sat, 14 January 2006 01:17 Go to next message
Jim DAnjou is currently offline Jim DAnjouFriend
Messages: 25
Registered: July 2009
Junior Member
I am trying out the server-side package. I got it to work under Tomcat and
tried out the various control URL's (sp_*). Very cool and fast!

So I thought I would register my own "Hello World" servlet to see if it
would work. The servlet is registered using the
org.eclipse.equinox.servlet.ext.servlets
extension point.

When I start my server the bundle representing my servlet is not listed in
the OSGI console.

The jar'ed plugin has been deployed to the Equinox install directory:
...work\Catalina\localhost\bridge\platform\plugins

I also requested that it be started in the config.ini

And, of course, trying to run the servlet yield returns a 404

The log did not indicate that it could not find the bundle to start (as it
does with org.eclipse.update.configurator)

Any suggestions, please?

---------------------------------------
Also...

org.eclipse.update.configurator was not included in the bridge.war. Any
reason why not? I see that the config.ini is expecting it. Where I am
going would involve lots of bundles and I would like this bundle to manage
the installation.

Thanks so much.

Jim D'Anjou
Re: getting started with eclipse server-side [message #56864 is a reply to message #56836] Sat, 14 January 2006 03:41 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: skaegi.sympatico.ca

Thanks Jim,

My bad.
The missing update.configurator explains several unusual emails I've
received this week.
I've updated the bridge.war on the web site now.

--
With the update.configurator installed your problem should go away however
what you did should have worked.

From your description of the problem I suspect you're seeing a synch issue
between the config.ini in your webapp and the one in the servlet context
temp dir. You might try an "sp_redploy" as this will force a re-copy of the
contents of WEB-INF/platform before starting up again.

-Simon


"Jim D'Anjou" <danjou@us.ibm.com> wrote in message
news:028a2eac1a69b6bc4bc1b11e0724e2cb$1@www.eclipse.org...
> I am trying out the server-side package. I got it to work under Tomcat and
> tried out the various control URL's (sp_*). Very cool and fast!
>
> So I thought I would register my own "Hello World" servlet to see if it
> would work. The servlet is registered using the
> org.eclipse.equinox.servlet.ext.servlets
> extension point.
>
> When I start my server the bundle representing my servlet is not listed in
> the OSGI console.
>
> The jar'ed plugin has been deployed to the Equinox install directory:
> ..work\Catalina\localhost\bridge\platform\plugins
>
> I also requested that it be started in the config.ini
>
> And, of course, trying to run the servlet yield returns a 404
>
> The log did not indicate that it could not find the bundle to start (as it
> does with org.eclipse.update.configurator)
>
> Any suggestions, please?
>
> ---------------------------------------
> Also...
>
> org.eclipse.update.configurator was not included in the bridge.war. Any
> reason why not? I see that the config.ini is expecting it. Where I am
> going would involve lots of bundles and I would like this bundle to manage
> the installation.
>
> Thanks so much.
>
> Jim D'Anjou
>
>
>
>
Re: getting started with eclipse server-side [message #56890 is a reply to message #56864] Mon, 16 January 2006 23:46 Go to previous messageGo to next message
Jim DAnjou is currently offline Jim DAnjouFriend
Messages: 25
Registered: July 2009
Junior Member
Thank you. My HelloWorld servlet spawned by OSGI-eclipse worked!
Re: getting started with eclipse server-side [message #56968 is a reply to message #56836] Tue, 17 January 2006 10:19 Go to previous messageGo to next message
Martin Schikowski is currently offline Martin SchikowskiFriend
Messages: 19
Registered: July 2009
Junior Member
hello,
>
> When I start my server the bundle representing my
> servlet is not listed in
> the OSGI console.

how do you get the osgi console running? Can you connect to a port opened by the bridge servlet?

> The jar'ed plugin has been deployed to the Equinox
> install directory:
> ..work\Catalina\localhost\bridge\platform\plugins
>
> I also requested that it be started in the config.ini
>
> And, of course, trying to run the servlet yield
> returns a 404
>
> The log did not indicate that it could not find the
> bundle to start (as it
> does with org.eclipse.update.configurator)
>
> Any suggestions, please?

beside the synch problem solved by a redeploy I recognized a similar problem when explicitly declaring the bundles to run in the config.ini:
when tomcat is running the osgi.bundles are stored into system properties. When you try to change the config.ini the system property osgi.bundles is already set and won't be resetted. So whether or not you try to redeploy the osgi framework and you don't have the update.configurator located in the plugins directory new bundles won't be recognized explicitly added in the config.ini.

I don't know whether the per instance configuration of the framework (https://bugs.eclipse.org/bugs/show_bug.cgi?id=105851) will correctly handle this.

regards
martin
Re: getting started with eclipse server-side [message #56995 is a reply to message #56968] Tue, 17 January 2006 14:17 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: skaegi.sympatico.ca

> how do you get the osgi console running? Can you connect to a port opened
by the bridge servlet?
By default the console is connected on stdin/out of the main process.
e.g. if you launch from the shell you should see a ">osgi" at which point
you can run the various console commands

> When you try to change the config.ini the system property osgi.bundles is
already set and won't be resetted.
Yes you're right here. I originally viewed any changed to the actual webapp
as requiring a restart.
The redeploy interaction isn't sufficient in this case
e.g. To update config.ini you really need to remove the context temp dir (or
sp_redploy and then restart the server)

> I don't know whether the per instance configuration of the framework
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=105851)
> will correctly handle this.
Definitely;)

-Simon
Re: getting started with eclipse server-side [message #57017 is a reply to message #56995] Tue, 17 January 2006 15:04 Go to previous messageGo to next message
Martin Schikowski is currently offline Martin SchikowskiFriend
Messages: 19
Registered: July 2009
Junior Member
hello,
> > how do you get the osgi console running? Can you
> connect to a port opened
> by the bridge servlet?
> By default the console is connected on stdin/out of
> the main process.

ok, when I start with
java -jar plugins/org.eclipse.osgi_3.2.0.v20051212a.jar -console
then I can manage bundles from stdin/out.

> e.g. if you launch from the shell you should see a
> ">osgi" at which point
> you can run the various console commands

But how to do it when I try to launch tomcat and I want to start the console for a specific bundled webapp, which started a osgi framework.

I really don't know how this could work.

>> I don't know whether the per instance configuration of the framework
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=105851)
>> will correctly handle this.
> Definitely;)
good. When would this per instance configuration and maybe the reflection solution for the singleton-factory methods be adopted to head?

thank you very much and regards
martin
Re: getting started with eclipse server-side [message #57043 is a reply to message #56995] Tue, 17 January 2006 15:11 Go to previous message
Martin Schikowski is currently offline Martin SchikowskiFriend
Messages: 19
Registered: July 2009
Junior Member
hello once again,

I've just found out how to enable the osgi console... the tomcat bootstrap command was wrong.

martin
Previous Topic:equinox on the server-side
Next Topic:eclipse server-side startup questions
Goto Forum:
  


Current Time: Fri Apr 26 21:53:56 GMT 2024

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

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

Back to the top