掲示板

Primefaces sample JSF Portlet on Liferay7 with WilfFly is unregistered

7年前 に Maximilian Franke によって更新されました。

Primefaces sample JSF Portlet on Liferay7 with WilfFly is unregistered

New Member 投稿: 4 参加年月日: 15/12/03 最新の投稿
The sample Primefaces JSF Portlet on WilfFly direktly unregister. See The liferay.log:
09:37:43,835 INFO  [pool-11-thread-4][BaseAutoDeployListener:42] Copying portlets for C:\Users\MAXIMI~1.FRA\AppData\Local\Temp\20170223093743817OIGBVSTR\com.mycompany.my.primefaces.portlet.war
09:37:44,349 INFO  [pool-11-thread-4][BaseDeployer:873] Deploying com.mycompany.my.primefaces.portlet.war
09:37:45,181 INFO  [pool-11-thread-4][BaseAutoDeployListener:50] Portlets for C:\Users\MAXIMI~1.FRA\AppData\Local\Temp\20170223093743817OIGBVSTR\com.mycompany.my.primefaces.portlet.war copied successfully
09:37:53,431 INFO  [pool-11-thread-1][HotDeployImpl:226] Deploying commycompanymyprimefacesportlet from queue
09:37:53,432 INFO  [pool-11-thread-1][PluginPackageUtil:1006] Reading plugin package for commycompanymyprimefacesportlet
09:37:53,443 INFO  [pool-11-thread-1][PortletHotDeployListener:202] Registering portlets for commycompanymyprimefacesportlet
09:37:53,726 INFO  [pool-11-thread-1][PortletHotDeployListener:331] 1 portlet for commycompanymyprimefacesportlet is available for use
09:37:54,281 INFO  [pool-11-thread-1][PortletHotDeployListener:364] Unregistering portlets for commycompanymyprimefacesportlet
09:37:54,291 INFO  [pool-11-thread-1][PortletHotDeployListener:394] 1 portlet for commycompanymyprimefacesportlet was unregistered
09:37:54,294 INFO  [pool-11-thread-1][PluginPackageUtil:1006] Reading plugin package for commycompanymyprimefacesportlet


Here my steps to create the Portlet:

First i build my project with following archetype:
# Liferay Portal 7 + JSF 2.2 + PrimeFaces
mvn archetype:generate \
  -DarchetypeGroupId=com.liferay.faces.archetype \
  -DarchetypeArtifactId=com.liferay.faces.archetype.primefaces.portlet \
  -DarchetypeVersion=5.0.1 \
  -DgroupId=com.mycompany \
  -DartifactId=com.mycompany.my.primefaces.portlet
  


Then I imported the project to my Eclispe (liferay-ide-eclipse-windows-x64-3.1.0-m2) as Gradle-Project
and built it with gradle. Here is my untouched generated build.gradle file:

apply plugin: 'war'

repositories {
     mavenCentral()
}

dependencies {
    compile group: 'org.primefaces', name: 'primefaces', version:'6.0'
    compile group: 'commons-fileupload', name: 'commons-fileupload', version:'1.3.1'
    compile group: 'commons-io', name: 'commons-io', version:'2.4'
    compile group: 'com.liferay.faces', name: 'com.liferay.faces.bridge.ext', version:'5.0.0'
    compile group: 'com.liferay.faces', name: 'com.liferay.faces.bridge.impl', version:'4.0.0'
    compile group: 'log4j', name: 'log4j', version:'1.2.14'
    runtime group: 'org.glassfish', name: 'javax.faces', version:'2.2.13'
    providedCompile group: 'javax.faces', name: 'javax.faces-api', version:'2.2'
}


Afterwards I deployed the war on liferay-ce-portal-wildfly-7.0-ga3:

In the Gogo Shell the module is active:
 489|Active     |    1|com.mycompany.my.primefaces.portlet (1.0.0)

But the portlet is unregistered, the the logs above.

The Portlet of the same war deployed successfully and works fine on liferay-ce-portal-tomcat-7.0-ga3.

Did I do something wrong?

Thanks for your help!
7年前 に Maximilian Franke によって更新されました。

RE: Primefaces sample JSF Portlet on Liferay7 with WilfFly is unregistered

New Member 投稿: 4 参加年月日: 15/12/03 最新の投稿
The same happens with the PrimeFaces Users Portlet 3.0.0 (compatible w/Liferay Portal 7.0.x)

12:43:05,286 INFO  [fileinstall-C:/Users/maximilian.franke/Downloads/liferay-ce-portal-wildfly-7.0-ga3-20160804222206210/liferay-ce-portal-7.0-ga3/osgi/war][PortletHotDeployListener:202] Registering portlets for primefaces-users-portlet
12:43:05,395 INFO  [fileinstall-C:/Users/maximilian.franke/Downloads/liferay-ce-portal-wildfly-7.0-ga3-20160804222206210/liferay-ce-portal-7.0-ga3/osgi/war][PortletHotDeployListener:331] 1 portlet for primefaces-users-portlet is available for use
12:43:05,686 INFO  [fileinstall-C:/Users/maximilian.franke/Downloads/liferay-ce-portal-wildfly-7.0-ga3-20160804222206210/liferay-ce-portal-7.0-ga3/osgi/war][PortletHotDeployListener:364] Unregistering portlets for primefaces-users-portlet
12:43:05,697 INFO  [fileinstall-C:/Users/maximilian.franke/Downloads/liferay-ce-portal-wildfly-7.0-ga3-20160804222206210/liferay-ce-portal-7.0-ga3/osgi/war][PortletHotDeployListener:394] 1 portlet for primefaces-users-portlet was unregistered
12:43:05,697 INFO  [fileinstall-C:/Users/maximilian.franke/Downloads/liferay-ce-portal-wildfly-7.0-ga3-20160804222206210/liferay-ce-portal-7.0-ga3/osgi/war][PluginPackageUtil:1006] Reading plugin package for primefaces-users-portlet
thumbnail
7年前 に Kyle Joseph Stiemann によって更新されました。

RE: Primefaces sample JSF Portlet on Liferay7 with WilfFly is unregistered (回答)

Liferay Master 投稿: 760 参加年月日: 13/01/14 最新の投稿
Hi Maximillian,
You may be running into LPS-65488. Please try applying the workaround mentioned in the issue to your portal-ext.properties file and see if that fixes the problem. If not, please post the output of the verbose logs (under liferay-portal-7.0-ce-ga3-wildfly/logs/liferay.${date}.log) when the portlet fails to deploy.

- Kyle
7年前 に Maximilian Franke によって更新されました。

RE: Primefaces sample JSF Portlet on Liferay7 with WilfFly is unregistered

New Member 投稿: 4 参加年月日: 15/12/03 最新の投稿
This works. Thank you!
thumbnail
7年前 に Kyle Joseph Stiemann によって更新されました。

RE: Primefaces sample JSF Portlet on Liferay7 with WilfFly is unregistered

Liferay Master 投稿: 760 参加年月日: 13/01/14 最新の投稿
Glad I could help. Thanks for using Liferay Faces!

- Kyle