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>

Reply via email to