aspose file tools*
The moose likes Web Services and the fly likes deploying axis service on ssl Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "deploying axis service on ssl" Watch "deploying axis service on ssl" New topic
Author

deploying axis service on ssl

Scott Duncan
Ranch Hand

Joined: Nov 01, 2002
Posts: 363
I am trying to deploy an axis web service via ant. The ant task is as follows:

<target name="deploy_axis">
<taskdef name="admin"
classpathref="classpath"
classname="org.apache.axis.tools.ant.axis.AdminClientTask"/>
<admin
port="443"
url="https://localhost/sdk"
servletpath="sdk/services/AdminService"
xmlfile="../dist/jboss/jboss-4.0.1/server/alterpoint/deploy/SDK.war/WEB-INF/deploy.wsdd"
debug="true"
/>
</target>

When I run the ant target, the following error occurs (sorry for the long stack trace):

[admin] AxisFault
[admin] faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userEx
ception
[admin] faultSubcode:
[admin] faultString: javax.net.ssl.SSLHandshakeException: sun.security.vali
dator.ValidatorException: PKIX path building failed: sun.security.provider.certp
ath.SunCertPathBuilderException: unable to find valid certification path to requ
ested target
[admin] faultActor:
[admin] faultNode:
[admin] faultDetail:
[admin] {http://xml.apache.org/axis/}stackTrace:javax.net.ssl.SSLHandsha
keException: sun.security.validator.ValidatorException: PKIX path building faile
d: sun.security.provider.certpath.SunCertPathBuilderException: unable to find va
lid certification path to requested target
[admin] at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.ja
va:150)
[admin] at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImp
l.java:1476)
[admin] at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.ja
va:174)
[admin] at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.ja
va:168)
[admin] at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertifica
te(ClientHandshaker.java:847)
[admin] at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(
ClientHandshaker.java:106)
[admin] at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshake
r.java:495)
[admin] at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handsh
aker.java:433)
[admin] at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSock
etImpl.java:815)
[admin] at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHand
shake(SSLSocketImpl.java:1025)
[admin] at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSL
SocketImpl.java:1038)
[admin] at org.apache.axis.components.net.JSSESocketFactory.create(JSSES
ocketFactory.java:186)
[admin] at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSende
r.java:191)
[admin] at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPS
ender.java:404)
[admin] at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.j
ava:138)
[admin] at org.apache.axis.strategies.InvocationStrategy.visit(Invocatio
nStrategy.java:32)
[admin] at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
[admin] at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
[admin] at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)

[admin] at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
[admin] at org.apache.axis.client.Call.invoke(Call.java:2767)
[admin] at org.apache.axis.client.Call.invoke(Call.java:1792)
[admin] at org.apache.axis.client.AdminClient.process(AdminClient.java:4
39)
[admin] at org.apache.axis.client.AdminClient.process(AdminClient.java:4
04)
[admin] at org.apache.axis.client.AdminClient.process(AdminClient.java:4
10)
[admin] at org.apache.axis.client.AdminClient.process(AdminClient.java:3
20)
[admin] at org.apache.axis.tools.ant.axis.AdminClientTask.executeInCurre
ntVM(AdminClientTask.java:356)
[admin] at org.apache.axis.tools.ant.axis.AdminClientTask.execute(AdminC
lientTask.java:316)
[admin] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja
va:275)
[admin] at org.apache.tools.ant.Task.perform(Task.java:364)
[admin] at org.apache.tools.ant.Target.execute(Target.java:341)
[admin] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[admin] at org.apache.tools.ant.Project.executeTarget(Project.java:1214)

[admin] at org.apache.tools.ant.Project.executeTargets(Project.java:1062
)
[admin] at org.apache.tools.ant.Main.runBuild(Main.java:673)
[admin] at org.apache.tools.ant.Main.startAnt(Main.java:188)
[admin] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
[admin] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
[admin] Caused by: sun.security.validator.ValidatorException: PKIX path buil
ding failed: sun.security.provider.certpath.SunCertPathBuilderException: unable
to find valid certification path to requested target
[admin] at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.ja
va:221)
[admin] at sun.security.validator.PKIXValidator.engineValidate(PKIXValid
ator.java:145)
[admin] at sun.security.validator.Validator.validate(Validator.java:203)

[admin] at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServer
Trusted(X509TrustManagerImpl.java:172)
[admin] at com.sun.net.ssl.internal.ssl.JsseX509TrustManager.checkServer
Trusted(SSLContextImpl.java:320)
[admin] at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertifica
te(ClientHandshaker.java:840)
[admin] ... 33 more
[admin] Caused by: sun.security.provider.certpath.SunCertPathBuilderExceptio
n: unable to find valid certification path to requested target
[admin] at sun.security.provider.certpath.SunCertPathBuilder.engineBuild
(SunCertPathBuilder.java:236)
[admin] at java.security.cert.CertPathBuilder.build(CertPathBuilder.java
:194)
[admin] at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.ja
va:216)
[admin] ... 38 more
[admin]
[admin] {http://xml.apache.org/axis/}hostname:scottduncan
[admin] Running axis-admin with parameters:
[admin] action:
[admin] url:https://localhost/sdk
[admin] hostname:null
[admin] port:443
[admin] servletPath:sdk/services/AdminService
[admin] fileProtocol:null
[admin] username:null
[admin] password:null
[admin] transportChain:null
[admin] debug:true

Any suggestions would be appreciated.

Thanks.
[ April 03, 2006: Message edited by: William Duncan ]

No more rhymes! I mean it!<br /> <br />Does anybody want a peanut?
 
Consider Paul's rocket mass heater.
 
subject: deploying axis service on ssl