olivier sagit

Greenhorn
+ Follow
since Jun 28, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by olivier sagit

I've found my mistake. For information, see the ant deployment task below:

Without SSL my ant task was:



My mistake was to keep the same target and just change the port number where the SSL server is running:


You have to change the arguments to deploy a service on a SSL server:
18 years ago
Hello,

I try to deploy my webservice over an SSL server with ANT but it doesn't work.

Do you know how to resolv this problem ?

I have tried different target with the different results:


Error Code:
----------

[java] Exception: AxisFault
[java] faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
[java] faultSubcode:
[java] faultString: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
[java] faultActor:
[java] faultNode:
[java] faultDetail:
[java] {http://xml.apache.org/axis/}stackTrace:javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
[java] at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:150)
[java] at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1476)
[java] at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:174)
[java] at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:168)
[java] at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:847)
[java] at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:106)
[java] at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:495)
[java] at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:433)
[java] at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:815)
[java] at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1025)
[java] at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1038)
[java] at org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:186)
[java] at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191)
[java] at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404)
[java] at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
[java] at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
[java] at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
[java] at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
[java] at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
[java] at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
[java] at org.apache.axis.client.Call.invoke(Call.java:2748)
[java] at org.apache.axis.client.Call.invoke(Call.java:1784)
[java] at org.apache.axis.client.AdminClient.process(AdminClient.java:439)
[java] at org.apache.axis.client.AdminClient.process(AdminClient.java:404)
[java] at org.apache.axis.client.AdminClient.process(AdminClient.java:410)
[java] at org.apache.axis.client.AdminClient.process(AdminClient.java:320)
[java] at org.apache.axis.client.AdminClient.main(AdminClient.java:463)
[java] Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
[java] at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:221)
[java] at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:145)
[java] at sun.security.validator.Validator.validate(Validator.java:203)
[java] at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:172)
[java] at com.sun.net.ssl.internal.ssl.JsseX509TrustManager.checkServerTrusted(SSLContextImpl.java:320)
[java] at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:840)
[java] ... 22 more
[java] Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
[java] at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:236)
[java] at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:194)
[java] at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:216)
[java] ... 27 more
[java] {http://xml.apache.org/axis/}hostname:CEB-P1
[java] Java Result: 1





Error Code:
----------

[axis-admin] AxisFault
[axis-admin] faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
[axis-admin] faultSubcode:
[axis-admin] faultString: java.lang.NumberFormatException: For input string: ""
[axis-admin] faultActor:
[axis-admin] faultNode:
[axis-admin] faultDetail:
[axis-admin] {http://xml.apache.org/axis/}stackTrace:java.lang.NumberFormatException: For input string: ""
[axis-admin] at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
[axis-admin] at java.lang.Integer.parseInt(Integer.java:468)
[axis-admin] at java.lang.Integer.parseInt(Integer.java:497)
[axis-admin] at org.apache.axis.transport.http.HTTPSender.readHeadersFromSocket(HTTPSender.java:640)
[axis-admin] at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:143)
[axis-admin] at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
[axis-admin] at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
[axis-admin] at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
[axis-admin] at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
[axis-admin] at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
[axis-admin] at org.apache.axis.client.Call.invoke(Call.java:2748)
[axis-admin] at org.apache.axis.client.Call.invoke(Call.java:1784)
[axis-admin] at org.apache.axis.client.AdminClient.process(AdminClient.java:439)
[axis-admin] at org.apache.axis.client.AdminClient.process(AdminClient.java:404)
[axis-admin] at org.apache.axis.client.AdminClient.process(AdminClient.java:410)
[axis-admin] at org.apache.axis.client.AdminClient.process(AdminClient.java:320)
[axis-admin] at org.apache.axis.tools.ant.axis.AdminClientTask.executeInCurrentVM(AdminClientTask.java:356)
[axis-admin] at org.apache.axis.tools.ant.axis.AdminClientTask.execute(AdminClientTask.java:316)
[axis-admin] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[axis-admin] at org.apache.tools.ant.Task.perform(Task.java:364)
[axis-admin] at org.apache.tools.ant.Target.execute(Target.java:341)
[axis-admin] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[axis-admin] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
[axis-admin] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
[axis-admin] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
[axis-admin] at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
[axis-admin] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
[axis-admin] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
[axis-admin] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
[axis-admin]
[axis-admin] {http://xml.apache.org/axis/}hostname:C-ECB-PAY2P1
[axis-admin] Running axis-admin with parameters:
[axis-admin] action:
[axis-admin] url:null
[axis-admin] hostname:localhost
[axis-admin] port:9043
[axis-admin] servletPath:axis/services/CaResponderService
[axis-admin] fileProtocol:null
[axis-admin] username:null
[axis-admin] password:null
[axis-admin] transportChain:null
[axis-admin] debug:true
[axis-admin] axis-admin failed with {http://schemas.xmlsoap.org/soap/envelope/}Server.userException java.lang.NumberFormatException: For input string: ""
18 years ago
thanks for your reply.

I was thinking that a server container was needed because of the clientsecuritydeploy.wsdd file provide by axis security sample.

I have to authenticate the sender of a message and the integrity of the message so I try to use apache axis with XML-security.
On the server side, there is a handler wich intercept the message and verify the signature before executing the service.

I follow your link right now...
18 years ago
Hello,

Question about apache axis:

I don't understand the axis client handler processing.

Imagine, there is a web service on a tomcat server.

The client can be a standard java application. But i need to add a handler to sign the SOAP message before sending it to the server. Does the client must have a tomcat on his side to do that ?

thanks
18 years ago