Java MSC000001:无法启动服务 jboss.web.deployment.default-host./scWeb ..... JBAS018040:无法启动上下文

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/30450100/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-11 09:38:54  来源:igfitidea点击:

MSC000001: Failed to start service jboss.web.deployment.default-host./scWeb ..... JBAS018040: Failed to start context

javatomcatjbosslegacylegacy-app

提问by Dev Anand Sadasivam

I am getting following error as part my deployment. Actually I am deploying Websphere application in JBoss. I am sorting out issues one by one.

作为部署的一部分,我收到以下错误。实际上我正在 JBoss 中部署 Websphere 应用程序。我正在一一整理问题。

Please guide me if anyone aware of this error. If you need any other configuration details I can furnish.

如果有人知道这个错误,请指导我。如果您需要任何其他配置详细信息,我可以提供。

12:01:36,228 ERROR [org.apache.catalina.core] (ServerService Thread Pool -- 111) JBWEB001103: Error detected during context /scWeb start, will stop it
12:01:36,228 INFO  [stdout] (ServerService Thread Pool -- 111) ERROR [ServerService Thread Pool -- 111] (StandardContext.java:3841) - JBWEB001103: Error detected during context /scWeb start, will stop it

12:01:36,228 DEBUG [org.jboss.as.web.session.DistributableSessionManager.scWeb] (ServerService Thread Pool -- 111) Stopping
12:01:36,228 INFO  [stdout] (ServerService Thread Pool -- 111) DEBUG [ServerService Thread Pool -- 111] (DistributableSessionManager.java:396) - Stopping

12:01:36,228 DEBUG [org.jboss.as.web.session.DistributableSessionManager.scWeb] (ServerService Thread Pool -- 111) Closing off LockingValve
12:01:36,228 INFO  [stdout] (ServerService Thread Pool -- 111) DEBUG [ServerService Thread Pool -- 111] (DistributableSessionManager.java:415) - Closing off LockingValve

12:01:36,228 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 111) MSC000001: Failed to start service jboss.web.deployment.default-host./scWeb: org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./scWeb: org.jboss.msc.service.StartException in anonymous service: JBAS018040: Failed to start context
    at org.jboss.as.web.deployment.WebDeploymentService.run(WebDeploymentService.java:99)
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [rt.jar:1.8.0_45]
    at java.util.concurrent.FutureTask.run(Unknown Source) [rt.jar:1.8.0_45]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [rt.jar:1.8.0_45]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.8.0_45]
    at java.lang.Thread.run(Unknown Source) [rt.jar:1.8.0_45]
    at org.jboss.threads.JBossThread.run(JBossThread.java:122)
Caused by: org.jboss.msc.service.StartException in anonymous service: JBAS018040: Failed to start context
    at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:168)
    at org.jboss.as.web.deployment.WebDeploymentService.access
<context-param>
 <param-name>contextConfigLocation</param-name>
 <param-value>/WEB-INF/applicationContext-*.xml</param-value>
</context-param>
0(WebDeploymentService.java:61) at org.jboss.as.web.deployment.WebDeploymentService.run(WebDeploymentService.java:96) ... 6 more

回答by Dev Anand Sadasivam

web.xmlhas following spring configuration for dependency injection....

web.xml具有以下用于依赖注入的 spring 配置....

<listener>
 <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>

and Context Loader Listener for Struts in web.xml...

和用于 Struts 的上下文加载器侦听器web.xml...

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd">
<beans>
 <bean id="userRoleService" class="com.singtel.pcb.sam.dto.UserRoleService">
  <property name="dataSource" ref="dataSource"></property>
 </bean>
</beans>

And ApplicationContext-config.xmlhas following bean reference...

ApplicationContext-config.xml有以下豆类参考...

##代码##

Wherein this particular bean is part of other .war.... I had removed the compiled server-side classes,- samWeb.jarfrom scWeb.war\WEB-INF\lib... This had caused the above error....

其中这个特定的 bean 是其他 .war 的一部分......我已经删除了编译的服务器端类,-samWeb.jar来自scWeb.war\WEB-INF\lib......这导致了上述错误......

Hence this error had occurred....

因此发生了这个错误......

JBAS018040: Failed to start context at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:99)

JBAS018040:无法在 org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:99) 启动上下文

While I redo the build activity this had gone.... So I come to know that this was the issue... Basically I am porting my application from Websphere to JBoss... I am trying mix & match of activities....

当我重做构建活动时,这已经消失了......所以我开始知道这是问题所在......基本上我正在将我的应用程序从Websphere移植到JBoss......我正在尝试混合和匹配活动...... .