WSO2 ESB 4.9.0示例271无法定位XSD资源

时间:2015-10-06 06:35:54

标签: wso2 wso2esb wso2-am

我正在使用WSO2 ESB 4.9.0并尝试实现示例271:文件处理。 https://docs.wso2.com/display/ESB490/Sample+271%3A+File+Processing

我已遵循示例指南中提到的每一步。尝试执行时,会出错:

    [2015-10-06 10:41:09,024]  INFO - LogMediator To: , WSAction: urn:mediate, SOAPAction: urn:mediate, MessageID: urn:uuid:247f4674-cd22-461e-88c2-6f12693a7d67, Direction: request, MESSAGE = Executing default 'fault' sequence, ERROR_CODE = 0, ERROR_MESSAGE = XML error occurred while creating the Smooks configuration from the config key: smooks Caused by Failed to locate XSD resource '/META-INF/ns/synapse' on classpath. Namespace: 'http://ws.apache.org/ns/synapse'., Envelope: <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><text xmlns="http://ws.apache.org/commons/ns/payload">
    Don, Smith, 123456789
    &#xd;
    John, Smith, 987654321
    </text></soapenv:Body></soapenv:Envelope>
    [2015-10-06 10:41:09,025] DEBUG - LogMediator End : Log mediator
    [2015-10-06 10:41:09,026] DEBUG - DropMediator Start : Drop mediator
    [2015-10-06 10:41:09,026] DEBUG - DropMediator End : Drop mediator
    [2015-10-06 10:41:09,027] DEBUG - SequenceMediator End : Sequence         <fault>
    [2015-10-06 10:41:12,308] ERROR - MailTransportSender Error creating         mail message or sending it to the configured server
    javax.mail.AuthenticationFailedException
    at javax.mail.Service.connect(Service.java:306)
    at javax.mail.Service.connect(Service.java:156)
    at javax.mail.Service.connect(Service.java:105)
    at javax.mail.Transport.send0(Transport.java:168)
    at javax.mail.Transport.send(Transport.java:98)
    at org.apache.axis2.transport.mail.MailTransportSender.sendMail(MailTransportSender.java:494)
    at org.apache.axis2.transport.mail.MailTransportSender.sendMessage(MailTransportSender.java:175)
    at org.apache.axis2.transport.base.AbstractTransportSender.invoke(AbstractTransportSender.java:112)
    at org.apache.axis2.engine.AxisEngine$TransportNonBlockingInvocationWorker.run(AxisEngine.java:626)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:745)
    [2015-10-06 10:41:12,312] ERROR - MailTransportSender Error generating mail message
    org.apache.axis2.AxisFault: Error creating mail message or sending it to the configured server
    at org.apache.axis2.transport.base.AbstractTransportSender.handleException(AbstractTransportSender.java:226)
    at org.apache.axis2.transport.mail.MailTransportSender.sendMail(MailTransportSender.java:505)
    at org.apache.axis2.transport.mail.MailTransportSender.sendMessage(MailTransportSender.java:175)
    at org.apache.axis2.transport.base.AbstractTransportSender.invoke(AbstractTransportSender.java:112)
    at org.apache.axis2.engine.AxisEngine$TransportNonBlockingInvocationWorker.run(AxisEngine.java:626)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:745)
    Caused by: javax.mail.AuthenticationFailedException
    at javax.mail.Service.connect(Service.java:306)
    at javax.mail.Service.connect(Service.java:156)
    at javax.mail.Service.connect(Service.java:105)
    at javax.mail.Transport.send0(Transport.java:168)
    at javax.mail.Transport.send(Transport.java:98)
    at org.apache.axis2.transport.mail.MailTransportSender.sendMail(MailTransportSender.java:494)
    ... 6 more
    [2015-10-06 10:41:12,318]  INFO - AxisEngine [MessageContext: logID=b5929ba2da80889c3ab62f36ecb6135d5b61e29a42314ca3] Error generating mail message
    [2015-10-06 10:41:12,318] ERROR - AsyncCallback Error generating mail message
    org.apache.axis2.AxisFault: Error generating mail message
    at org.apache.axis2.transport.base.AbstractTransportSender.handleException(AbstractTransportSender.java:226)
    at org.apache.axis2.transport.mail.MailTransportSender.sendMessage(MailTransportSender.java:184)
    at org.apache.axis2.transport.base.AbstractTransportSender.invoke(AbstractTransportSender.java:112)
    at org.apache.axis2.engine.AxisEngine$TransportNonBlockingInvocationWorker.run(AxisEngine.java:626)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

样本所需的文件可在此处获取:

https://docs.wso2.com/download/attachments/38472395/sample_vfs.zip?version=1&modificationDate=1401834663000&api=v2

我在这里做错了或者这个XSD文件是从提到的位置删除的吗?

对此有任何帮助或提示表示赞赏。

由于

1 个答案:

答案 0 :(得分:0)

使用WSO2 UI创建本地条目时,会自动为http://ws.apache.org/ns/synapse添加额外条目。 从本地条目文件(文件系统上的xml文件)手动删除它解决了这个问题。

由于