Problems when deploying plug-in with p2

117 views
Skip to first unread message

Ivy Michels

unread,
Jun 12, 2013, 10:38:52 AM6/12/13
to idem...@googlegroups.com
Hi all,


I'm facing a little problem when trying to deploy my new plugins using the p2 update feature, because they do not start automatically.

Steps that i did:

1 - created a plug-in project (singleton, without activator because i don't have 2pack)
2 - created a feature that includes the plugin project
3 - exported with buckminster using "site.p2" (i tryied this step using Export from Eclipse too)
4 - Created a script updateMyPlugins.sh on the server (based on update.sh)
5 - run the updateMyPlugins.sh with correct parameters
6 - The installation is fine and everything looks OK

But when I run the application server, the plug-in is not working as expected.

Then using Felix or telnet OSGi console I can see that my plug-in status is "RESOLVED". To fix that, I need to manually start the plug-in, then reload all.

By doing this everything works OK...

I don't know if I'm doing something wrong, but someone can give a hint on how making this plug-in starts automatically when installed using p2 and/or when the application server is started.

Thanks!

Ken Longnan

unread,
Jun 12, 2013, 11:06:10 AM6/12/13
to idempiere
I just follow it by creating p2.inf under META-INF folder in bundle, add one line config:
instructions.configure = markStarted(started: true)

But by this way, after installed by p2, I have to restart idempiere-server to have bundle working. Don't need manually start the plug-in, but you have to restart whole idempiere-server.

A question for Ivy, how can you see your bundle installed by p2 display in Felix or in Osgi console without restart whole idempiere-server?

A question for all, how can I deplay and start the bundle installed by p2 WITHOUT restart whole idempiere-server? (I know how to install and start it by Felix and OSGi console in runtime, but the question is for installing by p2)

BR,

Ken


2013/6/12 Ivy Michels <ivy.m...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "iDempiere" group.
To unsubscribe from this group and stop receiving emails from it, send an email to idempiere+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages