光辉飞翔

导航

 

在eclipse中启动系统时报如下错误:

|2015-09-29 02:10:21,915|ERROR-[][][]-[Configuration with "org.mule.config.spring.SpringXmlConfigurationBuilder" failed.]-[builders.AbstractConfigurationBuilder,configure,53]-[t=main]
org.mule.api.lifecycle.InitialisationException: Line 4204 in XML document from URL [jar:file:/D:/Cnaps2_hrb_svn/YakRuntime/lib/mule/mule-module-spring-config-3.0.1.jar!/default-mule-config.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cos-nonambig: "http://www.mulesoft.org/schema/mule/core":abstract-filter and "http://www.mulesoft.org/schema/mule/core":abstract-message-processor (or elements from their substitution group) violate "Unique Particle Attribution". During validation against this schema, ambiguity would be created for those two particles.
    at org.mule.registry.AbstractRegistry.initialise(AbstractRegistry.java:115)
    at org.mule.config.spring.SpringXmlConfigurationBuilder.createSpringRegistry(SpringXmlConfigurationBuilder.java:116)
    at org.mule.config.spring.SpringXmlConfigurationBuilder.doConfigure(SpringXmlConfigurationBuilder.java:73)
    at org.mule.config.builders.AbstractConfigurationBuilder.configure(AbstractConfigurationBuilder.java:47)
    at org.mule.config.builders.AbstractResourceConfigurationBuilder.configure(AbstractResourceConfigurationBuilder.java:78)
    at org.mule.config.builders.AutoConfigurationBuilder.autoConfigure(AutoConfigurationBuilder.java:101)
    at org.mule.config.builders.AutoConfigurationBuilder.doConfigure(AutoConfigurationBuilder.java:57)
    at org.mule.config.builders.AbstractConfigurationBuilder.configure(AbstractConfigurationBuilder.java:47)
    at org.mule.config.builders.AbstractResourceConfigurationBuilder.configure(AbstractResourceConfigurationBuilder.java:78)
    at org.mule.context.DefaultMuleContextFactory.createMuleContext(DefaultMuleContextFactory.java:79)
    at org.mule.MuleServer.initialize(MuleServer.java:377)
    at org.mule.MuleServer.run(MuleServer.java:267)
    at org.mule.MuleServer.start(MuleServer.java:254)
    at org.mule.MuleServer.main(MuleServer.java:127)
Caused by: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 4204 in XML document from URL [jar:file:/D:/Cnaps2_hrb_svn/YakRuntime/lib/mule/mule-module-spring-config-3.0.1.jar!/default-mule-config.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cos-nonambig: "http://www.mulesoft.org/schema/mule/core":abstract-filter and "http://www.mulesoft.org/schema/mule/core":abstract-message-processor (or elements from their substitution group) violate "Unique Particle Attribution". During validation against this schema, ambiguity would be created for those two particles.
    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396)
    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:107)
    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:100)
    at org.mule.registry.AbstractRegistry.initialise(AbstractRegistry.java:107)
    ... 13 more
Caused by: org.xml.sax.SAXParseException: cos-nonambig: "http://www.mulesoft.org/schema/mule/core":abstract-filter and "http://www.mulesoft.org/schema/mule/core":abstract-message-processor (or elements from their substitution group) violate "Unique Particle Attribution". During validation against this schema, ambiguity would be created for those two particles.
    at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236)
    at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:172)
    at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:382)
    at com.sun.org.apache.xerces.internal.impl.xs.XSConstraints.reportSchemaError(XSConstraints.java:315)
    at com.sun.org.apache.xerces.internal.impl.xs.XSConstraints.fullSchemaChecking(XSConstraints.java:463)
    at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleEndElement(XMLSchemaValidator.java:2246)
    at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.endElement(XMLSchemaValidator.java:814)
    at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanEndElement(XMLNSDocumentScannerImpl.java:713)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1685)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
    at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:250)
    at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:292)
    at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75)
    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:388)
    ... 22 more

解决办法:

这个问题是由于eclipse中配置的java complie的环境和jre不匹配导致的。点击项目右键properties,get the ”java compiler” ,change the "Compiler compilance level" to "1.6" which your project requested.   At the same time, select the "Window-->Proference-->Java-->Installed JREs", and Add the project running environment. 

In the end, your project is runnable.

hava your try, any question pls contact me. ths!

posted on 2015-09-29 10:35  光辉飞翔  阅读(619)  评论(0编辑  收藏  举报