简体   繁体   English

JVM无法启动:java.io.IOException:无法运行程序“/ usr / libexec / StartupItemContext; error = 2,没有这样的文件或目录

[英]JVM failed to start: java.io.IOException: Cannot run program "/usr/libexec/StartupItemContext; error=2, No such file or directory

In my OS X Yosemite , I'm trying to start-domain in terminal: 在我的OS X Yosemite中 ,我正在尝试在终端中启动域

sh asadmin start-domain mythMobile

and I get error: 我收到错误:

JVM failed to start: java.io.IOException: Cannot run program "/usr/libexec/StartupItemContext" (in directory "/Applications/glassfish4/glassfish/domains/mythMobile/config"): error=2, No such file or directory
Command start-domain failed.

This problem appeared after I've installed beta Yosemite on my mac. 我在我的Mac上安装了Beta Yosemite后出现了这个问题。 Before I had Mavericks, everything worked correctly. 我有小牛队之前 ,一切都正常。

Have anybody faced with such problem? 有人遇到过这样的问题吗?

要解决这个问题,您可以使用以下方式在详细模式下启动GF:

asadmin start-domain --verbose domain1

Apple removed the file under OS X 10.10 (Yosemite). Apple在OS X 10.10(Yosemite)下删除了该文件。 Unfortunately the path to the file is hard coded within the GlassFish startup code (GFLauncher.java) and not configurable. 不幸的是,文件的路径是在GlassFish启动代码(GFLauncher.java)中硬编码的,不可配置。

The GlassFish team is already aware of the issue: https://java.net/jira/browse/GLASSFISH-21113 GlassFish团队已经意识到这个问题: https//java.net/jira/browse/GLASSFISH-21113

I hope there will be a fix for GlassFish 3 as well, since we still use it in production. 我希望GlassFish 3也能得到修复,因为我们仍然在生产中使用它。

GFLauncher Code: http://grepcode.com/file/repo1.maven.org/maven2/org.glassfish.admin/launcher/3.1.1/com/sun/enterprise/admin/launcher/GFLauncher.java?av=f GFLauncher代码: http ://grepcode.com/file/repo1.maven.org/maven2/org.glassfish.admin/launcher/3.1.1/com/sun/enterprise/admin/launcher/GFLauncher.java?av = f

Reinstalling the entire current version of glassfih4 folder solved my issue on OS X 10.11.3. 重新安装整个当前版本的glassfih4文件夹解决了我在OS X 10.11.3上的问题。 Then I simply ran in ../glassfish4/galssfish/ sudo ./bin/asadmin start-domain and then it worked again... 然后我简单地跑进了../glassfish4/galssfish/ sudo ./bin/asadmin start-domain然后再次工作......

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 java.io.IOException:无法运行程序“/usr/bin/sh”:java.io.IOException:error=2,没有那个文件或目录 - java.io.IOException: Cannot run program “/usr/bin/sh”: java.io.IOException: error=2, No such file or directory java.io.IOException:无法运行程序“usr/bin/ffmpeg”:错误=2,没有那个文件或目录 - java.io.IOException: Cannot run program “usr/bin/ffmpeg ”: error=2, No such file or directory java.io.IOException: 无法运行程序“...”: java.io.IOException: error=2, No such file or directory - java.io.IOException: Cannot run program “…”: java.io.IOException: error=2, No such file or directory ant jar错误:执行失败:java.io.IOException:无法运行程序... $ {aapt}“:error = 2,没有这样的文件或目录 - ant jar error: Execute failed: java.io.IOException: Cannot run program…${aapt}": error=2, No such file or directory 无法启动测试系统'slim':java.io.IOException:无法运行程序“ java”:error = 2,没有这样的文件或目录 - Unable to start test system 'slim': java.io.IOException: Cannot run program “java”: error=2, No such file or directory 导入失败:java.io.IOException:无法运行程序“hive”:错误=2,没有那个文件或目录 - Import failed: java.io.IOException: Cannot run program "hive": error=2, No such file or directory java.io.IOException:无法运行程序“ C:\\ AutoIt \\ ModenaAutoIt.exe”:java.io.IOException:error = 2,没有此类文件或目录 - java.io.IOException: Cannot run program “C:\AutoIt\ModenaAutoIt.exe”: java.io.IOException: error=2, No such file or directory spark 2.0-java.io.IOException:无法运行程序“ jupyter”:error = 2,没有这样的文件或目录 - spark 2.0 - java.io.IOException: Cannot run program “jupyter”: error=2, No such file or directory 线程“main”中的异常java.io.IOException:无法运行程序“”:错误=2,没有这样的文件或目录 - Exception in thread "main" java.io.IOException: Cannot run program "": error=2, No such a file or directory 错误:无法解析 POM java.io.IOException:无法运行程序“/bin/java” - ERROR: Failed to parse POMs java.io.IOException: Cannot run program "/bin/java"
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM