Vista combinada Visión Plana Vista de árbol
Discusiones [ Anterior | Siguiente ]
toggle
Mahesh Rudrachar
IceFaces1-Portlet Demo error on JBoss 7.1.1
9 de enero de 2013 10:15
Respuesta

Mahesh Rudrachar

Ranking: New Member

Mensajes: 1

Fecha de incorporación: 25 de agosto de 2010

Mensajes recientes

Hi Niel,

Referred your example of an "ICEfaces 1.8 portlet in Liferay 6.1.1" (Icefaces1-portlet demo) it is working fine in Liferay 6.1.1 bundled with Tomcat, but unfortunately throwing error in Liferay 6.1.1 bundled with JBoss 7.1.1.

It is throwing an exception as follows:

23:34:20,248 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed to start service jboss.deployment.unit."icefaces1-portlet-2.1.0-ga1.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."icefaces1-portlet-2.1.0-ga1.war".POST_MODULE: Failed to process phase POST_MODULE of deployment "icefaces1-portlet-2.1.0-ga1.war"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [rt.jar:1.7.0_09]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.7.0_09]
at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_09]
Caused by: java.lang.RuntimeException: Error getting reflective information for class com.liferay.faces.bridge.context.BridgeContextImpl with ClassLoader ModuleClassLoader for Module "deployment.icefaces1-portlet-2.1.0-ga1.war:main" from Service Module Loader
at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:70) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.ee.metadata.MethodAnnotationAggregator.runtimeAnnotationInformation(MethodAnnotationAggregator.java:58)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.handleAnnotations(InterceptorAnnotationProcessor.java:85)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:70)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:55)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
... 5 more
Caused by: java.lang.NoClassDefFoundError: Ljavax/portlet/PortletConfig;
at java.lang.Class.getDeclaredFields0(Native Method) [rt.jar:1.7.0_09]
at java.lang.Class.privateGetDeclaredFields(Unknown Source) [rt.jar:1.7.0_09]
at java.lang.Class.getDeclaredFields(Unknown Source) [rt.jar:1.7.0_09]
at org.jboss.as.server.deployment.reflect.ClassReflectionIndex.<init>(ClassReflectionIndex.java:57) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:66) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
... 10 more
Caused by: java.lang.ClassNotFoundException: javax.portlet.PortletConfig from [Module "deployment.icefaces1-portlet-2.1.0-ga1.war:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)
... 15 more

23:34:20,288 INFO [org.jboss.as.server] (DeploymentScanner-threads - 1) JBAS015870: Deploy of deployment "icefaces1-portlet-2.1.0-ga1.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"icefaces1-portlet-2.1.0-ga1.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"icefaces1-portlet-2.1.0-ga1.war\".POST_MODULE: Failed to process phase POST_MODULE of deployment \"icefaces1-portlet-2.1.0-ga1.war\""}}
23:34:20,288 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 1) JBAS014774: Service status report
JBAS014777: Services which failed to start: service jboss.deployment.unit."icefaces1-portlet-2.1.0-ga1.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."icefaces1-portlet-2.1.0-ga1.war".POST_MODULE: Failed to process phase POST_MODULE of deployment "icefaces1-portlet-2.1.0-ga1.war"

23:34:20,298 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 2) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"icefaces1-portlet-2.1.0-ga1.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"icefaces1-portlet-2.1.0-ga1.war\".POST_MODULE: Failed to process phase POST_MODULE of deployment \"icefaces1-portlet-2.1.0-ga1.war\""}}}}


Could you please help me in resolving this issue.

Regards,
Mahesh
Neil Griffin
RE: IceFaces1-Portlet Demo error on JBoss 7.1.1
28 de febrero de 2013 7:49
Respuesta

Neil Griffin

LIFERAY STAFF

Ranking: Liferay Legend

Mensajes: 2511

Fecha de incorporación: 26 de julio de 2005

Mensajes recientes

Hi Mahesh,

I am very sorry for the late reply -- somehow I did not receive an email update regarding your question and I just happened to see it. I tried the icefaces1-portlet demo in the Liferay 6.1.1 JBoss AS7 bundle, but received a different error message:

10:43:52,276 INFO (MSC service thread 1-10) 10:43:52,275 INFO [MSC service thread 1-10][HotDeployImpl:178] Deploying icefaces1-portlet from queue
10:43:52,277 INFO (MSC service thread 1-10) 10:43:52,276 INFO [MSC service thread 1-10][PluginPackageUtil:1033] Reading plugin package for icefaces1-portlet
10:43:52,668 INFO [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-10) Initializing Mojarra 2.1 for context '/icefaces1-portlet'

Since JBoss AS7 is a Java EE 6 compliant application server, JBoss is required to bundle a JSF 2.1 API and Implementation in the global classpath. JBoss AS bundles Mojarra 2.1, but you require JSF 1.2. I would recommend that you search the JBoss documentation for ways to activate JSF 1.2 instead of 2.1.

Best Regards,

Neil

Participate in the State of Liferay Community 2017. Help the community and even win some prizes!