如果Glassfish无法启动了

当用Netbeans部署一个项目出现状况的时候,往往尝试着重新启动Glassfish,而这个时候更有可能你会发现Glassfish无法启动了,等待了很久之后报出了如下一段错误:

The Sun Java System Application Server could not start.
More information about the cause is in the Server log file.
Possible reasons include:
- IDE timeout: refresh the server node to see if it’s running now.
- Port conflicts. (use netstat -a to detect possible port numbers already used by the operating system.)
- Incorrect server configuration (domain.xml to be corrected manually)
- Corrupted Deployed Applications preventing the server to start.(This can be seen in the server.log file. In this case, domain.xml needs to be modified).
- Invalid installation location.
See the server log for details.
BUILD FAILED (total time: 5 minutes 20 seconds)

你甚至会发现无论你如何卸载重新安装Glassfish, Netbeans,你的服务器仍然无法顺利启动。

其实问题的关键不是在这里,而是在你的domain之下。找到\domains\domain1\imq\instances\imqbroker这个文件目录下,你会发现一个lock文件。将它删除掉,Glassfish就顺利复原了。

至于原因是什么,我在GOOGLE上也没搜出个大概,先知其然而不知其所以然吧。

This entry was posted on Saturday, July 18th, 2009 at 1:20 pm and is filed under J2SE . You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

One Response to “ 如果Glassfish无法启动了 ”

  1. Sorry my english, but this is great site, I wil add to my favorites.



Be the first to comment! Leave a Reply.

  • English Version

    • Cannot read Chinese? Please take a look at my English site, hope you can find more you need there!
  • 感谢支持

  • twitter

    facebook

    linkedin

  • Categories