Mule app部署失败 - 为什么?

时间:2016-10-31 17:52:40

标签: deployment mule

您好我正在尝试将Mule应用重新部署到Mule独立服务器而没有成功。

该应用程序之前一直在服务器上运行,但现在它一直都在运行。

下面附有骡子日志,有人可以帮帮我吗?

Muleserver上的Java版本是1.7,它在Ubuntu上运行。

骡-LOG:

INFO 2016-10-31 17:52:59,189 [Mule.app.deployer.monitor.1.thread.1] org.mule.module.launcher.ArtifactArchiveInstaller:爆炸Mule工件存档:file:/ opt /骡独立-3.5.0 /应用/ cognosimp2_9.zip INFO 2016-10-31 17:52:59,236 [Mule.app.deployer.monitor.1.thread.1] org.mule.module.launcher.application.DefaultMuleApplication: ++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++ +新应用'cognosimp2_9'+ ++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++

INFO 2016-10-31 17:52:59,237 [Mule.app.deployer.monitor.1.thread.1] org.mule.module.launcher.MuleApplicationClassLoader:[cognosimp2_9]加载以下罐子:

文件:/opt/mule-standalone-3.5.0/apps/cognosimp2_9/lib/mysql-connector-java-5.0.7.jar 文件:/opt/mule-standalone-3.5.0/apps/cognosimp2_9/lib/flatpack-3.2.0.jar 文件:/opt/mule-standalone-3.5.0/apps/cognosimp2_9/lib/jtds-1.3.0.jar 文件:/opt/mule-standalone-3.5.0/apps/cognosimp2_9/lib/javacsv-2.0.jar 文件:/opt/mule-standalone-3.5.0/apps/cognosimp2_9/lib/sqljdbc4.jar 文件:/opt/mule-standalone-3.5.0/apps/cognosimp2_9/lib/mule-module-csv-1.4-RC1.jar

的文件:/opt/mule-standalone-3.5.0/apps/cognosimp2_9/lib/json-20080701.jar

INFO 2016-10-31 17:52:59,237 [Mule.app.deployer.monitor.1.thread.1] org.mule.module.launcher.log4j.ArtifactAwareRepositorySelector:找到应用程序'cognosimp2_9'的日志配置'文件:/opt/mule-standalone-3.5.0/conf/log4j.properties' 错误2016-10-31 17:52:59,887 [Mule.app.deployer.monitor.1.thread.1] org.mule.module.launcher.DefaultArchiveDeployer: ++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++ +无法部署工件'cognosimp2_9',见下文+ ++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++ org.mule.module.launcher.DeploymentInitException:UnsupportedClassVersionError:ChangeDatabase:Unsupported major.minor version 52.0     在org.mule.module.launcher.application.DefaultMuleApplication.init(DefaultMuleApplication.java:181)     在org.mule.module.launcher.artifact.ArtifactWrapper $ 2.execute(ArtifactWrapper.java:62)     at org.mule.module.launcher.artifact.ArtifactWrapper.executeWithinArtifactClassLoader(ArtifactWrapper.java:129)     在org.mule.module.launcher.artifact.ArtifactWrapper.init(ArtifactWrapper.java:57)     在org.mule.module.launcher.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:25)     在org.mule.module.launcher.DefaultArchiveDeployer.guardedDeploy(DefaultArchiveDeployer.java:274)     at org.mule.module.launcher.DefaultArchiveDeployer.deployArtifact(DefaultArchiveDeployer.java:294)     at org.mule.module.launcher.DefaultArchiveDeployer.deployPackagedArtifact(DefaultArchiveDeployer.java:158)     at org.mule.module.launcher.DefaultArchiveDeployer.deployPackagedArtifact(DefaultArchiveDeployer.java:220)     at org.mule.module.launcher.DefaultArchiveDeployer.deployPackagedArtifact(DefaultArchiveDeployer.java:80)     在org.mule.module.launcher.DeploymentDirectoryWatcher.deployPackedApps(DeploymentDirectoryWatcher.java:272)     在org.mule.module.launcher.DeploymentDirectoryWatcher.run(DeploymentDirectoryWatcher.java:350)     at java.util.concurrent.Executors $ RunnableAdapter.call(Executors.java:471)     at java.util.concurrent.FutureTask $ Sync.innerRunAndReset(FutureTask.java:351)     在java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)     在

1 个答案:

答案 0 :(得分:0)

我发现了什么问题。当我在Anypoint Studio中编辑部署文件时,IDE配置为使用Compiler 1.8和JRE 1.7,但Mule服务器只有1.7。我将编译器更改为1.8,现在它可以正常工作。您必须在IDE中更改编译器和JRE,以使其与Mule服务器版本一起使用。