Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: OSGi fragment module disappears when one of dependent modules is deploy
I try customizing User Admin JSP pages. I just want to heavily reduce navigation screens. My idea is to create new navigation screens and then force JSP pages to use them. The navigation screen framework is described here: https://dev.liferay.com/develop/tutorials/-/knowledge_base/7-1/screen-navigation-framework
My navigations screens are in module A. My customized JSP pages are in OSGi fragment module B.
When A is deployed, it is activated.
When B is deployed, both A and user-admin-web module are stopped, but only user-admin-web is started again.
In this stage gogo shell diag complains there is missing dependency (A module)
When A is redeployed, it is activated, but B disappears without any log message.
Tested several times.
So there is no way now to have both modules running at once.
LR GA1 on tomcat 9 (standard bundle).
Any idea?
A fragment bundle will stop the host bundle it is bound to, but any bundles that are dependent upon it will also get stopped while it restarts.
Since B is a fragment bundle, I don't understand what "B disappears without any log message" means. B will not be any kind of active bundle, so it won't show as active in the gogo shell...
Thanks David.
> When A is redeployed, it is activated, but B disappears without any log message.
I meant it disappear from the list of bundles in gogo shell, suddenly, and I have no idea why as there isn't any related message in the LR log.
However, today, after restarting the server, everything works as expected. So I can see both A and B modules running at once. It works even after redeploying any of these modules.
It is crazy.
Powered by Liferay™