Java GlassFish Server 4.0 使用 JDK 启动错误
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/18439872/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
GlassFish Server 4.0 start error with JDK
提问by enes faruk meniz
I'm using NetBeans 7.3.1 with GlassFish Server 4
我将 NetBeans 7.3.1 与 GlassFish Server 4 一起使用
When I try to run a(any) project I get the following error.
当我尝试运行(任何)项目时,出现以下错误。
Starting GlassFish Server GlassFish Server Server start failed. Cant create start proccess. C:\Users\ENES\Documents\NetBeansProjects\Tezmaksan\nbproject\build-impl.xml:1041: Deployment error: GlassFish Server Server start failed. Cant create start proccess. See the server log for details. BUILD FAILED (total time: 2 seconds)
启动 GlassFish Server GlassFish Server Server 启动失败。无法创建启动过程。C:\Users\ENES\Documents\NetBeansProjects\Tezmaksan\nbproject\build-impl.xml:1041:部署错误:GlassFish Server Server 启动失败。无法创建启动过程。有关详细信息,请参阅服务器日志。构建失败(总时间:2 秒)
I don't know where the log file is, I couldn't find it.
我不知道日志文件在哪里,我找不到它。
When I go bin directory of GlassFish and run startserv.bat, it looks like working because localhost:8080/ and localhost:4848/ are working. But my application still can't start. When I go localhost:8080/Tezmaksan/ there is this error there
当我转到 GlassFish 的 bin 目录并运行 startserv.bat 时,它看起来像在工作,因为 localhost:8080/ 和 localhost:4848/ 正在工作。但是我的应用程序仍然无法启动。当我去 localhost:8080/Tezmaksan/ 有这个错误
HTTP Status 500 - Internal Server Error
type Exception report
messageInternal Server Error
descriptionThe server encountered an internal error that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: PWC6345: There is an error in invoking javac. A full JDK (not just JRE) is required
note The full stack traces of the exception and its root causes are available in the GlassFish Server Open Source Edition 4.0 logs.
GlassFish Server Open Source Edition 4.0
I have last verison of JDK (1.7u25) installed and when I check from NetBeans it is selected for GlassFish. I'm using x64 Windows 7. I didn't have this problem 2-3 months ago, it just popped out. I tried uninstalling and reinstalling NetBeans, GlassFish and JDK and problem is still there.
我安装了最新版本的 JDK (1.7u25),当我从 NetBeans 检查时,它被选为 GlassFish。我使用的是 x64 Windows 7。2-3 个月前我没有遇到这个问题,它刚刚出现。我尝试卸载并重新安装 NetBeans、GlassFish 和 JDK,但问题仍然存在。
Thanks for your helps
感谢您的帮助
采纳答案by enes faruk meniz
I got the solution after searching through the web. Adding an option to a NetBeans setting file will do it.
我通过网络搜索后得到了解决方案。将选项添加到 NetBeans 设置文件即可。
Open NETBEANS_DIRECTORY/etc/netbeans.conf
打开 NETBEANS_DIRECTORY/etc/netbeans.conf
Search for "netbeans_default_options" Then add "--locale en"
搜索“netbeans_default_options”然后添加“--locale en”
So it will look like from this
所以它看起来像这样
netbeans_default_options="-J-client...
netbeans_default_options="-J-client...
to this
对此
netbeans_default_options="--locale en -J-client...
netbeans_default_options="--locale en -J-client...
restart NetBeans, problem solved.
重新启动 NetBeans,问题解决。