2012-11-29 102 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

相關問題