Hi The namespaces on the xml tags is wrong. Make sure what is spring is spring, and what is Camel is Camel.
On Fri, Feb 7, 2014 at 5:24 PM, dtjep <didier.t...@sap.aphp.fr> wrote: > Hi, > I have the error : > -------------------- > 62 | k.osgi.extender | 1.2.1 | Application context refresh failed > (OsgiBundleXmlApplicationContext(bundle=BouchonMLLP_15010.xml, > config=osgibundle:/META-INF/spring/*.xml)) > org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line > 7 in XML document from URL > [bundleentry://756.fwk1335930/META-INF/spring/BouchonMLLP_15010.xml] is > invalid; nested exception is org.xml.sax.SAXParseException: > cvc-complex-type.2.4.a: Invalid content was found starting with element > 'endpoint'. 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 > > whith the following xml spring 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:camel="http://camel.apache.org/schema/spring" > xsi:schemaLocation=" > http://www.springframework.org/schema/beans > http://www.springframework.org/schema/beans/spring-beans.xsd > http://camel.apache.org/schema/spring > http://camel.apache.org/schema/spring/camel-spring.xsd" > > > <bean id="hl7codec" class="org.apache.camel.component.hl7.HL7MLLPCodec"> > <property name="charset" value="iso-8859-1"/> > </bean> > > <endpoint id="hl7listener" > xmlns="http://www.springframework.org/schema/beans" > > uri="mina2:tcp://localhost:15030?sync=true&codec=#hl7codec" /> > > > <routeContext id="coolHL7" > xmlns="http://camel.apache.org/schema/spring"> > > <route id="cool"> > <from uri="hl7listener"/> > <to uri="file://deveai/data/bouchonmllp/coolHL7"/> > </route> > </routeContext> > </beans> > > Does anybody have an idea to resolve it ? > Thanks, > DT > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Definition-of-a-HL7-FTP-endpoint-simulated-with-a-spring-Camel-mllp-tp5746939.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen Make your Camel applications look hawt, try: http://hawt.io