camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem Jiang <willem.ji...@gmail.com>
Subject Re: org.apache.cxf.interceptor.Fault: Message part {http://reportincident.example.camel.apache.org}inputReportIncident was not recognized. (Does it exist in service WSDL?)
Date Thu, 11 Dec 2008 07:25:41 GMT
Hi Charles,

I think you want to use the jaxws:endpoint to configure the camel-cxf
endpoint. Technically , if you export the endpoint with jaxws:endpoint,
cxf will publish it, and the address will be use.
If you try to start another camel-cxf endpoint on that address, I don't
know what will happen there, but it should not be a good thing.

Did you try to define the cxf:endpoint like this?

<cxf:endpoint id="reportIncident"
 serviceClass =
"org.apache.camel.example.reportincident.ReportIncidentService"
 address="/incident" wsdlLocation="/wsdl/report_incident.wsdl"
endpointName="s:ReportIncidentPort"
serviceName="s:ReportIncidentService"
xmlns:s="http://reportincident.example.camel.apache.org" />

Willem


cmoulliard wrote:
> Hi willem,
> 
> Here is the routebuilder class :
> 
> package org.apache.camel.example.reportincident.routing;
> 
> import org.apache.camel.builder.RouteBuilder;
> import org.apache.camel.example.reportincident.domain.InputReportIncident;
> import org.apache.camel.example.reportincident.domain.OutputReportIncident;
> 
> /**
>  * The routes for this example
>  *
>  * @version $Revision$
>  */
> public class ReportIncidentRouteBuilder extends RouteBuilder {
> 
>     private static OutputReportIncident OK = new OutputReportIncident();
> 
>     public void configure() {
>         OK.setCode("OK");
> 
>         from("cxf:bean:reportIncident")
>             .convertBodyTo(InputReportIncident.class)
>             .to("velocity://MailResponse.vm")
>             .to("seda:mails")
>             .transform(constant(OK));
> 
>         from("seda:mails")
>             .to("file:target/mails");
>     }
> 
> }
> 
> willem.jiang wrote:
>> Hi Charles,
>>
>> Can you reproduce the error with a simple CXF server and client?
>> Can you also past the RouteBuilder in the mail?
>> Maybe there is something wrong with the route side's configuration.
>>
>> Willem
>>
>> cmoulliard wrote:
>>> Hi,
>>>
>>> How should I understand the following error reported by Cxf (running with
>>> Camel) ? How to solve it ?
>>>
>>> 2008-12-10 15:10:42.046] server-tomcat-thread-17                            
                          
>>> System.err E org.apache.cxf.interceptor.Fault: Message part
>>> {http://reportincident.example.camel.apache.org}inputReportIncident was
>>> not
>>> recognized.  (Does it exist in service WSDL?)
>>> [2008-12-10 15:10:42.046] server-tomcat-thread-17                           
                           
>>> System.err E 	at
>>> org.apache.cxf.interceptor.DocLiteralInInterceptor.handleMessage(DocLiteralInInterceptor.java:179)
>>> [2008-12-10 15:10:42.046] server-tomcat-thread-17                           
                           
>>> System.err E 	at
>>> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220)
>>> [2008-12-10 15:10:42.046] server-tomcat-thread-17                           
                           
>>> System.err E 	at
>>> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:78)
>>> [2008-12-10 15:10:42.046] server-tomcat-thread-17                           
                           
>>> System.err E 	at
>>> org.apache.cxf.transport.servlet.ServletDestination.invoke(ServletDestination.java:92)
>>> [2008-12-10 15:10:42.046] server-tomcat-thread-17                           
                           
>>> System.err E 	at
>>> org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:285)
>>> [2008-12-10 15:10:42.046] server-tomcat-thread-17                           
                           
>>> System.err E 	at
>>> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:168)
>>> [2008-12-10 15:10:42.046] server-tomcat-thread-17                           
                           
>>> System.err E 	at
>>> org.apache.cxf.transport.servlet.AbstractCXFServlet.invoke(AbstractCXFServlet.java:175)
>>> [2008-12-10 15:10:42.046] server-tomcat-thread-17                           
                           
>>> System.err E 	at
>>> org.apache.cxf.transport.servlet.AbstractCXFServlet.doPost(AbstractCXFServlet.java:153)
>>> [2008-12-10 15:10:42.046] server-tomcat-thread-17                           
                           
>>> System.err E 	at
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
>>> [2008-12-10 15:10:42.046] server-tomcat-thread-17                           
                           
>>> System.err E 	at
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>>> [2008-12-10 15:10:42.046] server-tomcat-thread-17                           
                           
>>> System.err E 	at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>>> [2008-12-10 15:10:42.046] server-tomcat-thread-17                           
                           
>>> System.err E 	at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>> [2008-12-10 15:10:42.046] server-tomcat-thread-17                           
                           
>>> System.err E 	at
>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>>> [2008-12-10 15:10:42.046] server-tomcat-thread-17                           
                           
>>> System.err E 	at
>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>>> [2008-12-10 15:10:42.046] server-tomcat-thread-17                           
                           
