mule war包发布到tomcat6 muledeploytomcat
程序员文章站
2022-06-17 13:26:16
...
注意:以下步骤是将mule的jar包放到共通里,这样可以减小war包的大小,否则需要把所有用到的mule jar包都放到war包中。
第一步:下载安装tomcat
第二步:在tomcat根目录下新建mule-libs文件夹
第三步:将Mule-standalone中lib/
user
/*.jar,lib/mule/*.jar,lib/opt/*jar
mule-libs文件夹中,lib/boot/*jar
,都复制到
mule-common-0.11.0.jar mule-core-3.4.0.jar mule-core-3.4.0-tests.jar mule-module-annotations-3.4.0.jar mule-module-atom-3.4.0.jar mule-module-bpm-3.4.0.jar mule-module-builders-3.4.0.jar mule-module-client-3.4.0.jar mule-module-cxf-3.4.0.jar mule-module-devkit-support-3.4.0.jar mule-module-drools-3.4.0.jar mule-module-jaas-3.4.0.jar mule-module-jbossts-3.4.0.jar mule-module-jbpm-3.4.0.jar mule-module-jersey-3.4.0.jar mule-module-json-3.4.0.jar mule-module-launcher-3.4.0.jar mule-module-management-3.4.0.jar mule-module-ognl-3.4.0.jar mule-module-pgp-3.4.0.jar mule-module-rss-3.4.0.jar mule-module-scripting-3.4.0.jar mule-module-spring-config-3.4.0.jar mule-module-spring-extras-3.4.0.jar mule-module-spring-security-3.4.0.jar mule-module-sxc-3.4.0.jar mule-module-tomcat-3.4.0.jar mule-module-xml-3.4.0.jar mule-pattern-core-3.4.0.jar mule-tools-anttasks-3.4.0.jar mule-transport-ajax-3.4.0.jar mule-transport-ejb-3.4.0.jar mule-transport-email-3.4.0.jar mule-transport-file-3.4.0.jar mule-transport-ftp-3.4.0.jar mule-transport-http-3.4.0.jar mule-transport-jdbc-3.4.0.jar mule-transport-jetty-3.4.0.jar mule-transport-jms-3.4.0.jar mule-transport-multicast-3.4.0.jar mule-transport-quartz-3.4.0.jar mule-transport-rmi-3.4.0.jar mule-transport-servlet-3.4.0.jar mule-transport-sftp-3.4.0.jar mule-transport-ssl-3.4.0.jar mule-transport-stdio-3.4.0.jar mule-transport-tcp-3.4.0.jar mule-transport-udp-3.4.0.jar mule-transport-vm-3.4.0.jar mule-transport-xmpp-3.4.0.jar
junit-4.9.jar mule-tests-functional-3.4.0.jar xmlunit-1.1.jar
abdera-client-0.4.0-incubating.jar abdera-core-0.4.0-incubating.jar abdera-i18n-0.4.0-incubating.jar abdera-parser-0.4.0-incubating.jar abdera-server-0.4.0-incubating.jar abdera-spring-0.4.0-incubating.jar activation-1.1-osgi.jar annotations-api-6.0.29.jar ant-1.7.0.jar ant-launcher-1.7.0.jar antlr-3.1.1.jar aopalliance-1.0.jar asm-3.1-osgi.jar asm-commons-3.1.jar asm-tree-3.1.jar aspectjrt-1.6.11.jar aspectjweaver-1.6.11.jar axiom-api-1.2.5.jar axiom-impl-1.2.5.jar bcmail-jdk16-1.46.jar bcpg-jdk16-1.46.jar bcprov-ext-jdk16-1.46.jar bcprov-jdk16-1.46.jar bctsp-jdk16-1.46.jar cglib-nodep-2.2.jar cometd-api-1.1.1.jar cometd-server-6.1.26.jar commons-beanutils-1.8.0.jar commons-codec-1.3-osgi.jar commons-collections-3.2.1.jar commons-dbutils-1.2.jar commons-httpclient-3.1-osgi.jar commons-io-1.4.jar commons-jxpath-1.3-osgi.jar commons-lang-2.4.jar commons-net-2.0.jar commons-pool-1.5.3.jar cxf-api-2.5.1.jar cxf-common-utilities-2.5.1.jar cxf-rt-bindings-soap-2.5.1.jar cxf-rt-bindings-xml-2.5.1.jar cxf-rt-core-2.5.1.jar cxf-rt-databinding-aegis-2.5.1.jar cxf-rt-databinding-jaxb-2.5.1.jar cxf-rt-databinding-jibx-2.5.1.jar cxf-rt-frontend-jaxws-2.5.1.jar cxf-rt-frontend-simple-2.5.1.jar cxf-rt-management-2.5.1.jar cxf-rt-transports-common-2.5.1.jar cxf-rt-transports-http-2.5.1.jar cxf-rt-transports-local-2.5.1.jar cxf-rt-ws-addr-2.5.1.jar cxf-rt-ws-rm-2.5.1.jar cxf-rt-ws-security-2.5.1.jar cxf-tools-common-2.5.1.jar cxf-wstx-msv-validation-2.5.1.jar dom4j-1.6.1-osgi.jar drools-api-5.0.1.jar drools-compiler-5.0.1.jar drools-core-5.0.1.jar el-api-6.0.29.jar geronimo-annotation_1.0_spec-1.1.1.jar geronimo-ejb_2.1_spec-1.1-osgi.jar geronimo-j2ee-connector_1.5_spec-1.1-osgi.jar geronimo-j2ee-management_1.0_spec-1.1-osgi.jar geronimo-jms_1.1_spec-1.1-osgi.jar geronimo-jta_1.1_spec-1.1.1.jar geronimo-stax-api_1.0_spec-1.0.1.jar groovy-all-1.8.6.jar hamcrest-core-1.1.jar hibernate-commons-annotations-3.2.0.Final.jar hibernate-core-3.6.0.Final.jar hibernate-jpa-2.0-api-1.0.0.Final.jar isorelax-20030108.jar jackson-core-asl-1.9.11.jar jackson-jaxrs-1.9.11.jar jackson-mapper-asl-1.9.11.jar jackson-xc-1.7.1.jar jasper-6.0.29.jar jasper-el-6.0.29.jar jasper-jdt-6.0.29.jar javassist-3.7.ga.jar jaxb-api-2.1-osgi.jar jaxb-impl-2.1.9-osgi.jar jaxb-xjc-2.1.9-osgi.jar jaxen-1.1.1-osgi.jar jaxws-api-2.2.1.jar jbossjta-4.15.0.Final.jar jboss-logging-3.0.0.Beta5.jar jbpm-api-4.4.jar jbpm-jpdl-4.4.jar jbpm-log-4.4.jar jbpm-pvm-4.4.jar jcifs-1.3.3.jar jdom-1.1.1.jar jersey-client-1.6.jar jersey-core-1.6.jar jersey-json-1.6.jar jersey-server-1.6.jar jetty-6.1.26.jar jetty-annotations-6.1.26.jar jetty-plus-6.1.26.jar jetty-util5-6.1.26.jar jetty-util-6.1.26.jar jgrapht-jdk1.5-0.7.3.jar jibx-extras-1.2.3.jar jibx-run-1.2.3.jar jibx-schema-1.2.3.jar joda-time-1.6.jar jsch-0.1.44-1.jar jsp-api-6.0.29.jar jsr181-api-1.0-MR1.jar jsr250-api-1.0.jar jta-1.1.jar juel-engine-2.1.0.jar juel-impl-2.2.1.jar jug-2.0.0-asl.jar juli-6.0.29.jar livetribe-jsr223-2.0.5.jar mail-1.4.3.jar msv-core-2011.1.jar mule-module-boot-3.4.0.jar mvel2-2.1.3.Final.jar mx4j-impl-2.1.1-osgi.jar mx4j-jmx-2.1.1-osgi.jar mx4j-remote-2.1.1-osgi.jar mx4j-tools-2.1.1-osgi.jar neethi-3.0.1.jar ognl-2.7.3-osgi.jar opensaml-2.5.1-1.jar openws-1.4.2-1.jar oro-2.0.8-osgi.jar quartz-1.8.5.jar relaxngDatatype-20020414.jar rome-0.9.jar saaj-api-1.3-osgi.jar saaj-impl-1.3-osgi.jar saxon-8.9.0.4-osgi.jar saxon-dom-8.9.0.4-osgi.jar saxon-xqj-8.9.0.4.jar servlet-api-2.5-20081211.jar smack-3.1.0.jar smackx-3.1.0.jar spring-aop-3.2.1.RELEASE.jar spring-beans-3.2.1.RELEASE.jar spring-context-3.2.1.RELEASE.jar spring-context-support-3.2.1.RELEASE.jar spring-core-3.2.1.RELEASE.jar spring-expression-3.2.1.RELEASE.jar spring-jdbc-3.2.1.RELEASE.jar spring-jms-3.2.1.RELEASE.jar spring-security-config-3.1.0.RELEASE.jar spring-security-core-3.1.0.RELEASE.jar spring-security-crypto-3.1.0.RELEASE.jar spring-security-web-3.1.0.RELEASE.jar spring-tx-3.2.1.RELEASE.jar spring-web-3.2.1.RELEASE.jar stax2-api-3.0.2.jar stax-api-1.0-2.jar staxon-1.2.jar stax-utils-20080702-osgi.jar sxc-core-0.7.3-osgi.jar sxc-runtime-0.7.3-osgi.jar sxc-xpath-0.7.3-osgi.jar tomcat-apr-5.5.23.jar tomcat-util-5.5.23.jar woodstox-core-asl-4.0.8.jar wsdl4j-1.6.2.jar wss4j-1.6.3.jar xapool-1.5.0-osgi.jar xmlpull-1.1.3.1.jar xml-resolver-1.2-osgi.jar xmlschema-core-2.0.1.jar xmlsec-1.4.0-osgi.jar xmltooling-1.3.2-1.jar xpp3_min-1.1.3.4.O-osgi.jar xpp3-1.1.3.4.O.jar xsdlib-2010.1.jar xstream-1.4.2.jar
commons-cli-<version>.jar jul-to-slf4j-<version>.jar log4j-<version>.jar mule-module-logging-<version>.jar wrapper-<version>.jar
第四步:修改tomcat中conf/catalina.properties里的common.loader:
common.loader=${catalina.base}/lib,${catalina.base}/lib/*.jar,${catalina.home}/lib,${catalina.home}/lib/*.jar,${catalina.home}/mule-libs/*.jar
第五步:发布
- 打包mule war包
- 将war包放到Tomcat的/webapps下
- 双击Tomcat的/bin下的Tomcat6.exe启动Tomcat
Reference
https://docs.mulesoft.com/mule-user-guide/v/3.4/deploying-mule-as-a-service-to-tomcat
推荐阅读
-
intellij下将springboot项目打成war包发布到本地tomcat服务器上
-
springboot使用websocket时,打成war包,发布到服务器,项目启动报错问题
-
mule war包发布到weblogic muledeployweblogic
-
mule war包发布到tomcat6 muledeploytomcat
-
mule war包发布到tomcat6 muledeploytomcat
-
mule war包发布到weblogic muledeployweblogic
-
intellij下将springboot项目打成war包发布到远程tomcat服务器上
-
intellij下将springboot项目打成war包发布到远程tomcat服务器上