cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Kulp <dk...@apache.org>
Subject Re: JAX-RS https test problem
Date Sat, 29 Aug 2009 02:15:04 GMT

It's probably not finding the certs.   Check the config files to see where it 
may be looking for keystores and such.

Dan


On Fri August 28 2009 10:09:18 pm Benson Margulies wrote:
> I'm moving the JAX-RS systests to their own project. I'm left with the
> following, even after making a copy of the
> org.apache.cxf.systests.http package. Anybody got a clue to share?
>
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> Running org.apache.cxf.systest.jaxrs.security.JAXRSHttpsBookTest
> Tests run: 6, Failures: 0, Errors: 4, Skipped: 0, Time elapsed: 9.035
> sec <<< FAILURE!
> testGetBook123WebClient(org.apache.cxf.systest.jaxrs.security.JAXRSHttpsBoo
>kTest) Time elapsed: 2.694 sec  <<< ERROR!
> javax.ws.rs.WebApplicationException: org.apache.cxf.interceptor.Fault:
> Could not send Message.
> 	at
> org.apache.cxf.jaxrs.client.WebClient.handleResponse(WebClient.java:550) at
> org.apache.cxf.jaxrs.client.WebClient.doChainedInvocation(WebClient.java:53
>6) at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:510) at
> org.apache.cxf.jaxrs.client.WebClient.invoke(WebClient.java:286) at
> org.apache.cxf.jaxrs.client.WebClient.get(WebClient.java:314)
> 	at
> org.apache.cxf.systest.jaxrs.security.JAXRSHttpsBookTest.testGetBook123WebC
>lient(JAXRSHttpsBookTest.java:111) at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3
>9) at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
>l.java:25) at java.lang.reflect.Method.invoke(Method.java:585)
> 	at org.junit.internal.runners.TestMethod.invoke(TestMethod.java:59)
> 	at
> org.junit.internal.runners.MethodRoadie.runTestMethod(MethodRoadie.java:98)
> at org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:79) at
> org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(Method
>Roadie.java:87) at
> org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:77) at
> org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:42) at
> org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRu
>nner.java:88) at
> org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.j
>ava:51) at
> org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:4
>4) at
> org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27)
> at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)
> at
> org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42)
> at
> org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:6
>2) at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(A
>bstractDirectoryTestSuite.java:140) at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(Abstract
>DirectoryTestSuite.java:165) at
> org.apache.maven.surefire.Surefire.run(Surefire.java:107)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3
>9) at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
>l.java:25) at java.lang.reflect.Method.invoke(Method.java:585)
> 	at
> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Surefire
>Booter.java:289) at
> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:10
>05) Caused by: org.apache.cxf.interceptor.Fault: Could not send Message. at
> org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInte
>rceptor.handleMessage(MessageSenderInterceptor.java:64) at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChai
>n.java:236) at
> org.apache.cxf.jaxrs.client.WebClient.doChainedInvocation(WebClient.java:52
>9) ... 30 more
> Caused by: javax.net.ssl.SSLHandshakeException:
> sun.security.validator.ValidatorException: No trusted certificate
> found
> 	at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:150)
> 	at
> com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1584)
> at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:174) at
> com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:168) at
> com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHands
>haker.java:848) at
> com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHandshak
>er.java:106) at
> com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:495) at
> com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:433)
> at
> com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:87
>7) at
> com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocke
>tImpl.java:1089) at
> com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.jav
>a:1116) at
> com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.jav
>a:1100) at
> sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:402)
> at
> sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Abstr
>actDelegateHttpsURLConnection.java:166) at
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnectio
>n.java:951) at
> java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:367) at
> sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLC
>onnectionImpl.java:318) at
> org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleRespons
>eInternal(HTTPConduit.java:2061) at
> org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleRespons
>e(HTTPConduit.java:2037) at
> org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPCon
>duit.java:1962) at
> org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66) at
> org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:627) at
> org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInte
>rceptor.handleMessage(MessageSenderInterceptor.java:62) ... 32 more
> Caused by: sun.security.validator.ValidatorException: No trusted
> certificate found
> 	at
> sun.security.validator.SimpleValidator.buildTrustedChain(SimpleValidator.ja
>va:304) at
> sun.security.validator.SimpleValidator.engineValidate(SimpleValidator.java:
>107) at sun.security.validator.Validator.validate(Validator.java:203)
> 	at
> com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(X509Tr
>ustManagerImpl.java:172) at
> com.sun.net.ssl.internal.ssl.JsseX509TrustManager.checkServerTrusted(SSLCon
>textImpl.java:320) at
> com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHands
>haker.java:841) ... 50 more

-- 
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog

Mime
View raw message