2017-08-03 5 views
0

おはよう!私はミュールで新しいです...そして英語:)。私は、このコンピュータにはServer 3.8.4 CEとmule-standalone-3.8.1のAnypoint Studioを、別のものにはMule-Standalone-3.8.1を持っています。私はスタジオとチェックでプロジェクトを作成します。それは仕事です!その後、私は[エクスポート] - > [AnypointStudioプロジェクト]を選択します。そして私はこのプロジェクトで.zipファイルを作成し、このPC上の2つのスタンドアロンサーバー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:コネクターは、ミュールのEnterpriseエディションで利用可能です。他のサーバーには、コミュニティランタイムがあり、ローカルにはエンタープライズランタイムを実行しています。

ない場合は、あなたがpropablyのjarファイルが欠落している - よりこちらの情報 https://docs.mulesoft.com/mule-user-guide/v/3.8/mule-wmq-transport-reference

+0

しかし、プロジェクトでのzipファイルには、すべてのjarファイルを持っています。私はAnypointStudioでプロジェクトを作成し、すべてのjarファイルを追加して展開し、すべてが動作し、エクスポートすることを確信します。 AnypointStudioを終了します。 mule-standalone-3.8.1をダウンロードし、自分のコンピュータとサーバで解凍します。私のPCとサーバーのディレクトリ%MULE_HOME%/ domainのptojectを使ってzipファイルをコピーしてください。自分のpc - ドメインにMulを実行すると、server-domainに失敗しました。しかし、あなたは正しいですし、wmq:コネクターにタイプ選択があり、コミュニティではありません。 – Zzzadruga

+0

これらのjarを%MULE_HOME%/ lib/user /にコピーしてみてください。私はそれが助けると確信していないが、それは試してみる価値がある。 – KBaluc

+0

そこにコピーすると、ノーレが始まらない – Zzzadruga

関連する問題