Return-Path: X-Original-To: apmail-camel-dev-archive@www.apache.org Delivered-To: apmail-camel-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 09D1010DAC for ; Mon, 21 Oct 2013 12:39:43 +0000 (UTC) Received: (qmail 90249 invoked by uid 500); 21 Oct 2013 12:39:31 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 90186 invoked by uid 500); 21 Oct 2013 12:39:26 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Delivered-To: moderator for dev@camel.apache.org Received: (qmail 36446 invoked by uid 99); 21 Oct 2013 10:58:22 -0000 X-ASF-Spam-Status: No, hits=1.3 required=5.0 tests=SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Date: Mon, 21 Oct 2013 03:57:57 -0700 (PDT) From: David M Nayagam To: dev@camel.apache.org Message-ID: <1382353077549-5741964.post@n5.nabble.com> Subject: Cannot find class [org.apache.camel.dataformat.soap.name.ServiceInterfaceStrategy] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi All, I am creating jar and deploying into servicemix 4.5.2 for consume the webservice project. while converting Object to SOAP xml i am getting below error: i have checked my .m2 folder i am having all the version of camel-soap jars:but not luck. org.apache.camel camel-soap 2.10.6 org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.apache.camel.dataformat.soap.name.ServiceInterfaceStrategy] for bean with name 'myNameStrategy' defined in URL [bundle://251.0:0/META-INF/spring/camel-context.xml]; nested exception is java.lang.ClassNotFoundException: org.apache.camel.dataformat.soap.name.ServiceInterfaceStrategy not found from bundle [WebService-Client] --------------------------------------------- Camel-context ------------------------------------------------- -------------------------------------------------------------- customer.java ------------------ package com.webservice.example; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlType; /** *

Java class for customer complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * 
 *   
 *     
 *       
 *         
 *         
 *       
 *     
 *   
 * 
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "customer", propOrder = { "description", "name" }) public class Customer { protected String description; protected String name; /** * Gets the value of the description property. * * @return * possible object is * {@link String } * */ public String getDescription() { return description; } /** * Sets the value of the description property. * * @param value * allowed object is * {@link String } * */ public void setDescription(String value) { this.description = value; } /** * Gets the value of the name property. * * @return * possible object is * {@link String } * */ public String getName() { return name; } /** * Sets the value of the name property. * * @param value * allowed object is * {@link String } * */ public void setName(String value) { this.name = value; } } -------------------------------- Enrich java ----------------- package com.enricher; import org.apache.camel.Body; import com.webservice.example.Customer; public class Enrich { public Customer createCustomer(String name) { System.out.println("Comming to Enrich Method...File Name: "+ name); Customer customer2 = new Customer(); customer2.setDescription("GOOD DONE...."); customer2.setName(name); System.out.println("Customer2: "+ customer2); return customer2; } } --------------------------- pom.xml ----------------------------- 4.0.0 com.file.poller WebService-Client jar 1.0.0-SNAPSHOT A Camel Spring Route http://www.myorganization.org UTF-8 UTF-8 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 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.cxf cxf-rt-frontend-jaxws 2.6.0 org.apache.cxf cxf-rt-transports-http 2.6.0 org.apache.cxf cxf-rt-transports-http-jetty 2.6.0 org.apache.cxf cxf-rt-bindings-soap 2.6.0 org.apache.camel camel-core 2.10.6 org.apache.camel camel-stream 2.10.6 org.apache.camel camel-spring 2.10.6 org.apache.camel camel-cxf 2.10.6 org.apache.camel camel-http 2.10.6 org.apache.camel camel-soap 2.10.6 org.apache.camel camel-jaxb 2.10.6 org.slf4j slf4j-api 1.6.1 org.slf4j slf4j-log4j12 1.6.1 org.apache.maven.plugins maven-compiler-plugin 2.5.1 1.6 1.6 org.apache.maven.plugins maven-resources-plugin 2.4.3 UTF-8 org.apache.felix maven-bundle-plugin 2.3.7 true 1.1 META-INF.cxf, org.xmlsoap.schemas.soap.envelope;version=0, * org.apache.cxf.*, org.springframework.beans.* org.apache.camel.dataformat.* com.enricher <_failok>true org.apache.cxf cxf-codegen-plugin 2.6.0.redhat-60024 generate-sources generate-sources ${basedir}/target/generated/src/main/java ${basedir}/src/main/resources/META-INF/wsdl/SimpleWebservice.wsdl wsdl2java org.apache.camel camel-maven-plugin 2.10.0.redhat-60024 -------------------------------------------- can you correct me where i am wrong. Thanks David -- View this message in context: http://camel.465427.n5.nabble.com/Cannot-find-class-org-apache-camel-dataformat-soap-name-ServiceInterfaceStrategy-tp5741964.html Sent from the Camel Development mailing list archive at Nabble.com.