[英]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.