Stefan, That did solve my problem, many thanks. I shall also have a look at jwsdp.
Thanks again Russell -----Original Message----- From: Stefan Carlsson [mailto:[EMAIL PROTECTED]] Sent: 20 November 2002 13:55 To: '[EMAIL PROTECTED]' Subject: SV: SSL-Axis Bug ? You have to change the class: "org.apache.axis.components.net.JSSESocketFactory" which resides in the axis.jar and add "implements org.apache.axis.components.net.SecureSocketFactory" to its class-declaration, recompile and insert the class into the axis.jar file... I have left axis for a while since I had to present a quick solution (to many problems with axis) so I changed to jwsdp, and that made it... Will retun to axis later... Hope this will solve your problems. If it does, please let me (us) know... If you want to try jwsdp and get any problems, I'll try to assist you... Regards, stefan -----Ursprungligt meddelande----- Från: Russell Brown [mailto:[EMAIL PROTECTED]] Skickat: den 20 november 2002 13:27 Till: [EMAIL PROTECTED] Ämne: RE: SSL-Axis Bug ? Stefan, I am having the same problem that you outline below ( the nullPoinerException) can you explain what the reason is and where I have to change the code of Axis to make this work please ? Thanks in advance Russell -----Original Message----- From: Stefan Carlsson [mailto:[EMAIL PROTECTED]] Sent: 04 November 2002 10:22 To: '[EMAIL PROTECTED]' Subject: SV: SSL-Axis Bug ? Hi again ! Problem solved... I tried with some other releases of axis (some nightly builds to) with no success, so the problem remaines within axis (I find it odd that no one else has encountered this, though...) The solution is to make the JSSESocketFactory implement SecureSocketFactory. By the way, remove the references to com.sun.net.ssl.KeyManagerFactory and other classes that are deprecated in jdk1.4.x (replaced by their equivalences in the javax -package) Regards, Stefan -----Ursprungligt meddelande----- Från: Stefan Carlsson [mailto:[EMAIL PROTECTED]] Skickat: den 1 november 2002 09:58 Till: '[EMAIL PROTECTED]' Ämne: SSL-Axis Bug ? Hi all ! I have this very simple web service that I want to access through SSL. Im using Tomcat 4.1.12, jdk1.4.1 and Axis 1.0. The service is as follows: public class Hello { public String greet(String name) { return "Hello, " + name + "!!"; } } When I try to access it with HTTP it works just fine (the endpoint is set to "http://localhost:8080/axis/services/HelloService" when I generated the stubs with WSDL2Java). When I changed the adress (in the generated Locator-class) to "https://localhost:8443/axis/services/HelloService", recompiled and tried to access the service again I get the exception at the bottom of this mail (sends all the output so you can see the .jar's included and so on)... Am I missing something here or is there a bug in Axis ? Most thankful for any suggestions ! Regards, Stefan C:\tmp\WSOverSSL\axis>C:\ProgUtv\j2sdk1.4.1\bin\java -Djava.protocol.handler.pkg s=com.sun.net.ssl.internal.www.protocol -Djavax.net.ssl.trustStore=.\client.keys tore -cp C:\ProgUtv\j2sdk1.4.1\jre\lib\ext\bcprov-jdk14-115.jar;C:\ProgUtv\j2sdk 1.4.1\jre\lib\ext\sunjce_provider.jar;C:\ProgUtv\j2sdk1.4.1\jre\lib\ext\dnsn s.ja r;C:\ProgUtv\j2sdk1.4.1\jre\lib\ext\ldapsec.jar;C:\ProgUtv\j2sdk1.4.1\jre\li b\ex t\localedata.jar;C:\ProgUtv\jakarta-tomcat-4.1.12\webapps\axis\WEB-INF\lib\a xis. jar;C:\ProgUtv\jakarta-tomcat-4.1.12\webapps\axis\WEB-INF\lib\axis-ant.jar;C :\Pr ogUtv\jakarta-tomcat-4.1.12\webapps\axis\WEB-INF\lib\commons-discovery.jar;C :\Pr ogUtv\jakarta-tomcat-4.1.12\webapps\axis\WEB-INF\lib\commons-logging.jar;C:\ Prog Utv\jakarta-tomcat-4.1.12\webapps\axis\WEB-INF\lib\jaxrpc.jar;C:\ProgUtv\jak arta -tomcat-4.1.12\webapps\axis\WEB-INF\lib\log4j-20021022.jar;C:\ProgUtv\jakart a-to mcat-4.1.12\webapps\axis\WEB-INF\lib\saaj.jar;C:\ProgUtv\jakarta-tomcat-4.1. 12\w ebapps\axis\WEB-INF\lib\wsdl4j.jar;C:\ProgUtv\jakarta-tomcat-4.1.12\common\e ndor sed\xercesImpl.jar;C:\ProgUtv\jakarta-tomcat-4.1.12\common\endorsed\xmlParse rAPI s.jar;C:\ProgUtv\j2sdk1.4.1\jre\lib\ext\servlet.jar;. client.Client "Hej babberi bba" - Exception: org.apache.commons.discovery.DiscoveryException: Class org.apache.axis.component s.net.JSSESocketFactory does not implement org.apache.axis.components.net.Secure SocketFactory at org.apache.commons.discovery.tools.ClassUtils.verifyAncestory(ClassUt ils.java:180) at org.apache.axis.AxisProperties$1.run(AxisProperties.java:215) at java.security.AccessController.doPrivileged(Native Method) at org.apache.axis.AxisProperties.newInstance(AxisProperties.java:199) at org.apache.axis.components.net.SocketFactoryFactory.getFactory(Socket FactoryFactory.java:120) at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:1 57) at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:115) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrateg y.java:71) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:156) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:126) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:182) at org.apache.axis.client.Call.invokeEngine(Call.java:2347) at org.apache.axis.client.Call.invoke(Call.java:2336) at org.apache.axis.client.Call.invoke(Call.java:2033) at org.apache.axis.client.Call.invoke(Call.java:1957) at org.apache.axis.client.Call.invoke(Call.java:1480) at client.HelloServiceSoapBindingStub.greet(HelloServiceSoapBindingStub. java:94) at client.Client.main(Client.java:17) Exception in thread "main" AxisFault faultCode: {http://xml.apache.org/axis/}Server.userException faultString: java.lang.NullPointerException faultActor: null faultDetail: stackTrace: java.lang.NullPointerException at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:1 58) at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:115) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrateg y.java:71) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:156) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:126) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:182) at org.apache.axis.client.Call.invokeEngine(Call.java:2347) at org.apache.axis.client.Call.invoke(Call.java:2336) at org.apache.axis.client.Call.invoke(Call.java:2033) at org.apache.axis.client.Call.invoke(Call.java:1957) at org.apache.axis.client.Call.invoke(Call.java:1480) at client.HelloServiceSoapBindingStub.greet(HelloServiceSoapBindingStub. java:94) at client.Client.main(Client.java:17) java.lang.NullPointerException at org.apache.axis.AxisFault.makeFault(AxisFault.java:119) at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:132) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrateg y.java:71) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:156) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:126) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:182) at org.apache.axis.client.Call.invokeEngine(Call.java:2347) at org.apache.axis.client.Call.invoke(Call.java:2336) at org.apache.axis.client.Call.invoke(Call.java:2033) at org.apache.axis.client.Call.invoke(Call.java:1957) at org.apache.axis.client.Call.invoke(Call.java:1480) at client.HelloServiceSoapBindingStub.greet(HelloServiceSoapBindingStub. java:94) at client.Client.main(Client.java:17) Caused by: java.lang.NullPointerException at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:1 58) at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:115) ... 11 more C:\tmp\WSOverSSL\axis>