问题描述
在 Windows 7 上,我从该站点下载了netbeans-8.0.1-javaee-windows.exe"安装程序 https://netbeans.org/downloads/.安装程序安装 GlassFish 4.1、Java 1.8.0_20 和 NetBeans 8.01.安装后,每当我尝试从 NetBeans 服务区域内启动 GlassFish 服务器时,我都会收到此错误:
On Windows 7 I downloaded the 'netbeans-8.0.1-javaee-windows.exe' installer from this site https://netbeans.org/downloads/. The installer installs GlassFish 4.1, Java 1.8.0_20 and NetBeans 8.01. After installation, whenever I try to start the GlassFish server from within the NetBeans Services area, I get this error:
无法启动 GlassFish Server 4.1:服务器未运行时 HTTP 或 HTTPS 侦听器端口被占用
所以我用了
netstat -ano |找到1527"
找出哪个进程持有这个端口,而且似乎是 Java Derby 数据库本身刚刚由 GlassFish 进程启动.因此,Glassfish 初创公司正在抱怨它自己造成的一些事情.奇怪的.我不知道该怎么办.有人有什么想法吗?
to find out which process is holding this port and as it seems it is the Java Derby database itself that was just started by the GlassFish process. So the Glassfish startup is complaining about something it just caused itself. Strange. I don't know what to do. Anybody any idea?
已经谢谢了.
推荐答案
你的描述有点奇怪,因为1527端口被占用GlassFish服务器也能启动,因为Java Derby数据库是一个独立的java进程.因此,一种选择可能是在真正的 GlassFish 服务器确实正确启动的情况下忽略该消息(NetBeans 在不同的选项卡中显示 GlassFish 服务器和 Derby 服务器的输出).
Your description is a little bit strange because the GlassFish server can even start if port 1527 is occupied, because the Java Derby database is a separate java process. So one option could be to just ignore the message in case that the real GlassFish server is indeed starting correctly (NetBeans displays the output for the GlassFish server and the Derby server in different tabs).
不过,您可以尝试禁用为 GlassFish 实例启动已注册的 Derby 服务器.
Nevertheless you can try to disable starting the registered Derby server for your GlassFish instance.
确保 Derby 服务器已关闭,如果您关闭了 NetBeans,它甚至仍然可以运行.如果您不确定通过任务管理器杀死每个 java 进程并重新启动 NetBeans.
Make sure that the Derby server is shut down, it can even still run if you have closed NetBeans. If you are not sure kill every java process via the task manager and restart NetBeans.
在服务选项卡中右键单击您的 GlassFish 实例,然后选择属性.
Right-click your GlassFish instance in the Services tab and choose Properties.
如果真正的问题是端口 8080 或 443(如果您激活了 HTTPS 侦听器)正在使用(这确实会阻止 GlassFish 启动),则您必须找出哪个应用程序正在使用此端口(可能是 Tomcat 或类似的东西)并关闭它.
错误信息
'无法启动 GlassFish Server 4.1:HTTP 或 HTTPS 侦听器端口为服务器未运行时被占用'
只是在这个方向上多指出一点...
just points a little bit more in this direction...
这篇关于无法从 Netbeans 8.0.1 服务区域内启动 GlassFish 4.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!