我无法在独立服务器上部署域

时间:2017-08-03 11:50:40

标签: mule anypoint-studio

美好的一天!我是骡子的新人...和英语:)。我在这台计算机上安装了带有Server 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) ~[?:?]
...................

1 个答案:

答案 0 :(得分:0)

wmq:连接器可用于Mule的企业版。在其他服务器上,您可以使用社区运行时,在本地运行Enterprise Runtime。

如果没有,你可能会丢失罐子 - 这里有更多信息 https://docs.mulesoft.com/mule-user-guide/v/3.8/mule-wmq-transport-reference