Foros de discusión

Plugin SDK 6.2 fails with Richfaces

Christophe Noel, modificado hace 10 años.

Plugin SDK 6.2 fails with Richfaces

Junior Member Mensajes: 99 Fecha de incorporación: 28/09/12 Mensajes recientes
Dear all,

When using the Liferay Plugin SDK 6.2.0 (on Liferay 6.2.0), I get (with any portlet), the following exception when deployed.

Do you have any idea about the issue ?

janv. 03, 2014 11:34:31 AM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! duplicate key: class org.richfaces.validator.SelectLabelValueValidator
	at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:276)
	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4937)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
	at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:656)
	at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1635)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:744)
Caused by: com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! duplicate key: class org.richfaces.validator.SelectLabelValueValidator
	at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:376)
	at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:216)
	... 13 more


Thanks.
Christophe Noel, modificado hace 10 años.

RE: Plugin SDK 6.2 fails with Richfaces

Junior Member Mensajes: 99 Fecha de incorporación: 28/09/12 Mensajes recientes
More exactly, Liferay itself generates its own JAR in WEB-INF/lib/ ! So most of the libraries are replicated !!
I don't know if it is an expected behaviour, but anyway, this is not in line with the Plugin SDK.
thumbnail
Juan Gonzalez, modificado hace 10 años.

RE: Plugin SDK 6.2 fails with Richfaces

Liferay Legend Mensajes: 3089 Fecha de incorporación: 28/10/08 Mensajes recientes
Hi Christophe,

did you create that portlet using Liferay IDE? In that case, what version did you use?

Thanks.
Christophe Noel, modificado hace 10 años.

RE: Plugin SDK 6.2 fails with Richfaces

Junior Member Mensajes: 99 Fecha de incorporación: 28/09/12 Mensajes recientes
Hello,

Yes I have used Liferay IDE 1.6.2.

Christophe.
thumbnail
Vernon Singleton, modificado hace 10 años.

RE: Plugin SDK 6.2 fails with Richfaces

Expert Mensajes: 315 Fecha de incorporación: 14/01/13 Mensajes recientes
Christophe Noel:
Yes I have used Liferay IDE 1.6.2.

Hi Christophe,

I have been using Liferay IDE 2.0.0.201312200205-ga1 on Eclipse Kepler, and I have not been seeing this issue when deploying portlets to Liferay Portal 6.2.0-ga1.

Maybe try with that version, and let us know how that goes.

- Vernon
Christophe Noel, modificado hace 10 años.

RE: Plugin SDK 6.2 fails with Richfaces

Junior Member Mensajes: 99 Fecha de incorporación: 28/09/12 Mensajes recientes
Hello Vernon,

Ok thanks, I will test asap.
thumbnail
Juan Gonzalez, modificado hace 10 años.

RE: Plugin SDK 6.2 fails with Richfaces

Liferay Legend Mensajes: 3089 Fecha de incorporación: 28/10/08 Mensajes recientes
Hi Christophe,

use latest version from Liferay IDE Downloads (now 2.1.0). It solves some other issues.