axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Denise Wu <wadie...@gmail.com>
Subject Re: axis2 over HTTPS - Help!
Date Thu, 28 Jul 2011 08:27:28 GMT
Hi,

About SSL test: when I open https://localhost:443  I get the apache
startup page.
However, when I try to open the webservice url
https://localhost:443/axis2/services/MyService.MyServiceHttpEndpint/

I get the following error page.

---
HTTP Status 403 - Access to the requested resource has been denied

type Status report

message Access to the requested resource has been denied

description Access to the specified resource (Access to the requested
resource has been denied) has been forbidden.
---

There is no change/info in the tomcat log file. the only debug info I
get is when I invoke the webservice from a client.

Thanks for your help.



On Wed, Jul 27, 2011 at 4:33 PM, Jose Marin <jmarin@trla.org> wrote:
> 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.MyServiceHttpEndpint/]
>> 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-unsubscribe@axis.apache.org
>> For additional commands, e-mail: java-user-help@axis.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
> For additional commands, e-mail: java-user-help@axis.apache.org
>
>



-- 
Wadienil.

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org


Mime
View raw message