gpt4 book ai didi

java - Eclipse Glassfish 4.0 无法按时启动服务器

转载 作者:太空宇宙 更新时间:2023-11-04 12:41:05 25 4
gpt4 key购买 nike

我在 eclipse 上与 glassfish 战斗了 2 天,但我仍然无法运行我的服务器。当我尝试启动服务器时,(加载)进度条卡在 69% 并获取如下消息:
无法按时启动服务器
java.util.concurrent.timeoutException

服务器做了类似的事情:
1. [正在启动,同步](顺便说一句,在网络浏览器服务器中仅工作几秒钟,但仍然看不到index.html。它显示 GlassFish 服务器的默认页面,并显示消息您的服务器正在运行,然后 localhost 不想再响应)
2. [已停止]

并且我无法实现服务器状态:[已启动,已同步]
顺便提一句。我使用的是 Tomcat 服务器,启动它没有任何问题。

我有:
Windows 7 x64
eclipse 开普勒
JDK 1.8
JRE 1.8
GlassFish 4.0 - 我使用 Eclipse 下载

这是来自控制台的日志:

Running GlassFish Version: GlassFish Server Open Source Edition  4.0  (build 89)
Server log file is using Formatter class: com.sun.enterprise.server.logging.ODLLogFormatter
SEC1115: Realm [admin-realm] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.
SEC1115: Realm [file] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.
SEC1115: Realm [certificate] of classtype [com.sun.enterprise.security.auth.realm.certificate.CertificateRealm] successfully created.
Grizzly Framework 2.3.1 started in: 60ms - bound to [/0.0.0.0:8�080]
Grizzly Framework 2.3.1 started in: 0ms - bound to [/0.0.0.0:8�181]
Grizzly Framework 2.3.1 started in: 0ms - bound to [/0.0.0.0:4�848]
Authorization Service has successfully initialized.
Grizzly Framework 2.3.1 started in: 0ms - bound to [/0.0.0.0:3�700]
Registered org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for persistence-type = replicated in BackingStoreFactoryRegistry
GlassFish Server Open Source Edition 4.0 (89) startup time : Felix (1�824ms), startup services(940ms), total(2�764ms)
HV000001: Hibernate Validator 5.0.0.Final
Initiating Jersey application, version Jersey: 2.0 2013-05-03 14:50:15...
Grizzly Framework 2.3.1 started in: 0ms - bound to [/0.0.0.0:7�676]
Registered com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishImpl@13dbed9e as OSGi service registration: org.apache.felix.framework.ServiceRegistrationImpl@41da3aee.
JMXStartupService has started JMXConnector on JMXService URL service:jmx:rmi://Risen-Komputer:8686/jndi/rmi://Risen-Komputer:8686/jmxrmi

如何在 Eclipse Kepler IDE 上启动 GlassFish?

最佳答案

这是 Eclipse 的 GlassFish 工具的一个已知错误。

Payara(源自 GlassFish)的 GitHub 存储库上有一个适用于 Mac OS X 和 Windows 的未决问题: https://github.com/payara/Payara/issues/370

目前唯一的解决方法是:

do everything manual (start/stop/deploy GF from command line) and then just attach Eclipse via a remote debugger

关于java - Eclipse Glassfish 4.0 无法按时启动服务器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36823540/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com