Problem using a ResourceBundleLoaderProblem using a ResourceBundleLoaderhttps://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=1180402612024-03-29T04:53:55Z2024-03-29T04:53:55ZRE: Problem using a ResourceBundleLoaderCharalampos Chrysikopouloshttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1182150372020-01-07T11:43:52Z2020-01-07T11:43:52Z<html><head></head><body>I manage to fix the problem: Looking at the source code of the portal in the <br><br><pre><code>/portal-kernel/src/com/liferay/portal/kernel/util/packageinfo</code></pre><br><br>I can see the version of the package.In the <br><pre><code>/liferay-portal-7.2.10-ga1/tomcat-9.0.17/lib/ext</code></pre> <br><br>folder I found the portal-kernel.jar and its version was <br><br><pre><code>Bundle-Version: 4.35.3</code></pre><br><br>So, I had the wrong version in the kernel module. Changing the property<br><br><pre><code>liferay.workspace.target.platform.version</code></pre><br><br>from 7.2.0 to 7.2.1 and setting the dependency of the kernel to <br><br><pre><code>compileOnly group: "com.liferay.portal", name: "com.liferay.portal.kernel"
</code></pre><br>solved the problem.</body></html>Charalampos Chrysikopoulos2020-01-07T11:43:52ZRE: Problem using a ResourceBundleLoaderCharalampos Chrysikopouloshttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1181877472020-01-02T12:02:40Z2020-01-02T12:02:40ZSame error in other threads: <br />- <a href="https://liferay.dev/forums/-/message_boards/message/118187295">https://liferay.dev/forums/-/message_boards/message/118187295</a><br />- <a href="https://liferay.dev/forums/-/message_boards/message/110853402">https://liferay.dev/forums/-/message_boards/message/110853402</a>Charalampos Chrysikopoulos2020-01-02T12:02:40ZProblem using a ResourceBundleLoaderCharalampos Chrysikopouloshttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1180402602019-12-10T11:04:22Z2019-12-10T11:04:22Z<html><head></head><body>Hello,I created a MVC portlet, and in the module I created a CustomAggregateResourceBundleLoader that implements the ResourceBundleLoader (described in <a href="https://github.com/liferay/liferay-blade-samples/tree/7.0/liferay-workspace/overrides/resource-bundle-override">https://github.com/liferay/liferay-blade-samples/tree/7.0/liferay-workspace/overrides/resource-bundle-override</a>). When I deploy the portlet an exception is thrown <br><pre><code>org.osgi.framework.BundleException: Could not resolve module: somepackage.app [1384]_ &nbsp;Unresolved requirement: Import-Package: com.liferay.portal.kernel.util; version="[9.5.0,9.6.0)"_ [Sanitized]
&nbsp;&nbsp; &nbsp;at org.eclipse.osgi.container.Module.start(Module.java:444)
&nbsp;&nbsp; &nbsp;at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:428)
&nbsp;&nbsp; &nbsp;at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1263)
&nbsp;&nbsp; &nbsp;at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1236)
&nbsp;&nbsp; &nbsp;at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:520)
&nbsp;&nbsp; &nbsp;at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:365)
&nbsp;&nbsp; &nbsp;at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:316)</code></pre><br> <br>I am using liferay 7.2 DXP with fp2.<br>The build.gradle is like following <br><br><pre><code>dependencies {
&nbsp;&nbsp; compileOnly group: "com.liferay.portal", name: "com.liferay.portal.kernel", version: "4.13.0"
&nbsp;&nbsp; compileOnly group: "com.liferay.portal", name: "com.liferay.util.taglib"
&nbsp;&nbsp; compileOnly group: "javax.portlet", name: "portlet-api"
&nbsp;&nbsp; compileOnly group: "javax.servlet", name: "javax.servlet-api"
&nbsp;&nbsp; compileOnly group: "jstl", name: "jstl"
&nbsp;&nbsp; compileOnly group: "org.osgi", name: "org.osgi.service.component.annotations"
&nbsp;&nbsp; compileOnly group: "com.liferay", name: "com.liferay.petra.string"
}
</code></pre>In gogo shell in the headers of my module I get:<br><pre><code>&nbsp;Import-Package = com.liferay.petra.string;version="[1.4,2)",com.liferay.portal.kernel.language;version="[7.5,8)",com.liferay.portal.kernel.portlet.bridges.mvc;version="[2.0,3)",com.liferay.portal.kernel.util;version="[9.5,9.6)",javax.portlet,javax.servlet;version="[3.0,4)",javax.servlet.http;version="[3