在 mule standalone 3.5.0 中部署 Mule 应用程序时出错
Error deploying Mule application in mule standalone 3.5.0
我 运行 我的应用程序在 Anypoint Studio 中带有嵌入式服务器(mule 服务器 3.5.0 CE)并且部署得很好但是当我尝试在 mule standalone 3.5.0 中部署它时我得到这个错误:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ New app 'pushV1' +
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
INFO 2015-04-08 17:14:17,009 [WrapperListener_start_runner] org.mule.module.launcher.MuleApplicationClassLoader: [pushV1] Loading the following jars:
=============================
file:/root/Desktop/mule-standalone-3.5.0/apps/pushV1/lib/mysql-connector-java-5.1.32.jar
file:/root/Desktop/mule-standalone-3.5.0/apps/pushV1/lib/json-simple-1.1.jar
=============================
INFO 2015-04-08 17:14:17,009 [WrapperListener_start_runner] org.mule.module.launcher.log4j.ArtifactAwareRepositorySelector: Found logging config for application 'pushV1' at 'file:/root/Desktop/mule-standalone-3.5.0/conf/log4j.properties'
ERROR 2015-04-08 17:14:17,648 [WrapperListener_start_runner] org.mule.module.launcher.DefaultArchiveDeployer:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ Failed to deploy artifact 'pushV1', see below +
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
org.mule.module.launcher.DeploymentInitException: PropertyBatchUpdateException: Failed properties: Property 'objectClassName' threw exception; nested exception is java.lang.UnsupportedClassVersionError: ws1/Transformer : Unsupported major.minor version 52.0
at org.mule.module.launcher.application.DefaultMuleApplication.init(DefaultMuleApplication.java:181)
at org.mule.module.launcher.artifact.ArtifactWrapper.execute(ArtifactWrapper.java:62)
at ...
检查你在IDE中编译源代码的版本...看起来你正在使用java 8.
之后,检查哪个版本正在使用您的 mule-standalone-server。
您可以在 Anypoint Studio 中检查 java 版本,如下所示
转到--> Window-->单击首选项-->双击java--> 单击已安装的 JRE
然后您可以更新 java 7 或 8(如果您的系统中存在)
我 运行 我的应用程序在 Anypoint Studio 中带有嵌入式服务器(mule 服务器 3.5.0 CE)并且部署得很好但是当我尝试在 mule standalone 3.5.0 中部署它时我得到这个错误:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ New app 'pushV1' +
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
INFO 2015-04-08 17:14:17,009 [WrapperListener_start_runner] org.mule.module.launcher.MuleApplicationClassLoader: [pushV1] Loading the following jars:
=============================
file:/root/Desktop/mule-standalone-3.5.0/apps/pushV1/lib/mysql-connector-java-5.1.32.jar
file:/root/Desktop/mule-standalone-3.5.0/apps/pushV1/lib/json-simple-1.1.jar
=============================
INFO 2015-04-08 17:14:17,009 [WrapperListener_start_runner] org.mule.module.launcher.log4j.ArtifactAwareRepositorySelector: Found logging config for application 'pushV1' at 'file:/root/Desktop/mule-standalone-3.5.0/conf/log4j.properties'
ERROR 2015-04-08 17:14:17,648 [WrapperListener_start_runner] org.mule.module.launcher.DefaultArchiveDeployer:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ Failed to deploy artifact 'pushV1', see below +
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
org.mule.module.launcher.DeploymentInitException: PropertyBatchUpdateException: Failed properties: Property 'objectClassName' threw exception; nested exception is java.lang.UnsupportedClassVersionError: ws1/Transformer : Unsupported major.minor version 52.0
at org.mule.module.launcher.application.DefaultMuleApplication.init(DefaultMuleApplication.java:181)
at org.mule.module.launcher.artifact.ArtifactWrapper.execute(ArtifactWrapper.java:62)
at ...
检查你在IDE中编译源代码的版本...看起来你正在使用java 8.
之后,检查哪个版本正在使用您的 mule-standalone-server。
您可以在 Anypoint Studio 中检查 java 版本,如下所示 转到--> Window-->单击首选项-->双击java--> 单击已安装的 JRE
然后您可以更新 java 7 或 8(如果您的系统中存在)