[jboss-user] [Remoting] - Re: Problem using JaxWS over HTTPS connection from within a

adinn do-not-reply at jboss.com
Wed Feb 4 09:10:03 EST 2009


Ok, I resolved the SSLSocketBuilder error by adding

  | -Djavax.net.ssl.trustStore=$JBOSS_HOME/server/default/conf/wsse.truststore -Djavax.net.ssl.trustStorePassword=jbossws -Djavax.net.ssl.keyStore=$JBOSS_HOME/server/default/conf/wsse.keystore -Djavax.net.ssl.keyStorePassword=jbossws
  | 

to JAVA_OPTS. I am now getting a different which is actually more baffling.


  | 13:56:38,256 INFO  [STDOUT] CLIENT: obtaining userTransaction...
  | 13:56:38,257 INFO  [STDOUT] CLIENT: starting the transaction...
  | 13:56:38,949 ERROR [SOAPFaultHelperJAXWS] SOAP request exception
  | java.io.IOException: Could not transmit message
  | 	at org.jboss.ws.core.client.HTTPRemotingConnection.invoke(HTTPRemotingConnection.java:264)
  | 	at org.jboss.ws.core.client.SOAPProtocolConnectionHTTP.invoke(SOAPProtocolConnectionHTTP.java:71)
  | 	at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:340)
  | 	at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:291)
  | 	at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:170)
  | 	at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:150)
  | 	at $Proxy205.createCoordinationContextOperation(Unknown Source)
  | 	at com.arjuna.webservices11.wscoor.client.ActivationCoordinatorClient.sendCreateCoordination(ActivationCoordinatorClient.java:86)
  | 	at com.arjuna.wsc11.ActivationCoordinator.createCoordinationContext(ActivationCoordinator.java:76)
  | 	at com.arjuna.mwlabs.wst11.at.remote.UserTransactionImple.startTransaction(UserTransactionImple.java:195)
  | 	at com.arjuna.mwlabs.wst11.at.remote.UserTransactionImple.begin(UserTransactionImple.java:78)
  | 	at com.arjuna.mwlabs.wst11.at.remote.UserTransactionImple.begin(UserTransactionImple.java:68)
  | 	at com.jboss.jbosstm.xts.demo.client.BasicClient.testAtomicTransaction(BasicClient.java:456)
  | 	at com.jboss.jbosstm.xts.demo.client.BasicClient.doGet(BasicClient.java:408)
  | 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
  | 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  | 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  | 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | 	at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  | 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
  | 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
  | 	at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
  | 	at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
  | 	at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
  | 	at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
  | 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
  | 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
  | 	at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
  | 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
  | 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
  | 	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
  | 	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:601)
  | 	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
  | 	at java.lang.Thread.run(Thread.java:595)
  | Caused by: org.jboss.remoting.CannotConnectException: Can not connect http client invoker after 1 attempt(s)
  | 	at org.jboss.remoting.transport.http.HTTPClientInvoker.makeInvocation(HTTPClientInvoker.java:246)
  | 	at org.jboss.remoting.transport.http.HTTPClientInvoker.transport(HTTPClientInvoker.java:158)
  | 	at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:160)
  | 	at org.jboss.remoting.Client.invoke(Client.java:1708)
  | 	at org.jboss.remoting.Client.invoke(Client.java:612)
  | 	at org.jboss.ws.core.client.HTTPRemotingConnection.invoke(HTTPRemotingConnection.java:242)
  | 	... 35 more
  | Caused by: java.io.IOException: HTTPS hostname wrong:  should be <127.0.0.1>
  | 	at sun.net.www.protocol.https.HttpsClient.checkURLSpoofing(HttpsClient.java:490)
  | 	at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:415)
  | 	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:166)
  | 	at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:857)
  | 	at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:230)
  | 	at org.jboss.remoting.util.SecurityUtility.getOutputStream(SecurityUtility.java:1514)
  | 	at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:331)
  | 	at org.jboss.remoting.transport.http.HTTPClientInvoker.makeInvocation(HTTPClientInvoker.java:228)
  | 	... 40 more
  | 

So, I noticed the fairly generous hint provided by the error message "HTTPS hostname wrong:  should be <127.0.0.1>".

I modified my keystore and truststore to include certificates with -alias 127.0.0.1 -dname "CN=127.0.0.1". I also modified my Activation Service proxy to use address "https:127.0.0.1:8443/ws-c11/ActrivationService". I checked and this was the address passed into the remoting layer. No joy.

As a last ditch measure I tried booting JBossAS using -b 127.0.0.1. Still no joy.

Any ideas?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4206981#4206981

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4206981



More information about the jboss-user mailing list