在eclipse Luna上不能使用localhost版本的glassfish 4.1服务器

时间:2015-04-19 06:28:26

标签: java eclipse glassfish

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

当我在eclipse中按Start时(即使本地glassfish服务器已经运行,因为它一直显示Stopped)它会启动该过程,执行69%的操作,保持5-10分钟并给出超时错误。

同时在eclipse中我从VPS服务器配置域,我也有glassfish 4.1,在这种情况下一切正常工作:我可以将J2EE应用程序部署到VPS服务器。问题是我想在我的Mac上本地开发它们,并且最后我需要在VPS中部署它们。

enter image description here

以下是日志,但它们并没有那么有用,因为最初eclipse错误地显示服务器在实际运行时已停止。无论如何我按下Start后会得到这些日志。

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

1 个答案:

答案 0 :(得分:0)

通过重新安装eclipse解决了这个问题。我的意思是我甚至完全卸载了Eclipse Luna并下载并安装了Ecplise Kepler。

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