Deploying an osgi bundle (jsp hook) in liferay 7

末鹿安然 提交于 2019-12-24 17:30:01

问题


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" ?


回答1:


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.




回答2:


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.



来源:https://stackoverflow.com/questions/36157832/deploying-an-osgi-bundle-jsp-hook-in-liferay-7

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!