Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Mahesh Rudrachar
IceFaces1-Portlet Demo error on JBoss 7.1.1
January 9, 2013 10:15 AM
Answer

Mahesh Rudrachar

Rank: New Member

Posts: 1

Join Date: August 25, 2010

Recent Posts

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
February 28, 2013 7:49 AM
Answer

Neil Griffin

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2107

Join Date: July 26, 2005

Recent Posts

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