问题
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