Return-Path: Delivered-To: apmail-activemq-camel-user-archive@locus.apache.org Received: (qmail 30182 invoked from network); 9 Jan 2008 03:19:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Jan 2008 03:19:01 -0000 Received: (qmail 87503 invoked by uid 500); 9 Jan 2008 03:18:50 -0000 Delivered-To: apmail-activemq-camel-user-archive@activemq.apache.org Received: (qmail 87476 invoked by uid 500); 9 Jan 2008 03:18:50 -0000 Mailing-List: contact camel-user-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: camel-user@activemq.apache.org Delivered-To: mailing list camel-user@activemq.apache.org Received: (qmail 87466 invoked by uid 99); 9 Jan 2008 03:18:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Jan 2008 19:18:50 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of willem.jiang@gmail.com designates 209.85.132.248 as permitted sender) Received: from [209.85.132.248] (HELO an-out-0708.google.com) (209.85.132.248) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jan 2008 03:18:35 +0000 Received: by an-out-0708.google.com with SMTP id b8so18308ana.65 for ; Tue, 08 Jan 2008 19:18:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; bh=dgmM+1dhlLvRa6b1H/IMt8TgBLBvPmSob6DbhFZvgCA=; b=eu4N3aBeu9LOOxlU+4GKLGIMGwSfyxq/5LLktSLplrcq+2ZYzVQtxxNXM6UMv/hqNQOc1QRoxOPFadfJnRYi9hmenCX3WyNUIU4oGjIpvUdlyz61cnIgdYN+4M9JXyMvbPpEg0wwqWnlP1v0bsprVADYDkf/Tj2AEd18j8FENzA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=lQoBT9LYifJus1hGQe9oTUnHxmeIAalrZA5rt3jm0iKqZOM316mM5+fEODfd/YIUNr2tBWBwL2KE2uHDs0kwni4trbS5ITVDXnyftcHl2OigBqgCav5Q3+dZ6lPj522dy8wJRLgR1hCKL5MwMIDrSEB12xfK8PeklpawA3sGwyI= Received: by 10.100.231.16 with SMTP id d16mr448675anh.23.1199848706974; Tue, 08 Jan 2008 19:18:26 -0800 (PST) Received: from ?10.129.9.176? ( [124.17.14.193]) by mx.google.com with ESMTPS id s54sm589510rnb.8.2008.01.08.19.18.22 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 08 Jan 2008 19:18:24 -0800 (PST) Message-ID: <47843CF9.406@gmail.com> Date: Wed, 09 Jan 2008 11:18:17 +0800 From: Willem Jiang User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: camel-user@activemq.apache.org Subject: Re: Camel and CXF Endpoint References: <47835987.9050407@gmail.com> <47842E20.1080401@gmail.com> In-Reply-To: <47842E20.1080401@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org I think we could put the cxfEndpoint.xsd into the location of http://activemq.apache.org/camel/schema/cxf/cxfEndpoint.xsd. Before that we just leverage the Spring's local schema's configuration and put the schema into the camel-cxf-*.jar. If you are using the tool such as eclipse to validate the spring configuration file , you had to extract the cxfEndpoint.xsd and put it to where the tool can find the schema. BTW, we fixed some issues of cxf camel component in the 1.3.0 snapshot, please feel free to try it out. Willem. Freeman Fang wrote: > Hi Eric, > > It seems that camel-cxf-1.2.jar is not in your class path, > > please add > > org.apache.camel > camel-cxf > ${camel.version} > > in your pom. > > Btw, org/apache/cxf/frontend/AbstractEndpointFactory is in the cxf > rt-core module, which camel-cxf depend on. > > Best Regards > > Freeman > > Eric Rodriguez wrote: >> Hi, >> >> I'm trying to route a SOAP message from a CXF endpoint. I have the >> service working on CXF fine, but when following the example from >> http://activemq.apache.org/camel/cxf.html i keep getting: >> >> Failed to read schema document >> 'http://activemq.apache.org/camel/schema/cxf/cxfEndpoint.xsd >> >> I'm using apache-camel-1.2.0.jar and I can see it does have >> schema/cxfEndpoint but it seems my system can't find it. >> >> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >> xmlns:cxf="http://activemq.apache.org/camel/schema/cxfEndpoint" >> >> xsi:schemaLocation=" >> http://www.springframework.org/schema/beans >> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd >> http://activemq.apache.org/camel/schema/cxfEndpoint >> http://activemq.apache.org/camel/schema/cxf/cxfEndpoint.xsd >> http://activemq.apache.org/camel/schema/spring >> http://activemq.apache.org/camel/schema/spring/camel-spring.xsd >> "> >> >> > address="http://localhost:8080/BusDemo/notifier" >> serviceClass="com.openwave.routing.bus.NotifierBusImp" >> wsdlURL="http://localhost:8080/BusDemo/notifier?wsdl"/> >> >> On the other hand, if I try to do it from Java: >> >> CxfComponent cxf = new CxfComponent(context); >> cxf.createEndpoint("router"); >> .... >> >> I get a: >> java.lang.NoClassDefFoundError: >> org/apache/cxf/frontend/AbstractEndpointFactory >> >> I can't find that class on Camel or on CXF, any hint please? >> >> Thx, >> Eric >> >