Re: Configuring SSL on Axis2

2008-06-04 Thread Karthik R




Hello Friends,

TO make the provider available. Check java.security.policy file in jre
directory.
the Provider jar must be in ext directory.and file should be in 
lib\security



Jeff Greif wrote:

  Just a guess, but it appears that you do not have a JCE provider on
your classpath, or that one that is on the classpath is not the one
requested in some configuration properties file.

Jeff

On Tue, Jun 3, 2008 at 12:26 AM, prashants b
[EMAIL PROTECTED] wrote:
  
  
Hi,
I am configuring SSL on Axis2 1.3 and using Tomcat 5.5.26 as a server.
I followed these steps.
1) I generated server keystore.
2) Exported certificate.
3) Imported this certificate in "cacerts".
4) In my web service client I set the properties as
System.setProperty("javax.net.ssl.trustStore", "$JAVA_HOME/../cacerts");
System.setProperty("javax.net.ssl.trustStorePassword", "secretPwd");

After calling web service I am getting this error at client.

Can any one suggest if I am missing something
Please help


Exception in thread "main" java.lang.NoClassDefFoundError
at javax.crypto.Cipher.getInstance(DashoA12275)
at com.sun.net.ssl.internal.ssl.JsseJce.getCipher(Unknown Source)
at com.sun.net.ssl.internal.ssl.RSACipher.init(Unknown Source)
at com.sun.net.ssl.internal.ssl.RSACipher.getInstance(Unknown Source)
at com.sun.net.ssl.internal.ssl.PreMasterSecret.init(Unknown Source)
at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverHelloDone(Unknown
Source)
at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(Unknown
Source)
at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Unknown Source)
at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Unknown
Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)
at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown
Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(Unknown
Source)
at com.sun.net.ssl.internal.ssl.AppOutputStream.write(Unknown Source)
at java.io.BufferedOutputStream.flushBuffer(Unknown Source)
at java.io.BufferedOutputStream.flush(Unknown Source)
at java.io.FilterOutputStream.flush(Unknown Source)
at
org.apache.commons.httpclient.ChunkedOutputStream.flush(ChunkedOutputStream.java:190)
at com.ctc.wstx.io.UTF8Writer.flush(UTF8Writer.java:99)
at com.ctc.wstx.sw.BufferingXmlWriter.flush(BufferingXmlWriter.java:214)
at com.ctc.wstx.sw.BaseStreamWriter.flush(BaseStreamWriter.java:311)
at
org.apache.axiom.om.impl.MTOMXMLStreamWriter.flush(MTOMXMLStreamWriter.java:118)
at
org.apache.axiom.om.impl.llom.OMNodeImpl.serializeAndConsume(OMNodeImpl.java:422)
at
org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:68)
at
org.apache.axis2.transport.http.AxisRequestEntity.writeRequest(AxisRequestEntity.java:84)
at
org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:495)
at
org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:1973)
at
org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:993)
at
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)
at
org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
at
org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:520)
at
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:191)
at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77)
at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:327)
at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:206)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396)
at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:374)
at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211)
at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163


Thanks in advance
--Prash




  
  
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Configuring SSL on Axis2

2008-06-03 Thread Jeff Greif
Just a guess, but it appears that you do not have a JCE provider on
your classpath, or that one that is on the classpath is not the one
requested in some configuration properties file.

Jeff

On Tue, Jun 3, 2008 at 12:26 AM, prashants b
[EMAIL PROTECTED] wrote:
 Hi,
 I am configuring SSL on Axis2 1.3 and using Tomcat 5.5.26 as a server.
 I followed these steps.
 1) I generated server keystore.
 2) Exported certificate.
 3) Imported this certificate in cacerts.
 4) In my web service client I set the properties as
 System.setProperty(javax.net.ssl.trustStore, $JAVA_HOME/../cacerts);
 System.setProperty(javax.net.ssl.trustStorePassword, secretPwd);

 After calling web service I am getting this error at client.

 Can any one suggest if I am missing something
 Please help


 Exception in thread main java.lang.NoClassDefFoundError
 at javax.crypto.Cipher.getInstance(DashoA12275)
 at com.sun.net.ssl.internal.ssl.JsseJce.getCipher(Unknown Source)
 at com.sun.net.ssl.internal.ssl.RSACipher.init(Unknown Source)
 at com.sun.net.ssl.internal.ssl.RSACipher.getInstance(Unknown Source)
 at com.sun.net.ssl.internal.ssl.PreMasterSecret.init(Unknown Source)
 at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverHelloDone(Unknown
 Source)
 at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(Unknown
 Source)
 at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Unknown Source)
 at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Unknown
 Source)
 at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)
 at
 com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown
 Source)
 at com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(Unknown
 Source)
 at com.sun.net.ssl.internal.ssl.AppOutputStream.write(Unknown Source)
 at java.io.BufferedOutputStream.flushBuffer(Unknown Source)
 at java.io.BufferedOutputStream.flush(Unknown Source)
 at java.io.FilterOutputStream.flush(Unknown Source)
 at
 org.apache.commons.httpclient.ChunkedOutputStream.flush(ChunkedOutputStream.java:190)
 at com.ctc.wstx.io.UTF8Writer.flush(UTF8Writer.java:99)
 at com.ctc.wstx.sw.BufferingXmlWriter.flush(BufferingXmlWriter.java:214)
 at com.ctc.wstx.sw.BaseStreamWriter.flush(BaseStreamWriter.java:311)
 at
 org.apache.axiom.om.impl.MTOMXMLStreamWriter.flush(MTOMXMLStreamWriter.java:118)
 at
 org.apache.axiom.om.impl.llom.OMNodeImpl.serializeAndConsume(OMNodeImpl.java:422)
 at
 org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:68)
 at
 org.apache.axis2.transport.http.AxisRequestEntity.writeRequest(AxisRequestEntity.java:84)
 at
 org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:495)
 at
 org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:1973)
 at
 org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:993)
 at
 org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)
 at
 org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
 at
 org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
 at
 org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
 at
 org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:520)
 at
 org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:191)
 at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77)
 at
 org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:327)
 at
 org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:206)
 at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396)
 at
 org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:374)
 at
 org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211)
 at
 org.apache.axis2.client.OperationClient.execute(OperationClient.java:163


 Thanks in advance
 --Prash




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]