Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2D32110A9F for ; Thu, 12 Sep 2013 14:39:26 +0000 (UTC) Received: (qmail 63782 invoked by uid 500); 12 Sep 2013 14:39:25 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 63681 invoked by uid 500); 12 Sep 2013 14:39:22 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 63527 invoked by uid 99); 12 Sep 2013 14:39:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Sep 2013 14:39:20 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=RCVD_IN_DNSWL_LOW,URI_HEX X-Spam-Check-By: apache.org Received-SPF: error (athena.apache.org: local policy) Received: from [209.85.217.179] (HELO mail-lb0-f179.google.com) (209.85.217.179) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Sep 2013 14:39:16 +0000 Received: by mail-lb0-f179.google.com with SMTP id x18so965141lbi.38 for ; Thu, 12 Sep 2013 07:38:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:content-type; bh=+NNZUlViCnS04+RLDJ8d0qzkpLpnAZb7VinXbiWz/5I=; b=edVqcE3PpQ03q+IE32lWhHrVmdQDTvpuiGspRKUvYkVbrUitVvuSyav+YIFDuAlslU HbKF1MEVkATqIIikzXjFHJFGtIBWL2k59DtDn6J3tfVBhvO2Z4mQYXJbj4s0jMPOmDHX MTqGnCSILM3jKt4L4eqoeTkraAd0O47xiiR2gsEWYXwUpROwYnhKZ86CCSuAWYOyx37D BHdSznzm5K2Ob/HCipMmJlxiASBDgUffW8NOYk3MROdq+HjVYyg1KSRDSjBIBU6ziRUm ODNHt1AkTRk/pMIM6zwAIdX+L1sTyTPJRWSzO8zJHoRD5hk7u10Uq6xBpzcpkh4z12/0 wrZg== X-Gm-Message-State: ALoCoQl6SJ++P+95og5GULltXv7HpNi8U5E1YBfqEMdQZn64/Rf3gkWDNigtKFeREfR2BbuGoOXa X-Received: by 10.112.168.170 with SMTP id zx10mr7601643lbb.0.1378996714362; Thu, 12 Sep 2013 07:38:34 -0700 (PDT) MIME-Version: 1.0 Sender: jcarman@carmanconsulting.com Received: by 10.112.161.230 with HTTP; Thu, 12 Sep 2013 07:38:14 -0700 (PDT) In-Reply-To: <1378995700942-5739260.post@n5.nabble.com> References: <1378995700942-5739260.post@n5.nabble.com> From: James Carman Date: Thu, 12 Sep 2013 10:38:14 -0400 X-Google-Sender-Auth: mekY14qL0HOokx4E8oI0XH7sqtk Message-ID: Subject: Re: Error when adding in camel route file To: "users@camel.apache.org" Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Put it inside the element. It's from the same namespace. On Thu, Sep 12, 2013 at 10:21 AM, vsmahesh wrote: > Hi all, > > When I am using in my route I am getting the error [INFO] > Finished at: Thu Sep 12 17:16:32 EEST 2013 > [INFO] Final Memory: 15M/111M > [INFO] > ------------------------------------------------------------------------ > [ERROR] Failed to execute goal > org.apache.camel:camel-maven-plugin:2.10.0.fuse-7 > 1-047:run (default-cli) on project mes-bw-energyconsumption-queue: null: > MojoExe > cutionException: InvocationTargetException: Line 41 in XML document from > file [D > :\Project\Mahesh\Workspace\mes-bw-energyconsumption-queue\target\classes\META-IN > F\spring\camel-route.xml] is invalid; nested exception is > org.xml.sax.SAXParseEx > ception: cvc-complex-type.2.4.a: Invalid content was found starting with > element > 'dataFormats'. One of > '{"http://www.springframework.org/schema/beans":import, " > http://www.springframework.org/schema/beans":alias, > "http://www.springframework. > org/schema/beans":bean, > WC[##other:"http://www.springframework.org/schema/beans" > ]}' is expected. -> [Help 1] > [ERROR] > [ERROR] To see the full stack trace of the errors, re-run Maven with the -e > swit > ch. > [ERROR] Re-run Maven using the -X switch to enable full debug logging. > [ERROR] > > My route is like > > > contextPath="mes.id59.powerconsumption" > partClass=".id59.powerconsumption.Details" /> > > > > > > > > > > > > > My pom is > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 > http://maven.apache.org/maven-v4_0_0.xsd"> > > 4.0.0 > > > > 1.0.0 > com.outotec > Creates a web service using the WSDL contract > first > bundle > > > > > > UTF-8 > UTF-8 > > > > > > > > > > spring-release > http://maven.springframework.org/release > > > maven-us-nuxeo > https://maven-us.nuxeo.org/nexus/content/groups/public > > > > release.fusesource.org > FuseSource Release Repository > http://repo.fusesource.com/nexus/content/repositories/releases > > false > > > true > > > > snapshot.fusesource.org > FuseSource Snapshot Repository > > http://repo.fusesource.com/nexus/content/repositories/snapshots > > true > > > false > > > > > fusesource > FuseSource Release Repository > http://repo.fusesource.com/nexus/content/groups/public/ > > false > > > true > > > > fusesource.ea > FuseSource Community Early Access Release Repository > http://repo.fusesource.com/nexus/content/groups/ea > > false > > > true > > > > jboss-public-repository-group > JBoss Public Repository Group > http://repository.jboss.org/nexus/content/groups/public/ > default > > true > never > > > true > daily > > > > > > > fusesource > FuseSource Release Repository > http://repo.fusesource.com/nexus/content/groups/public/ > > false > > > true > > > > fusesource.ea > FuseSource Community Early Access Release Repository > http://repo.fusesource.com/nexus/content/groups/ea > > false > > > true > > > > > > release.fusesource.org > FuseSource Release Repository > http://repo.fusesource.com/nexus/content/repositories/releases > > false > > > true > > > > snapshot.fusesource.org > FuseSource Snapshot Repository > > http://repo.fusesource.com/nexus/content/repositories/snapshots > > true > > > false > > > > > > > > > > > > > > org.apache.camel > camel-jms > 2.10.0.fuse-71-047 > > > org.apache.activemq > activemq-core > 5.7.0.fuse-71-047 > > > > org.apache.activemq > activemq-camel > 5.7.0.fuse-71-047 > > > > org.apache.xbean > xbean-spring > 3.12 > > > > org.springframework > spring-context > 3.0.7.RELEASE > > > > org.apache.camel > camel-spring > 2.10.0.fuse-71-047 > > > > > > > org.apache.activemq > activemq-all > 5.7.0 > > > > > > > > org.apache.camel > camel-core > 2.10.0.fuse-71-047 > > > > > org.apache.camel > camel-cxf > 2.10.0.fuse-71-047 > > > > log4j > log4j > 1.2.16 > > > > > org.slf4j > slf4j-api > 1.6.1 > > > org.slf4j > slf4j-log4j12 > 1.6.1 > > > > > org.apache.cxf > cxf-rt-transports-http-jetty > 2.6.0.fuse-71-047 > > > > org.apache.camel > camel-test-spring > 2.10.0.fuse-71-047 > test > > > > junit > junit > 4.10 > test > > > > > > > > > > > > > > org.apache.felix > maven-bundle-plugin > 2.3.4 > true > > > > > org.apache.activemq.xbean, > org.apache.camel.converter.jaxb, > > org.apache.activemq.spring, > org.apache.activemq.broker, > org.apache.activemq.security, > > org.apache.activemq.jaas, > org.apache.activemq.util, > org.apache.activemq.pool, > org.apache.activemq.camel.component, > org.apache.camel.component.jms,* > > > > > > org.apache.cxf > cxf-codegen-plugin > 2.6.0.fuse-71-047 > > > generate-sources > generate-sources > > ${basedir}/target/generated/src/main/java > > > > ${basedir}/src/main/resources/wsdl/SI_ID59_Powerconsumption_async_out.wsdl > > -impl > > > > > > wsdl2java > > > > > > > org.apache.maven.plugins > maven-compiler-plugin > 2.5.1 > > 1.6 > 1.6 > > > > > org.apache.maven.plugins > maven-resources-plugin > 2.4.3 > > > > > > > > > > org.apache.camel > camel-maven-plugin > 2.10.0.fuse-71-047 > > > > mes-bw-energyconsumption-queue > MES - BW Energy Consumption > http://www.myorganization.org > > > I didnot add any seperate dependecy for dataFormats. > Kindly help me in resolving this issue. > > thanks > > > > -- > View this message in context: http://camel.465427.n5.nabble.com/Error-when-adding-dataFormats-in-camel-route-file-tp5739260.html > Sent from the Camel - Users mailing list archive at Nabble.com.