Vue combinée Vue Plate Arborescence
Sujets [ Précédent | Suivant ]
toggle
Sasi Test
liferay 6.1.2 ga3 on jdk 1.7 and jboss
4 octobre 2013 12:03
Réponse

Sasi Test

Rang: New Member

Publications: 18

Date d'inscription: 2 août 2012

Publications Récentes

hi,

I am trying to run liferay 6.1.2 ga3 on jboss with jdk 1.7 and I try to deploy root.war, I get the following exception. I checked the util-taglib.jar, and it did not have the ToolTag class, only the ToolTagImpl. Also searched in root.war completely, and there is no such class available. What am I missing?

Thanks,
Sasipriya

09:50:09,390 WARN [org.jboss.modules] (MSC service thread 1-1) Failed to define class com.liferay.taglib.aui.ToolTagImpl in Module "deployment.ROOT.war:main" from Service Module Loader: java.lang.LinkageError: Failed to link com/liferay/taglib/aui/ToolTagImpl (Module "deployment.ROOT.war:main" from Service Module Loader)
at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:396) [jboss-modules.jar:1.1.3.GA-redhat-1]
at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:243) [jboss-modules.jar:1.1.3.GA-redhat-1]
at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:73) [jboss-modules.jar:1.1.3.GA-redhat-1]
at org.jboss.modules.Module.loadModuleClass(Module.java:527) [jboss-modules.jar:1.1.3.GA-redhat-1]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:182) [jboss-modules.jar:1.1.3.GA-redhat-1]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.1.3.GA-redhat-1]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.1.3.GA-redhat-1]
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.1.3.GA-redhat-1]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.1.3.GA-redhat-1]
at java.lang.Class.forName0(Native Method) [rt.jar:1.7.0_40]
at java.lang.Class.forName(Class.java:270) [rt.jar:1.7.0_40]
at org.jboss.as.server.deployment.reflect.DeploymentClassIndex.classIndex(DeploymentClassIndex.java:54)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:63) [jboss-as-ee-7.1.3.Final-redhat-4.jar:7.1.3.Final-redhat-4]
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:55) [jboss-as-ee-7.1.3.Final-redhat-4.jar:7.1.3.Final-redhat-4]
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:116)
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_40]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_40]
at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_40]
Caused by: java.lang.NoClassDefFoundError: com/liferay/portal/kernel/servlet/taglib/aui/ToolTag
at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.7.0_40]
at java.lang.ClassLoader.defineClass(ClassLoader.java:792) [rt.jar:1.7.0_40]
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) [rt.jar:1.7.0_40]
at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:327) [jboss-modules.jar:1.1.3.GA-redhat-1]
at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:391) [jboss-modules.jar:1.1.3.GA-redhat-1]
... 19 more
Caused by: java.lang.ClassNotFoundException: com.liferay.portal.kernel.servlet.taglib.aui.ToolTag from [Module "deployment.ROOT.war:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190) [jboss-modules.jar:1.1.3.GA-redhat-1]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.1.3.GA-redhat-1]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.1.3.GA-redhat-1]
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.1.3.GA-redhat-1]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.1.3.GA-redhat-1]
... 24 more

