Deploying an osgi bundle (jsp hook) in liferay 7

2019-07-27 07:47发布

Created an osgi bundle (jsp hook) in liferay. Using the server tab in Liferay Workspace environment, added the bundle to configured server. Checked the osgi shell with

lb -s mytest.hook
START LEVEL 20
ID|State      |Level|Symbolic name
455|Installed  |    1|mystest.hook (1.0.0.201603221133)

The state is "Installed". Not sure how to proceed further in terms of the deployment. How will the State change to "Active" ?

2条回答
孤傲高冷的网名
2楼-- · 2019-07-27 08:25

I was able to get it deployed successfully by actually putting it to the deploy folder, from which the Liferay's deployer kick's in and does the rest. So basically the deployer doesn't get notified when you do it from the server tab and add you project for deployment.

查看更多
Lonely孤独者°
3楼-- · 2019-07-27 08:36

Try the following command:

start 455

Probably your bundle does not resolve correctly. You should get a an exception that tells you the reason after calling start.

查看更多
登录 后发表回答