Axis, HTTPS with Web Start
Greetings,I have a situation where I am not sure if it belongs to this mailing or Web Start's.I have a Axis client, being deployed thru Web Start on client machines.It can also be run standalone (java 'main'). I run JDK 1.4.2 with Axis 1.2 RC2 (yeah, I know I have to upgrade to 1.2...).AppServer is SunOne 7.The client connects to an Axis server thru HTTPS (which is not the server from where it was downloaded).I have the JNLP security set to 'all-permissions' which means (in theory) that I have the same rights than a standalone application. When I run the client as STANDALONE, works perfectly:I connect to the Axis Server with HTTPS, get my response back, etc.When I start the very same client thru WebStart, the HTTPS connections fail, but the unsecure HTTP do work.For HTTPS, it fails during the SSL handshake for the server (see stack trace below). Any clue on this?Here is the exception I get on the client side.No sign on my request whatsoever on the server side, which makes me belief I dont even get out of my client app... ansport.http.HTTPSender.getSocket(HTTPSender.java:131)at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:370)at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:88) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)at org.apache.axis.SimpleChain.invoke(SimpleChain.java :83)at org.apache.axis.client.AxisClient.invoke(AxisClient.java:147)at org.apache.axis.client.Call.invokeEngine(Call.java:2719)at org.apache.axis.client.Call.invoke(Call.java:2702)at org.apache.axis.client.Call.invoke (Call.java:2378)at org.apache.axis.client.Call.invoke(Call.java:2301)at org.apache.axis.client.Call.invoke(Call.java:1758)at com.axacanada.b2b.common.util.AxisInvocationHandler.invoke(AxisInvocationHandler.java :98)at $Proxy0.makeNewBusiness(Unknown Source)at com.axacanada.b2b.cq.client.AbstractRequestSenderThread.run(AbstractRequestSenderThread.java:74)at com.axacanada.b2b.cq.client.RequestSenderThread.run (RequestSenderThread.java:70){http://xml.apache.org/axis/}hostname:WS-1235javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:97)at org.apache.axis.strategies.InvocationStrategy.visit (InvocationStrategy.java:32)at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)at org.apache.axis.client.AxisClient.invoke(AxisClient.java :147)at org.apache.axis.client.Call.invokeEngine(Call.java:2719)at org.apache.axis.client.Call.invoke(Call.java:2702)at org.apache.axis.client.Call.invoke(Call.java:2378)at org.apache.axis.client.Call.invoke (Call.java:2301)at org.apache.axis.client.Call.invoke(Call.java:1758)at com.axacanada.b2b.common.util.AxisInvocationHandler.invoke(AxisInvocationHandler.java:98)at $Proxy0.makeNewBusiness(Unknown Source) at com.axacanada.b2b.cq.client.AbstractRequestSenderThread.run(AbstractRequestSenderThread.java:74)at com.axacanada.b2b.cq.client.RequestSenderThread.run(RequestSenderThread.java:70)Caused by: javax.net.ssl.SSLException : Unrecognized SSL message, plaintext connection?at com.sun.net.ssl.internal.ssl.InputRecord.b(Unknown Source)at com.sun.net.ssl.internal.ssl.InputRecord.read(Unknown Source)at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a (Unknown Source)at com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(Unknown Source)at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown Source)at org.apache.axis.components.net.JSSESocketFactory.create (JSSESocketFactory.java:186)at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:131)at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:370)at org.apache.axis.transport.http.HTTPSender.invoke (HTTPSender.java:88)... 13 more2005-05-27 10:06:03,165 [SOAP Request Sender] ERROR AbstractRequestSenderThread - AxisFault: ; nested exception is: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection? Fault Actor : nullFault Code: {http://schemas.xmlsoap.org/soap/envelope/}Server.userExceptionFault Role: nullFault String: javax.net.ssl.SSLException : Unrecognized SSL message, plaintext connection?
Re: Axis, HTTPS with Web Start
Yes I does. All my client's jars (including Axis jars and friends) are signed with a dummy certificate, generated through keytool. Security is also all-permissions in my JNLP deployment descriptor. The server (hidden behing the HTTPS URL) has a server certificate and does NOT require a client certificate. Christian Faucher On 5/27/05, Oleg Lebedev [EMAIL PROTECTED] wrote: Is your client trying to access the web service on the domainit was downloaded from via WebStart? I rememberhaving problems with cross-domain access. I ended up signing all the jars in order to get it to work. -Original Message-From: Christian faucher [mailto: [EMAIL PROTECTED]] Sent: Friday, May 27, 2005 9:02 AMTo: axis-user@ws.apache.org Subject: Axis, HTTPS with Web StartGreetings,I have a situation where I am not sure if it belongs to this mailing or Web Start's.I have a Axis client, being deployed thru Web Start on client machines.It can also be run standalone (java 'main'). I run JDK 1.4.2 with Axis 1.2 RC2 (yeah, I know I have to upgrade to 1.2...).AppServer is SunOne 7.The client connects to an Axis server thru HTTPS (which is not the server from where it was downloaded).I have the JNLP security set to 'all-permissions' which means (in theory) that I have the same rights than a standalone application. When I run the client as STANDALONE, works perfectly:I connect to the Axis Server with HTTPS, get my response back, etc.When I start the very same client thru WebStart, the HTTPS connections fail, but the unsecure HTTP do work.For HTTPS, it fails during the SSL handshake for the server (see stack trace below). Any clue on this?Here is the exception I get on the client side.No sign on my request whatsoever on the server side, which makes me belief I dont even get out of my client app... ansport.http.HTTPSender.getSocket(HTTPSender.java:131)at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:370)at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:88) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)at org.apache.axis.SimpleChain.invoke(SimpleChain.java :83)at org.apache.axis.client.AxisClient.invoke(AxisClient.java:147)at org.apache.axis.client.Call.invokeEngine(Call.java:2719)at org.apache.axis.client.Call.invoke(Call.java:2702)at org.apache.axis.client.Call.invoke (Call.java:2378)at org.apache.axis.client.Call.invoke(Call.java:2301)at org.apache.axis.client.Call.invoke(Call.java:1758)at com.axacanada.b2b.common.util.AxisInvocationHandler.invoke(AxisInvocationHandler.java :98)at $Proxy0.makeNewBusiness(Unknown Source)at com.axacanada.b2b.cq.client.AbstractRequestSenderThread.run(AbstractRequestSenderThread.java:74)at com.axacanada.b2b.cq.client.RequestSenderThread.run (RequestSenderThread.java:70){http://xml.apache.org/axis/}hostname:WS-1235 javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)at org.apache.axis.transport.http.HTTPSender.invoke (HTTPSender.java:97)at org.apache.axis.strategies.InvocationStrategy.visit (InvocationStrategy.java:32)at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)at org.apache.axis.SimpleChain.invoke (SimpleChain.java:83)at org.apache.axis.client.AxisClient.invoke(AxisClient.java :147)at org.apache.axis.client.Call.invokeEngine(Call.java:2719)at org.apache.axis.client.Call.invoke(Call.java:2702) at org.apache.axis.client.Call.invoke(Call.java:2378)at org.apache.axis.client.Call.invoke (Call.java:2301)at org.apache.axis.client.Call.invoke(Call.java:1758)at com.axacanada.b2b.common.util.AxisInvocationHandler.invoke (AxisInvocationHandler.java:98)at $Proxy0.makeNewBusiness(Unknown Source) at com.axacanada.b2b.cq.client.AbstractRequestSenderThread.run(AbstractRequestSenderThread.java:74)at com.axacanada.b2b.cq.client.RequestSenderThread.run (RequestSenderThread.java:70)Caused by: javax.net.ssl.SSLException : Unrecognized SSL message, plaintext connection?at com.sun.net.ssl.internal.ssl.InputRecord.b(Unknown Source)at com.sun.net.ssl.internal.ssl.InputRecord.read (Unknown Source)at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a (Unknown Source)at com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(Unknown Source)at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake (Unknown Source)at org.apache.axis.components.net.JSSESocketFactory.create (JSSESocketFactory.java:186)at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:131)at org.apache.axis.transport.http.HTTPSender.writeToSocket (HTTPSender.java:370)at org.apache.axis.transport.http.HTTPSender.invoke (HTTPSender.java:88)... 13 more2005-05-27 10:06:03,165 [SOAP Request Sender] ERROR AbstractRequestSenderThread - AxisFault: ; nested exception is: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection? Fault Actor : nullFault Code: { http://schemas.xmlsoap.org/soap/envelope
Re: Axis, HTTPS with Web Start
Found the problem with this! It seems Axis (or JNLP or something else) retrieves the proxy settings from IE (since I use IE to start get the web start rollin')... After adding my HTTPS Axis server's URL to the Ignore list, it works fine with JNLP and HTTPS. It was going through the proxy to talk to the Axis server. Christian Faucher On 5/27/05, Ruiz González, Jose de Jesus [EMAIL PROTECTED] wrote: Using HTTPS, requires having a copy of the Server certificate somewhere in your System. Something like C:\Archivos de programa\Java\j2re1.4.2_04\lib\security\cacerts I think, standalone runs because Java can find the Server Certificate. I dont't know how do you attach the Server certificate onthe WebStart application. Or, do you need to save a copy of the Server Certificate in each Client PC? José de Jesús Ruiz Gonzalez Departamento de Sistemas México Asistencia S.A. de C.V. Sistema Internacional de Asistencia Mapfre * mailto:[EMAIL PROTECTED] ) (52) 55 + 54801298 (Fax(52) 55 + 56112011 http://www.mexicoasistencia.com/ De: Christian faucher [mailto:[EMAIL PROTECTED]] Enviado el: Viernes, 27 de Mayo de 2005 10:43 a.m.Para: axis-user@ws.apache.orgAsunto: Re: Axis, HTTPS with Web Start Yes I does. All my client's jars (including Axis jars and friends) are signed with a dummy certificate, generated through keytool. Security is also all-permissions in my JNLP deployment descriptor. The server (hidden behing the HTTPS URL) has a server certificate and does NOT require a client certificate. Christian Faucher On 5/27/05, Oleg Lebedev [EMAIL PROTECTED] wrote: Is your client trying to access the web service on the domainit was downloaded from via WebStart? I rememberhaving problems with cross-domain access. I ended up signing all the jars in order to get it to work. -Original Message-From: Christian faucher [mailto: [EMAIL PROTECTED]] Sent: Friday, May 27, 2005 9:02 AMTo: axis-user@ws.apache.org Subject: Axis, HTTPS with Web StartGreetings,I have a situation where I am not sure if it belongs to this mailing or Web Start's.I have a Axis client, being deployed thru Web Start on client machines.It can also be run standalone (java 'main'). I run JDK 1.4.2 with Axis 1.2 RC2 (yeah, I know I have to upgrade to 1.2...).AppServer is SunOne 7.The client connects to an Axis server thru HTTPS (which is not the server from where it was downloaded).I have the JNLP security set to 'all-permissions' which means (in theory) that I have the same rights than a standalone application. When I run the client as STANDALONE, works perfectly:I connect to the Axis Server with HTTPS, get my response back, etc.When I start the very same client thru WebStart, the HTTPS connections fail, but the unsecure HTTP do work.For HTTPS, it fails during the SSL handshake for the server (see stack trace below). Any clue on this?Here is the exception I get on the client side.No sign on my request whatsoever on the server side, which makes me belief I dont even get out of my client app... ansport.http.HTTPSender.getSocket(HTTPSender.java:131)at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:370)at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:88) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)at org.apache.axis.SimpleChain.invoke(SimpleChain.java :83)at org.apache.axis.client.AxisClient.invoke(AxisClient.java:147)at org.apache.axis.client.Call.invokeEngine(Call.java:2719)at org.apache.axis.client.Call.invoke(Call.java:2702)at org.apache.axis.client.Call.invoke (Call.java:2378)at org.apache.axis.client.Call.invoke(Call.java:2301)at org.apache.axis.client.Call.invoke(Call.java:1758)at com.axacanada.b2b.common.util.AxisInvocationHandler.invoke(AxisInvocationHandler.java :98)at $Proxy0.makeNewBusiness(Unknown Source)at com.axacanada.b2b.cq.client.AbstractRequestSenderThread.run(AbstractRequestSenderThread.java:74)at com.axacanada.b2b.cq.client.RequestSenderThread.run (RequestSenderThread.java:70){http://xml.apache.org/axis/}hostname:WS-1235 javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)at org.apache.axis.transport.http.HTTPSender.invoke (HTTPSender.java:97)at org.apache.axis.strategies.InvocationStrategy.visit (InvocationStrategy.java:32)at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)at org.apache.axis.SimpleChain.invoke (SimpleChain.java:83)at org.apache.axis.client.AxisClient.invoke(AxisClient.java :147)at org.apache.axis.client.Call.invokeEngine(Call.java:2719)at org.apache.axis.client.Call.invoke(Call.java:2702) at org.apache.axis.client.Call.invoke(Call.java:2378)at org.apache.axis.client.Call.invoke (Call.java:2301)at org.apache.axis.client.Call.invoke(Call.java:1758)at com.axacanada.b2b.common.util.AxisInvocationHandler.invoke (AxisInvocationHandler.java:98
Re: ANNOUNCE : Axis 1.2 RELEASE
Somebody should upgrade the http://ws.apache.org/axis/ main page: doesnt show the 1.2 release yet. Christian Faucher On 5/4/05, Glen Daniels [EMAIL PROTECTED] wrote: Hi folks: After *much* too long, the Axis team would like to announce the release of Axis 1.2 final. You can get it at: http://www.apache.org/dyn/closer.cgi/ws/axis/1_2/ (if your favorite mirror doesn't have it yet try another, it's propagating now) A few words about this release - * A LOT of things have been cleaned up/fixed since 1.1, but 1.2 is not yet a perfect beast. We know there are still issues that, although they didn't block this release, are important to our user base. We will be working to resolve these in the near term, which brings us to... * This took way too much time. We will (for the remainder of Axis 1.X's lifetime and hopefully all of Axis 2.0's...) be focusing much more aggressively on the release early and often mantra. Expect to see more fixes and more official releases near term. * Thanks to EVERYONE who submitted bug reports, patches, and (especially) good, concise test cases. Without your help we wouldn't have been able to make half the progress we did. * As always, please send questions/comments to axis-user@ws.apache.org, and development-related issues to [EMAIL PROTECTED] Issues may be checked and filed at http://issues.apache.org/jira/browse/AXIS Onwards to 1.Next... Thanks, --Glen on behalf of the Axis team
Re: Axis and .NET interop with dates
Hi, As another standardized way of passing date, you should consider julian dates. Julian dates are a integer, being the number of days since January 1, 4713 BC at noon (not midnight). You can also add a fraction of days, being the number of seconds elapsed since noon. Julian dates can be represnted as integers (for a precision to the day) or as double (for a precision to the millis). You can google algorihtms to convert back and forth between julian and gregorian dates, including support for February 29th and the leap that occured in 15-ish from Oct, 4 to Oct. 15. Just my 5 cents... Christian Faucher