java - Xerces and Websphere 7 ClassCastException -
i trying deploy webservice built on spring-ws + maven on websphere 7.0.0.21. class loading set parent_last
, error:
00000019 messagedispat e org.springframework.web.servlet.frameworkservlet initservletbean context initialization failed org.springframework.beans.factory.beandefinitionstoreexception: unexpected exception parsing xml document servletcontext resource [/web-inf/spring-ws-servlet.xml]; nested exception java.lang.classcastexception: org.apache.xerces.jaxp.documentbuilderfactoryimpl incompatible javax.xml.parsers.documentbuilderfactory @ org.springframework.beans.factory.xml.xmlbeandefinitionreader.doloadbeandefinitions(xmlbeandefinitionreader.java:412) @ org.springframework.beans.factory.xml.xmlbeandefinitionreader.loadbeandefinitions(xmlbeandefinitionreader.java:334) @ org.springframework.beans.factory.xml.xmlbeandefinitionreader.loadbeandefinitions(xmlbeandefinitionreader.java:302) @ org.springframework.beans.factory.support.abstractbeandefinitionreader.loadbeandefinitions(abstractbeandefinitionreader.java:174) @ org.springframework.beans.factory.support.abstractbeandefinitionreader.loadbeandefinitions(abstractbeandefinitionreader.java:209) @ org.springframework.beans.factory.support.abstractbeandefinitionreader.loadbeandefinitions(abstractbeandefinitionreader.java:180) @ org.springframework.web.context.support.xmlwebapplicationcontext.loadbeandefinitions(xmlwebapplicationcontext.java:125) @ org.springframework.web.context.support.xmlwebapplicationcontext.loadbeandefinitions(xmlwebapplicationcontext.java:94) @ org.springframework.context.support.abstractrefreshableapplicationcontext.refreshbeanfactory(abstractrefreshableapplicationcontext.java:131) @ org.springframework.context.support.abstractapplicationcontext.obtainfreshbeanfactory(abstractapplicationcontext.java:530) @ org.springframework.context.support.abstractapplicationcontext.refresh(abstractapplicationcontext.java:444) @ org.springframework.web.servlet.frameworkservlet.configureandrefreshwebapplicationcontext(frameworkservlet.java:631) @ org.springframework.web.servlet.frameworkservlet.createwebapplicationcontext(frameworkservlet.java:588) @ org.springframework.web.servlet.frameworkservlet.createwebapplicationcontext(frameworkservlet.java:645) @ org.springframework.web.servlet.frameworkservlet.initwebapplicationcontext(frameworkservlet.java:508) @ org.springframework.web.servlet.frameworkservlet.initservletbean(frameworkservlet.java:449) @ org.springframework.web.servlet.httpservletbean.init(httpservletbean.java:133) @ javax.servlet.genericservlet.init(genericservlet.java:241) @ com.ibm.ws.webcontainer.servlet.servletwrapper.init(servletwrapper.java:358) @ com.ibm.ws.webcontainer.servlet.servletwrapperimpl.init(servletwrapperimpl.java:169) @ com.ibm.ws.webcontainer.servlet.servletwrapper.handlerequest(servletwrapper.java:739) @ com.ibm.ws.webcontainer.servlet.servletwrapper.handlerequest(servletwrapper.java:502) @ com.ibm.ws.webcontainer.servlet.servletwrapperimpl.handlerequest(servletwrapperimpl.java:179) @ com.ibm.ws.webcontainer.webapp.webapp.handlerequest(webapp.java:3935) @ com.ibm.ws.webcontainer.webapp.webgroup.handlerequest(webgroup.java:276) @ com.ibm.ws.webcontainer.webcontainer.handlerequest(webcontainer.java:931) @ com.ibm.ws.webcontainer.wswebcontainer.handlerequest(wswebcontainer.java:1592) @ com.ibm.ws.webcontainer.channel.wcchannellink.ready(wcchannellink.java:186) @ com.ibm.ws.http.channel.inbound.impl.httpinboundlink.handlediscrimination(httpinboundlink.java:452) @ com.ibm.ws.http.channel.inbound.impl.httpinboundlink.handlenewrequest(httpinboundlink.java:511) @ com.ibm.ws.http.channel.inbound.impl.httpinboundlink.processrequest(httpinboundlink.java:305) @ com.ibm.ws.http.channel.inbound.impl.httpinboundlink.ready(httpinboundlink.java:276) @ com.ibm.ws.tcp.channel.impl.newconnectioninitialreadcallback.sendtodiscriminators(newconnectioninitialreadcallback.java:214) @ com.ibm.ws.tcp.channel.impl.newconnectioninitialreadcallback.complete(newconnectioninitialreadcallback.java:113) @ com.ibm.ws.tcp.channel.impl.aioreadcompletionlistener.futurecompleted(aioreadcompletionlistener.java:165) @ com.ibm.io.async.abstractasyncfuture.invokecallback(abstractasyncfuture.java:217) @ com.ibm.io.async.asyncchannelfuture.firecompletionactions(asyncchannelfuture.java:161) @ com.ibm.io.async.asyncfuture.completed(asyncfuture.java:138) @ com.ibm.io.async.resulthandler.complete(resulthandler.java:204) @ com.ibm.io.async.resulthandler.runeventprocessingloop(resulthandler.java:775) @ com.ibm.io.async.resulthandler$2.run(resulthandler.java:905) @ com.ibm.ws.util.threadpool$worker.run(threadpool.java:1604) caused by: java.lang.classcastexception: org.apache.xerces.jaxp.documentbuilderfactoryimpl incompatible javax.xml.parsers.documentbuilderfactory @ javax.xml.parsers.documentbuilderfactory.newinstance(unknown source) @ org.springframework.beans.factory.xml.defaultdocumentloader.createdocumentbuilderfactory(defaultdocumentloader.java:89) @ org.springframework.beans.factory.xml.defaultdocumentloader.loaddocument(defaultdocumentloader.java:70) @ org.springframework.beans.factory.xml.xmlbeandefinitionreader.doloadbeandefinitions(xmlbeandefinitionreader.java:388) ... 41 more
i know there problem between xerces on websphere , other classes, can not rid of problem.
edit: resolved problem excluding xalan maven dependecies wont populated .war file
Comments
Post a Comment