Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

axisAdmin ANT and SSL

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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: ""
 
olivier sagit
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:
 
    Bookmark Topic Watch Topic
  • New Topic