在Windows7 64位系统上,我有Eclipse Juno Service Release 1并直接从http://dlc.sun.com.edgesuite.net/glassfish/eclipse/juno/安装了Glassfish插件。
我还将Glassfish 3.1.2.2的开源版本(通过zip文件)安装到我的机器上。
我为已安装的Glassfish版本以及Glassfish 3.1.2.2的嵌入版本创建了服务器运行时环境。我在Eclipse中为每个运行时环境创建了一个服务器。
当我尝试从Eclispe启动其中任何一个时,我收到此错误(这没有用):
!ENTRY oracle.eclipse.tools.glassfish 4 1 2012-12-11 16:20:16.182
!MESSAGE GlassFish: error
!STACK 0
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.<init>(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at com.sun.enterprise.jst.server.sunappsrv.commands.CommandRunner.call(CommandRunner.java:607)
at com.sun.enterprise.jst.server.sunappsrv.commands.CommandRunner.call(CommandRunner.java:1)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
!ENTRY oracle.eclipse.tools.glassfish 4 150 2012-12-11 16:20:16.189
!MESSAGE The Eclipse plugin cannot communicate with the GlassFish server....
!STACK 0
java.lang.RuntimeException: The Eclipse plugin cannot communicate with the GlassFish server.Please, check for other software blocking or using this port, or firewall configuration, or VPN setup which might block some ports...
at com.sun.enterprise.jst.server.sunappsrv.SunAppServerLaunch.launch(SunAppServerLaunch.java:155)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:855)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:704)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:697)
at org.eclipse.wst.server.core.internal.Server.startImpl2(Server.java:3484)
at org.eclipse.wst.server.core.internal.Server.startImpl(Server.java:3420)
at org.eclipse.wst.server.core.internal.Server$StartJob.run(Server.java:367)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
我可以通过命令行脚本启动我本地安装的Glassfish(即不是嵌入式的)。我已经三次检查了4848,8080和8181没有端口冲突。我的防火墙当前已关闭(当我在我的公司域时)。
有人可以建议为什么我不能通过Eclipse插件启动Glassfish吗?
答案 0 :(得分:0)
我做了两件事,所以我不知道这两件事中的哪一件为我解决了这个问题。
答案 1 :(得分:0)
进入&#34; asadmin&#34;您应该能够使用以下命令启动Glassfish服务器上的任何域,并且一旦启动或停止Glassfish服务器的任何域(默认为domain1),同样将在ECLIPSE中反映 p>
这将有效