Netbeans 7 和 glassfish3 的新手

发布于 2024-12-03 22:29:27 字数 1839 浏览 0 评论 0原文

我刚刚在我的 Windows XP 机器上安装了 Netbeans 7.0.1 和 glassfish 3。我开始学习一些 JSF 并尝试启动它。但是 glassfish 无法启动:

SEVERE: Shutting down v3 due to startup exception : No free port within range: 8080=com.sun.enterprise.v3.services.impl.monitor.MonitorableSelectorHandler@1815aa4

并且

Deployment error:
GlassFish Server 3.1 Start Failed
See the server log for details.
    at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:223)
    at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:106)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    at sun.reflect.GeneratedMethodAccessor92.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:390)
    at org.apache.tools.ant.Target.performTasks(Target.java:411)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
    at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:284)
    at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:539)
    at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153)
BUILD FAILED (total time: 32 seconds)

看起来端口 8080 正在被使用(我确认有另一个应用程序在 8080 上运行,我无法更改)。如何重新配置​​ Netbeans 和 glassfish 以在其他端口上运行?

谢谢哈迪

I just installed Netbeans 7.0.1 with glassfish 3 on my Windows XP box. I started to learn some JSF and tried to launch it. But glassfish failed to start:

SEVERE: Shutting down v3 due to startup exception : No free port within range: 8080=com.sun.enterprise.v3.services.impl.monitor.MonitorableSelectorHandler@1815aa4

and

Deployment error:
GlassFish Server 3.1 Start Failed
See the server log for details.
    at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:223)
    at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:106)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    at sun.reflect.GeneratedMethodAccessor92.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:390)
    at org.apache.tools.ant.Target.performTasks(Target.java:411)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
    at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:284)
    at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:539)
    at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153)
BUILD FAILED (total time: 32 seconds)

It looks like port 8080 is being used (I confirmed there is another application running on 8080 I cann not change). How can I reconfigure Netbeans and glassfish to run on some other port?

Thanks

Hardy

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

谜兔 2024-12-10 22:29:27
  1. 查找您的 Glassfish 安装目录(例如 C:\Program Files\glassfish-3.1

  2. 查找位于安装目录下的domain.xml文件:\glassfish-3.1\glassfish\domains\domain1\config\domain.xml

  3. 在文本编辑器中打开

  4. 搜索 8080。您应该在名为:network-listener 的 XML 节点下找到它。

  5. 将 8080 更改为更合适的端口(我不得不尝试多次,因为我下次尝试 8086 也被其他东西使用)。

  1. Find your Glassfish install directory (e.g. C:\Program Files\glassfish-3.1)

  2. Find the domain.xml file located under the install directory: \glassfish-3.1\glassfish\domains\domain1\config\domain.xml

  3. Open in a text editor

  4. Search for 8080. You should find this under the XML node named: network-listener.

  5. Change 8080 to a more appropriate port (I had to try more than once since my next try of 8086 was also used by something else).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文