2017-08-03 117 views
0

美好的一天!我是新來的騾子......和英語:)。我在這臺電腦上安裝了帶有服務器3.8.4 CE和mule-standalone-3.8.1的Anypoint Studio,在另一臺計算機上安裝了mule-standalone-3.8.1。我在工作室創建一個項目並檢查。是工作 !。之後我選擇導出 - > AnypointStudio項目。我用這個項目製作.zip文件,將這個PC上的兩個獨立服務器3.8.1複製到%MULE_HOME%/ domain目錄下。在此計算機域上部署,在另一臺上 - 失敗。代碼:我無法在獨立服務器上部署域名

<?xml version="1.0" encoding="UTF-8"?> 
<mule xmlns:file="http://www.mulesoft.org/schema/mule/file" xmlns:jms="http://www.mulesoft.org/schema/mule/jms" xmlns:tracking="http://www.mulesoft.org/schema/mule/ee/tracking" xmlns:wmq="http://www.mulesoft.org/schema/mule/ee/wmq" xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation" xmlns:spring="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-current.xsd 
http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd 
http://www.mulesoft.org/schema/mule/ee/wmq http://www.mulesoft.org/schema/mule/ee/wmq/current/mule-wmq-ee.xsd 
http://www.mulesoft.org/schema/mule/ee/tracking http://www.mulesoft.org/schema/mule/ee/tracking/current/mule-tracking-ee.xsd 
http://www.mulesoft.org/schema/mule/file http://www.mulesoft.org/schema/mule/file/current/mule-file.xsd 
http://www.mulesoft.org/schema/mule/jms http://www.mulesoft.org/schema/mule/jms/current/mule-jms.xsd"> 
    <wmq:connector name="WMQ" hostName="10.0.12.38" port="1414" queueManager="MQ_ADM" username="*******" transportType="CLIENT_MQ_TCPIP" validateConnections="true" doc:name="WMQ" /> 
    <spring:beans> 
     <spring:bean class="JMSAQ.JMSAQTest" name="JMSAQTest" id="JMSAQTest"> 
     </spring:bean> 
    </spring:beans> 
    <flow name="wmq-to-aqFlow"> 
     <wmq:inbound-endpoint queue="MQ_QUEUE" connector-ref="WMQ" doc:name="WMQ" /> 
     <logger message="#[message.inboundProperties['Jms_Sender']]" level="INFO" doc:name="Logger" /> 
     <logger message="Read!" level="INFO" doc:name="Logger" /> 
     <set-variable variableName="jms_sender" value="#[message.inboundProperties['Jms_Sender']]" doc:name="Variable" /> 
     <choice doc:name="Choice"> 
      <when expression="#[flowVars['jms_sender'] == 'MQ1']"> 
       <invoke name="Invoke" object-ref="JMSAQTest" method="enqueueMessage" methodArguments="#[payload]" /> 
      </when> 
      <when expression="#[flowVars['jms_sender'] == 'MQ2']"> 
       <file:outbound-endpoint path="src/main/wmq" responseTimeout="10000" doc:name="File" /> 
      </when> 
      <otherwise> 
       <logger message="finish" level="INFO" doc:name="Logger" /> 
      </otherwise> 
     </choice> 
    </flow> 
</mule> 

錯誤在第二個服務器的另一臺計算機上:

2017-08-03 12:48:07,964 [WrapperListener_start_runner] ERROR org.mule.module.launcher.application.DefaultMuleApplication - null 
org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'wmq:connector'. One of '{"http://www.mulesoft.org/schema/mule/core":annotations, "http://www.mulesoft.org/schema/mule/core":description, "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-shared-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-shared-transaction-manager, "http://www.mulesoft.org/schema/mule/core":abstract-connector, "http://www.mulesoft.org/schema/mule/core":abstract-shared-connector, "http://www.mulesoft.org/schema/mule/core":abstract-global-endpoint, "http://www.mulesoft.org/schema/mule/core":abstract-exception-strategy, "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":abstract-empty-processor, "http://www.mulesoft.org/schema/mule/core":invoke, "http://www.mulesoft.org/schema/mule/core":set-payload, "http://www.mulesoft.org/schema/mule/core":abstract-global-intercepting-message-processor, "http://www.mulesoft.org/schema/mule/core":custom-queue-store, "http://www.mulesoft.org/schema/mule/core":abstract-processing-strategy}' is expected. 
    at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) ~[?:?] 
................... 

回答

0

WMQ:連接器是提供給騾子的企業版。預計在其他服務器上有Community Runtime,在本地運行Enterprise Runtime。這裏更多信息 https://docs.mulesoft.com/mule-user-guide/v/3.8/mule-wmq-transport-reference

+0

但zip文件與項目都罐子 -

如果沒有,你propably遺漏罐子。我在AnypointStudio上製作項目,添加所有的jar,部署,確信一切正常並導出。關閉AnypointStudio。下載mule-standalone-3.8.1並在我的電腦和服務器中解壓縮。在我的PC和服務器上覆制帶有ptoject的zip文件到%MULE_HOME%/ domain目錄中。如果我在我的電腦上運行Mul - 域,服務器域失敗。但是你是對的,並且wmq:connector有類型選擇,而不是社區 – Zzzadruga

+0

嘗試將這些jar複製到%MULE_HOME%/ lib/user /中。我不相信這會有所幫助,但值得嘗試。 – KBaluc

+0

如果我在那裏複製它們,騾子不會啓動 – Zzzadruga

相關問題