Home » Eclipse Projects » Remote Application Platform (RAP) » Deploy plugins separately
Deploy plugins separately [message #1397840] |
Thu, 10 July 2014 08:23 |
r k Messages: 20 Registered: June 2012 |
Junior Member |
|
|
Hello together,
i just want to confirm, if the following idea makes sense:
in case you have a java project compiled in a .war file and you want to add other plugins to it subsequently developed by a third party without affecting the sourcecode in the war.
The new plugins contain functionality related to functions inside the .war file, would it be possible to use e.g. Apache Felix to reload newly developed plugins?
Thanks in advance,
R
Edit: Due to the fact, that the plugins itsself are OSGi bundles, it should be possible to add them manually?
[Updated on: Thu, 10 July 2014 10:18] Report message to a moderator
|
|
| | | | | | | | | | | |
Re: Deploy plugins separa tely [message #1425554 is a reply to message #1425477] |
Wed, 17 September 2014 13:23 |
r k Messages: 20 Registered: June 2012 |
Junior Member |
|
|
For some reason, my auto deploy directory (<JBoss>/deploy/bundle) wont be accepted. The bundles inside this folder are not added to the applications OSGi context.
felix.auto.deploy.dir=bundle
is the configuration.
Regards,
R
Edit: I added the web-console bundle in order to make the web-console available. Therefore I tryied the following:
org.osgi.service.http.port=8888
org.osgi.manager.root=/system/console
manager.root=/system/console
felix.webconsole.manager.root=/system/console
but the web-console is as well not reachable...
[Updated on: Wed, 17 September 2014 14:15] Report message to a moderator
|
|
| | |
Re: Deploy plugins separa tely [message #1426282 is a reply to message #1426191] |
Thu, 18 September 2014 14:06 |
r k Messages: 20 Registered: June 2012 |
Junior Member |
|
|
Hi Markus,
it's horrible. I tried several different cofnigruations and solutions in order to get Apache Felix File Install running, but it wont deploy my bundles.
I have passed the systemproperty
-Dfelix.fileinstall.dir=./bundle,/bundle,bundle
and placed the jar bundles for felix inside the war file (file-install, felix, etc) and deployed it within JBoss.
When I start the shell with telnet, I can see, that fileinstall is active, but I can not see my bundles in there.
Where does the "bundle" auto deploy folder have to be created? It seems not to be enough if it relies in the directory in which the .war file with the felix bundles has been placed.
Do I have to place it somewhere else?
Even if I try to deploy it manually via "install <absolute_or_relative_path_to_bundle>" it is not working and just gives the following error messages:
gogo: BundleException: Error reading bundle content.
so it seems to be the wrong path even if its absolute?
Thank you again for your help...,
R
|
|
|
Re: Deploy plugins separa tely [message #1426434 is a reply to message #1426282] |
Thu, 18 September 2014 18:55 |
Markus rüger Messages: 369 Registered: July 2009 |
Senior Member |
|
|
r k <forums-noreply@xxxxxxxx> wrote:
> Hi Markus,
> it's horrible. I tried several different cofnigruations and solutions in
> order to get Apache Felix File Install running, but it wont deploy my bundles.
> I have passed the systemproperty
> -Dfelix.fileinstall.dir=./bundle,/bundle,bundle
>
> and placed the jar bundles for felix inside the war file (file-install,
> felix, etc) and deployed it within JBoss.
> When I start the shell with telnet, I can see, that fileinstall is
> active, but I can not see my bundles in there.
> Where does the "bundle" auto deploy folder have to be created? It seems
> not to be enough if it relies in the directory in which the .war file
> with the felix bundles has been placed.
>
> Do I have to place it somewhere else?
>
>
> Even if I try to deploy it manually via "install
> <absolute_or_relative_path_to_bundle>" it is not working and just gives
> the following error messages:
> gogo: BundleException: Error reading bundle content.
>
> so it seems to be the wrong path even if its absolute?
>
> Thank you again for your help..., R
Hi, we just point to a directory somwhere outside from the server using
absolute path, i.e. -Dfelix.fileinstall.dir=/home/foo/autoinstall
Then we put our bundle jars there and start jboss with already deployed rap
app including felix fileinstall (this is just one extra bundle, not more).
|
|
| |
Re: Deploy plugins separa tely [message #1426978 is a reply to message #1426934] |
Fri, 19 September 2014 14:02 |
Eclipse User |
|
|
|
No, sorry, no clue on that.
Am 19.09.2014 14:51, schrieb r k:
> Hi Markus,
> I set up the whole server again and newly deployed the war archive
> together with the felix.shell, remote.shell and felix.fileinstall bundles.
> When I start the server now and connect to it via telnet to see the
> bundles which are started, I can see, that all bundles are active except
> from the fileinstall bundle which is in state "STOPPING".
> When I try to start it manually with "start <bundle>" it throws the
> following error:
> "BundleException: Unable to acquire the state change lock for the
> module: osgi.identity; osgi.identity (...)"
>
> Do you have any idea why exactly this bundle does not start properly?
>
> Thanks a lot for your patience, regards, R
|
|
|
Goto Forum:
Current Time: Fri Mar 29 08:24:36 GMT 2024
Powered by FUDForum. Page generated in 0.11349 seconds
|