工具版本:weblogic7.0.7.0 jdk1.4.2
错误信息:
<Servlet: "XFireServlet" fa
iled to preload on startup in webapp: "cms"
javax.servlet.ServletException: Error initializing XFireServlet.
at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubIm
pl.java:965)
at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStub
Impl.java:886)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
mpl.java:826)
at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppS
ervletContext.java:2869)
at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebApp
ServletContext.java:2826)
at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebApp
ServletContext.java:2812)
at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAp
pServletContext.java:2787)
at weblogic.servlet.internal.WebAppServletContext.setStarted(WebAppServl
etContext.java:4970)
at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:614)
at weblogic.j2ee.J2EEApplicationContainer.start(J2EEApplicationContainer
.java:1106)
at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContai
ner.java:1083)
at weblogic.management.deploy.slave.SlaveDeployer.setActivationStateForA
llApplications(SlaveDeployer.java:664)
at weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.j
ava:394)
at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resum
e(DeploymentManagerServerLifeCycleImpl.java:242)
at weblogic.t3.srvr.ServerLifeCycleList.resume(ServerLifeCycleList.java:
70)
at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:828)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:299)
at weblogic.Server.main(Server.java:32)
>
解决办法:
Config.xml文件中的
<WebAppComponent Name="cms" Targets="cms_shj_me_server" URI="cms"/>
修改为:
<WebAppComponent Name="cms" PreferWebInfClasses="true" Targets="cms_shj_me_server" URI="cms"/>
补记:
今天(20110311)又有另一个web服务遇到这个问题,同样的修改居然不起作用了,真是无语啊,不了解根本原因,真是不行啊