2012-11-29 60 views
1

我正在开发mule应用程序。该应用程序已成功打包并安装在独立服务器上。Eclipse IDE中的Mule项目

当试图在eclipse IDE上运行时,同一个项目出错。挣扎着这个错误。

我使用Maven作为构建器。

请帮忙。下面给出的是错误。

INFO: Refreshing [email protected]: startup date [Thu Nov 29 09:36:07 EST 2012]; root of context hierarchy 
    Nov 29, 2012 9:36:07 AM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions 
    INFO: Loading XML bean definitions from URL [jar:file:/C:/Users/.m2/repository/org/mule/modules/mule-module-spring-config/3.3.0/mule-module-spring-config-3.3.0.jar!/mule-spring-config.xml] 
    Nov 29, 2012 9:36:07 AM org.springframework.util.xml.SimpleSaxErrorHandler warning 
    WARNING: Ignored XML validation warning 
    org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document 'http://www.springframework.org/schema/beans/spring-beans-current.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>. 
     at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195) 
     at ........ 

    Nov 29, 2012 9:36:07 AM org.mule.MuleServer shutdown 
    SEVERE: 
    ******************************************************************************** 
    Message    : Line 6 in XML document from URL [jar:file:/C:/Users/.m2/repository/org/mule/modules/mule-module-spring-config/3.3.0/mule-module-spring-config-3.3.0.jar!/mule-spring-config.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'beans'. 
    Code     : MULE_ERROR-71999 
    -------------------------------------------------------------------------------- 
    Exception stack is: 
    1. cvc-elt.1: Cannot find the declaration of element 'beans'. (org.xml.sax.SAXParseException) 
     com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper:195 (null) 
    2. Line 6 in XML document from URL [jar:file:/C:/Users/.m2/repository/org/mule/modules/mule-module-spring-config/3.3.0/mule-module-spring-config-3.3.0.jar!/mule-spring-config.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'beans'. (org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException) 
     org.springframework.beans.factory.xml.XmlBeanDefinitionReader:396 (null) 
    3. Line 6 in XML document from URL [jar:file:/C:/Users/.m2/repository/org/mule/modules/mule-module-spring-config/3.3.0/mule-module-spring-config-3.3.0.jar!/mule-spring-config.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'beans'. (org.mule.api.lifecycle.InitialisationException) 
     org.mule.registry.AbstractRegistry:117 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/lifecycle/InitialisationException.html) 
    -------------------------------------------------------------------------------- 
    Root Exception stack trace: 
    org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'beans'. 
     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) 
     + 3 more (set debug level logging or '-Dmule.verbose.exceptions=true' for everything) 
    ******************************************************************************** 

    Nov 29, 2012 9:36:07 AM org.mule.MuleServer shutdown 
    SEVERE: 
    ******************************************************************************** 
    * A Fatal error has occurred while the server was running:      * 
    * cvc-elt.1: Cannot find the declaration of element 'beans'.     * 
    * (org.xml.sax.SAXParseException)            * 
    *                    * 
    * The error is fatal, the system will shutdown         * 
    ******************************************************************************** 

请帮忙。

感谢

+0

当你说“Eclipse IDE”时,你是指“Mule Studio”还是纯粹的Eclipse?如果纯Eclipse,你如何启动Mule? –

回答

0

我有我的问题的解决方案。 原因是Spring bean在mule-config之外的applicationContext.xml文件中声明并导入。 这是造成这个问题。 当所有的spring bean都在mule-config里声明时它现在工作的很好。

谢谢大家的帮助。

2
+0

试过...但仍然是同样的问题。 \t xsi:schemaLocation =“ http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd http://www.springframework。 org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd \t http://www.springframework.org/schema/tx http://www.springframework.org /schema/tx/spring-tx-3.1.xsd – user1760178

+0

您可以使用Seba建议的更改后得到的新异常编辑您的问题 – genjosanzo

相关问题