我按照以下链接中定义的所有步骤进行操作
http://www.mulesoft.org/documentation/display/current/Deploying+Mule+as+a+Service+to+Tomcat
而不是
> <Listener
> className="org.mule.config.builders.MuleXmlBuilderContextListener" />
我用过
> **<Listener className="org.mule.module.tomcat.MuleTomcatListener" />**
我的tomcat也开始了。我还将war文件部署到webapps文件夹中。部署war文件时我没有收到任何错误..但问题是我的服务没有初始化..
以下是我的流程文件
<data-mapper:config name="CSV_To_List_Transaction_c" transformationGraphPath="csv_to_list_transaction_c.grf" doc:name="CSV_To_List_Transaction"/>
<sfdc:config name="Salesforce" username="username" password="pwd" doc:name="Salesforce" securityToken="token"/>
<flow name="javatestFlow1" doc:name="javatestFlow1">
<file:inbound-endpoint path="Custom" moveToDirectory="Backup" responseTimeout="10000" doc:name="File"/>
<data-mapper:transform config-ref="CSV_To_List_Transaction_c" doc:name="CSV To List<Transaction_c>"/>
<sfdc:create-bulk config-ref="Salesforce" type="Transaction__c" doc:name="Salesforce">
<sfdc:objects ref="#[payload]"/>
</sfdc:create-bulk>
<idempotent-message-filter idExpression="#[payload.state]" doc:name="Idempotent Message"/>
<custom-transformer class="com.org.Status" doc:name="Java"/>
<catch-exception-strategy doc:name="Catch Exception Strategy">
<logger level="INFO" doc:name="Logger" message="test..."/>
</catch-exception-strategy>
</flow>
<flow name="testforceFlow1" doc:name="testforceFlow1">
<http:inbound-endpoint exchange-pattern="one-way"
host="localhost" port="8090" doc:name="HTTP" path="download" />
<flow-ref name="javatestFlow1" doc:name="Flow Reference"/>
</flow>
我的web.xml文件是
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<display-name>salesforce</display-name>
<description>salesforce to ftp</description>
<context-param>
<param-name>org.mule.config</param-name>
<param-value>javatest.xml</param-value>
</context-param>
<listener>
<listener-class>org.mule.config.builders.MuleXmlBuilderContextListener</listener-class>
</listener>
<servlet>
<servlet-name>muleServlet</servlet-name>
<servlet-class>org.mule.transport.servlet.MuleRESTReceiverServlet</servlet-class>
<!-- Responses from the servlet are of type HTML by default -->
<init-param>
<param-name>org.mule.servlet.default.content.type</param-name>
<param-value>text/html</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>muleServlet</servlet-name>
<url-pattern>/services/*</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>testindex.jsp</welcome-file>
</welcome-file-list>
</web-app>
创建war文件后。我的war文件结构看起来像
Project_Name
WEB-INF
classes
javatest.xml
log4j.properties
mule-app.properties
mule-config.xml
mule-deploy.properties
com
org
class files
webapps
demo
WEB-INF
classes
all mapping files
web.xml
test.jsp
lib
META-INF
MANIFEST.MF
maven
com.mycomp
project_name
pom.properties
pom.xml
我启动我的tomcat并尝试运行localhost:8090 / download 但是发现这个网页不可用 我也试过把servlet入站端点但没有成功...... 如何初始化我的服务????
由于