1

我将我的 webApp 部署到 glassfish 3.1.2 服务器。我将 Eclipse Juno SR1 与 glassfish 服务器适配器一起使用。但是从今天开始,如果我单击服务器,我会收到错误消息。

java.lang.IllegalArgumentException:端口超出范围:com.sun.enterprise.jst.server.sunappsrv.SunAppServer.isRunning(SunAppServer.java:590) 处的 java.net.InetSocketAddress.(InetSocketAddress.java:118) 处的 1118080 com.sun.enterprise.jst.server.sunappsrv.SunAppServer.isRunning(SunAppServer.java:583) 在 com.sun.enterprise.jst.server.sunappsrv.actions.AppServerContextAction.acceptIfServerRunning(AppServerContextAction.java:171) 在 com。 sun.enterprise.jst.server.sunappsrv.actions.OpenBrowserAction.accept(OpenBrowserAction.java:44) at com.sun.enterprise.jst.server.sunappsrv.actions.AppServerContextAction.selectionChanged(AppServerContextAction.java:234) at org. eclipse.ui.actions.SelectionProviderAction.selectionChanged(SelectionProviderAction.java:143) at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:164) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49) at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable .java:175) 在 org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:162) 在 org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:2188)

所以我无法启动/停止和部署我的 Web 应用程序?

有任何想法吗???

谢谢蒂姆

4

3 回答 3

2

我有同样的错误。在我的情况下,我的域的 config/domain.xml 是空的(0 字节无内容)。同时删除域

 asadmin delete-domain --domaindir glassfish3/glassfish/domains domain1

没有用。所以我删除了域目录并再次重新创建域(使用 asadmin)。

这对我有用。

史蒂芬

于 2012-12-25T13:43:38.727 回答
2

最大端口号为 65535,因此请检查您的服务器正在侦听的 TCP 端口的配置,并将其设置为小于 65535 的数字。

于 2012-11-26T11:56:36.253 回答
0

我收到此错误并查看 domain.xml 我意识到我的连接池描述中有未转义的特殊字符。删除该字符足以使玻璃鱼再次工作

于 2013-05-22T20:07:20.353 回答