[mule-user] Mule Grommet - server start error - config issue

39 views
Skip to first unread message

paul sinnott

unread,
Dec 14, 2011, 5:07:54 AM12/14/11
to us...@mule.codehaus.org
Hi there,
I am trying to get mule setup with a simple example.
I configure a maven project and have the project running in Eclipse Helios.
My simple mule-config.xml looks like:
-----<h6>
<?xml version="1.0" encoding="UTF-8"?>
<mule xmlns="http://www.mulesoft.org/schema/mule/core"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:spring="http://www.springframework.org/schema/beans"
xmlns:jetty="http://www.mulesoft.org/schema/mule/jetty"
xmlns:jetty-ssl="http://www.mulesoft.org/schema/mule/jetty-ssl"
xmlns:jms="http://www.mulesoft.org/schema/mule/jms"
xmlns:vm="http://www.mulesoft.org/schema/mule/vm"
xmlns:mule-xml="http://www.mulesoft.org/schema/mule/xml"
xsi:schemaLocation="
http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/3.2/mule.xsd
http://www.mulesoft.org/schema/mule/jms http://www.mulesoft.org/schema/mule/jms/3.2/mule-jms.xsd
http://www.mulesoft.org/schema/mule/vm http://www.mulesoft.org/schema/mule/vm/3.2/mule-vm.xsd
http://www.mulesoft.org/schema/mule/annotations http://www.mulesoft.org/schema/mule/annotations/3.2/mule-annotations.xsd
http://www.mulesoft.org/schema/mule/spring-extras http://www.mulesoft.org/schema/mule/spring-extras/3.2/mule-spring-extras.xsd
http://www.mulesoft.org/schema/mule/xml http://www.mulesoft.org/schema/mule/xml/3.2/mule-xml.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">

<description>
Mule integration for Nomx
</description>

<!-- global-property name="jms.url" value="tcp://localhost:61616"/-->

<jms:activemq-connector name="jmsConnector" specification="1.1" brokerURL="tcp://localhost:61616"/>

<flow name="main">
<jms:inbound-endpoint queue="nomx.user.analytics"/>

<!-- TODO add your service component here. This can also be a Spring bean using <spring-object bean="name"/> -->
<echo-component/>


</flow>
</mule>
-----</h6>

The mule server runs fine when run through Eclipse.

Running from a command line prompt with: mvn -e exec:java -Dexec.mainClass=org.mule.MuleServer -Dconfig=mule-config.xml

I get the following stack trace:
-----
<h6>
1. cvc-complex-type.2.4.a: Invalid content was found starting with element 'jms:activemq-connector'. One of '{"http://www.springframework.org/schema/beans":beans, "http://www.springframework.org/schema/beans":bean, "http://www.springframework.org/schema/context":property-placeholder, "
p://www.mulesoft.org/schema/mule/core":configuration, "http://www.mulesoft.org/schema/mule/core":notifications, "http://www.mulesoft.org/schema/mule/core":abstract-extension, "http://www.mulesoft.org/schema/mule/core":abstract-mixed-content-extension, "http://www.mulesoft.org/schema/mu
t.org/schema/mule/core":abstract-transaction-manager, "http://www.mulesoft.org/schema/mule/core":abstract-connector, "http://www.mulesoft.org/schema/mule/core":abstract-global-endpoint, "http://www.mulesoft.org/schema/mule/core":abstract-flow-construct, "http://www.mulesoft.org/schema/
bstract-model, "http://www.mulesoft.org/schema/mule/core":abstract-interceptor-stack, "http://www.mulesoft.org/schema/mule/core":abstract-filter, "http://www.mulesoft.org/schema/mule/core":abstract-transformer, "http://www.mulesoft.org/schema/mule/core":processor-chain, "http://www.mul
oft.org/schema/mule/core":message-filter, "http://www.mulesoft.org/schema/mule/core":custom-queue-store, "http://www.mulesoft.org/schema/mule/core":abstract-processing-strategy}' is expected. (org.xml.sax.SAXParseException)
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper:195 (null)
2. Line 21 in XML document from URL [file:/C:/eclipse-helios-workspace/NomxMuleEsb/target/classes/mule-config.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'jms:activemq-connector'. One of '{"
w.springframework.org/schema/context":property-placeholder, "http://www.springframework.org/schema/beans":ref, "http://www.mulesoft.org/schema/mule/core":global-property, "http://www.mulesoft.org/schema/mule/core":configuration, "http://www.mulesoft.org/schema/mule/core":notifications,
t-mixed-content-extension, "http://www.mulesoft.org/schema/mule/core":abstract-agent, "http://www.mulesoft.org/schema/mule/core":abstract-security-manager, "http://www.mulesoft.org/schema/mule/core":abstract-transaction-manager, "http://www.mulesoft.org/schema/mule/core":abstract-conne
re":abstract-flow-construct, "http://www.mulesoft.org/schema/mule/core":flow, "http://www.mulesoft.org/schema/mule/core":sub-flow, "http://www.mulesoft.org/schema/mule/core":abstract-model, "http://www.mulesoft.org/schema/mule/core":abstract-interceptor-stack, "http://www.mulesoft.org/
lesoft.org/schema/mule/core":processor-chain, "http://www.mulesoft.org/schema/mule/core":custom-processor, "http://www.mulesoft.org/schema/mule/core":invoke, "http://www.mulesoft.org/schema/mule/core":message-filter, "http://www.mulesoft.org/schema/mule/core":custom-queue-store, "http:
y.xml.XmlBeanDefinitionStoreException)
org.springframework.beans.factory.xml.XmlBeanDefinitionReader:396 (null)
3. Line 21 in XML document from URL [file:/C:/eclipse-helios-workspace/NomxMuleEsb/target/classes/mule-config.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'jms:activemq-connector'. One of '{"
w.springframework.org/schema/context":property-placeholder, "http://www.springframework.org/schema/beans":ref, "http://www.mulesoft.org/schema/mule/core":global-property, "http://www.mulesoft.org/schema/mule/core":configuration, "http://www.mulesoft.org/schema/mule/core":notifications,
t-mixed-content-extension, "http://www.mulesoft.org/schema/mule/core":abstract-agent, "http://www.mulesoft.org/schema/mule/core":abstract-security-manager, "http://www.mulesoft.org/schem...********************************************************************************
Root Exception stack trace:
org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'jms:activemq-connector'. One of '{"http://www.springframework.org/schema/beans":beans, "http://www.springframework.org/schema/beans":bean, "http://www.springframework.org/schema/cont
/core":global-property, "http://www.mulesoft.org/schema/mule/core":configuration, "http://www.mulesoft.org/schema/mule/core":notifications, "http://www.mulesoft.org/schema/mule/core":abstract-extension, "http://www.mulesoft.org/schema/mule/core":abstract-mixed-content-extension, "http:
manager, "http://www.mulesoft.org/schema/mule/core":abstract-transaction-manager, "http://www.mulesoft.org/schema/mule/core":abstract-connector, "http://www.mulesoft.org/schema/mule/core":abstract-global-endpoint, "http://www.mulesoft.org/schema/mule/core":abstract-flow-construct, "htt
soft.org/schema/mule/core":abstract-model, "http://www.mulesoft.org/schema/mule/core":abstract-interceptor-stack, "http://www.mulesoft.org/schema/mule/core":abstract-filter, "http://www.mulesoft.org/schema/mule/core":abstract-transformer, "http://www.mulesoft.org/schema/mule/core":proc
e":invoke, "http://www.mulesoft.org/schema/mule/core":message-filter, "http://www.mulesoft.org/schema/mule/core":custom-queue-store, "http://www.mulesoft.org/schema/mule/core":abstract-processing-strategy}' is expected.
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:131)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:384)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:318)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(XMLSchemaValidator.java:410)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError(XMLSchemaValidator.java:3165)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1777)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.emptyElement(XMLSchemaValidator.java:705)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:377)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2747)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:225)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:283)
at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:388)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
at org.mule.config.spring.MuleApplicationContext.loadBeanDefinitions(MuleApplicationContext.java:112)
at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)
at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:467)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:397)
at org.mule.config.spring.SpringRegistry.doInitialise(SpringRegistry.java:89)
at org.mule.registry.A...
********************************************************************************

