Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Marcus Hiebenga
Liferay 7 GA4 + Faces Alloy
July 13, 2017 3:34 AM
Answer

Marcus Hiebenga

Rank: New Member

Posts: 4

Join Date: January 11, 2017

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
RE: Liferay 7 GA4 + Faces Alloy
July 13, 2017 8:06 AM
Answer

Neil Griffin

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2499

Join Date: July 26, 2005

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