【问题标题】:Run Mule Standalone Community Edition on windows 64 bit machine在 Windows 64 位机器上运行 Mule Standalone Community Edition
【发布时间】:2016-06-12 20:21:52
【问题描述】:

我目前在运行 mule-standalone 时遇到问题 - 下面是在 Windows 64 位机器上运行 CE-3.7.0 的问题。我在这里关注了link

更新 - 我正在使用 Mule 3.7.0 CE 运行时。 mule 项目使用 JRE 8.0。

    Starting the Mule service...
--> Wrapper Started as Service
Launching a JVM...
Starting the Mule Container...
Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
  Copyright 1999-2006 Tanuki Software, Inc.  All Rights Reserved.

WrapperJNI Error: Not licensed to use this edition of the Wrapper native library. (1)
WrapperJNI Error:  This can happen if the Wrapper binary is not the same version and edition as that of the Wrapper's JNI native library file.
WrapperJNI Error: Shutting down.
WARNING - The Wrapper jar file currently in use is version "3.2.3"
          while the version of the native library is "3.5.15-st".
          The Wrapper may appear to work correctly but some features may
          not function correctly.  This configuration has not been tested
          and is not supported.

Java HotSpot(TM) 64-Bit Server VM warning: ignoring option PermSize=256m; support was removed in 8.0
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
Java HotSpot(TM) 64-Bit Server VM warning: Using the ParNew young collector with the Serial old collector is deprecated and will likely be removed in a future release
<-- Wrapper Stopped
The Mule service was launched, but failed to start.

【问题讨论】:

  • 你能检查一下Java的版本吗?是在构建路径中选择 JAVA JDK 还是仅在构建路径中选择 JRE。另外请让我知道您正在使用的 anypoint studio 的版本。问候斯里尼瓦斯
  • 看来您使用的是 JRE 8 和一些过时的 Mule 运行时,请尝试 JRE 6。但我一般建议您使用最新的 Mule 运行时版本。还要检查this线程
  • 我正在使用 Mule 3.7.0 CE 运行时。使用 JRE 8.0 的骡子项目在我的问题中得到了更新。@nike.laos - 为什么我必须将骡子项目降级为 jre 6.0?这意味着 mule 3.7 CE 不会支持 JRE 8.0 ?
  • @Simbu,好吧,不需要降级到 jre6。执行以下操作 - 按照here 的描述将 mule 作为 Windows 服务安装。很可能在您遇到 java.lang.UnsatisfiedLinkError: 无法加载库后,很容易修复 - 只需创建临时文件夹 "C:\Windows\system32\config\systemprofile\AppData\Local\Temp\"
  • @Simbu,我的解决方案不是对你有用吗?我在 win7 x64、mule 3.7ce 和 jre8 上检查过

标签: mule wrapper java-service-wrapper


【解决方案1】:

为避免此类错误,请在 Windows 10 x64 上将 mule 作为 Windows 服务独立启动。我做了下一步:

  1. 从这里下载 Java 服务包装器:http://wrapper.tanukisoftware.com/doc/english/download.jsp#stable
    我为 Windows X86 选择了包装器; 64 位标准。 我得到了诸如 wrapper-windows-x86-64-3.5.29-st.zip

  2. 之类的存档
  3. 从这里下载 mule 独立社区运行时:

https://repository-master.mulesoft.org/nexus/content/repositories/releases/org/mule/distributions/mule-standalone/3.7.0/mule-standalone-3.7.0.zip 我得到了诸如 mule-standalone-3.7.0.zip

之类的存档
  1. 解压 mule-standalone-3.7.0.zip 到你的工作目录,例如 C:\mule\mule-standalone-3.7.0 并设置 MULE_HOME C:\mule\mule-standalone-3.7.0

  2. 的环境变量
  3. 解压 wrapper-windows-x86-64-3.5.29-st 并将文件从 wrapper 复制到 mule 独立: 文件 wrapper.jar, wrapper.dll 从解压缩的包装文件夹 ..\libC:\mule\mule-standalone-3.7.0\lib\boot
    文件 wrapper.exe 从文件夹 ..\binC:\mule\mule-standalone-3.7.0\lib\boot\exec

    李>
  4. 此外,我将试用 15 分钟密钥的许可证信息从 ..\conf\wrapper-license.conf 粘贴到 wrapper.conf 的末尾mule 独立,所以我得到了这样的 wrapper.conf 结尾。

# 不要编辑下面的行! # 此包含应指向与此文件位于同一目录中的 wrapper-additional.conf 文件 # 注意:路径必须是绝对的或相对于包装器可执行文件。 #include %MULE_BASE%/conf/wrapper-additional.conf wrapper.license.type=时间 wrapper.license.id=201508170000022 wrapper.license.licensee=Tanuki Software, Ltd. wrapper.license.run_time=900 wrapper.license.features=pro, 64bit wrapper.license.upgrade_term.begin_date=2010-06-10 wrapper.license.upgrade_term.end_date=2016-08-17 wrapper.license.key.1=fc1a-6a69-d210-da70 wrapper.license.key.2=432a-e49b-1b24-6583 wrapper.license.key.3=8947-9390-ada4-09a2 wrapper.license.key.4=c951-ff9e-780d-1d77

就是这样。我每次运行都在试用许可证上工作了 15 分钟。 我可以通过命令 mule install 将 mule 安装为 Windows 服务,并使用命令 mule start/stop

启动/停止它

【讨论】:

  • 我已经遵循了所有步骤,除了(文件 wrapper.exe 从文件夹 ..\bin 到 C:\mule\mule-standalone-3.7.0\lib\boot\exec。)因为我可以在 bin 文件夹中找不到 wrapper.exe。 - 错误 - 未安装 mule 服务 - 指定的服务不作为已安装的服务存在。 (0x424)
  • 我检查了存档 wrapper-windows-ia-64-3.5.29-st.zip,它是从这里下载的:wrapper.tanukisoftware.com/download/3.5.29/…,它在 bin 文件夹中有文件 wrapper.exe。所以尝试从该链接下载包装器。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2012-05-18
  • 1970-01-01
  • 2012-11-07
  • 2015-06-20
  • 1970-01-01
  • 2011-04-03
相关资源
最近更新 更多