Hi Denise,
Have you ascertained your ssl is installed properly, and you can pull up
an https page on your server via the web?
What about your error logs, what do they say?
JM
On 7/27/2011 8:32 AM, Denise Wu wrote:
Hi,
I've been strugling with the following error for days, can you help please?
I am using the following configuration:
* Axis2 1.5.4
* Apache tomcat 7.0.8
* Java 1.6.0_26-b03
Server configuration:
==============
I have the following in my tomcat server.xml
<!-- Define a blocking Java SSL Coyote HTTP/1.1 Connector on port 443 -->
<Connector port="443" protocol="org.apache.coyote.http11.Http11Protocol"
maxThreads="150" scheme="https" secure="true" SSLEnabled="true"
keystoreFile="C:\apache-tomcat-7.0.8\webapps\tomcat.keystore"
keystorePass="123456"
clientAuth="false" sslProtocol="TLS" connectionTimeout="60000"/>
<!-- Define a non-blocking Java SSL Coyote HTTP/1.1 Connector on port 443 -->
<Connector protocol="org.apache.coyote.http11.Http11NioProtocol"
maxThreads="150" scheme="https" secure="true" SSLEnabled="true"
keystoreFile="C:\apache-tomcat-7.0.8\webapps\tomcat.keystore"
keystorePass="123456"
clientAuth="false" sslProtocol="TLS" connectionTimeout="60000"/>
I restarted tomcat
Client configuration:
==============
In my client code I have the following
---
final Properties props = System.getProperties();
props.setProperty("javax.net.ssl.trustStore",
"C:\\apache-tomcat-7.0.8\\webapps\\tomcat.keystore");
props.setProperty("javax.net.ssl.trustStorePassword", "123456");
props.setProperty("javax.net.ssl.trustStoreType", "JKS");
props.setProperty("javax.net.ssl.keyStore",
"C:\\apache-tomcat-7.0.8\\webapps\\tomcat.keystore");
props.setProperty("javax.net.ssl.keyStorePassword", "123456");
props.setProperty("javax.net.ssl.keyStoreType", "JKS");
props.setProperty("javax.net.debug", "ssl");
System.setProperties(props);
---
Note that both the server and the client are on the same machine and
for the client I am using the truststore as the keystore for testing
purpose.
When running the client I am getting the following error:
org.apache.axis2.transport.http.HTTPSender sendViaPost
INFO: Unable to sendViaPost to
url[https://localhost:443/axis2/services/MyService.MyServiceHttpEndpoint/]
org.apache.axis2.AxisFault: java.net.SocketTimeoutException: Read timed out
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
at
org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:83)
at
org.apache.axis2.transport.http.AxisRequestEntity.writeRequest(AxisRequestEntity.java:84)
at
org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(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(HttpMethodDirector.java:398)
at
org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
at
org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:557)
at
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:199)
at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:76)
at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:400)
at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:225)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:438)
at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:402)
at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
at
uk.ac.diamond.client.MyServiceStub.authenticate(MyServiceStub.java:911)
...
...
Caused by: javax.xml.stream.XMLStreamException:
java.net.SocketTimeoutException: Read timed out
Any idea? thanks for your help.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org
For additional commands, e-mail: java-user-h...@axis.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org
For additional commands, e-mail: java-user-h...@axis.apache.org