InvalidCanonicalizerException
Hi, I am trying to use Rampart in Axis 2 v 1.3 using Tomcat 4 and a 1.4 JDK. I'm trying to do a simple UsernameToken authentication. I believe I'm following the tutorials pretty faithfully. The server is giving me the following exception: org.apache.xml.security.c14n.InvalidCanonicalizerException: Unknown canonicalizer. No handler installed for URI http://www.w3.org/TR/2001/REC-xml-c14n-20010315# WithComments at org.apache.xml.security.c14n.Canonicalizer.(Unknown Source) at org.apache.xml.security.c14n.Canonicalizer.getInstance(Unknown Source) at org.apache.xml.security.utils.XMLUtils.outputDOM(Unknown Source) at org.apache.rampart.util.Axis2Util.getSOAPEnvelopeFromDOMDocument(Axis2Util.java:209) at org.apache.rampart.handler.WSDoAllReceiver.processBasic(WSDoAllReceiver.java:237) at org.apache.rampart.handler.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:86) at org.apache.rampart.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:72) at org.apache.axis2.engine.Phase.invoke(Phase.java:292) at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:212) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:132) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275) at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:120) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) . The soap fault returned to the client contains: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog at [row,col {unknown-source}]: [2,0] Any ideas? To me it sounds like some configuration issue or some incorrect jar file but I cannot track it down. Help appreciated! Jean This email and any files or content transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. The Company and the originator of this email accept no liability for the content of this email, or for the consequences of any actions taken on the basis of the information provided, unless that information is subsequently confirmed in writing. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. Warning: Although the Company and the originator have taken reasonable precautions to ensure no viruses are present in this email, the company cannot accept responsibility for any loss or damage arising from the use of this email or attachments.
Re: InvalidCanonicalizerException
Hi all, Just to let you know, I upgraded to Tomcat 6 and JDK 1.5 and the problem magically disappeared. Pity I wasted a few days (on-and-off) on this. I had been led to believe that the previous configuration was supported... Jean-Claude Pace Junior Executive - Information Technology GO Mobile GO Mobile, Fra Diego Street, Marsa, MRS 1501, Malta. t +356 2124 6200f +356 2124 0112 www.go.com.mt - Forwarded by JeanClaude Pace/Dept IT/MobIsle on 14/02/2008 11:58 - JeanClaude Pace/Dept IT/MobIsle 13/02/2008 14:02 To axis-user@ws.apache.org cc Subject InvalidCanonicalizerException Hi, I am trying to use Rampart in Axis 2 v 1.3 using Tomcat 4 and a 1.4 JDK. I'm trying to do a simple UsernameToken authentication. I believe I'm following the tutorials pretty faithfully. The server is giving me the following exception: org.apache.xml.security.c14n.InvalidCanonicalizerException: Unknown canonicalizer. No handler installed for URI http://www.w3.org/TR/2001/REC-xml-c14n-20010315# WithComments at org.apache.xml.security.c14n.Canonicalizer.(Unknown Source) at org.apache.xml.security.c14n.Canonicalizer.getInstance(Unknown Source) at org.apache.xml.security.utils.XMLUtils.outputDOM(Unknown Source) at org.apache.rampart.util.Axis2Util.getSOAPEnvelopeFromDOMDocument(Axis2Util.java:209) at org.apache.rampart.handler.WSDoAllReceiver.processBasic(WSDoAllReceiver.java:237) at org.apache.rampart.handler.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:86) at org.apache.rampart.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:72) at org.apache.axis2.engine.Phase.invoke(Phase.java:292) at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:212) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:132) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275) at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:120) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) . The soap fault returned to the client contains: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog at [row,col {unknown-source}]: [2,0] Any ideas? To me it sounds like some configuration issue or some incorrect jar file but I cannot track it down. Help appreciated! Jean This email and any files or content transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. The Company and the originator of this email accept no liability for the content of this email, or for the consequences of any actions taken on the basis of the information provided, unless that information is subsequently confirmed in writing. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. Warning: Although the Company and the originator have taken reasonable precautions to ensure no viruses are present in this email, the company cannot accept responsibility for any loss or damage arising from the use of this email or attachments. This email and any files or content transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. The Compa
RE: InvalidCanonicalizerException
Hi Jean, I am also having same problem , I am also trying the same simple UsernameToken authentication provided by rampart. I am using JDK1.6, Tomcat 5.5.9 and Axis2.For me Request response are Request: POST /axis2/services/sample02 HTTP/1.1 Content-Type: text/xml; charset=3DUTF-8 SOAPAction: "urn:echo" User-Agent: Axis2 Host: 127.0.0.1:8081 Transfer-Encoding: chunked 49a http://schemas.xmlsoap.org/soap/envelope/";> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-sece= xt-1.0.xsd" soapenv:mustUnderstand=3D"1">http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-util= ity-1.0.xsd" wsu:Id= =3D"Timestamp-25610032">2008-02-14T07:30:23.018Z= 2008-02-14T07:35:23.018Zhttp://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-util= ity-1.0.xsd" wsu:Id= =3D"UsernameToken-3860801">bobhttp://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-= profile-1.0#PasswordDigest">Ojbn0fGTA3w6A9MMdCGAI4w+7D4= =3DIayhqO7tNWK2XtGnI2G3CQ=3D= =3D2008-02-14T07:30:23.002Zhttp://sample02.samples.rampart.apache.org/xsd";>Hello= world 0 Response: HTTP/1.1 500 Internal server error Date: Thu, 14 Feb 2008 07:30:23 GMT Server: Simple-Server/1.1 Transfer-Encoding: chunked Content-Type: text/xml; charset=3DUTF-8 Connection: Close 6d0 http://schemas.xmlsoap.org/soap/envelope/";>org.apache.axis2.AxisFault at= org.apache.rampart.handler.WSDoAllReceiver.processMessage(WSDoAllReceiver.= java:100) at= org.apache.rampart.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:72)&#= xd; at= org.apache.axis2.engine.Phase.invoke(Phase.java:383) at= org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:203) at= org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:131) at= org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(= HTTPTransportUtils.java:279) at= org.apache.axis2.transport.http.HTTPWorker.service(HTTPWorker.java:216)&#x= d; at= org.apache.axis2.transport.http.server.AxisHttpService.doService(AxisHttpS= ervice.java:275) at= org.apache.axis2.transport.http.server.AxisHttpService.handleRequest(AxisH= ttpService.java:184) at= org.apache.axis2.transport.http.server.HttpServiceProcessor.run(HttpServic= eProcessor.java:74) at= edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.r= unTask(ThreadPoolExecutor.java:665) at= edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.r= un(ThreadPoolExecutor.java:690) at java.lang.Thread.run(Thread.java:534) Caused by: java.lang.NullPointerException at= org.apache.rampart.handler.WSDoAllReceiver.processBasic(WSDoAllReceiver.ja= va:329) at= org.apache.rampart.handler.WSDoAllReceiver.processMessage(WSDoAllReceiver.= java:91) ... 12 more 0 I am unable to fig out whats problem is.Any idea how to solve this error. Aditya From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, February 14, 2008 4:29 PM To: axis-user@ws.apache.org Subject: Re: InvalidCanonicalizerException Hi all, Just to let you know, I upgraded to Tomcat 6 and JDK 1.5 and the problem magically disappeared. Pity I wasted a few days (on-and-off) on this. I had been led to believe that the previous configuration was supported... Jean-Claude Pace Junior Executive - Information Technology GO Mobile GO Mobile, Fra Diego Street, Marsa, MRS 1501, Malta. t +356 2124 6200f +356 2124 0112 www.go.com.mt<http://www.go.com.mt/> - Forwarded by JeanClaude Pace/Dept IT/MobIsle on 14/02/2008 11:58 - JeanClaude Pace/Dept IT/MobIsle 13/02/2008 14:02 To axis-user@ws.apache.org cc Subject InvalidCanonicalizerException Hi, I am trying to use Rampart in Axis 2 v 1.3 using Tomcat 4 and a 1.4 JDK. I'm trying to do a simple UsernameToken authentication. I believe I'm following the tutorials pretty faithfully. The server is giving me the following exception: org.apache.xml.security.c14n.InvalidCanonicalizerException: Unknown canonicalizer. No handler installed for URI http://www.w3.org/TR/2001/REC-xml-c14n-20010315# WithComments at org.apache.xml.security.c14n.Canonicalizer.(Unknown Source) at org.apache.xml.security.c14n.Canonicalizer.getInstance(Unknown Source) at org.apache.xml.security.utils.XMLUtils.outputDOM(Unknown Source) at org.apache.rampart.util.Axis2Util.getSOAPEnvelopeFromDOMDocument(Axis2Util.java:209) at org.apache.rampart.handler.WSDoAllReceiver.processBasic(WSDoAllRece