>>> System.err E 	at
>>> org.apache.catalina.valves.CometConnectionManagerValve.invoke(CometConnectionManagerValve.java:248)
>>> [2008-12-10 15:10:42.046] server-tomcat-thread-17                           
                           
>>> System.err E 	at
>>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
>>> [2008-12-10 15:10:42.046] server-tomcat-thread-17                           
                           
>>> System.err E 	at
>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>>> [2008-12-10 15:10:42.046] server-tomcat-thread-17                           
                           
>>> System.err E 	at
>>> com.springsource.server.servlet.tomcat.internal.ApplicationNameTrackingValve.invoke(ApplicationNameTrackingValve.java:74)
>>> [2008-12-10 15:10:42.046] server-tomcat-thread-17                           
                           
>>> System.err E 	at
>>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
>>> [2008-12-10 15:10:42.046] server-tomcat-thread-17                           
                           
>>> System.err E 	at
>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>>> [2008-12-10 15:10:42.046] server-tomcat-thread-17                           
                           
>>> System.err E 	at
>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>>> [2008-12-10 15:10:42.046] server-tomcat-thread-17                           
                           
>>> System.err E 	at
>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
>>> [2008-12-10 15:10:42.046] server-tomcat-thread-17                           
                           
>>> System.err E 	at
>>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
>>> [2008-12-10 15:10:42.046] server-tomcat-thread-17                           
                           
>>> System.err E 	at
>>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
>>> [2008-12-10 15:10:42.046] server-tomcat-thread-17                           
                           
>>> System.err E 	at
>>> org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:354)
>>> [2008-12-10 15:10:42.046] server-tomcat-thread-17                           
                           
>>> System.err E 	at
>>> com.springsource.server.concurrent.core.ExecutorServiceDelegate$StatisticsGatheringRunnable.run(ExecutorServiceDelegate.java:137)
>>> [2008-12-10 15:10:42.046] server-tomcat-thread-17                           
                           
>>> System.err E 	at
>>> com.springsource.server.concurrent.core.ServerThreadPoolExecutor$1.run(ServerThreadPoolExecutor.java:145)
>>> [2008-12-10 15:10:42.046] server-tomcat-thread-17                           
                           
>>> System.err E 	at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
>>> [2008-12-10 15:10:42.046] server-tomcat-thread-17                           
                           
>>> System.err E 	at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
>>> [2008-12-10 15:10:42.046] server-tomcat-thread-17                           
                           
>>> System.err E 	at java.lang.Thread.run(Thread.java:619)
>>>
>>> Here is my Camel config file.
>>>
>>> <?xml version="1.0" encoding="UTF-8" ?> 
>>> <beans xmlns="http://www.springframework.org/schema/beans"
>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>> xmlns:osgi="http://www.springframework.org/schema/osgi"
>>> xmlns:cxf="http://activemq.apache.org/camel/schema/cxfEndpoint"
>>> xmlns:jaxws="http://cxf.apache.org/jaxws"
>>> xsi:schemaLocation="http://www.springframework.org/schema/beans
>>> http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
>>> http://activemq.apache.org/camel/schema/spring
>>> http://activemq.apache.org/camel/schema/spring/camel-spring.xsd
>>> http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd
>>> http://www.springframework.org/schema/osgi
>>> http://www.springframework.org/schema/osgi/spring-osgi-1.1.xsd
>>> http://activemq.apache.org/camel/schema/cxfEndpoint
>>> http://activemq.apache.org/camel/schema/cxf/cxfEndpoint.xsd
>>> http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">
>>>   <import resource="classpath:META-INF/cxf/cxf.xml" /> 
>>>   <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" /> 
>>>   <import resource="classpath:META-INF/cxf/cxf-servlet.xml" /> 
>>>   <!--  implementation of the webservice  --> 
>>>   <osgi:reference id="reportIncidentEndpoint"
>>> interface="org.apache.camel.example.reportincident.ReportIncidentService"
>>> /> 
>>>   <!--  export the webservice using jaxws  --> 
>>>   <jaxws:endpoint id="reportIncident"
>>> implementor="#reportIncidentEndpoint"
>>> address="/incident" wsdlLocation="/wsdl/report_incident.wsdl"
>>> endpointName="s:ReportIncidentPort" serviceName="s:ReportIncidentService"
>>> xmlns:s="http://reportincident.example.camel.apache.org" /> 
>>>                     
>>>  <camelContext id="camel"
>>> xmlns="http://activemq.apache.org/camel/schema/spring">
>>>   <package>org.apache.camel.example.reportincident</package> 
>>>   <jmxAgent id="agent" createConnector="true" /> 
>>>   </camelContext>
>>>   </beans>
>>>
>>> KR,
>>>
>>> -----
>>> Charles Moulliard
>>> SOA Architect
>>>
>>> My Blog :  http://cmoulliard.blogspot.com/
>>> http://cmoulliard.blogspot.com/  
>>
>>
> 
> 
> -----
> Charles Moulliard
> SOA Architect
> 
> My Blog :  http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/  


Mime
View raw message