Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Platform - User Assistance (UA) » Infocenter as war file - dynamic plugin update
Infocenter as war file - dynamic plugin update [message #474173] Fri, 08 August 2008 17:22 Go to next message
Tim Stephenson is currently offline Tim StephensonFriend
Messages: 18
Registered: July 2009
Junior Member
Hi,

I have a question about the dynamic loading of plugins when running the
infocenter as a war file. I'm running Tomcat 6 and my administrator holds
all the server controls such as when it is restarted, security etc. I just
have file system access to the eclipse directory within the webapp in
order to be able to update the plugins.

But when i add new plugins, how can i get them picked up without having to
get my administrator to clear out the 'work' directory where all the OSGi
configuration is and restart the server?

thanks in advance
tim
Re: Infocenter as war file - dynamic plugin update [message #474177 is a reply to message #474173] Tue, 12 August 2008 16:50 Go to previous messageGo to next message
Eric Roberts is currently offline Eric RobertsFriend
Messages: 24
Registered: July 2009
Junior Member
See this page of the Equinox project

http://www.eclipse.org/equinox/server/http_in_container.php

You need to enable framework controls in the web.xml file. Once you've done
that you can hit the following URL to redeploy eclipse inside Tomcat

http://<server>:<port>/<help webapp name>/sp_redeploy

For example

http://localhost::8080/help/sp_redeploy

One thing you need to watch out for here is to make sure that your plugin
manifest file has the correct information

Bundle-ManifestVersion: 2
Bundle-Version: 1.0.0
Bundle-Localization: plugin
Bundle-SymbolicName: com.foobar.doc; singleton:=true

Most importantly, the Bundle-SymbolicName needs to be the name of your
plugin. This will cause your plugins to be deleted and then redeployed to
the work directory. If you don't have this, the sp_redeploy will simply
ignore your custom doc plugins and newer version will not get deployed.

Eric
"Tim Stephenson" <tstephen@tibco.com> wrote in message
news:c041b43215ca4a6f4a8594199d044769$1@www.eclipse.org...
> Hi,
> I have a question about the dynamic loading of plugins when running the
> infocenter as a war file. I'm running Tomcat 6 and my administrator holds
> all the server controls such as when it is restarted, security etc. I just
> have file system access to the eclipse directory within the webapp in
> order to be able to update the plugins.
> But when i add new plugins, how can i get them picked up without having to
> get my administrator to clear out the 'work' directory where all the OSGi
> configuration is and restart the server?
> thanks in advance
> tim
Re: Infocenter as war file - dynamic plugin update [message #474231 is a reply to message #474177] Wed, 13 August 2008 11:42 Go to previous messageGo to next message
Tim Stephenson is currently offline Tim StephensonFriend
Messages: 18
Registered: July 2009
Junior Member
Thanks. I figured out I could do the same with the Tomcat manager
commands, though obviously they apply to all web-apps so I will look into
the sp_ commands as that may be a better way.
Re: Infocenter as war file - dynamic plugin update [message #474232 is a reply to message #474177] Thu, 14 August 2008 20:39 Go to previous messageGo to next message
Peter Desjardins is currently offline Peter DesjardinsFriend
Messages: 21
Registered: July 2009
Junior Member
Eric Roberts wrote:

> You need to enable framework controls in the web.xml file. Once you've done
> that you can hit the following URL to redeploy eclipse inside Tomcat
>
> http://<server>:<port>/<help webapp name>/sp_redeploy

That looks like what I need. I cannot hot redeploy my WAR infocenter.
The application redeploys but server continues to serve the old HTML files.

If I configure the server with enabled framework controls, is there any
way to restrict who can give those commands? I'm exposing the
infocenter to the internet. Will anyone be able to give the sp_stop
command?

Thanks.

Peter
Re: Infocenter as war file - dynamic plugin update [message #474241 is a reply to message #474232] Fri, 15 August 2008 15:23 Go to previous message
Eric Roberts is currently offline Eric RobertsFriend
Messages: 24
Registered: July 2009
Junior Member
That I don't know the answer to. I suppose anyone can run that command.

Eric
"Peter Desjardins" <peter.desjardins.us@gmail.com> wrote in message
news:g82557$a91$1@build.eclipse.org...
> Eric Roberts wrote:
>
>> You need to enable framework controls in the web.xml file. Once you've
>> done that you can hit the following URL to redeploy eclipse inside Tomcat
>>
>> http://<server>:<port>/<help webapp name>/sp_redeploy
>
> That looks like what I need. I cannot hot redeploy my WAR infocenter. The
> application redeploys but server continues to serve the old HTML files.
>
> If I configure the server with enabled framework controls, is there any
> way to restrict who can give those commands? I'm exposing the infocenter
> to the internet. Will anyone be able to give the sp_stop command?
>
> Thanks.
>
> Peter
Re: Infocenter as war file - dynamic plugin update [message #619322 is a reply to message #474173] Tue, 12 August 2008 16:50 Go to previous message
Eric Roberts is currently offline Eric RobertsFriend
Messages: 24
Registered: July 2009
Junior Member
See this page of the Equinox project

http://www.eclipse.org/equinox/server/http_in_container.php

You need to enable framework controls in the web.xml file. Once you've done
that you can hit the following URL to redeploy eclipse inside Tomcat

http://<server>:<port>/<help webapp name>/sp_redeploy

For example

http://localhost::8080/help/sp_redeploy

One thing you need to watch out for here is to make sure that your plugin
manifest file has the correct information

Bundle-ManifestVersion: 2
Bundle-Version: 1.0.0
Bundle-Localization: plugin
Bundle-SymbolicName: com.foobar.doc; singleton:=true

Most importantly, the Bundle-SymbolicName needs to be the name of your
plugin. This will cause your plugins to be deleted and then redeployed to
the work directory. If you don't have this, the sp_redeploy will simply
ignore your custom doc plugins and newer version will not get deployed.

Eric
"Tim Stephenson" <tstephen@tibco.com> wrote in message
news:c041b43215ca4a6f4a8594199d044769$1@www.eclipse.org...
> Hi,
> I have a question about the dynamic loading of plugins when running the
> infocenter as a war file. I'm running Tomcat 6 and my administrator holds
> all the server controls such as when it is restarted, security etc. I just
> have file system access to the eclipse directory within the webapp in
> order to be able to update the plugins.
> But when i add new plugins, how can i get them picked up without having to
> get my administrator to clear out the 'work' directory where all the OSGi
> configuration is and restart the server?
> thanks in advance
> tim
Re: Infocenter as war file - dynamic plugin update [message #619383 is a reply to message #474177] Wed, 13 August 2008 11:42 Go to previous message
Tim Stephenson is currently offline Tim StephensonFriend
Messages: 18
Registered: July 2009
Junior Member
Thanks. I figured out I could do the same with the Tomcat manager
commands, though obviously they apply to all web-apps so I will look into
the sp_ commands as that may be a better way.
Re: Infocenter as war file - dynamic plugin update [message #619385 is a reply to message #474177] Thu, 14 August 2008 20:39 Go to previous message
Peter Desjardins is currently offline Peter DesjardinsFriend
Messages: 21
Registered: July 2009
Junior Member
Eric Roberts wrote:

> You need to enable framework controls in the web.xml file. Once you've done
> that you can hit the following URL to redeploy eclipse inside Tomcat
>
> http://<server>:<port>/<help webapp name>/sp_redeploy

That looks like what I need. I cannot hot redeploy my WAR infocenter.
The application redeploys but server continues to serve the old HTML files.

If I configure the server with enabled framework controls, is there any
way to restrict who can give those commands? I'm exposing the
infocenter to the internet. Will anyone be able to give the sp_stop
command?

Thanks.

Peter
Re: Infocenter as war file - dynamic plugin update [message #619394 is a reply to message #474232] Fri, 15 August 2008 15:23 Go to previous message
Eric Roberts is currently offline Eric RobertsFriend
Messages: 24
Registered: July 2009
Junior Member
That I don't know the answer to. I suppose anyone can run that command.

Eric
"Peter Desjardins" <peter.desjardins.us@gmail.com> wrote in message
news:g82557$a91$1@build.eclipse.org...
> Eric Roberts wrote:
>
>> You need to enable framework controls in the web.xml file. Once you've
>> done that you can hit the following URL to redeploy eclipse inside Tomcat
>>
>> http://<server>:<port>/<help webapp name>/sp_redeploy
>
> That looks like what I need. I cannot hot redeploy my WAR infocenter. The
> application redeploys but server continues to serve the old HTML files.
>
> If I configure the server with enabled framework controls, is there any
> way to restrict who can give those commands? I'm exposing the infocenter
> to the internet. Will anyone be able to give the sp_stop command?
>
> Thanks.
>
> Peter
Previous Topic:Infocenter customization and WAR files
Next Topic:Does the infocenter provides a remote API to get context hep
Goto Forum:
  


Current Time: Thu Apr 25 09:50:51 GMT 2024

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

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

Back to the top