[mule-user] Parse error - The content of element type "mule-configuration" must match"

24 views
Skip to first unread message

catchthebus

unread,
Jul 13, 2007, 1:03:36 PM7/13/07
to us...@mule.codehaus.org

Greetings,

Mule is kicking me today. I'm running 1.4.1 and running into this error:

ERROR 2007-07-13 12:50:12,143 [WrapperSimpleAppMain]
org.apache.commons.digester
.Digester: Parse Error at line 93 column 22: The content of element type
"mule-c
onfiguration" must match
"(description?,environment-properties?,mule-environment
-properties?,container-context*,security-manager?,transaction-manager?,agents?,c
onnector*,endpoint-identifiers?,transformers?,global-endpoints?,interceptor-stac
k*,model*)".

I have looked around for similar questions and compared my .conf file
against the dtd (<!DOCTYPE mule-configuration PUBLIC "-//MuleSource //DTD
mule-configuration XML V1.0//EN"

"http://mule.mulesource.org/dtds/mule-configuration.dtd">) and it LOOKS
correct to me.

I have pasted in the related part of the stack trace, followed by my .conf
file I am using. Of note is that I just upgraded to 1.4.1 and am wondering
if there is some kind of syntax change that needs to be made to my config
file? It worked in 1.3.3 with simple examples before I added the
container-context for the spring stuff. Thanks for any and all help.

Here is the trace and .conf file:


WARN 2007-07-13 12:50:11,956 [WrapperSimpleAppMain]
org.springframework.aop.fra
mework.Cglib2AopProxy: Unable to proxy method [public final void
org.springframe
work.dao.support.DaoSupport.afterPropertiesSet() throws
java.lang.IllegalArgumen
tException,org.springframework.beans.factory.BeanInitializationException]
becaus
e it is final: All calls to this method via a proxy will be routed directly
to t
he proxy.
ERROR 2007-07-13 12:50:12,143 [WrapperSimpleAppMain]
org.apache.commons.digester
.Digester: Parse Error at line 93 column 22: The content of element type
"mule-c
onfiguration" must match
"(description?,environment-properties?,mule-environment
-properties?,container-context*,security-manager?,transaction-manager?,agents?,c
onnector*,endpoint-identifiers?,transformers?,global-endpoints?,interceptor-stac
k*,model*)".
org.xml.sax.SAXParseException: The content of element type
"mule-configuration"
must match
"(description?,environment-properties?,mule-environment-properties?,c
ontainer-context*,security-manager?,transaction-manager?,agents?,connector*,endp
oint-identifiers?,transformers?,global-endpoints?,interceptor-stack*,model*)".
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Un
known Source)
at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown S
ource)
at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown
Source)

at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(
Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
known Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
Sour
ce)
at org.apache.commons.digester.Digester.parse(Digester.java:1610)
at
org.mule.config.builders.AbstractDigesterConfiguration.process(Abstra
ctDigesterConfiguration.java:121)
at
org.mule.config.builders.MuleXmlConfigurationBuilder.configure(MuleXm
lConfigurationBuilder.java:235)
at
org.mule.config.builders.MuleXmlConfigurationBuilder.configure(MuleXm
lConfigurationBuilder.java:210)
at org.mule.MuleServer.initialize(MuleServer.java:290)
at org.mule.MuleServer.run(MuleServer.java:203)
at org.mule.MuleServer.start(MuleServer.java:191)
at org.mule.MuleServer.main(MuleServer.java:162)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java
:240)
at java.lang.Thread.run(Unknown Source)
ERROR 2007-07-13 12:50:12,143 [WrapperSimpleAppMain]
org.mule.config.builders.Mu
leXmlConfigurationBuilder: The content of element type "mule-configuration"
must
match
"(description?,environment-properties?,mule-environment-properties?,conta
iner-context*,security-manager?,transaction-manager?,agents?,connector*,endpoint
-identifiers?,transformers?,global-endpoints?,interceptor-stack*,model*)".
org.xml.sax.SAXParseException: The content of element type
"mule-configuration"
must match
"(description?,environment-properties?,mule-environment-properties?,c
ontainer-context*,security-manager?,transaction-manager?,agents?,connector*,endp
oint-identifiers?,transformers?,global-endpoints?,interceptor-stack*,model*)".
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Un
known Source)
at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown S
ource)
at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown
Source)

