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/  
-- 
View this message in context: 
http://www.nabble.com/org.apache.cxf.interceptor.Fault%3A-Message-part-%7Bhttp%3A--reportincident.example.camel.apache.org%7DinputReportIncident-was-not-recognized.--%28Does-it-exist-in-service-WSDL-%29-tp20937098s22882p20937510.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to