Message Boards

Bundle STARTED/STOPPED until server crash

Václav Suchánek, modified 3 Years ago.

Bundle STARTED/STOPPED until server crash

Junior Member Posts: 26 Join Date: 8/15/18 Recent Posts
Hello,

I hit an issue with module redeployment.

I followed up this tutorial: https://help.liferay.com/hc/en-us/articles/360017881152-JSP-Overrides-Using-OSGi-Fragments
-> How to create JSP override module.
And as an inspiration was this example: https://github.com/liferay/liferay-blade-samples/tree/7.3/maven/overrides/module-jsp-override

I have created this kind of module, build it and deploy it. After deploying I'm expecting a module will starts: "STARTED com.liferay.asset.tags.selector.web_3.0.9 [15061]". But a lot of modules (depending on overridden module) just throw STARTED/STOPPED over and over again to the eternity. The only chance how to fix it/workaround it is to restart web server. But it is a little bit unacceptable in the production environment.

Repeating STARTED/STOPPED of bundles in console looks like this:


An interesting thing is that only 3 modules will run into this problem.
1) comment-taglib https://github.com/liferay/liferay-portal/tree/7.3.3-ga4/modules/apps/comment/comment-taglib
I'm using this in bnd.bnd:
Bundle-Name: com.domain.comment.taglib.jsp.override
Bundle-SymbolicName: com.domain.comment.taglib.jsp.override
Bundle-Version: 1.0.0
Fragment-Host: com.liferay.comment.taglib;bundle-version="3.0.9"
-jsp: *.jsp,*.jspf
-plugin.bundle: com.liferay.ant.bnd.resource.bundle.ResourceBundleLoaderAnalyzerPlugin
-plugin.jsp: com.liferay.ant.bnd.jsp.JspAnalyzerPlugin
-plugin.sass: com.liferay.ant.bnd.sass.SassAnalyzerPlugin
-sass: *
-sources: true
2) frontend-taglib https://github.com/liferay/liferay-portal/tree/7.3.3-ga4/modules/apps/frontend-taglib/frontend-taglib
I'm using this in bnd.bnd:
Bundle-Name: com.domain.frontend.taglib.vertical.card.jsp.override
Bundle-SymbolicName: com.domain.frontend.taglib.vertical.card.jsp.override
Bundle-Version: 1.0.0
Fragment-Host: com.liferay.frontend.taglib;bundle-version="4.0.15"
-jsp: *.jsp,*.jspf
-plugin.bundle: com.liferay.ant.bnd.resource.bundle.ResourceBundleLoaderAnalyzerPlugin
-plugin.jsp: com.liferay.ant.bnd.jsp.JspAnalyzerPlugin
-plugin.sass: com.liferay.ant.bnd.sass.SassAnalyzerPlugin
-sass: *
-sources: true
3) frontend-editor https://github.com/liferay/liferay-portal/tree/7.3.3-ga4/modules/apps/frontend-editor/frontend-editor-ckeditor-web
I'm using this in bnd.bnd:
Bundle-Name: com.domain.alloyeditor.plugin.suptroubleshoot
Bundle-SymbolicName: com.domain.alloyeditor.plugin.suptroubleshoot
Bundle-Version: 1.0.0
Fragment-Host: com.liferay.frontend.editor.ckeditor.web;bundle-version="4.0.11"
An the other JSP overrides working fine (like login-jsp-override).

Tested on:
Liferay 7.3.3 GA4 (https://releases-cdn.liferay.com/portal/7.3.3-ga4/liferay-ce-portal-tomcat-7.3.3-ga4-20200701015330959.tar.gz)
Server version: Apache Tomcat/9.0.33
OS Name:  Windows 10
JVM Version:    1.8.0_144-b01
PostgreSQL 
Maven workspace
IDE: IntelliJ IDEA 2020.1.3 (Ultimate Edition) Build #IU-201.8538.31, built on July 7, 2020

Has anyone encountered this problem please?

Thanks in advance.

Vaclav