无法从Netbeans 8.0.1服务区域启动GlassFish 4.1 [英] Cannot start GlassFish 4.1 from within Netbeans 8.0.1 Service area

查看:466
本文介绍了无法从Netbeans 8.0.1服务区域启动GlassFish 4.1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在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服务器时,都会收到此错误消息:


无法启动GlassFish服务器4.1:HTTP或HTTPS侦听器端口在服务器未运行时被占用


因此,我使用了

netstat -ano |找到1527



来找出哪个进程持有这个端口,因为它似乎是刚开始的Java Derby数据库本身由GlassFish流程完成。因此,Glassfish初创公司正在抱怨它刚刚引起的一些事情。奇怪。我不知道该怎么办。任何人有任何想法?



感谢您。 您的描述有点奇怪因为如果端口1527被占用,GlassFish服务器甚至可以启动,因为Java Derby数据库是一个独立的java进程。因此,如果真正的GlassFish服务器确实正确启动(NetBeans在不同的选项卡中显示GlassFish服务器和Derby服务器的输出),则可以忽略该消息。



然而,您可以尝试禁用为GlassFish实例启动注册的Derby服务器。



确保Derby服务器已关闭,它甚至可以运行如果你关闭了NetBeans。如果您不确定通过任务管理器杀死每个Java进程并重新启动NetBeans。



右键单击服务选项卡中的GlassFish实例,然后选择属性





如果真正的问题是,端口8080或443(如果您激活了HTTPS侦听器)正在使用中阻止GlassFish启动),你必须找出哪个应用程序正在使用这个端口(可能是Tomcat或类似的东西)并关闭它。

消息


'无法启动GlassFish Server 4.1:HTTP或HTTPS侦听器端口在服务器未运行时占用
'


只是在这个方向上多一点点...


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:

Could not start GlassFish Server 4.1: HTTP or HTTPS listener port is occupied while server is not running

So I used

netstat -ano | find "1527"

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?

Thanks already.

解决方案

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).

Nevertheless you can try to disable starting the registered Derby server for your GlassFish instance.

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.

Right-click your GlassFish instance in the Services tab and choose Properties.

If instead the real problem is that either port 8080 or 443 (if you activated the HTTPS listener) is in use (which would really prevent GlassFish from starting), you have to find out which application is using this port (maybe Tomcat or something similar) and shut it down.

The error message

'Could not start GlassFish Server 4.1: HTTP or HTTPS listener port is occupied while server is not running'

just points a little bit more in this direction...

这篇关于无法从Netbeans 8.0.1服务区域启动GlassFish 4.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