我在2天的日食中与glassfish战斗,我仍然无法运行我的服务器。当我尝试启动我的服务器时,(加载)进度条挂起69%并获得如下信息:
无法按时启动服务器
的 java.util.concurrent.timeoutexception
服务器执行类似的操作:
1. [正在启动,同步] (顺便说一句,在网络浏览器服务器中工作的时间只有几秒钟,但仍然没有看到index.html。它会显示GlassFish服务器的默认页面,其中包含消息您的服务器现在正在运行,然后localhost不再响应了)
2. [已停止]
我无法达到服务器状态: [已启动,已同步]
顺便说一句。我正在使用Tomcat服务器而且没有问题可以启动它。
我有:
Windows 7 x64
Eclipse Kepler
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?
答案 0 :(得分:0)
这是用于Eclipse的GlassFish工具的已知错误。
适用于Mac OS X和Windows的Payara(源自GlassFish)的GitHub存储库存在一个未解决的问题: https://github.com/payara/Payara/issues/370
目前唯一的解决方法是:
一切手动(从命令行启动/停止/部署GF)然后通过远程调试器附加Eclipse