cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pokynsky <pokyn...@gmail.com>
Subject schema validation enabled error
Date Wed, 26 Sep 2007 15:57:36 GMT

Hello,

I have Apache CFX 2.0.1 + JDK 1.5.11 + JBoss 4.0.5.

When the input message is valiated by Spring is correct, but when the output
message is validated obtain this error.

15:01:05,159 ERROR [STDERR] 25-sep-2007 15:01:05
org.apache.cxf.phase.PhaseInterceptorChain doIntercept
INFO: Interceptor has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: Marshalling Error: cvc-elt.1: Cannot find
the declaration of element 'listadoBeneficiarios'.
at org.apache.cxf.jaxb.JAXBEncoderDecoder.marshall(JA
XBEncoderDecoder.java:176)
at org.apache.cxf.jaxb.io.DataWriterImpl.write(DataWr iterImpl.java:42)
at org.apache.cxf.interceptor.AbstractOutDatabindingI
nterceptor.writeParts(AbstractOutDatabindingInterc eptor.java:83)
at org.apache.cxf.interceptor.BareOutInterceptor.hand
leMessage(BareOutInterceptor.java:68)
at org.apache.cxf.phase.PhaseInterceptorChain.doInter
cept(PhaseInterceptorChain.java:207)
at org.apache.cxf.interceptor.OutgoingChainIntercepto
r.handleMessage(OutgoingChainInterceptor.java:73)
at org.apache.cxf.phase.PhaseInterceptorChain.doInter
cept(PhaseInterceptorChain.java:207)
at org.apache.cxf.transport.ChainInitiationObserver.o
nMessage(ChainInitiationObserver.java:73)
at org.apache.cxf.transport.servlet.ServletDestinatio
n.doMessage(ServletDestination.java:78)
at org.apache.cxf.transport.servlet.ServletController
.invokeDestination(ServletController.java:231)
at org.apache.cxf.transport.servlet.ServletController
.invoke(ServletController.java:139)
at org.apache.cxf.transport.servlet.CXFServlet.invoke (CXFServlet.java:271)
at org.apache.cxf.transport.servlet.CXFServlet.doPost (CXFServlet.java:249)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:717)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:810)
at org.apache.catalina.core.ApplicationFilterChain.in
ternalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.do
Filter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doF
ilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.in
ternalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.do
Filter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invo
ke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invo
ke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.SecurityAssociationV
alve.invoke(SecurityAssociationValve.java:175)
at org.jboss.web.tomcat.security.JaccContextValve.inv
oke(JaccContextValve.java:74)
at org.apache.catalina.core.StandardHostValve.invoke(
StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:105)
at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve
.invoke(CachedConnectionValve.java:156)
at org.apache.catalina.core.StandardEngineValve.invok
e(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.servic
e(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(H
ttp11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11
ConnectionHandler.processConnection(Http11BaseProt ocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.process
Socket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread
.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Unknown Source)
Caused by: javax.xml.bind.MarshalException
- with linked exception:
[org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of
element 'listadoBeneficiarios'.]


The output message is correct:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<listadoBeneficiarios xmlns="http://explotacion.mtas.es/ficheros-siria/">
<busquedaBeneficiarios>
<apellido1>rwewrw224</apellido1>
</busquedaBeneficiarios>
<numCoincidencias>0</numCoincidencias>
<idConsulta codConsulta="1234"/>
<fechaConsulta>
<dia>---25</dia>
<mes>--08--</mes>
<anyo>2007</anyo>
</fechaConsulta>
</listadoBeneficiarios>
</soap:Body>
</soap:Envelope> http://www.nabble.com/file/p12903921/Schemas%2526Wsdl.zip
Schemas%26Wsdl.zip 

Thanks

-- 
View this message in context: http://www.nabble.com/schema-validation-enabled-error-tf4523223.html#a12903921
Sent from the cxf-dev mailing list archive at Nabble.com.


Mime
View raw message