繁体   English   中英

无法在Eclipse Luna上使用Glassfish 4.1服务器的localhost版本

[英]Can't use localhost version of glassfish 4.1 server on eclipse Luna

也许有人会知道如何用J2EE解决我的小问题。 我的Mac上安装了glassfish 4.1服务器。 我有一个具有登录名和密码的域,我还启用了sequre admin。 因此,我可以通过终端启动域,但是当我在Eclipse(Luna)中配置该域时,它总是说我的域已停止。 由于此问题,无法部署我的J2EE应用程序。

当我在eclipse中按Start(即使本地glassfish服务器已经在运行,因为它一直在说,因为Stopped)时,它开始执行该过程,直到69%为止,停留5-10分钟,并给出超时错误。

同时,在eclipse中,我从VPS服务器上配置了domain,该服务器上也有glassfish 4.1,在这种情况下,一切正常:我可以将J2EE应用程序部署到VPS服务器。 事实是,我想在Mac上本地开发它们,只有最后我才需要在VPS中部署它们。

在此处输入图片说明

这是日志,但它们没什么用,因为最初的Eclipse错误地显示了服务器在实际运行时已停止。 而且无论如何我按开始后,都会得到此日志。

2015-04-18T23:36:16.923-0700|Info: Running GlassFish Version: GlassFish Server Open Source Edition  4.1  (build 13)
2015-04-18T23:36:16.926-0700|Info: Server log file is using Formatter class: com.sun.enterprise.server.logging.ODLLogFormatter
2015-04-18T23:36:17.087-0700|Info: Realm [admin-realm] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.
2015-04-18T23:36:17.089-0700|Info: Realm [file] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.
2015-04-18T23:36:17.095-0700|Info: Realm [certificate] of classtype [com.sun.enterprise.security.auth.realm.certificate.CertificateRealm] successfully created.
2015-04-18T23:36:17.337-0700|Info: Authorization Service has successfully initialized.
2015-04-18T23:36:17.411-0700|Info: Registered org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for persistence-type = replicated in BackingStoreFactoryRegistry
2015-04-18T23:36:17.657-0700|Info: Grizzly Framework 2.3.15 started in: 45ms - bound to [/0.0.0.0:8080]
2015-04-18T23:36:17.909-0700|Info: Grizzly Framework 2.3.15 started in: 2ms - bound to [/0.0.0.0:8181]
2015-04-18T23:36:17.947-0700|Info: Grizzly Framework 2.3.15 started in: 2ms - bound to [/0.0.0.0:4848]
2015-04-18T23:36:18.023-0700|Info: Grizzly Framework 2.3.15 started in: 2ms - bound to [/0.0.0.0:3700]
2015-04-18T23:36:18.025-0700|Info: GlassFish Server Open Source Edition  4.1  (13) startup time : Felix (2,861ms), startup services(1,215ms), total(4,076ms)
2015-04-18T23:36:18.229-0700|Info: Creating a SecureRMIServerSocketFactory @ 0.0.0.0 with ssl config = GlassFishConfigBean.org.glassfish.grizzly.config.dom.Ssl
2015-04-18T23:36:18.236-0700|Info: SSLParams =org.glassfish.admin.mbeanserver.ssl.SSLParams@683f4133
2015-04-18T23:36:18.236-0700|Warning: All SSL cipher suites disabled for network-listener(s).  Using SSL implementation specific defaults
2015-04-18T23:36:18.355-0700|Info: SSLParams =org.glassfish.admin.mbeanserver.ssl.SSLParams@683f4133
2015-04-18T23:36:18.355-0700|Warning: All SSL cipher suites disabled for network-listener(s).  Using SSL implementation specific defaults
2015-04-18T23:36:18.450-0700|Info: Grizzly Framework 2.3.15 started in: 2ms - bound to [/0.0.0.0:7676]
2015-04-18T23:36:18.453-0700|Info: Registered com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishImpl@178270b2 as OSGi service registration: org.apache.felix.framework.ServiceRegistrationImpl@7573e12f.
2015-04-18T23:36:18.924-0700|Info: visiting unvisited references
2015-04-18T23:36:19.096-0700|Info: SSLServerSocket /0.0.0.0:8686 and [SSL: ServerSocket[addr=/0.0.0.0,localport=8686]] created
2015-04-18T23:36:19.384-0700|Info: JMXStartupService has started JMXConnector on JMXService URL service:jmx:rmi://192.168.0.6:8686/jndi/rmi://192.168.0.6:8686/jmxrmi
2015-04-18T23:36:19.908-0700|Info: HV000001: Hibernate Validator 5.0.0.Final
2015-04-18T23:36:20.406-0700|Info: Created HTTP listener http-listener-1 on host/port 0.0.0.0:8080
2015-04-18T23:36:20.421-0700|Info: Created HTTP listener http-listener-2 on host/port 0.0.0.0:8181
2015-04-18T23:36:20.427-0700|Info: Created HTTP listener admin-listener on host/port 0.0.0.0:4848
2015-04-18T23:36:20.477-0700|Info: Created virtual server server
2015-04-18T23:36:20.481-0700|Info: Created virtual server __asadmin
2015-04-18T23:36:20.935-0700|Info: Setting JAAS app name glassfish-web
2015-04-18T23:36:20.936-0700|Info: Virtual server server loaded default web module 
2015-04-18T23:36:21.386-0700|Info: Java security manager is disabled.
2015-04-18T23:36:21.387-0700|Info: Entering Security Startup Service.
2015-04-18T23:36:21.392-0700|Info: Loading policy provider com.sun.enterprise.security.provider.PolicyWrapper.
2015-04-18T23:36:21.454-0700|Info: Security Service(s) started successfully.
2015-04-18T23:36:21.842-0700|Info: visiting unvisited references
2015-04-18T23:36:21.878-0700|Info: visiting unvisited references
2015-04-18T23:36:21.885-0700|Info: visiting unvisited references
2015-04-18T23:36:23.663-0700|Info: Initializing Mojarra 2.2.7 ( 20140610-1547 https://svn.java.net/svn/mojarra~svn/tags/2.2.7@13362) for context ''
2015-04-18T23:36:26.111-0700|Info: Loading application [__admingui] at [/]
2015-04-18T23:36:26.113-0700|Info: Loading application __admingui done in 7,874 ms

通过重新安装Eclipse解决了此问题。 我的意思是我什至完全卸载了Eclipse Luna,然后下载并安装了Ecplise Kepler。

因此,现在我有两台可以使用本地或VPS的服务器。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM