cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin" <sbery...@progress.com>
Subject RE: JAX-RS https test problem
Date Sat, 29 Aug 2009 17:56:14 GMT
Yes, looks like so, have a look in jaxrs/security/jaxrs-https.xml
please, I think you might've moved the certs referenced there to the
other location

Cheers, Sergey 
-----Original Message-----
From: Daniel Kulp [mailto:dkulp@apache.org] 
Sent: 29 August 2009 03:15
To: dev@cxf.apache.org
Cc: Benson Margulies
Subject: Re: JAX-RS https test problem


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.JAXRSHttps
Boo
>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.testGetBook123W
ebC
>lient(JAXRSHttpsBookTest.java:111) at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:3
>9) at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Imp
>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(Met
hod
>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(JUnit4Clas
sRu
>nner.java:88) at
>
org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunne
r.j
>ava:51) at
>
org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.jav
a:4
>4) at
>
org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:2
7)
> 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.jav
a:6
>2) at
>
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSe
t(A
>bstractDirectoryTestSuite.java:140) at
>
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(Abstr
act
>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.jav
a:3
>9) at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Imp
>l.java:25) at java.lang.reflect.Method.invoke(Method.java:585)
> 	at
>
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Suref
ire
>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$MessageSenderEndingI
nte
>rceptor.handleMessage(MessageSenderInterceptor.java:64) at
>
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorC
hai
>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(ClientHa
nds
>haker.java:848) at
>
com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHands
hak
>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:4
33)
> at
>
com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java
:87
>7) at
>
com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSo
cke
>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(Ab
str
>actDelegateHttpsURLConnection.java:166) at
>
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnec
tio
>n.java:951) at
> java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:367)
at
>
sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsU
RLC
>onnectionImpl.java:318) at
>
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResp
ons
>eInternal(HTTPConduit.java:2061) at
>
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResp
ons
>e(HTTPConduit.java:2037) at
>
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTP
Con
>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$MessageSenderEndingI
nte
>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.ja
va:
>107) at sun.security.validator.Validator.validate(Validator.java:203)
> 	at
>
com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(X50
9Tr
>ustManagerImpl.java:172) at
>
com.sun.net.ssl.internal.ssl.JsseX509TrustManager.checkServerTrusted(SSL
Con
>textImpl.java:320) at
>
com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHa
nds
>haker.java:841) ... 50 more

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

Mime
View raw message