JBoss服务器错误:ERROR [org.jboss.msc.service.fail](MSC服务线程1-8)MSC00001:无法启动服务jboss.deployment.subunit

时间:2016-06-27 20:47:13

标签: java eclipse jboss

启动Jboss服务器后,它会给我这些错误。 我做了一些研究,我知道,它与第三方库的问题,但我不知道,如何解决这个问题。 抱歉英文不好。

ERROR [org.jboss.msc.service.fail] (MSC service thread 1-8) MSC00001: Failed to start service jboss.deployment.subunit."EJBTestEAR.ear"."EJBTestServer.jar".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."EJBTestEAR.ear"."EJBTestServer.jar".POST_MODULE: Failed to process phase POST_MODULE of subdeployment "EJBTestServer.jar" of deployment "EJBTestEAR.ear"
    at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_79]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_79]
    at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_79]
Caused by: java.lang.RuntimeException: Error getting reflective information for class test.PDFBean with ClassLoader ModuleClassLoader for Module "deployment.EJBTestEAR.ear.EJBTestServer.jar:main" from Service Module Loader
    at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:70) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
    at org.jboss.as.ee.metadata.MethodAnnotationAggregator.runtimeAnnotationInformation(MethodAnnotationAggregator.java:58)
    at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.handleAnnotations(InterceptorAnnotationProcessor.java:85)
    at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:70)
    at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:55)
    at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
    ... 5 more
Caused by: java.lang.NoClassDefFoundError: org/apache/pdfbox/pdmodel/font/PDFont
    at java.lang.Class.getDeclaredFields0(Native Method) [rt.jar:1.7.0_79]
    at java.lang.Class.privateGetDeclaredFields(Class.java:2499) [rt.jar:1.7.0_79]
    at java.lang.Class.getDeclaredFields(Class.java:1811) [rt.jar:1.7.0_79]
    at org.jboss.as.server.deployment.reflect.ClassReflectionIndex.<init>(ClassReflectionIndex.java:57) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
    at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:66) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
    ... 10 more

1 个答案:

答案 0 :(得分:0)

只需几分钟搜索,最终找到核心答案......

Adding external jars to EJB project using EAR content folder