Cannot start GlassFish 4.1 from within Netbeans 8.0.1 Service area

前端 未结 10 826
离开以前
离开以前 2020-12-28 18:07

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.

10条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-28 18:32

    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.

    disable derby server start

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

提交回复
热议问题