我正在尝试在Cloudbees Paas上部署现有应用。我在Cloudbees中使用Java EE 6(Web Profile)容器,我的应用程序捆绑为战争(不是耳朵)。在使用DEV @ cloud Jenkins作业进行部署之后,我在服务器启动期间遇到了与以下堆栈跟踪相关的类加载错误:
19:34:51,654 WARN [org.jboss.modules] (MSC service thread 1-1) Failed to define class org.jboss.seam.integration.jbossas.vfs.VFSScanner in Module "deployment.app.ear:main" from Service Module Loader: java.lang.LinkageError: Failed to link org/jboss/seam/integration/jbossas/vfs/VFSScanner (Module "deployment.app.ear:main" from Service Module Loader)
at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:401) [jboss-modules.jar:1.0.2.GA]
at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:261) [jboss-modules.jar:1.0.2.GA]
at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:76) [jboss-modules.jar:1.0.2.GA]
at org.jboss.modules.Module.loadModuleClass(Module.java:590) [jboss-modules.jar:1.0.2.GA]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:183) [jboss-modules.jar:1.0.2.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:361) [jboss-modules.jar:1.0.2.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:310) [jboss-modules.jar:1.0.2.GA]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:103) [jboss-modules.jar:1.0.2.GA]
at org.jboss.seam.deployment.DeploymentStrategy.instantiateScanner(DeploymentStrategy.java:121) [jboss-seam-2.3.0.Final.jar:]
at org.jboss.seam.deployment.DeploymentStrategy.initScanner(DeploymentStrategy.java:105) [jboss-seam-2.3.0.Final.jar:]
at org.jboss.seam.deployment.DeploymentStrategy.getScanner(DeploymentStrategy.java:61) [jboss-seam-2.3.0.Final.jar:]
at org.jboss.seam.deployment.StandardDeploymentStrategy.scan(StandardDeploymentStrategy.java:119) [jboss-seam-2.3.0.Final.jar:]
at org.jboss.seam.init.Initialization.create(Initialization.java:131) [jboss-seam-2.3.0.Final.jar:]
at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:36) [jboss-seam-2.3.0.Final.jar:]
at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3368) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3821) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:70) [jboss-as-web-7.0.2.Final.jar:7.0.2.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_35]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_35]
at java.lang.Thread.run(Thread.java:662) [:1.6.0_35]
Caused by: java.lang.NoClassDefFoundError: org/jboss/seam/deployment/AbstractScanner
at java.lang.ClassLoader.defineClass1(Native Method) [:1.6.0_35]
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) [:1.6.0_35]
at java.lang.ClassLoader.defineClass(ClassLoader.java:615) [:1.6.0_35]
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) [:1.6.0_35]
at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:397) [jboss-modules.jar:1.0.2.GA]
... 21 more
Caused by: java.lang.ClassNotFoundException: org.jboss.seam.deployment.AbstractScanner from [Module "deployment.app.ear:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:191) [jboss-modules.jar:1.0.2.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:361) [jboss-modules.jar:1.0.2.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:333) [jboss-modules.jar:1.0.2.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:310) [jboss-modules.jar:1.0.2.GA]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:103) [jboss-modules.jar:1.0.2.GA]
... 26 more
19:34:51,658 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/]] (MSC service thread 1-1) Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener: java.lang.LinkageError: Failed to link org/jboss/seam/integration/jbossas/vfs/VFSScanner (Module "deployment.app.ear:main" from Service Module Loader)
at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:401) [jboss-modules.jar:1.0.2.GA]
at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:261) [jboss-modules.jar:1.0.2.GA]
at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:76) [jboss-modules.jar:1.0.2.GA]
at org.jboss.modules.Module.loadModuleClass(Module.java:590) [jboss-modules.jar:1.0.2.GA]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:183) [jboss-modules.jar:1.0.2.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:361) [jboss-modules.jar:1.0.2.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:310) [jboss-modules.jar:1.0.2.GA]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:103) [jboss-modules.jar:1.0.2.GA]
at org.jboss.seam.deployment.DeploymentStrategy.instantiateScanner(DeploymentStrategy.java:121) [jboss-seam-2.3.0.Final.jar:]
at org.jboss.seam.deployment.DeploymentStrategy.initScanner(DeploymentStrategy.java:105) [jboss-seam-2.3.0.Final.jar:]
at org.jboss.seam.deployment.DeploymentStrategy.getScanner(DeploymentStrategy.java:61) [jboss-seam-2.3.0.Final.jar:]
at org.jboss.seam.deployment.StandardDeploymentStrategy.scan(StandardDeploymentStrategy.java:119) [jboss-seam-2.3.0.Final.jar:]
at org.jboss.seam.init.Initialization.create(Initialization.java:131) [jboss-seam-2.3.0.Final.jar:]
at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:36) [jboss-seam-2.3.0.Final.jar:]
at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3368) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3821) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:70) [jboss-as-web-7.0.2.Final.jar:7.0.2.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_35]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_35]
at java.lang.Thread.run(Thread.java:662) [:1.6.0_35]
Caused by: java.lang.NoClassDefFoundError: org/jboss/seam/deployment/AbstractScanner
at java.lang.ClassLoader.defineClass1(Native Method) [:1.6.0_35]
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) [:1.6.0_35]
at java.lang.ClassLoader.defineClass(ClassLoader.java:615) [:1.6.0_35]
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) [:1.6.0_35]
at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:397) [jboss-modules.jar:1.0.2.GA]
... 21 more
Caused by: java.lang.ClassNotFoundException: org.jboss.seam.deployment.AbstractScanner from [Module "deployment.app.ear:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:191) [jboss-modules.jar:1.0.2.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:361) [jboss-modules.jar:1.0.2.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:333) [jboss-modules.jar:1.0.2.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:310) [jboss-modules.jar:1.0.2.GA]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:103) [jboss-modules.jar:1.0.2.GA]
... 26 more
19:34:51,703 INFO [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-1) Initializing Mojarra 2.1.3 (SNAPSHOT 20110825) for context ''
19:34:55,716 INFO [org.primefaces.webapp.PostConstructApplicationEventListener] (MSC service thread 1-1) Running on PrimeFaces 3.4
19:34:55,755 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-1) Error listenerStart
19:34:55,756 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-1) Context [] startup failed due to previous errors
19:34:55,771 INFO [org.jboss.web] (MSC service thread 1-1) registering web context:
19:34:55,956 INFO [org.jboss.as.server.controller] (DeploymentScanner-threads - 2) Deployed "app.ear"
定义jboss-seam-2.3.0.Final.jar
类的org.jboss.seam.deployment.AbstractScanner
文件实际部署在WEB-INF/lib
文件夹中。
提到应用程序在我们的Jboss AS 7.0.2服务器实例上正常运行。有什么想法吗?