Forums de discussion

Jboss7 + Liferay6.2 unable to deploy portlet

thumbnail
gopi bal, modifié il y a 9 années.

Jboss7 + Liferay6.2 unable to deploy portlet

New Member Publications: 5 Date d'inscription: 11/07/14 Publications récentes
Hi,

I am trying to deploy my portlet application in Jboss7.1 its getting below exception. But same application in Tomcat7 working fine.

Can you please help me.

ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5) MSC00001: Failed to start service jboss.deployment.unit."rwandaPOC-portlet.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."rwandaPOC-portlet.war".POST_MODULE: Failed to process phase POST_MODULE of deployment "rwandaPOC-portlet.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_45]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.7.0_45]
at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_45]
Caused by: java.lang.RuntimeException: Error getting reflective information for class com.liferay.faces.portal.context.LiferayFacesContextImpl with ClassLoader ModuleClassLoader for Module "deployment.rwandaPOC-portlet.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: com/liferay/portal/model/User
at java.lang.Class.getDeclaredMethods0(Native Method) [rt.jar:1.7.0_45]
at java.lang.Class.privateGetDeclaredMethods(Unknown Source) [rt.jar:1.7.0_45]
at java.lang.Class.getDeclaredMethods(Unknown Source) [rt.jar:1.7.0_45]
at org.jboss.as.server.deployment.reflect.ClassReflectionIndex.<init>(ClassReflectionIndex.java:65) [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: com.liferay.portal.model.User from [Module "deployment.rwandaPOC-portlet.war:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190) [jboss-modules.jar:1.1.1.GA]

Thanks,
Gopi.
thumbnail
Subhash Pavuskar, modifié il y a 9 années.

RE: Jboss7 + Liferay6.2 unable to deploy portlet

Regular Member Publications: 234 Date d'inscription: 13/03/12 Publications récentes
Hope this thread may help you !!
https://www.liferay.com/community/forums/-/message_boards/message/18166885
thumbnail
Gopi balagala, modifié il y a 9 années.

RE: Jboss7 + Liferay6.2 unable to deploy portlet

New Member Publications: 5 Date d'inscription: 11/07/14 Publications récentes
Hi Subhash Pavuskar,

Thank you for replying.

I have tried this. its getting same issue.

Thanks,
Gopi.
thumbnail
Neil Griffin, modifié il y a 9 années.

RE: Jboss7 + Liferay6.2 unable to deploy portlet

Liferay Legend Publications: 2655 Date d'inscription: 27/07/05 Publications récentes
The NoClassDefFoundError makes me think that you might have portal-service.jar under the deployed WEB-INF/lib folder. If that is true, then it should be removed since it lives in the global classpath.
thumbnail
Gopi balagala, modifié il y a 9 années.

RE: Jboss7 + Liferay6.2 unable to deploy portlet

New Member Publications: 5 Date d'inscription: 11/07/14 Publications récentes
Hi,

In my War WEB-INF/lib folders below jars only available.

el-api-1.0.jar
jboss-el-2.0.1.GA.jar
jsf-api-2.1.21.jar
jsf-impl-2.1.21.jar
liferay-faces-bridge-api-3.2.4-ga5.jar
liferay-faces-bridge-impl-3.2.4-ga5.jar
liferay-faces-portal-3.2.4-ga5.jar
liferay-faces-util-3.2.4-ga5.jar
primefaces-3.5.jar

Thanks,
Gopi.
thumbnail
Cody Hoag, modifié il y a 9 années.

RE: Jboss7 + Liferay6.2 unable to deploy portlet

Junior Member Publications: 70 Date d'inscription: 26/04/12 Publications récentes
Hi Gopi,

I just posted a blog about solving deployment errors with JSF portlets. Try the process I outlined in the blog post and see if it helps you find your problem: Troubleshooting JSF Portlet Deployment Errors.
thumbnail
Neil Griffin, modifié il y a 9 années.

RE: Jboss7 + Liferay6.2 unable to deploy portlet

Liferay Legend Publications: 2655 Date d'inscription: 27/07/05 Publications récentes
If you follow the instructions in Cody's blog, then you will see that the following jars are not present in the .war artifacts since Mojarra is included in the JBoss global classloader out-of-the-box:
  • jsf-api-2.1.21.jar
  • jsf-impl-2.1.21.jar
thumbnail
Gopi balagala, modifié il y a 9 années.

RE: Jboss7 + Liferay6.2 unable to deploy portlet

New Member Publications: 5 Date d'inscription: 11/07/14 Publications récentes
Thank you so much for your replying.

Jboss7 only in liferay Admin through Apps Configuration I have uploaded my war its working. I will check as per above.

Thanks,
Gopi.