Hi, I have created a JAVA Client for CXF webservice, the SOAP request must be
signed with a x509 certificate and I´ve followed some examples in the web.
At this point I have this problem and the drawback is that I can´t check the
log of the server:
ID: 14
Response-Code: 500
Encoding: UTF-8
Content-Type: text/html;charset=utf-8
Headers: {connection=[close], Content-Length=[1000],
content-type=[text/html;charset=utf-8], Date=[Fri, 29 Jul 2011 06:53:03
GMT], Server=[Apache-Coyote/1.1], WWW-Authenticate=[BASIC realm="BWRealm"]}
Payload: <html><head><title>Apache Tomcat/5.5.27 - Error report</title>
</head><body>
HTTP Status 500 -
<HR size="1" noshade="noshade"><p>*type* Status report</p><p>*message*
<u></u></p><p>*description* <u>The server encountered an internal error ()
that prevented it from fulfilling this request.</u></p><HR size="1"
noshade="noshade">
Apache Tomcat/5.5.27
</body></html>
--------------------------------------
08:52:09,748 WARN PhaseInterceptorChain:371 - Interceptor for
{http://10.12.18.185:8074/mju/esb/sicc}SICCPortTypeService#{http://10.12.18.185:8074/mju/esb/sicc}estadoProcesamientoFicheroAsunto
has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: Response was of unexpected text/html
ContentType. Incoming portion of HTML stream: <html><head><title>Apache
Tomcat/5.5.27 - Error report</title> </head><body>
HTTP Status 500 -
<HR size="1" noshade="noshade"><p>*type* Status report</p><p>*message*
<u></u></p><p>*description* <u>The server encountered an internal error ()
that prevented it from fulfilling this request.</u></p><HR size="1"
noshade="noshade">
Apache Tomcat/5.5.27
</body></html>
at
org.apache.cxf.interceptor.StaxInInterceptor.handleMessage(StaxInInterceptor.java:79)
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)
at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:736)
at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1563)
at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1448)
at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1356)
at
org.apache.cxf.io.CacheAndWriteOutputStream.postClose(CacheAndWriteOutputStream.java:47)
at
org.apache.cxf.io.CachedOutputStream.close(CachedOutputStream.java:188)
at
org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)
at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:614)
at
org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)
at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:484)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:414)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:317)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:269)
at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
at
org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124)
at $Proxy42.estadoProcesamientoFicheroAsunto(Unknown Source)
at
es.justicia.intercambio.control.ControladorIntercambio.gestionarFeedback(ControladorIntercambio.java:118)
at es.justicia.intercambio.interfaz.Main.run(Main.java:139)
at es.justicia.intercambio.interfaz.Main.main(Main.java:181)
08:52:09,748 ERROR ControladorIntercambio:125 - Error en la llamada al
servicio de SICC
javax.xml.ws.soap.SOAPFaultException: Response was of unexpected text/html
ContentType. Incoming portion of HTML stream: <html><head><title>Apache
Tomcat/5.5.27 - Error report</title> </head><body>
HTTP Status 500 -
<HR size="1" noshade="noshade"><p>*type* Status report</p><p>*message*
<u></u></p><p>*description* <u>The server encountered an internal error ()
that prevented it from fulfilling this request.</u></p><HR size="1"
noshade="noshade">
Apache Tomcat/5.5.27
</body></html>
at
org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:146)
at $Proxy42.estadoProcesamientoFicheroAsunto(Unknown Source)
at
es.justicia.intercambio.control.ControladorIntercambio.gestionarFeedback(ControladorIntercambio.java:118)
at es.justicia.intercambio.interfaz.Main.run(Main.java:139)
at es.justicia.intercambio.interfaz.Main.main(Main.java:181)
Caused by: org.apache.cxf.interceptor.Fault: Response was of unexpected
text/html ContentType. Incoming portion of HTML stream:
<html><head><title>Apache Tomcat/5.5.27 - Error report</title> </head><body>
HTTP Status 500 -
<HR size="1" noshade="noshade"><p>*type* Status report</p><p>*message*
<u></u></p><p>*description* <u>The server encountered an internal error ()
that prevented it from fulfilling this request.</u></p><HR size="1"
noshade="noshade">
Apache Tomcat/5.5.27
</body></html>
at
org.apache.cxf.interceptor.StaxInInterceptor.handleMessage(StaxInInterceptor.java:79)
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)
at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:736)
at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1563)
at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1448)
at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1356)
at
org.apache.cxf.io.CacheAndWriteOutputStream.postClose(CacheAndWriteOutputStream.java:47)
at
org.apache.cxf.io.CachedOutputStream.close(CachedOutputStream.java:188)
at
org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)
at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:614)
at
org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)
at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:484)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:414)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:317)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:269)
at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
at
org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124)
... 4 more
08:52:09,748 INFO ControladorIntercambio:87 - Construyendo petición
servicio SICC
08:52:09,748 INFO XmlBeanDefinitionReader:315 - Loading XML bean
definitions from class path resource [client-context.xml]
08:52:09,780 INFO ReflectionServiceFactoryBean:405 - Creating Service
{http://10.12.18.185:8074/mju/esb/sicc}SICCPortTypeService from class
es.justicia.esb.sicc.servicio.sicc.SICCPortType
08:52:09,811 INFO LoggingOutInterceptor:149 - Outbound Message
---------------------------
Thanks
--
View this message in context:
http://cxf.547215.n5.nabble.com/WS-Security-with-x509-error-in-CXF-tp4646036p4646036.html
Sent from the cxf-user mailing list archive at Nabble.com.