掲示板
Liferau 7 PortletProps not work
7年前 に Montej Shah によって更新されました。
Liferau 7 PortletProps not work
Junior Member 投稿: 48 参加年月日: 15/02/18 最新の投稿
Hi all,
I have created portlet in liferay 7.
I have used below code in controller.
This code require com.liferay.util.java module.
I have import the com.liferay.util.java-2.2.2.jar as module in liferay 7.
Also add dependency as below in my maven project.
When i add portlet in to page it give below error.
How to resolve this?
Is there any other way to get properties from liferay 7's portlet.properties file?
I have created portlet in liferay 7.
I have used below code in controller.
PortletProps.get("subject.list.id")
This code require com.liferay.util.java module.
I have import the com.liferay.util.java-2.2.2.jar as module in liferay 7.
Also add dependency as below in my maven project.
<dependency>
<groupId>com.liferay.portal</groupId>
<artifactId>com.liferay.util.java</artifactId>
<version>2.2.2</version>
<scope>provided</scope>
</dependency>
When i add portlet in to page it give below error.
12:37:42,138 ERROR [http-nio-8080-exec-5][status_jsp:950] com.liferay.portal.kernel.portlet.PortletContainerException: com.liferay.portal.kernel.portlet.PortletContainerException: javax.servlet.ServletException: java.lang.NoClassDefFoundError: Could not initialize class com.liferay.util.portlet.PortletProps
How to resolve this?
Is there any other way to get properties from liferay 7's portlet.properties file?
7年前 に Tejas Kanani によって更新されました。
RE: Liferau 7 PortletProps not work
New Member 投稿: 1 参加年月日: 16/12/23 最新の投稿
Montej,
Were you able to pass through the issue you were facing while using
If yes, would you please share the solution for it here ?
Thanks.
Were you able to pass through the issue you were facing while using
PortletProps.get("subject.list.id")?
If yes, would you please share the solution for it here ?
Thanks.
6年前 に Aravinth Kumar によって更新されました。
RE: Liferau 7 PortletProps not work
Regular Member 投稿: 152 参加年月日: 13/06/26 最新の投稿
Hi,
If you solved this issue already can you please post your solution over here. Do anyone have same type of issue ?
Thanks in Advance.
Regards,
Aravinth
If you solved this issue already can you please post your solution over here. Do anyone have same type of issue ?
Thanks in Advance.
Regards,
Aravinth
6年前 に mahesh gade によって更新されました。
RE: Liferau 7 PortletProps not work
Junior Member 投稿: 44 参加年月日: 13/12/05 最新の投稿
Hi friends ,
Any one have found the solution for this issue.
Thanks.
Any one have found the solution for this issue.
Thanks.
6年前 に mouli siripurapu によって更新されました。
RE: Liferau 7 PortletProps not work
New Member 投稿: 5 参加年月日: 14/02/10 最新の投稿
Add this line into bnd.bnd file:
Include-Resource: \
@com.liferay.util.java-2.0.1.jar
Update the dependency in bulid.gradle file
compileOnly group: "com.liferay.portal", name: "com.liferay.util.java", version: "2.0.1"
And then Refresh->Depoly....
Include-Resource: \
@com.liferay.util.java-2.0.1.jar
Update the dependency in bulid.gradle file
compileOnly group: "com.liferay.portal", name: "com.liferay.util.java", version: "2.0.1"
And then Refresh->Depoly....