From: Zsolt E. <xph...@gm...> - 2008-01-08 16:32:10
|
SOLUTION FOR THE PROBLEM LISTED BELOW All I had to is to get the new xerces libraries and replace the xml-apis.jarin the $CATALINA_HOME/common/endorsed directory This have helped me, I am no longer get the error message that the method that should handle the request is not present -------------------------------- PROBLEM [START] ------------------------------------------- Hello I am trying to write a stand alone SOAP message sender towards freebxmlrr I am loading the XML message form a file (for example the subscriptionExample.xml from the demoDB directory which comes with the omar package) I create the SOAP message using the createSOAPStreamFromRequestStream and createSOAPMessageFromSOAPStream method, which form the SOAP message After that I make a connection towards the freebxmlrr using the following URL http://localhost:8080/omar/registry/soap , here are the lines I use to create the connection and send the message I have created SOAPConnectionFactory soapConnectionFactory = SOAPConnectionFactory.newInstance(); SOAPConnection soapConnection = soapConnectionFactory.createConnection(); SOAPMessage replyMessage = soapConnection.call(message, destinationURL); // send the message I have put in code to print out the SOAP message that is send to freebxmlrr in the RegistrySOAPServlet class, the message seams to be sent OK cause I get the same SOAP message print out as the one I have created with the client application. The message is sent out OK, but then I get an error response from the freebxmlrr 2008-01-08 16:03:34,250 ERROR org.freebxml.omar.server.interfaces.soap.RegistrySOAPServlet[http-8080-Processor23] - Caught exception: javax.xml.parsers.SAXParserFactory.getSchema ()Ljavax/xml/validation/Schema; java.lang.NoSuchMethodError: javax.xml.parsers.SAXParserFactory.getSchema ()Ljavax/xml/validation/Schema; at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl .<init>( SAXParserImpl.java:124) at com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl.newSAXParser( SAXParserFactoryImpl.java:98) at com.sun.xml.messaging.saaj.util.ParserPool.get(ParserPool.java:42) at com.sun.xml.messaging.saaj.soap.EnvelopeFactory.createEnvelope( EnvelopeFactory.java:62) at com.sun.xml.messaging.saaj.soap.ver1_1.SOAPPart1_1Impl.createEnvelopeFromSource(SOAPPart1_1Impl.java:39) at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getEnvelope( SOAPPartImpl.java:98) at org.freebxml.omar.server.interfaces.soap.RegistrySOAPServlet.onMessage( RegistrySOAPServlet.java:173) at org.freebxml.omar.server.interfaces.common.SOAPServlet.doPost( SOAPServlet.java:194) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at javax.servlet.http.HttpServlet.service(HttpServlet.java :802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter( ApplicationFilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke( StandardWrapperValve.java:214) at org.apache.catalina.core.StandardValveContext.invokeNext( StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke ( StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal( StandardContextValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke( StandardContextValve.java :152) at org.apache.catalina.core.StandardValveContext.invokeNext( StandardValveContext.java:104) at org.apache.catalina.authenticator.AuthenticatorBase.invoke( AuthenticatorBase.java:462) at org.apache.catalina.core.StandardValveContext.invokeNext( StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke( StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke ( StandardHostValve.java:137) at org.apache.catalina.core.StandardValveContext.invokeNext( StandardValveContext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke( ErrorReportValve.java:118) at org.apache.catalina.core.StandardValveContext.invokeNext( StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke( StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke ( StandardEngineValve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext( StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke( StandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java :929) at org.apache.coyote.tomcat5.CoyoteAdapter.service( CoyoteAdapter.java:160) at org.apache.coyote.http11.Http11Processor.process ( Http11Processor.java:799) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection (Http11Protocol.java:705) at org.apache.tomcat.util.net.TcpWorkerThread.runIt( PoolTcpEndpoint.java :577) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run( ThreadPool.java:683) at java.lang.Thread.run(Thread.java:595) 2008-01-08 16:03:34,270 INFO org.freebxml.omar.server.interfaces.soap.RegistrySOAPServlet[http-8080-Processor23] - request message: <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header/><SOAP-ENV:Body/></SOAP-ENV:Envelope> Here are the system specifications: RedHat Enterprise Linux 5 JWSDP 1.6 JAVA JDK 1.5.0_14 Tomcat 5.0.28 omar 3.0 Can anyone tell me what am I doing wrong here ? With regards Zolt Egete -------------------------------- PROBLEM [END] ------------------------------------------- |