掲示板

Jsf2 cdi portlet error on liferay 6.2

thumbnail
9年前 に Rahul Saraswat によって更新されました。

Jsf2 cdi portlet error on liferay 6.2

Junior Member 投稿: 62 参加年月日: 13/02/26 最新の投稿
Hi everyone,

I am trying to deploy jsf2-cdi-portlet error on liferay 6.2 but getting an exception. below is the stacktrace :

16:25:11,829 INFO [org.jboss.weld.ClassLoading] (MSC service thread 1-4) catching: org.jboss.weld.resources.spi.ResourceLoadingException: Error loading class com.liferay.cdi.portlet.bridge.CDIBeanManagerUtil
at org.jboss.weld.resources.ClassTransformer.loadClass(ClassTransformer.java:152) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.bootstrap.BeanDeployer.addClass(BeanDeployer.java:86) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.bootstrap.BeanDeployer.addClasses(BeanDeployer.java:115) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.bootstrap.BeanDeployment.createBeans(BeanDeployment.java:171) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:336) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.as.weld.WeldContainer.start(WeldContainer.java:82) [jboss-as-weld-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.weld.services.WeldService.start(WeldService.java:76) [jboss-as-weld-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_25]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_25]
at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_25]
Caused by: java.lang.NoClassDefFoundError: javax/enterprise/context/spi/Contextual
at java.lang.Class.getDeclaredFields0(Native Method) [rt.jar:1.7.0_25]
at java.lang.Class.privateGetDeclaredFields(Class.java:2387) [rt.jar:1.7.0_25]
at java.lang.Class.getDeclaredFields(Class.java:1796) [rt.jar:1.7.0_25]
at org.jboss.weld.util.reflection.SecureReflections$4.work(SecureReflections.java:102) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

I have referred the link http://www.liferay.com/community/wiki/-/wiki/Main/Developing+JSF+Portlets+with+CDI. It says that it is compatible with Liferay Portal 6.1.1/6.1.20 (JBoss AS). Can anyone please let me know if this works on liferay 6.2 as well?

Thanks
Rahul Saraswat
thumbnail
9年前 に Neil Griffin によって更新されました。

RE: Jsf2 cdi portlet error on liferay 6.2 (回答)

Liferay Legend 投稿: 2655 参加年月日: 05/07/27 最新の投稿
Hi Rahul,

The jsf2-cdi-portlet.war demo .war was built with the "-p tomcat" Maven Profile when it was released to Maven Central.

If you want to deploy it to JBoss AS 7, then you will need to Build Liferay Faces From Source with the "-p jboss" Maven Profile.

For Liferay Portal 6.2, I recommend that you click on the "Download Zip" button for version 3.2.4-ga5 at GitHub.

Kind Regards,

Neil
thumbnail
9年前 に Rahul Saraswat によって更新されました。

RE: Jsf2 cdi portlet error on liferay 6.2

Junior Member 投稿: 62 参加年月日: 13/02/26 最新の投稿
Thanks a lot Neil. It worked. thanks for the quick reply.

Best Regards
Rahul Saraswat
thumbnail
9年前 に Neil Griffin によって更新されました。

RE: Jsf2 cdi portlet error on liferay 6.2 (回答)

Liferay Legend 投稿: 2655 参加年月日: 05/07/27 最新の投稿
Hi Rahul,

I'm glad to hear that it is working for you now. emoticon

Kind Regards,

Neil