留言板
Jboss7 + Liferay6.2 unable to deploy portlet
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.
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.
Subhash Pavuskar,修改在9 年前。
RE: Jboss7 + Liferay6.2 unable to deploy portlet
Regular Member 帖子: 234 加入日期: 12-3-13 最近的帖子
Hope this thread may help you !!
https://www.liferay.com/community/forums/-/message_boards/message/18166885
https://www.liferay.com/community/forums/-/message_boards/message/18166885
Gopi balagala,修改在9 年前。
RE: Jboss7 + Liferay6.2 unable to deploy portlet
New Member 帖子: 5 加入日期: 14-7-11 最近的帖子
Hi Subhash Pavuskar,
Thank you for replying.
I have tried this. its getting same issue.
Thanks,
Gopi.
Thank you for replying.
I have tried this. its getting same issue.
Thanks,
Gopi.
Neil Griffin,修改在9 年前。
RE: Jboss7 + Liferay6.2 unable to deploy portlet
Liferay Legend 帖子: 2655 加入日期: 05-7-27 最近的帖子
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.
Gopi balagala,修改在9 年前。
RE: Jboss7 + Liferay6.2 unable to deploy portlet
New Member 帖子: 5 加入日期: 14-7-11 最近的帖子
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.
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.
Cody Hoag,修改在9 年前。
RE: Jboss7 + Liferay6.2 unable to deploy portlet
Junior Member 帖子: 70 加入日期: 12-4-26 最近的帖子
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.
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.
Neil Griffin,修改在9 年前。
RE: Jboss7 + Liferay6.2 unable to deploy portlet
Liferay Legend 帖子: 2655 加入日期: 05-7-27 最近的帖子
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
Gopi balagala,修改在9 年前。
RE: Jboss7 + Liferay6.2 unable to deploy portlet
New Member 帖子: 5 加入日期: 14-7-11 最近的帖子
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.
Jboss7 only in liferay Admin through Apps Configuration I have uploaded my war its working. I will check as per above.
Thanks,
Gopi.