at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(
Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
known Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
Sour
ce)
at org.apache.commons.digester.Digester.parse(Digester.java:1610)
at
org.mule.config.builders.AbstractDigesterConfiguration.process(Abstra
ctDigesterConfiguration.java:121)
at
org.mule.config.builders.MuleXmlConfigurationBuilder.configure(MuleXm
lConfigurationBuilder.java:235)
at
org.mule.config.builders.MuleXmlConfigurationBuilder.configure(MuleXm
lConfigurationBuilder.java:210)
at org.mule.MuleServer.initialize(MuleServer.java:290)
at org.mule.MuleServer.run(MuleServer.java:203)
at org.mule.MuleServer.start(MuleServer.java:191)
at org.mule.MuleServer.main(MuleServer.java:162)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java
:240)
at java.lang.Thread.run(Unknown Source)
ERROR 2007-07-13 12:50:12,190 [WrapperSimpleAppMain] org.mule.MuleServer:
********************************************************************************

Message : Failed to parse configuration resource
".\conf\new-expor
t-config.xml"
Type : org.mule.config.ConfigurationException
Code : MULE_ERROR-13001
JavaDoc :
http://mule.mulesource.org/docs/apidocs/org/mule/config/
ConfigurationException.html
********************************************************************************

Exception stack is:
1. The content of element type "mule-configuration" must match
"(description?,en
vironment-properties?,mule-environment-properties?,container-context*,security-m
anager?,transaction-manager?,agents?,connector*,endpoint-identifiers?,transforme
rs?,global-endpoints?,interceptor-stack*,model*)".
(org.xml.sax.SAXException)
org.mule.config.builders.AbstractDigesterConfiguration$2:80 (null)
2. Failed to parse configuration resource ".\conf\new-export-config.xml"
(org.mu
le.config.ConfigurationException)
org.mule.config.builders.AbstractDigesterConfiguration:125
(http://mule.muleso
urce.org/docs/apidocs/org/mule/config/ConfigurationException.html)
********************************************************************************

Root Exception stack trace:
org.xml.sax.SAXParseException: The content of element type
"mule-configuration"
must match
"(description?,environment-properties?,mule-environment-properties?,c
ontainer-context*,security-manager?,transaction-manager?,agents?,connector*,endp
oint-identifiers?,transformers?,global-endpoints?,interceptor-stack*,model*)".
at
org.mule.config.builders.AbstractDigesterConfiguration$2.error(Abstra
ctDigesterConfiguration.java:80)
at org.apache.commons.digester.Digester.error(Digester.java:1467)
at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown S
ource)
at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown
Source)

at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(
Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
known Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
Sour
ce)
at org.apache.commons.digester.Digester.parse(Digester.java:1610)
at
org.mule.config.builders.AbstractDigesterConfiguration.process(Abstra
ctDigesterConfiguration.java:121)
at
org.mule.config.builders.MuleXmlConfigurationBuilder.configure(MuleXm
lConfigurationBuilder.java:235)
at
org.mule.config.builders.MuleXmlConfigurationBuilder.configure(MuleXm
lConfigurationBuilder.java:210)
at org.mule.MuleServer.initialize(MuleServer.java:290)
at org.mule.MuleServer.run(MuleServer.java:203)
at org.mule.MuleServer.start(MuleServer.java:191)
at org.mule.MuleServer.main(MuleServer.java:162)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java
:240)
at java.lang.Thread.run(Unknown Source)

********************************************************************************


ERROR 2007-07-13 12:50:12,206 [WrapperSimpleAppMain] org.mule.MuleServer:
********************************************************************************

