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: Problem converting 6.2 war version of portlet to 7.2 module
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.
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.
Thanks David, that did the trick.
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™