应用为spring集成xfire开发的,测试平台为windowsxp或2003,当应用服务器为websphere6或者tomcat5.5,应用可以正常发布和访问,当应用为weblogic81的时候,应用的部署出现以下问题(同时,通过ie访问应用的时候,会出现页面跳转错误.),帮忙看看原因,jdk版本为1.4.2:
log4j:WARN No appenders could be found for logger (org.codehaus.xfire.transport.
http.XFireConfigurableServlet).
log4j:WARN Please initialize the log4j system properly.
[color=red]<2009-3-6 下午03时13分22秒 CST> <Error> <HTTP> <BEA-101216> <Servlet: "XFireServ
let" failed to preload on startup in Web application: "DataExchange".
javax.servlet.ServletException: Error initializing XFireServlet.[/color] at org.codehaus.xfire.transport.http.XFireServlet.init(XFireServlet.java
:52)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run(Servl
etStubImpl.java:1094)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
121)
at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubIm
pl.java:970)
at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStub
Impl.java:949)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
mpl.java:888)
at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppS
ervletContext.java:3430)
at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebApp
ServletContext.java:3387)
at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebApp
ServletContext.java:3373)
at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAp
pServletContext.java:3356)
at weblogic.servlet.internal.WebAppServletContext.setStarted(WebAppServl
etContext.java:6208)
at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:864)
at weblogic.j2ee.J2EEApplicationContainer.start(J2EEApplicationContainer
.java:2134)
at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContai
ner.java:2175)
at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.
activateContainer(SlaveDeployer.java:2520)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.doCommit(
SlaveDeployer.java:2438)
at weblogic.management.deploy.slave.SlaveDeployer$Task.commit(SlaveDeplo
yer.java:2155)
at weblogic.management.deploy.slave.SlaveDeployer$Task.checkAutoCommit(S
laveDeployer.java:2254)
at weblogic.management.deploy.slave.SlaveDeployer$Task.prepare(SlaveDepl
oyer.java:2149)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(S
laveDeployer.java:2401)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(Sla
veDeployer.java:883)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDepl
oyer.java:591)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDep
loyer.java:500)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHan
dler.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
[color=red]Caused by: java.lang.NoSuchMethodError: javax.xml.namespace.QName.<init>(Ljava/l
ang/String;Ljava/lang/String;Ljava/lang/String;)V[/color] at org.codehaus.xfire.aegis.type.DefaultTypeMappingRegistry.<clinit>(Def
aultTypeMappingRegistry.java:66)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:219)
at org.springframework.util.ClassUtils.forName(ClassUtils.java:108)
at org.springframework.beans.factory.support.BeanDefinitionReaderUtils.c
reateBeanDefinition(BeanDefinitionReaderUtils.java:65)
at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.
parseBeanDefinitionElement(DefaultXmlBeanDefinitionParser.java:426)
at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.
parseBeanDefinitionElement(DefaultXmlBeanDefinitionParser.java:392)
at org.apache.xbean.spring.context.v1.XBeanXmlBeanDefinitionParser.parse
BeanDefinitionElement(XBeanXmlBeanDefinitionParser.java:835)
at org.apache.xbean.spring.context.v1.XBeanXmlBeanDefinitionParser.parse
BeanDefinitions(XBeanXmlBeanDefinitionParser.java:802)
at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.
registerBeanDefinitions(DefaultXmlBeanDefinitionParser.java:191)
at org.apache.xbean.spring.context.v1.XBeanXmlBeanDefinitionReader.regis
terBeanDefinitions(XBeanXmlBeanDefinitionReader.java:78)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadB
eanDefinitions(XmlBeanDefinitionReader.java:223)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBea
nDefinitions(XmlBeanDefinitionReader.java:173)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBea
nDefinitions(XmlBeanDefinitionReader.java:148)
at org.codehaus.xfire.spring.XFireConfigLoader.getXFireApplicationContex
t(XFireConfigLoader.java:79)
at org.codehaus.xfire.spring.XFireConfigLoader.loadContext(XFireConfigLo
ader.java:41)
at org.codehaus.xfire.transport.http.XFireConfigurableServlet.loadConfig
(XFireConfigurableServlet.java:86)
at org.codehaus.xfire.transport.http.XFireConfigurableServlet.createXFir
e(XFireConfigurableServlet.java:54)
at org.codehaus.xfire.transport.http.XFireServlet.init(XFireServlet.java
:45)
... 27 more
>
Globals.resourceOneCoreConfigPath:= D:\ResourceOneHomeMTS\config\
Globals.resourceOneAppConfigPath:= D:\ResourceOneHomeMTS\config\
mTSMonitorPath:= D:\ResourceOneHomeMTS\MTSMonitor\
sysConfigFolder.isDirectory():= true
[color=red][ERROR] 2009-03-06 15:13:25 [ExecuteThread: '4' for queue: 'weblogic.kernel.Syst
em'] [com.icss.resourceone.sdkimpl.datachannel.mqimpl.listener.DCListenerInitSer
vlet.init:57] MQ监听服务启动失败,可能当前节点未未映射到本地或路由节点信息已损
坏。[/color]java.lang.NullPointerException
at com.icss.resourceone.sdkimpl.datachannel.mqimpl.mqi.MQIProcessor.<ini
t>(MQIProcessor.java:87)
at com.icss.resourceone.sdkimpl.datachannel.mqimpl.MQTransport.<init>(MQ
Transport.java:84)
at com.icss.resourceone.datachannel.admin.console.message.ForwardMessage
.resume(ForwardMessage.java:72)
at com.icss.resourceone.datachannel.admin.console.message.ForwardMessage
TimerTask.run(ForwardMessageTimerTask.java:37)
at java.util.TimerThread.mainLoop(Timer.java:432)
at java.util.TimerThread.run(Timer.java:382)
[ERROR] 2009-03-06 15:13:26 [Thread-7] [com.icss.resourceone.sdkimpl.datachannel
.mqimpl.mqi.MQIProcessor.connMQ:143] Invalid port specification, port =
[ERROR] 2009-03-06 15:13:26 [Thread-7] [com.icss.resourceone.sdkimpl.datachannel
.mqimpl.mqi.MQIProcessor.connMQ:144] java.lang.NumberFormatException: For input
string: ""
[ERROR] 2009-03-06 15:13:26 [Thread-7] [com.icss.resourceone.datachannel.admin.c
onsole.message.ForwardMessage.resume:105] 恢复转发消息失败
com.icss.resourceone.sdk.datachannel.DCException: 不能连接MQ队列管理器
[b]问题补充:[/b]
谢谢楼下的回答,我试了下,没有在应用程序中找到weblogic.xml文件啊,是添加到WEB-INF/web.xml文件中吗?添加到web.xml中好像还是不行,错误提示是相同的. 在weblogic安装目录下很多weblogic.xml, 不知道改哪个啊? 谢谢