Hi ,

        I need to implement WS security so planning to use Rampart 1.4
with Axis2.

        i tried with example that i got through Google but getting the
error, the stack trace as follows




log4j:WARN No appenders could be found for logger
(org.apache.axis2.deployment.FileSystemConfigurator).

log4j:WARN Please initialize the log4j system properly.

Exception in thread "main" org.apache.axis2.AxisFault: Remote host
closed connection during handshake

at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)

at
org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessage
Formatter.java:83)

at
org.apache.axis2.transport.http.AxisRequestEntity.writeRequest(AxisReque
stEntity.java:84)

at
org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequest
Body(EntityEnclosingMethod.java:499)

at
org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase
.java:2114)

at
org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java
:1096)

at
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMe
thodDirector.java:398)

at
org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMetho
dDirector.java:171)

at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:3
97)

at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:3
46)

at
org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(Abstrac
tHTTPSender.java:542)

at
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:1
89)

at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)

at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageW
ithCommons(CommonsHTTPTransportSender.java:371)

at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(Common
sHTTPTransportSender.java:209)

at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:448)

at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOper
ation.java:401)

at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInA
xisOperation.java:228)

at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163
)

at
tutorial.rampart.client.SecureServiceStub.add(SecureServiceStub.java:193
)

at
tutorial.rampart.client.SecureServiceCGClient.main(SecureServiceCGClient
.java:36)

Caused by: com.ctc.wstx.exc.WstxIOException: Remote host closed
connection during handshake

at com.ctc.wstx.sw.BaseStreamWriter.flush(BaseStreamWriter.java:313)

at
org.apache.axiom.om.impl.MTOMXMLStreamWriter.flush(MTOMXMLStreamWriter.j
ava:146)

at
org.apache.axiom.om.impl.dom.NodeImpl.serializeAndConsume(NodeImpl.java:
817)

at
org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessage
Formatter.java:79)

... 19 more

Caused by: javax.net.ssl.SSLHandshakeException: Remote host closed
connection during handshake

at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java
:742)

at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSo
cketImpl.java:1030)

at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.jav
a:622)

at
com.sun.net.ssl.internal.ssl.AppOutputStream.write(AppOutputStream.java:
59)

at
java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)

at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)

at java.io.FilterOutputStream.flush(FilterOutputStream.java:123)

at
org.apache.commons.httpclient.ChunkedOutputStream.flush(ChunkedOutputStr
eam.java:191)

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)

... 22 more

Caused by: java.io.EOFException: SSL peer shut down incorrectly

at com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:333)

at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java
:723)

... 32 more

some one share me the tutorial that tells us implementing Rampart 1.4
with Axis2 1.4

Thanks & Regards,

Shilpa






Please do not print this email unless it is absolutely necessary. 

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email. 

www.wipro.com

Reply via email to