最新的jfinal maven项目的demo在外部wildfly中启动报错

11:33:00,698 WARN  [org.jboss.modules] (MSC service thread 1-1) Failed to define class com.alibaba.druid.support.spring.stat.DruidStatInterceptor in Module "deployment.jfinal_demo_for_maven.war:main" from Service Module Loader: java.lang.LinkageError: Failed to link com/alibaba/druid/support/spring/stat/DruidStatInterceptor (Module "deployment.jfinal_demo_for_maven.war:main" from Service Module Loader)

at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:487) [jboss-modules.jar:1.3.3.Final]

at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:277) [jboss-modules.jar:1.3.3.Final]

at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:92) [jboss-modules.jar:1.3.3.Final]

at org.jboss.modules.Module.loadModuleClass(Module.java:568) [jboss-modules.jar:1.3.3.Final]

at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:205) [jboss-modules.jar:1.3.3.Final]

at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.3.Final]

at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.3.Final]

at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.3.Final]

at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.3.Final]

at org.jboss.as.ee.component.deployers.ResourceInjectionAnnotationParsingProcessor.isEnvEntryType(ResourceInjectionAnnotationParsingProcessor.java:281)

at org.jboss.as.ee.component.deployers.ResourceInjectionAnnotationParsingProcessor.process(ResourceInjectionAnnotationParsingProcessor.java:222)

at org.jboss.as.ee.component.deployers.ResourceInjectionAnnotationParsingProcessor.processFieldResource(ResourceInjectionAnnotationParsingProcessor.java:178)

at org.jboss.as.ee.component.deployers.ResourceInjectionAnnotationParsingProcessor.deploy(ResourceInjectionAnnotationParsingProcessor.java:140)

at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) [wildfly-server-8.2.1.Final.jar:8.2.1.Final]

at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]

at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_131]

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_131]

at java.lang.Thread.run(Thread.java:748) [rt.jar:1.8.0_131]

Caused by: java.lang.NoClassDefFoundError: org/aopalliance/intercept/MethodInterceptor

at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.8.0_131]

at java.lang.ClassLoader.defineClass(ClassLoader.java:763) [rt.jar:1.8.0_131]

at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:361) [jboss-modules.jar:1.3.3.Final]

at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:482) [jboss-modules.jar:1.3.3.Final]

... 18 more

Caused by: java.lang.ClassNotFoundException: org.aopalliance.intercept.MethodInterceptor from [Module "deployment.jfinal_demo_for_maven.war:main" from Service Module Loader]

at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213) [jboss-modules.jar:1.3.3.Final]

at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.3.Final]

at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.3.Final]

at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.3.Final]

at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.3.Final]

... 22 more


11:33:00,703 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC000001: Failed to start service jboss.deployment.unit."jfinal_demo_for_maven.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."jfinal_demo_for_maven.war".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of deployment "jfinal_demo_for_maven.war"

at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:166) [wildfly-server-8.2.1.Final.jar:8.2.1.Final]

at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]

at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_131]

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_131]

at java.lang.Thread.run(Thread.java:748) [rt.jar:1.8.0_131]

Caused by: java.lang.LinkageError: Failed to link com/alibaba/druid/support/spring/stat/DruidStatInterceptor (Module "deployment.jfinal_demo_for_maven.war:main" from Service Module Loader)

at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:487) [jboss-modules.jar:1.3.3.Final]

at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:277) [jboss-modules.jar:1.3.3.Final]

at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:92) [jboss-modules.jar:1.3.3.Final]

at org.jboss.modules.Module.loadModuleClass(Module.java:568) [jboss-modules.jar:1.3.3.Final]

at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:205) [jboss-modules.jar:1.3.3.Final]

at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.3.Final]

at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.3.Final]

at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.3.Final]

at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.3.Final]

at org.jboss.as.ee.component.deployers.ResourceInjectionAnnotationParsingProcessor.isEnvEntryType(ResourceInjectionAnnotationParsingProcessor.java:281)