09:50:09,528 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC000001: Failed to start service jboss.deployment.unit."ROOT.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."ROOT.war".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of deployment "ROOT.war"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:123) [jboss-as-server-7.1.3.Final-redhat-4.jar:7.1.3.Final-redhat-4]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA-redhat-2.jar:1.0.2.GA-redhat-2]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA-redhat-2.jar:1.0.2.GA-redhat-2]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_40]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_40]
at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_40]
Caused by: java.lang.RuntimeException: JBAS018757: Error getting reflective information for class com.liferay.taglib.aui.PanelTag with ClassLoader ModuleClassLoader for Module "deployment.ROOT.war:main" from Service Module Loader
at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:72) [jboss-as-server-7.1.3.Final-redhat-4.jar:7.1.3.Final-redhat-4]
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:116) [jboss-as-server-7.1.3.Final-redhat-4.jar:7.1.3.Final-redhat-4]
... 5 more
Caused by: java.lang.NoClassDefFoundError: com/liferay/portal/kernel/servlet/taglib/aui/ToolTag
at java.lang.Class.getDeclaredMethods0(Native Method) [rt.jar:1.7.0_40]
at java.lang.Class.privateGetDeclaredMethods(Class.java:2521) [rt.jar:1.7.0_40]
at java.lang.Class.getDeclaredMethods(Class.java:1845) [rt.jar:1.7.0_40]
at org.jboss.as.server.deployment.reflect.ClassReflectionIndex.<init>(ClassReflectionIndex.java:65) [jboss-as-server-7.1.3.Final-redhat-4.jar:7.1.3.Final-redhat-4]
at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:68) [jboss-as-server-7.1.3.Final-redhat-4.jar:7.1.3.Final-redhat-4]
... 10 more
Caused by: java.lang.ClassNotFoundException: com.liferay.portal.kernel.servlet.taglib.aui.ToolTag from [Module "deployment.ROOT.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

09:50:09,543 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "ROOT.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"ROOT.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"ROOT.war\".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of deployment \"ROOT.war\"
Caused by: java.lang.RuntimeException: JBAS018757: Error getting reflective information for class com.liferay.taglib.aui.PanelTag with ClassLoader ModuleClassLoader for Module \"deployment.ROOT.war:main\" from Service Module Loader
Caused by: java.lang.NoClassDefFoundError: com/liferay/portal/kernel/servlet/taglib/aui/ToolTag
Caused by: java.lang.ClassNotFoundException: com.liferay.portal.kernel.servlet.taglib.aui.ToolTag from [Module \"deployment.ROOT.war:main\" from Service Module Loader]"}}
09:50:09,545 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
JBAS014777: Services which failed to start: service jboss.deployment.unit."ROOT.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."ROOT.war".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of deployment "ROOT.war"

09:50:09,547 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"ROOT.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"ROOT.war\".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of deployment \"ROOT.war\"
Caused by: java.lang.RuntimeException: JBAS018757: Error getting reflective information for class com.liferay.taglib.aui.PanelTag with ClassLoader ModuleClassLoader for Module \"deployment.ROOT.war:main\" from Service Module Loader
Caused by: java.lang.NoClassDefFoundError: com/liferay/portal/kernel/servlet/taglib/aui/ToolTag
Caused by: java.lang.ClassNotFoundException: com.liferay.portal.kernel.servlet.taglib.aui.ToolTag from [Module \"deployment.ROOT.war:main\" from Service Module Loader]"}}}}
09:50:16,120 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015877: Stopped deployment ROOT.war in 6573ms
David H Nebinger
RE: liferay 6.1.2 ga3 on jdk 1.7 and jboss
4 octobre 2013 13:45
Réponse

David H Nebinger

Community Moderator

Rang: Liferay Legend

Publications: 9428

Date d'inscription: 1 septembre 2006

Publications Récentes

what you're missing is actually following the directions for deploying to an existing container: https://www.liferay.com/documentation/liferay-portal/6.1/user-guide/-/ai/lp-6-1-ugen11-installing-liferay-on-jboss-7-0

You've also probably missed that you cannot use jdk 1.7 yet (afaik). The version of lucene used w/ Liferay is not java 7 compatible, and I don't know if liferay has undertaken updating to a java 7 compatible lucene yet or not.
Sasi Test
RE: liferay 6.1.2 ga3 on jdk 1.7 and jboss
7 octobre 2013 07:32
Réponse

Sasi Test

Rang: New Member

Publications: 18

Date d'inscription: 2 août 2012

Publications Récentes

hi,

We saw this blog and thought that liferay supports jdk 1.7 - I am not sure about the Lucene upgrade. Also, we went to java one and there in the liferay booth, talked to some folks who said that liferay currently supports jdk1.7. I will look at the instructions you have and see if there is something else I am missing.

http://www.liferay.com/web/james.falkner/blog/-/blogs/new-release-liferay-portal-6-1-ce-ga3

Thanks,
Sasipriya
David H Nebinger
RE: liferay 6.1.2 ga3 on jdk 1.7 and jboss
7 octobre 2013 08:16
Réponse

David H Nebinger

Community Moderator

Rang: Liferay Legend

Publications: 9428

Date d'inscription: 1 septembre 2006

Publications Récentes

Could be that the latest version does support 1.7, but 1.6 is a definite...

Based on your stack trace it certainly looks like you don't have the global portal-service.jar in the classpath prior to the deployment of the Liferay war, definitely looks like the dependencies are not there for Liferay...
Sasi Test
RE: liferay 6.1.2 ga3 on jdk 1.7 and jboss
7 octobre 2013 10:13
Réponse

Sasi Test

Rang: New Member

Publications: 18

Date d'inscription: 2 août 2012

Publications Récentes

Thank you, I had the wrong jars in the jboss modules I think. Going over the installation instructions again, I got that. And the root.war deployed now, with a couple of other modifications.