* A Fatal error has occurred while the server was running:
*

* The content of element type "mule-configuration" must match
*

*
"(description?,environment-properties?,mule-environment-properties?,containe
*

*
r-context*,security-manager?,transaction-manager?,agents?,connector*,endpoin
*

*
t-identifiers?,transformers?,global-endpoints?,interceptor-stack*,model*)".
*

* (org.xml.sax.SAXException)
*

*
*

* The error is fatal, the system must shutdown
*

* Server started: 12/31/69 7:00 PM
*

* Server shutdown: 7/13/07 12:50 PM
*

********************************************************************************

INFO 2007-07-13 12:50:12,393 [Thread-0] org.mule.MuleManager: disposing
agents.
..
INFO 2007-07-13 12:50:12,393 [Thread-0] org.mule.MuleManager: Agents
Successful
ly Disposed
INFO 2007-07-13 12:50:12,393 [Thread-0]
org.springframework.context.support.Fil
eSystemXmlApplicationContext: Closing
org.springframework.context.support.FileSy
stemXmlApplicationContext@530cf2: display name
[org.springframework.context.supp
ort.FileSystemXmlApplicationContext@530cf2]; startup date [Fri Jul 13
12:50:08 E
DT 2007]; root of context hierarchy
INFO 2007-07-13 12:50:12,393 [Thread-0]
org.springframework.beans.factory.suppo
rt.DefaultListableBeanFactory: Destroying singletons in
org.springframework.bean
s.factory.support.DefaultListableBeanFactory@fefe3f: defining beans
[propertyCon
figurer,userDatasource,sessionFactory,transactionManager,org.springframework.aop
.config.internalAutoProxyCreator,org.springframework.transaction.interceptor.Tra
nsactionAttributeSourceAdvisor,sectionExportService,sponsorshipExportService,dbO
perations,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor,test
Operations,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#1,t
xAdvice]; root of factory hierarchy
INFO 2007-07-13 12:50:12,393 [Thread-0]
org.springframework.orm.hibernate3.anno
tation.AnnotationSessionFactoryBean: Closing Hibernate SessionFactory
INFO 2007-07-13 12:50:12,393 [Thread-0]
org.hibernate.impl.SessionFactoryImpl:
closing
<-- Wrapper Stopped
C:\mule-1.4.1\examples\section-export>

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE mule-configuration PUBLIC "-//MuleSource //DTD mule-configuration
XML V1.0//EN"

"http://mule.mulesource.org/dtds/mule-configuration.dtd">

<mule-configuration id="Export_Sample" version="1.0">

<description>
The hello sample application has two components -
1. The Greeter component that adds a greeting to the event it receives
2. The ChitChater component that adds some additional conversation to
the event it receives
An event is triggered by input through the system console and the
outbound event is
aslo written out through the system console.
</description>

<container-context
className="org.mule.extras.spring.SpringContainerContext">
<properties>
<property name="configFile"
value="classpath:applicationContext-spring.xml" />
</properties>
</container-context>

<!--
An interceptor is a peice of code that can be configued to execute
before and/or after an event is received for a component.
You can define a stack of interceptors that will be executed in
sequence.
You can then configure the stack on your components.
-->
<interceptor-stack name="default">
<interceptor className="org.mule.interceptors.LoggingInterceptor"/>
<interceptor className="org.mule.interceptors.TimerInterceptor"/>
</interceptor-stack>

<!--
The VMConnector is used to send events between components within the
ame VM
-->
<!--connector name="VMConnector"
className="org.mule.providers.vm.VMConnector"/-->

<!--
The system stream connector is used to send and receive information
via the
System.in and System.out. Note this connector is only really useful
for testing
purposes.
promptMessage - is what is written to the console
messageDelayTime - is the time in milliseconds before the user is
prompted again.
These properties are set as bean properties on the connector.
-->