at org.jboss.as.ee.component.deployers.ResourceInjectionAnnotationParsingProcessor.process(ResourceInjectionAnnotationParsingProcessor.java:222)

at org.jboss.as.ee.component.deployers.ResourceInjectionAnnotationParsingProcessor.processFieldResource(ResourceInjectionAnnotationParsingProcessor.java:178)

at org.jboss.as.ee.component.deployers.ResourceInjectionAnnotationParsingProcessor.deploy(ResourceInjectionAnnotationParsingProcessor.java:140)

at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) [wildfly-server-8.2.1.Final.jar:8.2.1.Final]

... 5 more

Caused by: java.lang.NoClassDefFoundError: org/aopalliance/intercept/MethodInterceptor

at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.8.0_131]

at java.lang.ClassLoader.defineClass(ClassLoader.java:763) [rt.jar:1.8.0_131]

at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:361) [jboss-modules.jar:1.3.3.Final]

at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:482) [jboss-modules.jar:1.3.3.Final]

... 18 more

Caused by: java.lang.ClassNotFoundException: org.aopalliance.intercept.MethodInterceptor from [Module "deployment.jfinal_demo_for_maven.war:main" from Service Module Loader]

at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213) [jboss-modules.jar:1.3.3.Final]

at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.3.Final]

at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.3.Final]

at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.3.Final]

at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.3.Final]

... 22 more


11:33:00,720 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 2) JBAS014613: Operation ("deploy") failed - address: ([("deployment" => "jfinal_demo_for_maven")]) - failure description: {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"jfinal_demo_for_maven.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"jfinal_demo_for_maven.war\".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of deployment \"jfinal_demo_for_maven.war\"

    Caused by: java.lang.LinkageError: Failed to link com/alibaba/druid/support/spring/stat/DruidStatInterceptor (Module \"deployment.jfinal_demo_for_maven.war:main\" from Service Module Loader)

    Caused by: java.lang.NoClassDefFoundError: org/aopalliance/intercept/MethodInterceptor

    Caused by: java.lang.ClassNotFoundException: org.aopalliance.intercept.MethodInterceptor from [Module \"deployment.jfinal_demo_for_maven.war:main\" from Service Module Loader]"}}

11:33:00,723 ERROR [org.jboss.as.server] (management-handler-thread - 2) JBAS015870: Deploy of deployment "jfinal_demo_for_maven.war" was rolled back with the following failure message: 

{"JBAS014671: Failed services" => {"jboss.deployment.unit.\"jfinal_demo_for_maven.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"jfinal_demo_for_maven.war\".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of deployment \"jfinal_demo_for_maven.war\"

    Caused by: java.lang.LinkageError: Failed to link com/alibaba/druid/support/spring/stat/DruidStatInterceptor (Module \"deployment.jfinal_demo_for_maven.war:main\" from Service Module Loader)

    Caused by: java.lang.NoClassDefFoundError: org/aopalliance/intercept/MethodInterceptor

    Caused by: java.lang.ClassNotFoundException: org.aopalliance.intercept.MethodInterceptor from [Module \"deployment.jfinal_demo_for_maven.war:main\" from Service Module Loader]"}}

11:33:00,757 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015877: Stopped deployment jfinal_demo_for_maven (runtime-name: jfinal_demo_for_maven.war) in 31ms

11:33:00,758 INFO  [org.jboss.as.controller] (management-handler-thread - 2) JBAS014774: Service status report

JBAS014777:   Services which failed to start:      service jboss.deployment.unit."jfinal_demo_for_maven.war".POST_MODULE


评论区

JFinal

2019-07-16 22:23

缺少一些依赖,例如注意下面的异常信息:
Caused by: java.lang.NoClassDefFoundError: org/aopalliance/intercept/MethodInterceptor

热门反馈

扫码入社