如何在同一台机器上同时运行Glassfish v2.1.1和Glassfish v3.1?
我有2个项目正在开发中;其中一个部署到 Glassfish v2.1.1 中,另一个部署到 Glassfish v3.1 中。我想同时运行两个服务器。为此,将Glassfish v2.1.1、8080和8181的默认端口从domain.xml分别更改为9090和9191。但是当我从 Netbeans 7.0 启动 v2.1.1(当 v3.1 正在运行时)时,出现“java.net.BindException:地址已在使用中
”异常。问题是关于主题的。感谢您的建议。
谢谢。
编辑:忘记提及我正在使用 Ubuntu 10.10,如果有道理的话。
I have 2 projects in development; one of them deployed into the Glassfish v2.1.1, other one into Glassfish v3.1. I want to run both servers at the same time. For this, changed the default ports of Glassfish v2.1.1, 8080 and 8181 to 9090 and 9191 respectively from domain.xml. But when I started the v2.1.1 (while v3.1 is running) from Netbeans 7.0, having "java.net.BindException: Address already in use
" exception. The question is on the topic. Your suggestion is appreciated.
Thanks.
Edit : Forgot to mention that I am on Ubuntu 10.10 if it makes a sense.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
听起来您仍然需要更改 NetBeans 中的 Glassfish 设置。
It sounds like you still need to change the Glassfish settings in NetBeans.
您确定您涵盖了 Glassfish 可以使用的所有端口吗? MQ 客户端怎么样,例如您是否启用了它?
尝试运行
netstat -ab
以查看哪些端口仍分配给 Glassfish 实例。Are you sure you covered all the ports Glassfish can use? How about the MQ client, do you have it enabled for example?
Try running
netstat -ab
to see which ports are still allocated to the Glassfish instance.