03:40:43 ERROR - http. MessageDispatcherServlet - Context initialization failedorg springframework beans factory. BeanInitializationException: Could not initialize handler adapters; nested exception is org springframework beans factory. BeanCreationException: Invocation of init method failed; nested exception is org springframework ws soap. SoapMessageCreationException: Could not create SAAJ MessageFactory: Unable to create communicate factory for SOAP: Provider com sun xml messaging saaj clean ver1_1. SOAPMessageFactory1_1Impl not open; nested exception is javax xml soap. SOAPException: Unable to act communicate factory for clean: Provider com sun xml messaging saaj soap ver1_1. SOAPMessageFactory1_1Impl not open
According to your FAQ I should be able to use Axiom instead of SAAJ is that still the inspect?The contents of my lib/endorsed folder are as follows:
org apache axiom om. OMException: com ctc wstx exc. WstxEOFException: Unexpected EOF in prolog at [row,col {unknown-source}]: [1,0] at org apache axiom om impl builder. StAXOMBuilder next(StAXOMBuilder java:239) at org apache axiom soap impl builder. StAXSOAPModelBuilder getSOAPEnvelope(StAXSOAPModelBuilder java:161) at org apache axiom clean impl builder. StAXSOAPModelBuilder identifySOAPVersion(StAXSOAPModelBuilder java:133) at org apache axiom clean impl builder. StAXSOAPModelBuilder.<init>(StAXSOAPModelBuilder java:127) at org apache axis2 saaj. SOAPPartImpl.<init>(SOAPPartImpl java:194) at org apache axis2 saaj. SOAPMessageImpl.<init>(SOAPMessageImpl java:96) at org apache axis2 saaj. MessageFactoryImpl createMessage(MessageFactoryImpl java:130) at org springframework ws soap saaj. SaajSoapMessageFactory createWebServiceMessage(SaajSoapMessageFactory java:164) at org springframework ws transport. AbstractWebServiceConnection acquire(AbstractWebServiceConnection java:53) at org springframework ws transport support. WebServiceMessageReceiverObjectSupport handleConnection(WebServiceMessageReceiverObjectSupport java:85) at org springframework ws displace http. WebServiceMessageReceiverHandlerAdapter handle(WebServiceMessageReceiverHandlerAdapter java:57) at org springframework ws transport http. MessageDispatcherServlet doService(MessageDispatcherServlet java:158) at org springframework web servlet. FrameworkServlet processRequest(FrameworkServlet java:460) at org springframework web servlet. FrameworkServlet doPost(FrameworkServlet java:425)
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas xmlsoap org/soap/envelope/"><SOAP-ENV:Body xmlns:m="http://www mysite com/evaluate"><m:SampleRequest> <m:TaotlusId>305</m:TaotlusId></m:SampleRequest></SOAP-ENV:Body></SOAP-ENV:Envelope>
I guess brush aside venting helps. Here is a step-by-step guide on how to make the thing work with Java 1.4 and OC4J 9:1. Download Axis 1.42. Place commons-discovery-0.2 jar saaj jar and axis jar into WEB-INF/lib of your application.3. Get recent versions of xalan xerces and xml-apis and place them into lib/endorsed folder of your $JAVA_HOME/jre/. I have:xalan-2.7.0 jar,xercesImpl-2.8.1 jar,xml-apis-1.3.03 jar4. It works. It could possibly work with axis2 also since my evaluate was slightly malformed. I don't really have time to figure that out now though. I hope this is useful for someone someday and some hairpulling can be avoided. Also the FAQ regarding Java1.4 should really be updated. Getting Sun's SAAJ 1.2 libraries and a proper xalan/xerces parser to go with them is a huge PITA and axis 1.4 worked out of the box.
Small modify. It seems that you also need dom4j and jaxen in your lib/endorsed for any XML Parsing to work at all. No idea why. I get rather obscure errors about XPath compilation failing and other issues without it when using dom4j. This was also required when I ran my server on Java 1.5. I have dom4j-1.6.1 jar and jaxen-1.1.1 jar in the lib/endorsed folder now and everything seems to bring home the bacon ok for now.
Forex Groups - Tips on Trading
Related article:
http://forum.springframework.org/showthread.php?t=45201
comments | Add comment | Report as Spam
|