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
Overriding Calendar Portlet
Hi all.
I trying to override Calendar Portlet in Liferay 7.1 but I am facing an issue related to dependencies.
I had done it to previous versions of calendar, but now we are facing this issue everytime I try to start the portlet:
in build.gradle I have this:
And this in bnd.bnd
But it does not work. I tried changing compile by compileOnly or compileInclude, no one worked for me.
Anyone can help me with this? any little help would be appreciated!
Thanks in advance.
Regards
I trying to override Calendar Portlet in Liferay 7.1 but I am facing an issue related to dependencies.
I had done it to previous versions of calendar, but now we are facing this issue everytime I try to start the portlet:
ERROR [fileinstall-C:/liferay-dxp-7.1.10.1-sp1/osgi/modules][org_apache_felix_fileinstall:97] Error while starting bundle: LPKG-Override::C:\liferay-dxp-7.1.10.1-sp1\osgi\marketplace\override\com.liferay.calendar.web.jar
org.osgi.framework.BundleException: Could not resolve module: com.liferay.calendar.web [1020]_ Unresolved requirement: Import-Package: com.liferay.calendar.notification.impl_ [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:1258)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1230)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:512)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:361)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:312)
in build.gradle I have this:
compile group: "com.liferay", name: "com.liferay.calendar.web", version: "2.0.28"
compile group: "com.liferay", name: "com.liferay.calendar.api", version: "3.0.6"
compile group: "com.liferay", name: "com.liferay.calendar.service", version: "3.0.20"
And this in bnd.bnd
Include-Resource: @com.liferay.calendar.web-2.0.28.jar
But it does not work. I tried changing compile by compileOnly or compileInclude, no one worked for me.
Anyone can help me with this? any little help would be appreciated!
Thanks in advance.
Regards
You don't have to include the resource, the calendar is already deployed.
The com.liferay.calendar.notification.impl package is likely not exported by any module, therefore your module cannot import it.
The com.liferay.calendar.notification.impl package is likely not exported by any module, therefore your module cannot import it.
First of all thanks a lot four your help, as always.
The fact that that package is likely not imported by any module, is something new? because I was able to do it in previous versions and I have never had that problem, so maybe I am importing something in a wrong way.
Thanks again!
The fact that that package is likely not imported by any module, is something new? because I was able to do it in previous versions and I have never had that problem, so maybe I am importing something in a wrong way.
Thanks again!
Well, you have to find the module that contains the package and then check its bnd.bnd file to see if the package is exported.
They have changed things in 7.1, but I don't know if this particular package export is one of those.
They have changed things in 7.1, but I don't know if this particular package export is one of those.
I was checking and the issue is related to Calendar Service module. I am doing something wrong when try to include it in gradle, because I have error everytime I try to use anything ot that class. Modules which are causing the error are exported in bnd file so the error I think it should be in the gradle configuration.
I will continue investigating in order to solve it.
Thanks again for your help.
Regards
I will continue investigating in order to solve it.
Thanks again for your help.
Regards
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™