留言板
Liferay 7 + JSF + Wildfly: Can't deploy faces portlet
Majid Abarghooei,修改在6 年前。
Liferay 7 + JSF + Wildfly: Can't deploy faces portlet
New Member 帖子: 3 加入日期: 17-4-28 最近的帖子
Hello all,
It's 3 days I've been trying to deploy a simple JSF portlet in Liferay 7 (Wildfly 10 bundle) but unfortunately I have not managed to yet. I use following archetype:
and this is the pom.xml
Everything seems ok but when I copy the war file in liferay-home/deploy I get following result (liferay-home/logs/liferay.2017-05-03.log):
It seems that after deploying it removes the portlet and consequently I can't add it to my portal:
07:55:21,199 INFO [fileinstall-/home/Applications/liferay-ce-portal-7.0-ga3/osgi/war][PortletHotDeployListener:364] Unregistering portlets for TestJsfPortlet-10
I really appreciate your comments.
It's 3 days I've been trying to deploy a simple JSF portlet in Liferay 7 (Wildfly 10 bundle) but unfortunately I have not managed to yet. I use following archetype:
# Liferay Portal 7 + JSF 2.2 + Liferay Faces Alloy
mvn archetype:generate \
-DarchetypeGroupId=com.liferay.faces.archetype \
-DarchetypeArtifactId=com.liferay.faces.archetype.alloy.portlet \
-DarchetypeVersion=5.0.1 \
-DgroupId=com.mycompany \
-DartifactId=com.mycompany.my.alloy.portlet
and this is the pom.xml
<!--?xml version="1.0"?-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemalocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelversion>4.0.0</modelversion>
<groupid>com.mycompany</groupid>
<artifactid>TestJsfPortlet</artifactid>
<packaging>war</packaging>
<name>TestJsfPortlet</name>
<version>1.0</version>
<properties>
<faces.api.version>2.2</faces.api.version>
<liferay.faces.bridge.ext.version>5.0.0</liferay.faces.bridge.ext.version>
<liferay.faces.bridge.version>4.0.0</liferay.faces.bridge.version>
<mojarra.version>2.2.13</mojarra.version>
</properties>
<build>
<plugins>
<plugin>
<artifactid>maven-compiler-plugin</artifactid>
<version>3.3</version>
<configuration>
<encoding>UTF-8</encoding>
<source>1.8
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<artifactid>maven-war-plugin</artifactid>
<version>2.3</version>
<configuration>
<filteringdeploymentdescriptors>true</filteringdeploymentdescriptors>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupid>commons-fileupload</groupid>
<artifactid>commons-fileupload</artifactid>
<version>1.3.1</version>
<optional>true</optional>
</dependency>
<dependency>
<groupid>commons-io</groupid>
<artifactid>commons-io</artifactid>
<version>2.4</version>
<optional>true</optional>
</dependency>
<dependency>
<groupid>javax.faces</groupid>
<artifactid>javax.faces-api</artifactid>
<version>2.2</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupid>org.glassfish</groupid>
<artifactid>javax.faces</artifactid>
<version>2.2.13</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupid>com.liferay.faces</groupid>
<artifactid>com.liferay.faces.bridge.ext</artifactid>
<version>5.0.0</version>
</dependency>
<dependency>
<groupid>com.liferay.faces</groupid>
<artifactid>com.liferay.faces.bridge.impl</artifactid>
<version>4.0.0</version>
</dependency>
<dependency>
<groupid>log4j</groupid>
<artifactid>log4j</artifactid>
<version>1.2.14</version>
</dependency>
<dependency>
<groupid>com.liferay.faces</groupid>
<artifactid>com.liferay.faces.alloy</artifactid>
<version>3.0.0</version>
</dependency>
</dependencies>
</project>
Everything seems ok but when I copy the war file in liferay-home/deploy I get following result (liferay-home/logs/liferay.2017-05-03.log):
07:55:09,855 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:252] Processing TestJsfPortlet-1.0.war
07:55:17,517 INFO [fileinstall-/home/Applications/liferay-ce-portal-7.0-ga3/osgi/war][BaseAutoDeployListener:42] Copying portlets for /tmp/20170503075517509SDEFESMF/TestJsfPortlet-1.0.war
07:55:17,535 INFO [fileinstall-/home/Applications/liferay-ce-portal-7.0-ga3/osgi/war][BaseDeployer:873] Deploying TestJsfPortlet-1.0.war
07:55:17,589 INFO [fileinstall-/home/Applications/liferay-ce-portal-7.0-ga3/osgi/war][BaseAutoDeployListener:50] Portlets for /tmp/20170503075517509SDEFESMF/TestJsfPortlet-1.0.war copied successfully
07:55:20,849 INFO [fileinstall-/home/Applications/liferay-ce-portal-7.0-ga3/osgi/war][HotDeployImpl:226] Deploying TestJsfPortlet-10 from queue
07:55:20,849 INFO [fileinstall-/home/Applications/liferay-ce-portal-7.0-ga3/osgi/war][PluginPackageUtil:1006] Reading plugin package for TestJsfPortlet-10
07:55:20,859 INFO [fileinstall-/home/Applications/liferay-ce-portal-7.0-ga3/osgi/war][PortletHotDeployListener:202] Registering portlets for TestJsfPortlet-10
07:55:20,973 INFO [fileinstall-/home/Applications/liferay-ce-portal-7.0-ga3/osgi/war][PortletHotDeployListener:331] 1 portlet for TestJsfPortlet-10 is available for use
07:55:21,199 INFO [fileinstall-/home/Applications/liferay-ce-portal-7.0-ga3/osgi/war][PortletHotDeployListener:364] Unregistering portlets for TestJsfPortlet-10
07:55:21,209 INFO [fileinstall-/home/Applications/liferay-ce-portal-7.0-ga3/osgi/war][PortletHotDeployListener:394] 1 portlet for TestJsfPortlet-10 was unregistered
07:55:21,210 INFO [fileinstall-/home/Applications/liferay-ce-portal-7.0-ga3/osgi/war][PluginPackageUtil:1006] Reading plugin package for TestJsfPortlet-10
It seems that after deploying it removes the portlet and consequently I can't add it to my portal:
07:55:21,199 INFO [fileinstall-/home/Applications/liferay-ce-portal-7.0-ga3/osgi/war][PortletHotDeployListener:364] Unregistering portlets for TestJsfPortlet-10
I really appreciate your comments.
Juan Gonzalez,修改在6 年前。
RE: Liferay 7 + JSF + Wildfly: Can't deploy faces portlet
Liferay Legend 帖子: 3089 加入日期: 08-10-28 最近的帖子
Did you try setting this new property value as mentioned in below link?
https://issues.liferay.com/browse/LPS-65488?focusedCommentId=766528&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-766528
https://issues.liferay.com/browse/LPS-65488?focusedCommentId=766528&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-766528
Majid Abarghooei,修改在6 年前。
RE: Liferay 7 + JSF + Wildfly: Can't deploy faces portlet
New Member 帖子: 3 加入日期: 17-4-28 最近的帖子Juan Gonzalez:
Did you try setting this new property value as mentioned in below link?
https://issues.liferay.com/browse/LPS-65488?focusedCommentId=766528&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-766528
Hi Juan,
Thanks for your reply. No I have not set this property (module.framework.properties.org.osgi.framework.bootdelegation) and I don't exactly know what it is?
Juan Gonzalez,修改在6 年前。
RE: Liferay 7 + JSF + Wildfly: Can't deploy faces portlet (答复)
Liferay Legend 帖子: 3089 加入日期: 08-10-28 最近的帖子Majid Abarghooei:
Juan Gonzalez:Did you try setting this new property value as mentioned in below link?
https://issues.liferay.com/browse/LPS-65488?focusedCommentId=766528&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-766528
Hi Juan,
Thanks for your reply. No I have not set this property (module.framework.properties.org.osgi.framework.bootdelegation) and I don't exactly know what it is?
It's needed in order to JSF portlets work properly in Liferay 7 under Wildfly, until Liferay 7 GA4 is released.
Please set that property in your portal-ext.properties, restart Liferay and try to redeploy.
Majid Abarghooei,修改在6 年前。
RE: Liferay 7 + JSF + Wildfly: Can't deploy faces portlet
New Member 帖子: 3 加入日期: 17-4-28 最近的帖子
Thanks a lot Juan. IT WORKS LIKE A CHARM
Juan Gonzalez,修改在6 年前。
RE: Liferay 7 + JSF + Wildfly: Can't deploy faces portlet
Liferay Legend 帖子: 3089 加入日期: 08-10-28 最近的帖子Majid Abarghooei:
Thanks a lot Juan. IT WORKS LIKE A CHARM
Great! Remember to remove that property when GA4 is released and is upgraded in your environment.