2008/8/18 pevgen <[EMAIL PROTECTED]>: > > Hi. > I use camel 1.4 and spring configuration. When I run my program with xerces > (xml-parser), then my program start successfully. But with oracle xml > parser, i have an error. > > Caused by: org.xml.sax.SAXParseException: <Line 12, Column 43>: XML-24534: > (Error) Element 'from' not expected. > at oracle.xml.parser.v2.XMLError.flushErrorHandler(XMLError.java:415) > at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:284) > at > oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:304) > at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:201) > at oracle.xml.jaxp.JXDocumentBuilder.parse(JXDocumentBuilder.java:155) > at > org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:78) > at > org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:361) > ... 35 more > > -------- > this is my sping.xml : > > <?xml version="1.0" encoding="UTF-8"?> > <beans xmlns="http://www.springframework.org/schema/beans" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > 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"> > > <camelContext xmlns="http://activemq.apache.org/camel/schema/spring" > useJmx="true" id="idCamelContext"> > <jmxAgent id="agent" createConnector="true"/> > > <route> > <from uri="vm:fromScheduler"/> > <process ref="idConfigurator"/> > <process ref="idGroupTaskSaver"/> > </route> > </camelContext> > > ..... > > Can anybody help me ?
The JDK/JRE comes with an XML parser so am wondering why you're trying to change it? I wonder does a normal Spring 2 XML (using the new Spring namespaces) file parse for you? -- James ------- http://macstrac.blogspot.com/ Open Source Integration http://open.iona.com
