无法在jboss AS 7.1.1中部署war文件

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了无法在jboss AS 7.1.1中部署war文件相关的知识,希望对你有一定的参考价值。

我是jboss-AS的新手。我正在尝试在部署目录中部署war文件,但我正在使用.failed名称重命名war文件。假设xxx.war保存在部署dir中,新文件也会在www.war.failed之后的一段时间内找到。失败的war文件的内容如下:cat xxx-1.1.war.failed

{"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.web.deployment.default-host."/xxx-1.1"" => "org.jboss.msc.service.StartException in service jboss.web.deployment.default-host."/xxx-1.1": JBAS018040: Failed to start context"}}}}[rhino@Rhino deployments

我尝试了一切,以谷歌的帮助解决它没有成功!我试过新的战争文件仍然无法正常工作。

在过去的一周里,我有点坚持这个..请帮助!!谢谢..

Server.log如下:

00:47:41,238 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876: Starting deployment of "xxx-1.1.war"
00:47:44,436 INFO  [stdout] (MSC service thread 1-2) loading config....
00:47:44,445 ERROR [stderr] (MSC service thread 1-2) log4j:WARN No appenders could be found for logger (claroLogger).
00:47:44,445 ERROR [stderr] (MSC service thread 1-2) log4j:WARN Please initialize the log4j system properly.
00:47:44,484 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/xxx-1.1]] (MSC service thread 1-2) Error configuring application listener of class com.nsn.claroUI.util.ClaroUIContextListener: java.lang.ExceptionInInitializerError
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [rt.jar:1.7.0_80]
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) [rt.jar:1.7.0_80]
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [rt.jar:1.7.0_80]
        at java.lang.reflect.Constructor.newInstance(Constructor.java:526) [rt.jar:1.7.0_80]
        at org.jboss.msc.value.ConstructedValue.getValue(ConstructedValue.java:61)
        at org.jboss.as.naming.ValueManagedReferenceFactory.getReference(ValueManagedReferenceFactory.java:49)
        at org.jboss.as.ee.component.ManagedReferenceInterceptorFactory$ManagedReferenceInterceptor.processInvocation(ManagedReferenceInterceptorFactory.java:90) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
        at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
        at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
        at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
        at org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:161) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
        at org.jboss.as.ee.component.BasicComponent.createInstance(BasicComponent.java:85) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
        at org.jboss.as.web.deployment.component.WebComponentInstantiator$1.<init>(WebComponentInstantiator.java:57) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
        at org.jboss.as.web.deployment.component.WebComponentInstantiator.getReference(WebComponentInstantiator.java:55) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
        at org.jboss.as.web.deployment.WebInjectionContainer.instantiate(WebInjectionContainer.java:99) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
        at org.jboss.as.web.deployment.WebInjectionContainer.newInstance(WebInjectionContainer.java:78) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
        at org.jboss.as.web.deployment.WebInjectionContainer.newInstance(WebInjectionContainer.java:72) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
        at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3342) [jbossweb-7.0.13.Final.jar:]
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) [jbossweb-7.0.13.Final.jar:]
        at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_80]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_80]
        at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_80]
Caused by: java.lang.NullPointerException
        at com.nsn.claroUI.util.ClaroUIContextListener.<clinit>(ClaroUIContextListener.java:74) [classes:]
        ... 28 more
00:47:44,514 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/xxx-1.1]] (MSC service thread 1-2) Skipped installing application listeners due to previous error(s)
00:47:44,515 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-2) Error listenerStart
00:47:44,519 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-2) Context [/xxx-1.1] startup failed due to previous errors
00:47:44,523 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.web.deployment.default-host."/xxx-1.1": org.jboss.msc.service.StartException in service jboss.web.deployment.default-host."/xxx-1.1": JBAS018040: Failed to start context
        at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:95)
        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_80]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_80]
        at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_80]
00:47:44,535 INFO  [org.jboss.as] (MSC service thread 1-1) JBAS015951: Admin console listening on http://0.0.0.0:9990
00:47:44,535 ERROR [org.jboss.as] (MSC service thread 1-1) JBAS015875: JBoss AS 7.1.1.Final "Brontes" started (with errors) in 7351ms - Started 478 of 557 services (2 services failed or missing dependencies, 76 services are passive or on-demand)
00:47:44,739 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "xxx-1.1.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.web.deployment.default-host."/xxx-1.1"" => "org.jboss.msc.service.StartException in service jboss.web.deployment.default-host."/xxx-1.1": JBAS018040: Failed to start context"}}
00:47:44,992 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015877: Stopped deployment xxx-1.1.war in 251ms
00:47:44,993 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
JBAS014777:   Services which failed to start:      service jboss.web.deployment.default-host."/xxx-1.1": org.jboss.msc.service.StartException in service jboss.web.deployment.default-host."/xxx-1.1": JBAS018040: Failed to start context
00:47:44,996 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.web.deployment.default-host."/xxx-1.1"" => "org.jboss.msc.service.StartException in service jboss.web.deployment.default-host."/xxx-1.1": JBAS018040: Failed to start context"}}}}
答案

错误发生在日志的堆栈跟踪中:

Caused by: java.lang.NullPointerException
    at com.nsn.claroUI.util.ClaroUIContextListener.<clinit>(ClaroUIContextListener.java:74) [classes:]
    ... 28 more

你需要看看com.nsn.claroUI.util.ClaroUIContextListener第74行的内容。

以上是关于无法在jboss AS 7.1.1中部署war文件的主要内容,如果未能解决你的问题,请参考以下文章

在 JBOSS 6 EAP 中部署一个在 JBOSS AS 5 中工作的简单 WAR 应用程序的问题

无法在 JBoss 中热部署

Eclipse 生成的war文件在JBoss中无效

远程客户端访问部署在 JBOSS AS 中的 EJB 的 JNDI 循环(7.1.1 最终版)

从快照存储库下载 WAR 并使用 mvn 部署到本地 JBoss

jboss eap-6.1 无法处理部署“education.war”的阶段 POST_MODULE