Message Boards
Problem converting 6.2 war version of portlet to 7.2 module
Steve Weiss, modified 3 Years ago.
Problem converting 6.2 war version of portlet to 7.2 module
Regular Member Posts: 106 Join Date: 9/20/11 Recent Posts
We have a number of portlets that were developed for LR 6.2 as WARs. We are now in the process of converting these to modules (using gradle) for LR 7.2. Up until now they have all gone relatively smoothly but I am running into a problem with one that I don't understand. The application compiles without error, but when I deploy it I get the following error:
2020-08-24 17:03:38.149 ERROR [fileinstall-/home/sweiss/Applications/liferay/liferay-dxp-7.2.10.2-sp2/osgi/modules][LogService:93] Error while starting bundle: file:/home/sweiss/Applications/liferay/liferay-dxp-7.2.10.2-sp2/osgi/modules/gov.nasa.hq.mailerform.web.jar
org.osgi.framework.BundleException: Could not resolve module: gov.nasa.hq.mailerform.web [1135]_ Unresolved requirement: Require-Capability: osgi.extender; filter:="(&(osgi.extender=jsp.taglib)(uri=http://java.sun.com/jstl/core))"_ [Sanitized]
at org.eclipse.osgi.container.Module.start(Module.java:444)
at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:428)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1297)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1270)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:524)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:369)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:320)
It appears that this has something to do with the JSPs. If I remove all of the JSPs from the project, so that the module only contains the Java code, it deploys fine. I then add the JSPs back, re-deploy, and I get the same error again. I have already successfully converted several similar portlets to 7.2, this is the only one that has this problem.
2020-08-24 17:03:38.149 ERROR [fileinstall-/home/sweiss/Applications/liferay/liferay-dxp-7.2.10.2-sp2/osgi/modules][LogService:93] Error while starting bundle: file:/home/sweiss/Applications/liferay/liferay-dxp-7.2.10.2-sp2/osgi/modules/gov.nasa.hq.mailerform.web.jar
org.osgi.framework.BundleException: Could not resolve module: gov.nasa.hq.mailerform.web [1135]_ Unresolved requirement: Require-Capability: osgi.extender; filter:="(&(osgi.extender=jsp.taglib)(uri=http://java.sun.com/jstl/core))"_ [Sanitized]
at org.eclipse.osgi.container.Module.start(Module.java:444)
at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:428)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1297)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1270)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:524)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:369)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:320)
It appears that this has something to do with the JSPs. If I remove all of the JSPs from the project, so that the module only contains the Java code, it deploys fine. I then add the JSPs back, re-deploy, and I get the same error again. I have already successfully converted several similar portlets to 7.2, this is the only one that has this problem.
David H Nebinger, modified 3 Years ago.
RE: Problem converting 6.2 war version of portlet to 7.2 module
Liferay Legend Posts: 14915 Join Date: 9/2/06 Recent Posts
Add a dependency to JSTL to your project. I think you have a dependency on the JSTL taglibs but no declared dependency, so the taglib will not be added as the requirement.
Steve Weiss, modified 3 Years ago.
RE: Problem converting 6.2 war version of portlet to 7.2 module
Regular Member Posts: 106 Join Date: 9/20/11 Recent Posts
Thanks David, that did the trick.