<!--
These define global providers that can be referenced by all
components in the system. Message
Providers can be declared here or within a mule-descriptor
declaration. Proivders declared in
a mule-descriptor declaration are only visible to the descriptor
they define in.
Note that global Message Providers are cloned when requested from
the Mule server so that the
calling code can alter their instance without affecting other
components.

-->
<!--global-message-providers>
<message-provider name="stream" endpointUri="system"
connector="SystemStreamConnector"/>
<message-provider name="chitchatProvider" endpointUri="chitchatter"
connector="VMConnector"/>
</global-message-providers-->


<!--
The Mule model initialises and manages your UMO components
-->

<mule-descriptor name="BeginProcessUMO"
implementation="org.mule.components.simple.BridgeComponent">
<inbound-router>
<endpoint address="stream://System.in"/>
</inbound-router>
<outbound-router>
<router
className="org.mule.routing.outbound.OutboundPassThroughRouter">
<endpoint address="vm://returngreeting"/>
</router>
</outbound-router>
</mule-descriptor>

<!--####start with my stuff##### -->
<mule-descriptor name="GrabSectionUMO"

implementation="com.scrippsnetworks.feeds.tasks.ExportSectionToMule">
<inbound-router>
<endpoint address="vm://returngreeting"/>
</inbound-router>
<outbound-router>
<router
className="org.mule.routing.outbound.OutboundPassThroughRouter">
<endpoint address="stream://System.out"/>
</router>
</outbound-router>
</mule-descriptor>
<!--#####end with my stuff#####-->

</mule-configuration>

--
View this message in context: http://www.nabble.com/Parse-error---The-content-of-element-type-%22mule-configuration%22-must-match%22-tf4075697.html#a11583610
Sent from the Mule - User mailing list archive at Nabble.com.


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

http://xircles.codehaus.org/manage_email

Andrew Perepelytsya

unread,
Jul 13, 2007, 1:09:17 PM7/13/07
to us...@mule.codehaus.org
Does any IDE with DTD correction validate it properly? The looks can be deceptive...

Urosov, Roman

unread,
Jul 13, 2007, 2:26:02 PM7/13/07
to us...@mule.codehaus.org

It's all said in here:

Parse Error at line 93 column 22: The content of element type

"mule-configuration" must match


"(description?,environment-properties?,mule-environment
-properties?,container-context*,security-manager?,transaction-manager?,a
gents?,connector*,endpoint-identifiers?,transformers?,global-endpoints?,
interceptor-stack*,model*)".

In other words,
<mule-descriptor> element cannot be inside <mule-configuration>
it must be inside <model>


Best regards,
Roman Urosov

-----Original Message-----
From: catchthebus [mailto:jkro...@gmail.com]
Sent: Friday, July 13, 2007 21:04
To: us...@mule.codehaus.org
Subject: [mule-user] Parse error - The content of element type
"mule-configuration" must match"


Greetings,

Mule is kicking me today. I'm running 1.4.1 and running into this
error:

ERROR 2007-07-13 12:50:12,143 [WrapperSimpleAppMain]
org.apache.commons.digester
.Digester:

I have looked around for similar questions and compared my .conf file

--

Andrew Perepelytsya

unread,
Jul 13, 2007, 2:26:46 PM7/13/07
to us...@mule.codehaus.org
Note, it _was_ possible to do it with older Mule versions. The split configuration has been formalized more in 1.4.x with an introduction of 'inherited' model node attribute. Model node is mandatory now.

Andrew

catchthebus

unread,
Jul 13, 2007, 2:31:48 PM7/13/07
to us...@mule.codehaus.org

I took Andrews advice and took a second "look"... ta da, I was assuming
rather than checking and had stripped out the model element. Doh!

Thanks Roman on clearing up the error, I had horse blinders on.

--
View this message in context: http://www.nabble.com/Parse-error---The-content-of-element-type-%22mule-configuration%22-must-match%22-tf4075697.html#a11585097

Reply all
Reply to author
Forward
0 new messages