简体   繁体   English

使用JDK启动GlassFish Server 4.0错误

[英]GlassFish Server 4.0 start error with JDK

I'm using NetBeans 7.3.1 with GlassFish Server 4 我正在使用带有GlassFish Server 4的NetBeans 7.3.1

When I try to run a(any) project I get the following error. 当我尝试运行(任何)项目时,我收到以下错误。

Starting GlassFish Server GlassFish Server Server start failed. 启动GlassFish Server GlassFish Server Server启动失败。 Cant create start proccess. 无法创建启动过程。 C:\\Users\\ENES\\Documents\\NetBeansProjects\\Tezmaksan\\nbproject\\build-impl.xml:1041: Deployment error: GlassFish Server Server start failed. C:\\ Users \\ ENES \\ Documents \\ NetBeansProjects \\ Tezmaksan \\ nbproject \\ build-impl.xml:1041:部署错误:GlassFish Server Server启动失败。 Cant create start proccess. 无法创建启动过程。 See the server log for details. 有关详细信息,请参阅服 BUILD FAILED (total time: 2 seconds) BUILD FAILED(总时间: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. 当我进入GlassFish的bin目录并运行startserv.bat时,它看起来像工作,因为localhost:8080 /和localhost:4848 /正在工作。 But my application still can't start. 但我的申请仍然无法启动。 When I go localhost:8080/Tezmaksan/ there is this error there 当我去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. 我已经安装了JDK(1.7u25)的最后版本,当我从NetBeans检查时,它被选为GlassFish。 I'm using x64 Windows 7. I didn't have this problem 2-3 months ago, it just popped out. 我正在使用x64 Windows 7.我在2-3个月前没遇到这个问题,它刚刚弹出。 I tried uninstalling and reinstalling NetBeans, GlassFish and JDK and problem is still there. 我尝试卸载并重新安装NetBeans,GlassFish和JDK,问题仍然存在。

Thanks for your helps 谢谢你的帮助

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-客户端...

to this 对此

netbeans_default_options="--locale en -J-client... netbeans_default_options =“ - locale en -J-client ...

restart NetBeans, problem solved. 重启NetBeans,问题解决了。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM