Infocenter as war file - dynamic plugin update [message #474173] |
Fri, 08 August 2008 13:22  |
Eclipse User |
|
|
|
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 #474241 is a reply to message #474232] |
Fri, 15 August 2008 11:23  |
Eclipse User |
|
|
|
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 12:50  |
Eclipse User |
|
|
|
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 #619385 is a reply to message #474177] |
Thu, 14 August 2008 16:39  |
Eclipse User |
|
|
|
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 11:23  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.04588 seconds