0

我通过 ssh 在我的 centos 服务器上成功安装了 glassfish 4.1,但我无法启动服务器。当我键入时,./asadmin start-domain我在下面收到此错误。

Waiting for domain1 to start ......Error starting domain domain1.
The server exited prematurely with exit code 137.
Before it died, it produced the following output:
Launching GlassFish on Felix platform
Registered com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishRuntime@33903879 in service registry.
Nov 24, 2014 10:42:08 PM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner createBundleProvisioner
INFO: Create bundle provisioner class = class com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner.
Nov 24, 2014 10:42:08 PM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner$DefaultCustomizer getLocations
WARNING: Skipping entry  because it is not an absolute URI.
Nov 24, 2014 10:42:08 PM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner$DefaultCustomizer getLocations
WARNING: Skipping entry  because it is not an absolute URI.

Command start-domain failed.

有人可以帮忙吗?

谢谢。

4

1 回答 1

0

Glassfish 似乎无法启动,因为尝试绑定的地址已在使用中。

由于启动异常而关闭服务器

java.net.BindException:地址已在使用:绑定

尝试编辑 domain.xml。

/glassfish/domains/domain1/config/domain.xml

最常见的问题是 http-listener 端口被另一个应用程序重用。找到以下几行:

name="http-listener-1" port="8080" name="http-listener-1" port="9090"

并用类似的东西替换它们:

name="http-listener-2" port="8181" name="http-listener-2" port="9191"

您还可以阅读有关 domain.xml 的更多信息

于 2017-08-12T10:00:52.820 回答