14-12 09:33:47:547 [org.mule.MuleServer.main()] [] ERROR MuleServer.shutdown -
********************************************************************************
* A Fatal error has occurred while the server was running: *
* cvc-complex-type.2.4.a: Invalid content was found starting with element *
* 'jms:activemq-connector'. One of *
* '{"http://www.springframework.org/schema/beans":beans, *
* "http://www.springframework.org/schema/beans":bean, *
* "http://www.springframework.org/schema/context":property-placeholder, *
* "http://www.springframework.org/schema/beans":ref, *
* "http://www.mulesoft.org/schema/mule/core":global-property, *
* "http://www.mulesoft.org/schema/mule/core":configuration, *
* "http://www.mulesoft.org/schema/mule/core":notifications, *
* "http://www.mulesoft.org/schema/mule/core":abstract-extension, *
* "http://www.mulesoft.org/schema/mule/core":abstract-mixed-content-extension, *
* "http://www.mulesoft.org/schema/mule/core":abstract-agent, *
* "http://www.mulesoft.org/schema/mule/core":abstract-security-manager, *
* "http://www.mulesoft.org/schema/mule/core":abstract-transaction-manager, *
* "http://www.mulesoft.org/schema/mule/core":abstract-connector, *
* "http://www.mulesoft.org/schema/mule/core":abstract-global-endpoint, *
* "http://www.mulesoft.org/schema/mule/core":abstract-flow-construct, *
* "http://www.mulesoft.org/schema/mule/core":flow, *
* "http://www.mulesoft.org/schema/mule/core":sub-flow, *
* "http://www.mulesoft.org/schema/mule/core":abstract-model, *
* "http://www.mulesoft.org/schema/mule/core":abstract-interceptor-stack, *
* "http://www.mulesoft.org/schema/mule/core":abstract-filter, *
* "http://www.mulesoft.org/schema/mule/core":abstract-transformer, *
* "http://www.mulesoft.org/schema/mule/core":processor-chain, *
* "http://www.mulesoft.org/schema/mule/core":custom-processor, *
* "http://www.mulesoft.org/schema/mule/core":invoke, *
* "http://www.mulesoft.org/schema/mule/core":message-filter, *
* "http://www.mulesoft.org/schema/mule/core":custom-queue-store, *
* "http://www.mulesoft.org/schema/mule/core":abstract-processing-strategy}' *
* is expected. (org.xml.sax.SAXParseException) *
* *
* The error is fatal, the system will shutdown *
********************************************************************************
</h6>
-----

Not sure why Eclipse wouldnt throw parse error as well?
Any pointers on my xml config appreciated?

Thanks in advance
Paul

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email


paul sinnott

unread,
Dec 14, 2011, 7:21:26 AM12/14/11
to us...@mule.codehaus.org
Seems like I had left the scope in. This meant in eclipse everthing was fine. Removed this and server started fine from command line.

<dependency>
<groupId>org.mule.transports</groupId>
<artifactId>mule-transport-jms</artifactId>
<version>${mule.version}</version>
<b><scope>provided</scope></b>
</dependency>

Reply all
Reply to author
Forward
0 new messages