0

我所做的只是下载 wildfly-8.1.0.CR2 并解压它。Standalone.bat 和 add-user.bat 工作,但 jboss-cli.bat 不工作。

F:\wildfly-8.1.0.CR2\bin>jboss-cli

java.lang.UnsatisfiedLinkError: Could not load library. Reasons: [no jansi64-1.9 in
java.library.path, no jansi-1.9 in java.library.path, no jansi in java.library.path,
D:\pgarner\AppData\Local\Temp\jansi-64-1.9.dll: The application has failed to start
because its side-by-side configuration is incorrect. Please see the application event
log or use the command-line sxstrace.exe tool for more detail]

    at org.fusesource.hawtjni.runtime.Library.doLoad(Library.java:184)

    at org.fusesource.hawtjni.runtime.Library.load(Library.java:142)

    at org.fusesource.jansi.internal.Kernel32.<clinit>(Kernel32.java:37)

    at org.fusesource.jansi.WindowsAnsiOutputStream.<clinit>(WindowsAnsiOutputStream.java:52)

    at org.jboss.aesh.terminal.WindowsTerminal.init(WindowsTerminal.java:53)

    at org.jboss.aesh.console.Console.setTerminal(Console.java:193)

    at org.jboss.aesh.console.Console.reset(Console.java:154)

    at org.jboss.aesh.console.Console.<init>(Console.java:105)

    at org.jboss.aesh.console.Console.<init>(Console.java:101)

    at org.jboss.as.cli.impl.Console$Factory.getConsole(Console.java:85)

    at org.jboss.as.cli.impl.Console$Factory.getConsole(Console.java:78)

    at org.jboss.as.cli.impl.CommandContextImpl.initBasicConsole(CommandContextImpl.java:349)

    at org.jboss.as.cli.impl.CommandContextImpl.<init>(CommandContextImpl.java:296)

    at org.jboss.as.cli.impl.CommandContextFactoryImpl.newCommandContext(CommandContextFactoryImpl.java:76)

    at org.jboss.as.cli.impl.CliLauncher.initCommandContext(CliLauncher.java:273)

    at org.jboss.as.cli.impl.CliLauncher.main(CliLauncher.java:253)

    at org.jboss.as.cli.CommandLineMain.main(CommandLineMain.java:34)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    at java.lang.reflect.Method.invoke(Method.java:606)

    at org.jboss.modules.Module.run(Module.java:312)

    at org.jboss.modules.Main.main(Main.java:460)

Press any key to continue . . .

当我使用 Standalone.bat 启动 Wildfly 时,我在 server.log 中看到 java.library.path 的以下条目:

java.library.path = F:\Java\jdk1.7.0_45\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;F:\WANdisco\uberSVN\bin; C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;F:\GnuPG\pub;F:\7-Zip;" E:\WebTest\build\bin";F:\WANdisco\uberSVN\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1 .0\;F:\GnuPG\pub;F:\7-Zip;.

当我尝试运行 jboss-cli 时,以下文件确实出现在我的文件系统中:

D:\pgarner\AppData\Local\Temp\jansi-64-1.9.dll

我也尝试使用 wildfly-8.0.0.Final 而不是 wildfly-8.1.0.CR2 并且发生了同样的问题。

如何解决这个问题?我认为 CLI 应该在从 zip 文件中提取所有文件后立即运行。

4

2 回答 2

2

我们面临同样的错误,问题是由于 jansi dll 依赖关系。事实上,您需要安装与您的平台相对应的 Microsoft Visual C++ 2008 Redistributable Package。对于 x64,您可以点击此链接:

http://www.microsoft.com/en-US/download/details.aspx?id=2092

于 2014-07-08T13:10:45.637 回答
0

有类似的问题。我可以启动 Wildfly 并毫无错误地部署我的应用程序,但每次我重新部署我的应用程序时,都会收到以下错误:

造成的:

java.lang.UnsatisfiedLinkError:无法加载库。原因:[java.library.path中没有jansi64-1.9,java.library.path中没有jansi-1.9,java.library.path中没有jansi,Native Library C:\Users\zb\AppData\Local\Temp\jansi -64-1.9.dll 已经在另一个类加载器中加载]

似乎这个 jansi 库在部署后被卡住了。

重新启动服务器暂时有帮助。

于 2014-05-19T09:49:03.833 回答