简体   繁体   English

无法使用Java 8在Eclipse Luna中启动Glassfish 4插件

[英]failed to start glassfish 4 plugin in eclipse luna using java 8

Glassfish插件无法使用Java 8在Eclipse Luna中启动。如果在glassfish日志文件中没有任何异常,它将超时,并且我得到“无法按时启动服务器。java.util.concurrent.TimeoutException”。

我得到了答案,我将主机名从localhost更改为实数IP( 127.0.0.1 ),然后启动了GlassFish。

Is your Server started already? 您的服务器已经启动了吗? If not, you can modify your Timeout-Value for startup and shutdown in Eclipse Server View (Timeouts). 如果没有,您可以修改超时值以在Eclipse服务器视图(超时)中启动和关闭。

I had the same issue. 我遇到过同样的问题。 I think he meant in the server tab of Eclipse, create a new instance of a server and change the "Server's host name:" from "localhost" to "127.0.0.1". 我认为他的意思是在Eclipse的服务器选项卡中,创建服务器的新实例,并将“服务器的主机名:”从“ localhost”更改为“ 127.0.0.1”。

I had the same problem. 我有同样的问题。 I did the following to fix: 我做了以下修复:

  1. delete the server 删除服务器
  2. create a new server 创建一个新服务器
  3. when asking for "Server's host name", using "127.0.0.1" instead of "localhost" (same as the answer of Clueless) 在询问“服务器的主机名”时,使用“ 127.0.0.1”而不是“ localhost”(与无提示的答案相同)
  4. start the server. 启动服务器。 This time it worked. 这次它起作用了。
  5. delete the server again 再次删除服务器
  6. create a new server and use "localhost" for "Server's host name". 创建一个新服务器,并将“ localhost”用作“服务器的主机名”。

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

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