Forums

angle-left Back

Liferay 7 GA4 + Faces Alloy

MH
Marcus Hiebenga, modified 1 Year ago.

Liferay 7 GA4 + Faces Alloy

New Member Posts: 4 Join Date: 1/11/17 Recent Posts
Does it work correctly?

If I create the hello world example with following maven call:

mvn archetype:generate -DarchetypeGroupId=com.liferay.faces.archetype -DarchetypeArtifactId=com.liferay.faces.archetype.jsf.portlet -DarchetypeVersion=5.0.1 -DgroupId=de.mycompany -DartifactId=de.mycompany.test

The first time I build the war file and deploy it to the clean Liferay Server GA4 it works as it should.

But if I build it a second time an deploy the new war file I get following error message:

10:28:06,826 INFO [BridgeSessionListener:73] Context initialized for contextPath=[/o/de.mycompany.test]
java.lang.NullPointerException
at java.util.ArrayList.<init>(ArrayList.java:177)
at com.sun.faces.application.WebappLifecycleListener.getActiveSessions(WebappLifecycleListener.java:379)
at com.sun.faces.config.ConfigureListener.reload(ConfigureListener.java:544)
at com.sun.faces.config.ConfigureListener.access$700(ConfigureListener.java:122)
at com.sun.faces.config.ConfigureListener$WebConfigResourceMonitor.run(ConfigureListener.java:1101)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

Is this a known bug?
Neil Griffin, modified 1 Year ago.

RE: Liferay 7 GA4 + Faces Alloy

LIFERAY STAFF Liferay Legend Posts: 2540 Join Date: 7/26/05 Recent Posts
Hi Marcus,

I think you are experiencing FACES-3025 which is a benign error that only happens when javax.faces.PROJECT_STAGE=Development, which is set for the sake of convenience in the WEB-INF/web.xml descriptor of the Liferay Faces Alloy archetype.

Kind Regards,

Neil