1 2 Previous Next 17 Replies Latest reply on Dec 17, 2012 5:52 AM by chandra sekaran

    java.lang.NoClassDefFoundError Caused by: java.lang.ClassNotFoundException

    chandra sekaran Newbie

      Hi All,

       

      I am getting a ClassNotFoundException while I try to deploy an EAR file using JBoss AS 7.1.0, Am using Eclipse IDE and liferay framework. Please refer to the complete error trace as below:

       

      07:59:38,340 WARN  [org.jboss.modules401] Failed to define class com.liferay.portlet.imagegallery.model.IGFolderModel in Module "deployment.spinnaker_im.ear.portal-ejb.jar:main" from Service Module Loader: java.lang.IncompatibleClassChangeError: class com.liferay.portlet.imagegallery.model.IGFolderModel has interface com.liferay.portal.model.BaseModel as super class
      at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.6.0_31]
      at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) [rt.jar:1.6.0_31]
      at java.lang.ClassLoader.defineClass(ClassLoader.java:615) [rt.jar:1.6.0_31]
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) [rt.jar:1.6.0_31]
      at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:327) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:391) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:243) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:73) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.Module.loadModuleClass(Module.java:517) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:182) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.1.1.GA]
      at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.6.0_31]
      at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) [rt.jar:1.6.0_31]
      at java.lang.ClassLoader.defineClass(ClassLoader.java:615) [rt.jar:1.6.0_31]
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) [rt.jar:1.6.0_31]
      at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:327) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:391) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:243) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:73) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.Module.loadModuleClass(Module.java:517) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:182) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.1.1.GA]
      at java.lang.Class.getDeclaredMethods0(Native Method) [rt.jar:1.6.0_31]
      at java.lang.Class.privateGetDeclaredMethods(Class.java:2427) [rt.jar:1.6.0_31]
      at java.lang.Class.getDeclaredMethods(Class.java:1791) [rt.jar:1.6.0_31]
      at org.jboss.as.server.deployment.reflect.ClassReflectionIndex.<init>(ClassReflectionIndex.java:65) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]
      at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:66) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]
      at org.jboss.as.server.deployment.reflect.ClassReflectionIndexUtil.findMethod(ClassReflectionIndexUtil.java:52) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]
      at org.jboss.as.ejb3.deployment.processors.dd.DeploymentDescriptorMethodProcessor.handleStatelessSessionBean(DeploymentDescriptorMethodProcessor.java:99)
      at org.jboss.as.ejb3.deployment.processors.dd.DeploymentDescriptorMethodProcessor.deploy(DeploymentDescriptorMethodProcessor.java:76)
      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.0.Final.jar:7.1.0.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$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_31]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_31]
      at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_31]

      07:59:38,481 WARN  [org.jboss.modules401] Failed to define class com.liferay.portlet.imagegallery.model.IGFolder in Module "deployment.spinnaker_im.ear.portal-ejb.jar:main" from Service Module Loader: java.lang.LinkageError: Failed to link com/liferay/portlet/imagegallery/model/IGFolder (Module "deployment.spinnaker_im.ear.portal-ejb.jar:main" from Service Module Loader)
      at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:396) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:243) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:73) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.Module.loadModuleClass(Module.java:517) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:182) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.1.1.GA]
      at java.lang.Class.getDeclaredMethods0(Native Method) [rt.jar:1.6.0_31]
      at java.lang.Class.privateGetDeclaredMethods(Class.java:2427) [rt.jar:1.6.0_31]
      at java.lang.Class.getDeclaredMethods(Class.java:1791) [rt.jar:1.6.0_31]
      at org.jboss.as.server.deployment.reflect.ClassReflectionIndex.<init>(ClassReflectionIndex.java:65) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]
      at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:66) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]
      at org.jboss.as.server.deployment.reflect.ClassReflectionIndexUtil.findMethod(ClassReflectionIndexUtil.java:52) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]
      at org.jboss.as.ejb3.deployment.processors.dd.DeploymentDescriptorMethodProcessor.handleStatelessSessionBean(DeploymentDescriptorMethodProcessor.java:99)
      at org.jboss.as.ejb3.deployment.processors.dd.DeploymentDescriptorMethodProcessor.deploy(DeploymentDescriptorMethodProcessor.java:76)
      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.0.Final.jar:7.1.0.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$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_31]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_31]
      at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_31]
      Caused by: java.lang.NoClassDefFoundError: com/liferay/portlet/imagegallery/model/IGFolderModel
      at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.6.0_31]
      at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) [rt.jar:1.6.0_31]
      at java.lang.ClassLoader.defineClass(ClassLoader.java:615) [rt.jar:1.6.0_31]
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) [rt.jar:1.6.0_31]
      at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:327) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:391) [jboss-modules.jar:1.1.1.GA]
      ... 23 more
      Caused by: java.lang.ClassNotFoundException: com.liferay.portlet.imagegallery.model.IGFolderModel from [Module "deployment.spinnaker_im.ear.portal-ejb.jar:main" from Service Module Loader]
      at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.1.1.GA]
      ... 29 more

      07:59:38,590 DEBUG [org.jboss.as.ejb386] Installing timer service for component com_liferay_counter_ejb_CounterManager
      07:59:38,606 ERROR [org.jboss.msc.service.fail94] MSC00001: Failed to start service jboss.deployment.subunit."spinnaker_im.ear"."portal-ejb.jar".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."spinnaker_im.ear"."portal-ejb.jar".POST_MODULE: Failed to process phase POST_MODULE of subdeployment "portal-ejb.jar" of deployment "spinnaker_im.ear"
      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.0.Final.jar:7.1.0.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$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_31]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_31]
      at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_31]
      Caused by: java.lang.RuntimeException: Error getting reflective information for class com.liferay.portlet.imagegallery.ejb.IGFolderRemoteManagerEJB with ClassLoader ModuleClassLoader for Module "deployment.spinnaker_im.ear.portal-ejb.jar:main" from Service Module Loader
      at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:70) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]
      at org.jboss.as.server.deployment.reflect.ClassReflectionIndexUtil.findMethod(ClassReflectionIndexUtil.java:52) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]
      at org.jboss.as.ejb3.deployment.processors.dd.DeploymentDescriptorMethodProcessor.handleStatelessSessionBean(DeploymentDescriptorMethodProcessor.java:99)
      at org.jboss.as.ejb3.deployment.processors.dd.DeploymentDescriptorMethodProcessor.deploy(DeploymentDescriptorMethodProcessor.java:76)
      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]
      ... 5 more
      Caused by: java.lang.NoClassDefFoundError: com/liferay/portlet/imagegallery/model/IGFolder
      at java.lang.Class.getDeclaredMethods0(Native Method) [rt.jar:1.6.0_31]
      at java.lang.Class.privateGetDeclaredMethods(Class.java:2427) [rt.jar:1.6.0_31]
      at java.lang.Class.getDeclaredMethods(Class.java:1791) [rt.jar:1.6.0_31]
      at org.jboss.as.server.deployment.reflect.ClassReflectionIndex.<init>(ClassReflectionIndex.java:65) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]
      at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:66) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]
      ... 9 more
      Caused by: java.lang.ClassNotFoundException: com.liferay.portlet.imagegallery.model.IGFolder from [Module "deployment.spinnaker_im.ear.portal-ejb.jar: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.performLoadClassChecked(ConcurrentClassLoader.java:423)
      at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
      at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)
      ... 14 more

       

      I tried the following to resolve but still the error is not resolved.

      1.I added the jars jboss-modules.jar,

      07:59:38,340 WARN  [org.jboss.modules401] Failed to define class com.liferay.portlet.imagegallery.model.IGFolderModel in Module "deployment.spinnaker_im.ear.portal-ejb.jar:main" from Service Module Loader: java.lang.IncompatibleClassChangeError: class com.liferay.portlet.imagegallery.model.IGFolderModel has interface com.liferay.portal.model.BaseModel as super class
      at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.6.0_31]
      at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) [rt.jar:1.6.0_31]
      at java.lang.ClassLoader.defineClass(ClassLoader.java:615) [rt.jar:1.6.0_31]
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) [rt.jar:1.6.0_31]
      at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:327) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:391) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:243) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:73) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.Module.loadModuleClass(Module.java:517) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:182) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.1.1.GA]
      at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.6.0_31]
      at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) [rt.jar:1.6.0_31]
      at java.lang.ClassLoader.defineClass(ClassLoader.java:615) [rt.jar:1.6.0_31]
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) [rt.jar:1.6.0_31]
      at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:327) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:391) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:243) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:73) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.Module.loadModuleClass(Module.java:517) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:182) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.1.1.GA]
      at java.lang.Class.getDeclaredMethods0(Native Method) [rt.jar:1.6.0_31]
      at java.lang.Class.privateGetDeclaredMethods(Class.java:2427) [rt.jar:1.6.0_31]
      at java.lang.Class.getDeclaredMethods(Class.java:1791) [rt.jar:1.6.0_31]
      at org.jboss.as.server.deployment.reflect.ClassReflectionIndex.<init>(ClassReflectionIndex.java:65) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]
      at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:66) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]
      at org.jboss.as.server.deployment.reflect.ClassReflectionIndexUtil.findMethod(ClassReflectionIndexUtil.java:52) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]
      at org.jboss.as.ejb3.deployment.processors.dd.DeploymentDescriptorMethodProcessor.handleStatelessSessionBean(DeploymentDescriptorMethodProcessor.java:99)
      at org.jboss.as.ejb3.deployment.processors.dd.DeploymentDescriptorMethodProcessor.deploy(DeploymentDescriptorMethodProcessor.java:76)
      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.0.Final.jar:7.1.0.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$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_31]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_31]
      at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_31]

      07:59:38,481 WARN  [org.jboss.modules401] Failed to define class com.liferay.portlet.imagegallery.model.IGFolder in Module "deployment.spinnaker_im.ear.portal-ejb.jar:main" from Service Module Loader: java.lang.LinkageError: Failed to link com/liferay/portlet/imagegallery/model/IGFolder (Module "deployment.spinnaker_im.ear.portal-ejb.jar:main" from Service Module Loader)
      at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:396) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:243) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:73) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.Module.loadModuleClass(Module.java:517) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:182) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.1.1.GA]
      at java.lang.Class.getDeclaredMethods0(Native Method) [rt.jar:1.6.0_31]
      at java.lang.Class.privateGetDeclaredMethods(Class.java:2427) [rt.jar:1.6.0_31]
      at java.lang.Class.getDeclaredMethods(Class.java:1791) [rt.jar:1.6.0_31]
      at org.jboss.as.server.deployment.reflect.ClassReflectionIndex.<init>(ClassReflectionIndex.java:65) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]
      at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:66) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]
      at org.jboss.as.server.deployment.reflect.ClassReflectionIndexUtil.findMethod(ClassReflectionIndexUtil.java:52) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]
      at org.jboss.as.ejb3.deployment.processors.dd.DeploymentDescriptorMethodProcessor.handleStatelessSessionBean(DeploymentDescriptorMethodProcessor.java:99)
      at org.jboss.as.ejb3.deployment.processors.dd.DeploymentDescriptorMethodProcessor.deploy(DeploymentDescriptorMethodProcessor.java:76)
      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.0.Final.jar:7.1.0.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$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_31]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_31]
      at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_31]
      Caused by: java.lang.NoClassDefFoundError: com/liferay/portlet/imagegallery/model/IGFolderModel
      at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.6.0_31]
      at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) [rt.jar:1.6.0_31]
      at java.lang.ClassLoader.defineClass(ClassLoader.java:615) [rt.jar:1.6.0_31]
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) [rt.jar:1.6.0_31]
      at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:327) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:391) [jboss-modules.jar:1.1.1.GA]
      ... 23 more
      Caused by: java.lang.ClassNotFoundException: com.liferay.portlet.imagegallery.model.IGFolderModel from [Module "deployment.spinnaker_im.ear.portal-ejb.jar:main" from Service Module Loader]
      at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.1.1.GA]
      ... 29 more

      07:59:38,590 DEBUG [org.jboss.as.ejb386] Installing timer service for component com_liferay_counter_ejb_CounterManager
      07:59:38,606 ERROR [org.jboss.msc.service.fail94] MSC00001: Failed to start service jboss.deployment.subunit."spinnaker_im.ear"."portal-ejb.jar".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."spinnaker_im.ear"."portal-ejb.jar".POST_MODULE: Failed to process phase POST_MODULE of subdeployment "portal-ejb.jar" of deployment "spinnaker_im.ear"
      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.0.Final.jar:7.1.0.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$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_31]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_31]
      at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_31]
      Caused by: java.lang.RuntimeException: Error getting reflective information for class com.liferay.portlet.imagegallery.ejb.IGFolderRemoteManagerEJB with ClassLoader ModuleClassLoader for Module "deployment.spinnaker_im.ear.portal-ejb.jar:main" from Service Module Loader
      at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:70) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]
      at org.jboss.as.server.deployment.reflect.ClassReflectionIndexUtil.findMethod(ClassReflectionIndexUtil.java:52) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]
      at org.jboss.as.ejb3.deployment.processors.dd.DeploymentDescriptorMethodProcessor.handleStatelessSessionBean(DeploymentDescriptorMethodProcessor.java:99)
      at org.jboss.as.ejb3.deployment.processors.dd.DeploymentDescriptorMethodProcessor.deploy(DeploymentDescriptorMethodProcessor.java:76)
      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]
      ... 5 more
      Caused by: java.lang.NoClassDefFoundError: com/liferay/portlet/imagegallery/model/IGFolder
      at java.lang.Class.getDeclaredMethods0(Native Method) [rt.jar:1.6.0_31]
      at java.lang.Class.privateGetDeclaredMethods(Class.java:2427) [rt.jar:1.6.0_31]
      at java.lang.Class.getDeclaredMethods(Class.java:1791) [rt.jar:1.6.0_31]
      at org.jboss.as.server.deployment.reflect.ClassReflectionIndex.<init>(ClassReflectionIndex.java:65) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]
      at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:66) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]
      ... 9 more
      Caused by: java.lang.ClassNotFoundException: com.liferay.portlet.imagegallery.model.IGFolder from [Module "deployment.spinnaker_im.ear.portal-ejb.jar: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.performLoadClassChecked(ConcurrentClassLoader.java:423)
      at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
      at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)
      ... 14 more

       

       

      I tried adding the jboss-modules.jar, jboss-msc-1.0.2.GA.jar in the build path of spinnaker_im.ear.portal-ejb.jar but still the error is not resolved.

       

      Could somebody help?

        • 2. Re: java.lang.NoClassDefFoundError Caused by: java.lang.ClassNotFoundException
          Nicklas Karlsson Master

          You probably need to add a dependecy to "com.liferay.portlet" (or whatever module they have defined their stuff in)

          • 3. Re: java.lang.NoClassDefFoundError Caused by: java.lang.ClassNotFoundException
            Rafael Neves Newbie

            Nicklas, this form:

            <jboss-deployment-structure>
                <deployment>
                    <dependencies>
                        <module name="com.liferay.portlet"/>
                    </dependencies>
                </deployment>
            </jboss-deployment-structure>

             

            ?

            • 4. Re: java.lang.NoClassDefFoundError Caused by: java.lang.ClassNotFoundException
              Nicklas Karlsson Master

              I think "com.liferay.portal" is the correct module. It can also be set in the MANIFEST.MF as a Dependencies: -row

              • 5. Re: java.lang.NoClassDefFoundError Caused by: java.lang.ClassNotFoundException
                chandra sekaran Newbie

                I tried adding both com.liferay.portal and com.liferay.portlet( as both are available) in the portal-ejb.jar but the error is still coming.

                I tried adding dependencies under <sub-deployment> like this :

                 

                <sub-deployment name="spinnaker_im.ear.portal-ejb.jar">
                   <dependencies>
                       <module name="com.liferay.portlet" export="true"/>
                    <module name="com.liferay.portal" export="true"/>
                    <module name="com.liferay.extranet" export="true"/>
                   </dependencies>
                   </sub-deployment>

                 

                But still the same error is coming

                • 6. Re: java.lang.NoClassDefFoundError Caused by: java.lang.ClassNotFoundException
                  Nicklas Karlsson Master

                  Umm. It looks like you have to track down the jar with the IGFolder first, it was not in the portal-service.jar as I thought. Could be under ROOT.war\WEB-INF\lib or somewhere else(tm)

                  1 of 1 people found this helpful
                  • 7. Re: java.lang.NoClassDefFoundError Caused by: java.lang.ClassNotFoundException
                    chandra sekaran Newbie

                    Hi Nicklas,

                     

                    I got the error resolved when I placed the portal-service.jar (version 6.0.2) in the <myapp>.ear/lib and ROOT.war\WEB-INF\lib and also referenced the jar under com/modules/liferay/portal in module.xml

                     

                    Nicklas Karlsson wrote:

                     

                    Umm. It looks like you have to track down the jar with the IGFolder first, it was not in the portal-service.jar as I thought. Could be under ROOT.war\WEB-INF\lib or somewhere else(tm)

                     

                    Initially I placed the jar with version 6.1.0 but the same error was thrown, then I figured out the class was not found in that jar version but was found in the version 6.0.2

                     

                    Thanks for your support.

                     

                    Now I am able to deploy with out any errors but still the deployment is failing. Also I get some weird log entries, like this

                     

                     

                    23:44:58,886 INFO  [org.jboss.as.server.deployment66] JBAS015876: Starting deployment of "spinnaker_im.ear"
                    23:45:06,027 DEBUG [org.jboss.as.server.deployment.scanner397] Deployment scan of [D:\jboss-as-7.1.0.Final\standalone\deployments] found update action [{
                        "operation" => "composite",
                        "address" => undefined,
                        "steps" => [
                            {
                                "operation" => "add",
                                "address" => [("deployment" => "spinnaker_im.ear")],
                                "content" => [{
                                    "path" => "deployments\\spinnaker_im.ear",
                                    "relative-to" => "jboss.server.base.dir",
                                    "archive" => false
                                }],
                                "persistent" => false
                            },
                            {
                                "operation" => "deploy",
                                "address" => [("deployment" => "spinnaker_im.ear")]
                            }
                        ]
                    }]
                    23:45:06,480 DEBUG [org.jboss.as.controller.management-operation138] Entered VERIFY stage; waiting for service container to settle
                    23:45:06,480 INFO  [org.jboss.as.server.deployment66] JBAS015876: Starting deployment of "spinnaker_im.ear"
                    23:45:45,338 WARN  [org.jboss.as.server.deployment164] Class Path entry lib/jcommon-1.0.0-rc1.jar in "/D:/jboss-as-7.1.0.Final/standalone/deployments/spinnaker_im.ear/lib/jfreechart.jar"  does not point to a valid jar for a Class-Path reference.
                    23:45:45,385 INFO  [org.jboss.as.server.deployment66] JBAS015876: Starting deployment of "counter-ejb.jar"
                    23:45:45,385 INFO  [or3:.j5:os5,.a38.sWArvN r.[oepg.oyboens.66s. JerASer15de76lo Smeart1in4] dClplssymPanth ofnt"ly ckibejjc.jmmr"n-
                    23:45.0450-44c1 IjaFO i [ "rgD:jbjbssssasasse7.ve.0.dFiplalymstntnd6]loJBe/S0ep58oy6:enSts/rtpingnadeerloimmeeat /lf b/pofrtaec-earb..jarr"
                    2oes:4no:4 p,4in3  tNF a  vaorid.jjaos f.ar .s Crvasr.-Pepthoyreener66nc J.
                    AS015876: Starting deployment of "portal-web-complete.war"
                    23:45:45,447 INF2  [:4rg:4jb,4ss4 asNFse  veor.d.jplosym.ant.s6]rvJBr.S0ep58oy6:enSt66rt JngASde15lo76me St arf inma dl-pljbymjant"
                    of "m3:il5:ej5,.j94r"IN
                    23:4O :4[o,4g.4 boNFs.  s.orer.jerosde.alo.smervt6r.] epBAoy01en8766:  JtaASti15g 76ep Soyarenin o d "plunymelntweof.w"cr"ch
                    23:45-e45b.54ar I
                    FO3:4 [:4rg,5jb1 ssNFas se[oveg..dbopls.yms.nter6]erJBdeS0lo58me6:t6St] rtBAng01de87lo: metat tif g doepumoyntenib oar "-eocb.meartl
                    br3:45ry45ej55.j Ir"FO
                    23:4 [:4rg,5jb6 ssNFas  seorve.j.dospl.aym.sntrv6]r.JBepS0oy58en6:66St JrtASng15de76lo Smeart inf  dcaplheymejnt.jofr""t
                    23:4nn:4l-,5eb8 waEB"
                    G [or3:.j5:os5,.a88.sINrvO r.[oepg.oyboens.17s.] erlaers-deatlhymeent6ry] "/BA:/01bo87s-: s-ta.1ti0.g inepl/oytaenda oon "/docpl-eymb.ntar/s
                    in3:45ak45r_61m. IarFOli [/crgmpjbesssioas-fseltver..dapl" ymn nt/D6]/jJBosS0-a58-76:1.St.Frtnang/sdeanloalmenet def lopometats-espb.nnarke
                    _i3:45.e45r/63ou IteFO-e [b.rgarjb issnoasedse ave t.drgplt yms ntlr6]adJB aS0ce58si6:leSt
                    art3ng45de45lo68me Dt BUf  [corgntjbr-ssjbasjase"
                    ve23:45:.d5,pl66ymINntO 73[o Cg.asbo-Ps.ths.enerryer"/de:/lobomes-t6s-] .1BA0.01in87l/: tatadationg /depployymennt o/s "inorakalr_wem.-carmpliet/s.wcur"e-
                    filter.jar" in "/D:/jboss-as-7.1.0.Final/s3an45al45ne69de DloBUme [tsrgspjbnnsskeas_ise.ever/.douplteym-entb.73ar C iasno-Pedth aen tryrg"/t :/s bolrs-ads- a.1ce0.siinlel/
                    sta3:da5:on5,/d28plDEymUGnt[o/sg.inboaks.r_s.m.erarerlide/clompmeest1i7n-f] ltlar.s-arat i e "trD: "jbD:ssjbasss7.as.07.Fi.0alFistalndstlonde/loepe/oyepenoys/enpis/napiernaimereaim/meail/lejb/.jtir"-jigvaorjad," asn ta/Dge/j ios a-are-7dy1.ac.Fesnaib/se
                    andalone/deployments/spinnaker_im.ear/counter-ejb.jar" ignored, as target is already accessible
                    23:45:45,822 DEBUG [org.jboss.as.server.deployment133]45Cl45ss74Pa Dh BUnt [y rg/Djb/jssosas-ase-7ve1..d.Fplnaym/sntan73al Cneasde-Plothmeentsrysp"/nn:/kebo_is-.es-r/.1ib0.acinivl/titan.daaron i/d "plD:ymjbntss/sasin7.ak.0r_Fim.alarstlind/slocue/e-epiloyerenjas/" pin na/Der/jimosea-a/c-7un1.er.Fejna.j/sr"anigalorned,deaslotamegets isp annrekedy_iac.eesr/ibaie
                    -ejb.3:ar5: i5,no38edDE aUG t[orgg.t bos s.lrs.ader aercedesiloleme
                    nt173] Class-Path entry "/D:/jboss-as-7.1.0.Final/standalone/deployments/spinnaker_im.ear/lib/antlr.jar" in "/D:/jboss-as-7.1.0.Final/standalone/de3:lo5:me5,ts38spDEnnUGke[o_ig..ebor/s.ous.teer-eerb.dearlo imenot1ed3] aCl tssrgPat h s ntlry ad/D a/jceossi-ale-7
                    .1.3:.F5:na5,/s85anDEalUGne[odeg.lobomes.tss.spernnerkede_ilo.emer/t1ib3]utCll-ssavPa.jh r"ntiny "//D://jbooss--as--7.11.0..Finnal//staandaalonne/ddeplloymmentts/sspinnnakker__im..earr/maibl-axjbs.jaar"  ign "reD:, jbs ssaraset7.is.0alFieaaly stccndssloble/
                    deployments/spinnaker_im.ear/counter-ejb.jar" ignored, as target is already accessible

                    23:46:06,556 DEBUG [org.jboss.as.server.deployment173] Class-Path entry "/D:/jboss-as-7.1.0.Final/standalone/deployments/spinnaker_im.ear/lib/httpbridge.jar" in "/D:/jboss-as-7.1.0.Final/standalone/deployments/spinnaker_im.ear/lock-ejb.jar" ignored, as target is already accessible
                    23:46:06,556 DEBUG [org.jboss.as.server.deployment173] Class-Path entry "/D:/jboss-as-7.1.0.Final/standalone/deployments/spinnaker_im.ear/lib/icq.jar" in "/D:/jboss-as-7.1.2.Fi:4al:0st,4nd8 loEBe/G eporoy.jenoss/.api.snarverr.imepeaoy/lenck17ej] .jlar"s-igator ed,tras "taD:gejb iss aasre7.dy.0acFiesalibste
                    nd2lo:4e/:0ep,6oy3 enEBs/G piorna.jerosim.aea.s/lrvb/r.caeptcoya.enar17 i]  "laD:s-jbatss eastr7. ".0D:Fijbalssstasnd7.lo.0e/Fiepaloystennds/lopie/naeperoyimeneas//ppirtnal-erebimcoeapl/ltebwai" fognmareja, " s n ar/Det/jisosal-aea-7y 1.cc.Fssnabl/s
                    andal3:ne6:de6,lo40meINtsO sp[onng.kebo_is..es.r/erocer-e23b. JarAS i15no70ed D apl ty rgf t eps oylrenad " apicenasierleim
                    .ea3:" 6:as6,ro81leDE bUGck[owig.h boais.urs. merssergedeOplorameiot1 c3]ncClllssd
                    Pa23:46:h 6,nt71y IN/DO /j[oosg.-abo-7s.1.s..Fernaer/sdeanloalmenet9de] loBAme01ts87sp: nntokepe_i d.eplr/ymibntjamam.l-arjb ija " iD: 3jbmsss
                    23:4as:07.,5.01 FiRRalR stornd.jloose/.aep.soyrvenr.s/eppioynaener.simaneaer/l04ck] ejBA.j01r"05ig: oridd,noas rtacegeve ia  aesreondye aco esheibdee
                    loyme3:t 6:pe6,at12onDEwiUGhi[ trge jbllssweas tsemeveut.dpeplioym [nt0 73ec Cndas].-PChthckenthry s"/rv:/r boons-igs-ra.1io0. finlel/anta tdae oner/derplloyms nto /sinin makrer_abm.utarthli s/jatxrs c.f arhe ide "loD:mejbt.ss
                    23:46as067.69.0 IFiFOal [strgndjblosse/asepseoyveen.ds/plpiymnanter2]imJBeaS0/l58ck7:ejSt.jppr"d igeporoyd,enas ctachge-e ib. aarreindy16acmses
                    23:46:ib6,e50
                    DE3UG46[o06g.74bo Ds.BUs. [errgerjbdessloasmeset1ve3].dClplssymPanth 73nt Cy as/D-P/jthosen-ary-7"/1.:/.Fbonas-/ss-an.1al0.neindel/lotamedatsonsp/dnnplkeym_int.e/sr/inibakjcr_mmm.n.ararli i/j "zzD:.jjbr"ssinas"/7.:/.0boFis-als-st.1nd0.loine/l/eptaoydaenons//dpiplnaymerntim/seain/pakrtr_l-m.ebarcoloplk-tejbwaja" " gngnrere, , s s araretetisisalaleaeay y ccccssssblbl

                    3:46:36,462806IN75O  D[oBUg. [borgs.jbs.sserasersedevelo.dmeplt9ym] ntBA7301 C87as: -Ptothpeen drypl"/ym:/ntboss-ocs-me.1tl0.brinryl/ejta.jdar onn /d99pls
                    yments/spinnaker_im.ear/lib/jcap3:ch6:.j6,r"59inDE"/UG:/[obog.s-bos-s..1s.0.erinerl/detalodameont1/d3]plClymssntPa/sh inntaky r_/Dm./jaroslo-ak--7jb1.ja.F" nagnostednd alo te/rgept oys enlrs/adpi anaceersiimleea
                    r/l3b/46cv06.j82r" DinBU"/ [:/rgbojbs-sss-as.1se0.vein.dl/pltaymdanton73/d Cplasym-Pntth/seninryak"/r_:/m.boars-pos-ta.1-w0.b-inoml/letae.daaron i/dnopledym ant t/srgint aks r_lrm.adar alice/jsiomleon
                    23:46ja06" 79n  I/DFO/j [osrg-ajb-7ss1.as.Fsenave/s.danplalymnentde2]loJBmeS0ts58sp7:nnStkepp_id .eepr/oyocen-e tb.nnarl- iebnowaed i a 2 t8mrg
                    t is already accessible

                     

                    I believe this may be due to some thread, but I don't know where to spot out the thread entry. The error trace only shows DEBUG entries no ERROR entries

                     

                        

                    23:46:17,024 DEBUG [org.jboss.as.server.deployment173] Class-Path entry "/D:/jboss-as-7.1.0.Final/standalone/deployments/spinnaker_im.ear/lib/jcaptcha.jar" in "/D:/jboss-as-7.1.0.Final/standalone/deployments/spinnaker_im.ear/documentlibrary-ejb.jar" ignored, as target is already accessible
                    23:46:17,040 DEBUG [org.jboss.as.server.deployment173] Class-Path entry "/D:/jboss-as-7.1.0.Final/standalone/deployments/spinnaker_im.ear/lib/jcommon.jar" in "/D:/jboss-as-7.1.0.Final/standalone/deployments/spinnaker_im.ear/documentlibrary-ejb.jar" ignored, as target is already accessible
                    23:46:17,040 DEBUG [org.jboss.as.server.deployment173] Class-Path entry "/D:/jboss-as-7.1.0.Final/standalone/deployments/spinnaker_im.ear/lib/jcvs.jar" in "/D:/jboss-as-7.1.0.Final/standalone/deployments/spinnaker_im.ear/documentlibrary-ejb.jar" ignored, as target is already accessible
                    23:46:17,040 DEBUG [org.jboss.as.server.deployment173] Class-Path entry "/D:/jboss-as-7.1.0.Final/standalone/deployments/spinnaker_im.ear/lib/jdom.jar" in "/D:/jboss-as-7.1.0.Final/standalone/deployments/spinnaker_im.ear/documentlibrary-ejb.jar" ignored, as target is already accessible
                    23:46:17,055 DEBUG [org.jboss.as.server.deployment173] Class-Path entry "/D:/jboss-as-7.1.0.Final/standalone/deployments/spinnaker_im.ear/lib/jfreechart.jar" in "/D:/jboss-as-7.1.0.Final/standalone/deployments/spinnaker_im.ear/documentlibrary-ejb.jar" ignored, as target is already accessible
                    23:46:17,055 DEBUG [org.jboss.as.server.deployment173] Class-Path entry "/D:/jboss-as-7.1.0.Final/standalone/deployments/spinnaker_im.ear/lib/jstl.jar" in "/D:/jboss-as-7.1.0.Final/standalone/deployments/spinnaker_im.ear/documentlibrary-ejb.jar" ignored, as target is already accessible
                    23:46:17,071 DEBUG [org.jboss.as.server.deployment173] Class-Path entry "/D:/jboss-as-7.1.0.Final/standalone/deployments/spinnaker_im.ear/lib/jstl-impl.jar" in "/D:/jboss-as-7.1.0.Final/standalone/deployments/spinnaker_im.ear/documentlibrary-ejb.jar" ignored, as target is already accessible
                    23:46:17,071 DEBUG [org.jboss.as.server.deployment173] Class-Path entry "/D:/jboss-as-7.1.0.Final/standalone/deployments/spinnaker_im.ear/lib/log4j.jar" in "/D:/jboss-as-7.1.0.Final/standalone/deployments/spinnaker_im.ear/documentlibrary-ejb.jar" ignored, as target is already accessible
                    23:46:17,087 DEBUG [org.jboss.as.server.deployment173] Class-Path entry "/D:/jboss-as-7.1.0.Final/standalone/deployments/spinnaker_im.ear/lib/lucene.jar" in "/D:/jboss-as-7.1.0.Final/standalone/deployments/spinnaker_im.ear/documentlibrary-ejb.jar" ignored, as target is already accessible
                    23:46:17,087 DEBUG [org.jboss.as.server.deployment173] Class-Path entry "/D:/jboss-as-7.1.0.Final/standalone/deployments/spinnaker_im.ear/lib/msnm.jar" in "/D:/jboss-as-7.1.0.Final/standalone/deployments/spinnaker_im.ear/documentlibrary-ejb.jar" ignored, as target is already accessible
                    23:46:17,102 DEBUG [org.jboss.as.server.deployment173] Class-Path entry "/D:/jboss-as-7.1.0.Final/standalone/deployments/spinnaker_im.ear/lib/nfc-server.jar" in "/D:/jboss-as-7.1.0.Final/standalone/deployments/spinnaker_im.ear/documentlibrary-ejb.jar" ignored, as target is already accessible
                    23:46:17,102 DEBUG [org.jboss.as.server.deployment173] Class-Path entry "/D:/jboss-as-7.1.0.Final/standalone/deployments/spinnaker_im.ear/lib/odmg.jar" in "/D:/jboss-as-7.1.0.Final/standalone/deployments/spinnaker_im.ear/documentlibrary-ejb.jar" ignored, as target is already accessible
                    23:46:17,102 DEBUG [org.jboss.as.server.deployment173] Class-Path entry "/D:/jboss-as-7.1.0.Final/standalone/deployments/spinnaker_im.ear/lib/oro.jar" in "/D:/jboss-as-7.1.0.Final/standalone/deployments/spinnaker_im.ear/documentlibrary-ejb.jar" ignored, as target is already accessible
                    23:46:17,118 DEBUG [org.jboss.as.server.deployment173] Class-Path entry "/D:/jboss-as-7.1.0.Final/standalone/deployments/spinnaker_im.ear/lib/pdfbox.jar" in "/D:/jboss-as-7.1.0.Final/standalone/deployments/spinnaker_im.ear/documentlibrary-ejb.jar" ignored, as target is already accessible
                    23:46:17,118 DEBUG [org.jboss.as.server.deployment173] Class-Path entry "/D:/jboss-as-7.1.0.Final/standalone/deployments/spinnaker_im.ear/lib/poi.jar" in "/D:/jboss-as-7.1.0.Final/standalone/deployments/spinnaker_im.ear/documentlibrary-ejb.jar" ignored, as target is already accessible
                    23:46:17,134 DEBUG [org.jboss.as.server.deployment173] Class-Path entry "/D:/jboss-as-7.1.0.Final/standalone/deployments/spinnaker_im.ear/lib/poi-contrib.jar" in "/D:/jboss-as-7.1.0.Final/standalone/deployments/spinnaker_im.ear/documentlibrary-ejb.jar" ignored, as target is already accessible
                    23:46:17,134 DEBUG [org.jboss.as.server.deployment173] Class-Path entry "/D:/jboss-as-7.1.0.Final/standalone/deployments/spinnaker_im.ear/lib/poi-scratchpad.jar" in "/D:/jboss-as-7.1.0.Final/standalone/deployments/spinnaker_im.ear/documentlibrary-ejb.jar" ignored, as target is already accessible
                    23:46:17,149 DEBUG [org.jboss.as.server.deployment173] Class-Path entry "/D:/jboss-as-7.1.0.Final/standalone/deployments/spinnaker_im.ear/lib/portlet.jar" in "/D:/jboss-as-7.1.0.Final/standalone/deployments/spinnaker_im.ear/documentlibrary-ejb.jar" ignored, as target is already accessible
                    23:46:17,149 DEBUG [org.jboss.as.server.deployment173] Class-Path entry "/D:/jboss-as-7.1.0.Final/standalone/deployments/spinnaker_im.ear/lib/projectb.jar" in "/D:/jboss-as-7.1.0.Final/standalone/deployments/spinnaker_im.ear/documentlibrary-ejb.jar" ignored, as target is already accessible
                    23:46:17,305 DEBUG [org.jboss.as.server.deployment173] Class-Path entry "/D:/jboss-as-7.1.0.Final/standalone/deployments/spinnaker_im.ear/lib/quartz.jar" in "/D:/jboss-as-7.1.0.Final/standalone/deployments/spinnaker_im.ear/documentlibrary-ejb.jar" ignored, as target is already accessible
                    23:46:17,321 DEBUG [org.jboss.as.server.deployment173] Class-Path entry "/D:/jboss-as-7.1.0.Final/standalone/deployments/spinnaker_im.ear/lib/saaj.jar" in "/D:/jboss-as-7.1.0.Final/standalone/deployments/spinnaker_im.ear/documentlibrary-ejb.jar" ignored, as target is already accessible
                    23:46:17,321 DEBUG [org.jboss.as.server.deployment173] Class-Path entry "/D:/jboss-as-7.1.0.Final/standalone/deployments/spinnaker_im.ear/lib/soap.jar" in "/D:/jboss-as-7.1.0.Final/standalone/deployments/spinnaker_im.ear/documentlibrary-ejb.jar" ignored, as target is already accessible
                    23:46:17,337 DEBUG [org.jboss.as.server.deployment173] Class-Path entry "/D:/jboss-as-7.1.0.Final/standalone/deployments/spinnaker_im.ear/lib/struts.jar" in "/D:/jboss-as-7.1.0.Final/standalone/deployments/spinnaker_im.ear/documentlibrary-ejb.jar" ignored, as target is already accessible
                    23:46:17,337 DEBUG [org.jboss.as.server.deployment173] Class-Path entry "/D:/jboss-as-7.1.0.Final/standalone/deployments/spinnaker_im.ear/lib/stxx.jar" in "/D:/jboss-as-7.1.0.Final/standalone/deployments/spinnaker_im.ear/documentlibrary-ejb.jar" ignored, as target is already accessible
                    23:46:17,352 DEBUG [org.jboss.as.server.deployment173] Class-Path entry "/D:/jboss-as-7.1.0.Final/standalone/deployments/spinnaker_im.ear/lib/trove.jar" in "/D:/jboss-as-7.1.0.Final/standalone/deployments/spinnaker_im.ear/documentlibrary-ejb.jar" ignored, as target is already accessible
                    23:46:17,352 DEBUG [org.jboss.as.server.deployment173] Class-Path entry "/D:/jboss-as-7.1.0.Final/standalone/deployments/spinnaker_im.ear/lib/velocity.jar" in "/D:/jboss-as-7.1.0.Final/standalone/deployments/spinnaker_im.ear/documentlibrary-ejb.jar" ignored, as target is already accessible
                    23:46:17,415 DEBUG [org.jboss.as.server.deployment173] Class-Path entry "/D:/jboss-as-7.1.0.Final/standalone/deployments/spinnaker_im.ear/lib/wbmp.jar" in "/D:/jboss-as-7.1.0.Final/standalone/deployments/spinnaker_im.ear/documentlibrary-ejb.jar" ignored, as target is already accessible
                    23:46:17,415 DEBUG [org.jboss.as.server.deployment173] Class-Path entry "/D:/jboss-as-7.1.0.Final/standalone/deployments/spinnaker_im.ear/lib/wsdl4j.jar" in "/D:/jboss-as-7.1.0.Final/standalone/deployments/spinnaker_im.ear/documentlibrary-ejb.jar" ignored, as target is already accessible
                    23:46:17,430 DEBUG [org.jboss.as.server.deployment173] Class-Path entry "/D:/jboss-as-7.1.0.Final/standalone/deployments/spinnaker_im.ear/lib/wsrp4j-producer.jar" in "/D:/jboss-as-7.1.0.Final/standalone/deployments/spinnaker_im.ear/documentlibrary-ejb.jar" ignored, as target is already accessible
                    23:46:17,430 DEBUG [org.jboss.as.server.deployment173] Class-Path entry "/D:/jboss-as-7.1.0.Final/standalone/deployments/spinnaker_im.ear/lib/wsrp4j-shared.jar" in "/D:/jboss-as-7.1.0.Final/standalone/deployments/spinnaker_im.ear/documentlibrary-ejb.jar" ignored, as target is already accessible
                    23:46:17,446 DEBUG [org.jboss.as.server.deployment173] Class-Path entry "/D:/jboss-as-7.1.0.Final/standalone/deployments/spinnaker_im.ear/lib/xerces.jar" in "/D:/jboss-as-7.1.0.Final/standalone/deployments/spinnaker_im.ear/documentlibrary-ejb.jar" ignored, as target is already accessible
                    23:46:17,446 DEBUG [org.jboss.as.server.deployment173] Class-Path entry "/D:/jboss-as-7.1.0.Final/standalone/deployments/spinnaker_im.ear/lib/ym.jar" in "/D:/jboss-as-7.1.0.Final/standalone/deployments/spinnaker_im.ear/documentlibrary-ejb.jar" ignored, as target is already accessible
                    23:46:17,462 INFO  [org.jboss.as.server.deployment92] JBAS015877: Stopped deployment documentlibrary-ejb.jar in 839ms
                    23:46:23,274 INFO  [org.jboss.as.server.deployment92] JBAS015877: Stopped deployment spinnaker_im.ear in 7440ms

                     

                    Thanks,

                    Chandra

                    • 8. Re: java.lang.NoClassDefFoundError Caused by: java.lang.ClassNotFoundException
                      Nicklas Karlsson Master

                      Those are probably just warnings from processing non-comlpliant 3rd party libs with strange things in their manifest.

                       

                      Are you saying that the application fails to deploy without a single ERROR in the log?

                      • 9. Re: java.lang.NoClassDefFoundError Caused by: java.lang.ClassNotFoundException
                        chandra sekaran Newbie

                        Yes, I didnt get any ERROR in the log, but however now I find some ERROR logs after I removed the jars which ever was ignored to remove even the warnings from the log.

                        When I changed the jars and added only relevant dependant jars especially on portal-ejb and did a rebuild I got some build errors which I got it fixed and redeployed.

                        This time the warnings were also removed and I got some new runtime excpetion similar to the one explained in the original post:

                         

                        06:29:51,999 ERROR [org.jboss.msc.service.fail94] MSC00001: Failed to start service jboss.deployment.subunit."spinnaker_im.ear"."tunnel-web.war".POST_MODULE:

                        org.jboss.msc.service.StartException

                        06:29:51,999 ERROR [org.jboss.msc.service.fail94] MSC00001: Failed to start service jboss.deployment.subunit."spinnaker_im.ear"."tunnel-web.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."spinnaker_im.ear"."tunnel-web.war".POST_MODULE: Failed to process phase POST_MODULE of subdeployment "tunnel-web.war" of deployment "spinnaker_im.ear"

                        at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.0.Final.jar:7.1.0.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$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_31]

                        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_31]

                        at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_31]

                        Caused by: java.lang.RuntimeException: Error getting reflective information for class com.liferay.portal.servlet.TunnelServlet with ClassLoader ModuleClassLoader for Module "com.liferay.portal:main" from local module loader @18d9850 (roots: D:\jboss-as-7.1.0.Final\modules)

                        at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:70) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]

                        at org.jboss.as.ee.metadata.MethodAnnotationAggregator.runtimeAnnotationInformation(MethodAnnotationAggregator.java:58)

                        at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.handleAnnotations(InterceptorAnnotationProcessor.java:70)

                        at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:117)

                        at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:54)

                        at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]

                        ... 5 more

                        Caused by: java.lang.NoClassDefFoundError: com/liferay/util/ObjectValuePair

                        at java.lang.Class.getDeclaredFields0(Native Method) [rt.jar:1.6.0_31]

                        at java.lang.Class.privateGetDeclaredFields(Class.java:2291) [rt.jar:1.6.0_31]

                        at java.lang.Class.getDeclaredFields(Class.java:1743) [rt.jar:1.6.0_31]

                        at org.jboss.as.server.deployment.reflect.ClassReflectionIndex.<init>(ClassReflectionIndex.java:57) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]

                        at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:66) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]

                         

                        06:29:52,281 WARN  [org.jboss.modules401] Failed to define class com.liferay.portlet.httpbridge.servlet.UserService in Module "com.liferay.portal:main" from local module loader @18d9850 (roots: D:\jboss-as-7.1.0.Final\modules): java.lang.LinkageError: Failed to link com/liferay/portlet/httpbridge/servlet/UserService (Module "com.liferay.portal:main" from local module loader @18d9850 (roots: D:\jboss-as-7.1.0.Final\modules))

                        at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:396) [jboss-modules.jar:1.1.1.GA]

                        at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:243) [jboss-modules.jar:1.1.1.GA]

                        at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:73) [jboss-modules.jar:1.1.1.GA]

                        at org.jboss.modules.Module.loadModuleClass(Module.java:517) [jboss-modules.jar:1.1.1.GA]

                        at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:182) [jboss-modules.jar:1.1.1.GA]

                        at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.1.1.GA]

                        at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.1.1.GA]

                        at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.1.1.GA]

                        at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.1.1.GA]

                        at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:111)

                        at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:54)

                        at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.0.Final.jar:7.1.0.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$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_31]

                        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_31]

                        at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_31]

                        Caused by: java.lang.NoClassDefFoundError: com/httpbridge/webproxy/ui/UserService

                        I feel I can follow the previous approach for fixing this too.

                        But I need help track in fixing the following error trace. Could you help?

                         

                        Thanks in advance

                        JBAS014775: New missing/unsatisfied dependencies:

                        service jboss.naming.context.java.comp.spinnaker_im.cache-ejb.com_liferay_cache_ejb_CacheMDB (missing) dependents: [service jboss.naming.context.java.comp.spinnaker_im.cache-ejb.com_liferay_cache_ejb_CacheMDB.ValidatorFactory, service jboss.naming.context.java.comp.spinnaker_im.cache-ejb.com_liferay_cache_ejb_CacheMDB.Validator]

                        service jboss.naming.context.java.comp.spinnaker_im.cache-ejb.com_liferay_cache_ejb_CacheManager (missing) dependents: [service jboss.naming.context.java.comp.spinnaker_im.cache-ejb.com_liferay_cache_ejb_CacheManager.ValidatorFactory, service jboss.naming.context.java.comp.spinnaker_im.cache-ejb.com_liferay_cache_ejb_CacheManager.Validator]

                        service jboss.naming.context.java.comp.spinnaker_im.counter-ejb.com_liferay_counter_ejb_CounterManager (missing) dependents: [service jboss.naming.context.java.comp.spinnaker_im.counter-ejb.com_liferay_counter_ejb_CounterManager.Validator, service jboss.naming.context.java.comp.spinnaker_im.counter-ejb.com_liferay_counter_ejb_CounterManager.ValidatorFactory]

                        service jboss.naming.context.java.comp.spinnaker_im.documentlibrary-ejb.com_liferay_documentlibrary_ejb_DLManager (missing) dependents: [service jboss.naming.context.java.comp.spinnaker_im.documentlibrary-ejb.com_liferay_documentlibrary_ejb_DLManager.ValidatorFactory, service jboss.naming.context.java.comp.spinnaker_im.documentlibrary-ejb.com_liferay_documentlibrary_ejb_DLManager.Validator]

                        service jboss.naming.context.java.comp.spinnaker_im.lock-ejb.com_liferay_lock_ejb_LockManager (missing) dependents: [service jboss.naming.context.java.comp.spinnaker_im.lock-ejb.com_liferay_lock_ejb_LockManager.ValidatorFactory, service jboss.naming.context.java.comp.spinnaker_im.lock-ejb.com_liferay_lock_ejb_LockManager.Validator]

                        service jboss.naming.context.java.comp.spinnaker_im.mail-ejb.com_liferay_mail_ejb_MailMDB (missing) dependents: [service jboss.naming.context.java.comp.spinnaker_im.mail-ejb.com_liferay_mail_ejb_MailMDB.ValidatorFactory, service jboss.naming.context.java.comp.spinnaker_im.mail-ejb.com_liferay_mail_ejb_MailMDB.Validator]

                        service jboss.naming.context.java.comp.spinnaker_im.mail-ejb.com_liferay_mail_ejb_MailManager (missing) dependents: [service jboss.naming.context.java.comp.spinnaker_im.mail-ejb.com_liferay_mail_ejb_MailManager.ValidatorFactory, service jboss.naming.context.java.comp.spinnaker_im.mail-ejb.com_liferay_mail_ejb_MailManager.Validator]

                        JBAS014777: Services which failed to start: service jboss.deployment.subunit."spinnaker_im.ear"."tunnel-web.war".POST_MODULE:

                         

                        in service jboss.deployment.subunit."spinnaker_im.ear"."tunnel-web.war".POST_MODULE: Failed to process phase POST_MODULE of subdeployment "tunnel-web.war" of deployment "spinnaker_im.ear"

                         

                        Thanks,

                        Chandru

                        • 10. Re: java.lang.NoClassDefFoundError Caused by: java.lang.ClassNotFoundException
                          Nicklas Karlsson Master

                          You have a missing com/liferay/util/ObjectValuePair or something.

                           

                          Even if you got around the issue by including the portal lib in your app, I am still unsure this is the recommended way to go. One option would be to define a module for the common libs (that your app and the portal uses) and then have them only there and add dependecies from the portal war and your app to that module.

                           

                          But there is some code small around this whole setup (you're accessing classes that should't normally be user visible?)

                          • 11. Re: java.lang.NoClassDefFoundError Caused by: java.lang.ClassNotFoundException
                            chandra sekaran Newbie

                            But there is some code small around this whole setup (you're accessing classes that should't normally be user visible?)

                            I don't understand  the above comment, could you please let me know on what basis (from the logger messages) that some classes are been accessed which normally shouldn't be user visible

                             

                             

                            Even if you got around the issue by including the portal lib in your app, I am still unsure this is the recommended way to go. One option would be to define a module for the common libs (that your app and the portal uses) and then have them only there and add dependecies from the portal war and your app to that module.

                             

                            Could you also please let me know in the above comment how would i define a module common for all the libs, i mean in which configuration file i should be doing it.

                            • 12. Re: java.lang.NoClassDefFoundError Caused by: java.lang.ClassNotFoundException
                              Nicklas Karlsson Master

                              chandra sekaran wrote:

                               

                              But there is some code small around this whole setup (you're accessing classes that should't normally be user visible?)

                              > I don't understand  the above comment, could you please let me know on what basis (from the logger messages) that some classes are been accessed which normally shouldn't be user visible

                               

                               

                              typo, i was referring to "code smell" or a "this shouldn't be that difficult"-feeling. I would assume that it would be enough for me to add a reference e.g. to a "com.liferay" module in your manifest

                               

                               

                              Even if you got around the issue by including the portal lib in your app, I am still unsure this is the recommended way to go. One option would be to define a module for the common libs (that your app and the portal uses) and then have them only there and add dependecies from the portal war and your app to that module.

                               

                              > Could you also please let me know in the above comment how would i define a module common for all the libs, i mean in which configuration file i should be doing it.

                               

                              Check out https://docs.jboss.org/author/display/AS71/Class+Loading+in+AS7 and the jboss modules documentation on how to move the JARs out from the portal war into a separate module and how to add depencies from your application (and the portal war) to that module.

                              • 13. Re: java.lang.NoClassDefFoundError Caused by: java.lang.ClassNotFoundException
                                chandra sekaran Newbie

                                Hi

                                 

                                Please find the recent deployed error trace, I got many ClassNotFoundExceptions out of which I have posted complete error trace of one CNFE(ClassNotFoundException)

                                06:29:52,421 ERROR [org.jboss.msc.service.fail94] MSC00001: Failed to start service jboss.deployment.subunit."spinnaker_im.ear"."portal-web-complete.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."spinnaker_im.ear"."portal-web-complete.war".POST_MODULE: Failed to process phase POST_MODULE of subdeployment "portal-web-complete.war" of deployment "spinnaker_im.ear"

                                at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.0.Final.jar:7.1.0.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$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_31]

                                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_31]

                                at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_31]

                                Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011093: Could not load component class com.liferay.portlet.httpbridge.servlet.UserService

                                at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:113)

                                at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:54)

                                at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]

                                ... 5 more

                                Caused by: java.lang.ClassNotFoundException: com.liferay.portlet.httpbridge.servlet.UserService from [Module "deployment.spinnaker_im.ear.portal-web-complete.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)

                                at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:111)

                                ... 7 more


                                 

                                I did the following workaround :

                                Searched for the jar (using Eclipse) having class entry com.liferay.portlet.httpbridge.servlet.UserService and found in portal-ejb.jar

                                1. Placed portal-ejb.jar in jboss-deployment-structure.xml

                                   <sub-deployment name="deployment.spinnaker_im.ear.portal-web-complete.war">

                                   <resources>

                                   <resource-root path="portal-ejb.jar"/>

                                   <resource-root path="util-java.jar"/>

                                  </resources>

                                   </sub-deployment>

                                2.Placed in the physical path of tunnel_web.war WEB-INF/lib both in deployments/spinnaker_im.ear/portal-web-complete.war and workspace path both both the jars util-java.jar and portal-ejb.jar

                                3.Verified the classpath entries of both the jars in portal-web-complete.war

                                 

                                but no luck, the error remains the same after rebuilding and re deploying.

                                 

                                Appreciate if any body could help  !!!

                                 

                                Thanks,

                                Chandru

                                • 14. Re: java.lang.NoClassDefFoundError Caused by: java.lang.ClassNotFoundException
                                  Nicklas Karlsson Master

                                  Unfortuately, I must confess that I'm no longer following what your are trying to achieve

                                  1 2 Previous Next