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

时间:2015-05-26 05:24:10

标签: java tomcat jboss legacy legacy-app

我在部署时遇到以下错误。实际上我正在JBoss中部署Websphere应用程序。我正在逐一解决问题。

如果有人意识到这个错误,请指导我。如果您需要我可以提供的任何其他配置细节。

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$1.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$000(WebDeploymentService.java:61)
    at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:96)
    ... 6 more

1 个答案:

答案 0 :(得分:0)

web.xml遵循弹簧配置进行依赖注入....

<context-param>
 <param-name>contextConfigLocation</param-name>
 <param-value>/WEB-INF/applicationContext-*.xml</param-value>
</context-param>

web.xml中的Struts的Context Loader监听器......

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

ApplicationContext-config.xml有以下bean引用...

<?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>

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

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

  

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

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