Hi I think it is server error, Please go through the Server side code, In server side do You validate or check any condition. if u do like that gothrough server side code.
Regards Babu J -----Original Message----- From: Bob Koon [mailto:[EMAIL PROTECTED] Sent: Monday, January 09, 2006 3:57 PM To: [email protected] Subject: Very newbie question for encryption on wss4j in axis. Dear all, I tried to follow the example in WSS4j web site to setup a Web service with authentication and encryption using Axis. However I got the following error response on server side: HTTP/1.1 500 Internal Server Error Content-Type: text/xml;charset=utf-8 Date: Mon, 09 Jan 2006 10:05:19 GMT Server: Apache-Coyote/1.1 Connection: close <?xml version="1.0" encoding="utf-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><soapenv:Fault><faultcode xmlns:ns1="http://xml.apache.org/axis/">ns1:Server</faultcode><faultstring>Server Error</faultstring><detail><ns2:stackTrace xmlns:ns2="http://xml.apache.org/axis/">Server Error at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:473) at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281) at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327) 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.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:534) </ns2:stackTrace><ns3:hostname xmlns:ns3="http://xml.apache.org/axis/">PYKOONPC</ns3:hostname></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>java.lang.ArrayIndexOutOfBoundsException: 2 >= 2 at java.util.Vector.elementAt(Vector.java:431) at javax.swing.table.DefaultTableModel.setValueAt(DefaultTableModel.java:633) at org.apache.axis.utils.tcpmon$Connection.run(tcpmon.java:1205) As it only states that it is "Server Error", I cannot figure out which part goes wrong. Anyone have idea for it? As I have tried successfully when I use authentication only, therefore I guess it may be a problem in decryption, or maybe server side setting problem. I have attached files I used: client_deploy.wsdd - the client deployment wsdd for running the client. clientCrypto.properties - the crypto.properties for the client side. haha.keystore - the keystore I generated for the client side, it contains a certificate. The password for this keystore is "password". deploy.wsdd - the wsdd for deploying the web service to Axis crypto.properties - the crypto.properties put on c:\temp, for server side. server.keystore - the keystore for the server side, contain the key. Both the keystore and key passwordd is "password". Regards, Bob Koon DISCLAIMER: Information transmitted by this e-mail may be proprietary to Ramco Systems Ltd., and / or the authors of the information and is intended for use only by the individual or entity to which it is addressed, and may contain confidential or legally privileged information. If you are not the intended recipient or it appears that this mail has been forwarded to you without proper authority, you are not authorised to access, read, disclose, copy, use or otherwise deal with it and any such actions are prohibited and may be unlawful. Internet communications cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, arrive late or contain viruses. Ramco Systems Limited therefore does not accept liability for any errors, omissions, viruses or computer problems experienced as a result of this transmission. If you have received this e-mail in error, please notify us immediately at mail to: [EMAIL PROTECTED] and delete this mail from your records. Notice is hereby given that no representation, contract or other binding obligation shall be created by this e-mail. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
