Glassfish服务器在NetBeans 6.9中启动失败 [英] Glassfish server started failed in netbeans 6.9

查看:111
本文介绍了Glassfish服务器在NetBeans 6.9中启动失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试了上面提到的所有选项,但是我无法启动服务器glassfish服务器3.显示服务器启动失败"消息.

i tried all the option mentioned above but i cant able to start the server glassfish server 3.."server start failed" message is displaying.

我尝试了netstat -ao,但是没有显示任何内容,例如"0.0.0.0:80".我在C:\ Program Files \ glassfish-3.0.1 \ glassfish \ domains \ domain1 \ config \ domain.xml

i tried netstat -ao ,but nothing is displayed like "0.0.0.0:80". i changed the port 8080 with 9999 in C:\Program Files\glassfish-3.0.1\glassfish\domains\domain1\config\domain.xml

我是netbeans的新手,我正在尝试学习j2ee,但由于这个原因,我无法运行我的Web应用程序.

i new to netbeans and i am trying to learn j2ee ,but i cant run my web application because of this.

我试图打开{http://localhost:8080},但无法连接.

i tried to open the {http://localhost:8080} but cant able to connect.

我在过去1个月内一直未找到答案.

i searching answer for this for past 1 month nothing is happening.

其他详细信息,我使用sql server进行练习并将其卸载.我使用oracle进行练习并将其卸载.

Additional details i used sql server for practice and i uninstalled it. i used oracle for practice and i uninstalled it .

下面提到的语句是我启动服务器时在netbeans中显示的Glass fish服务器消息.

below mentioned statement is Glass fish server message displayed in netbeans when i start the server.

    enter code here

May 31, 2013 7:00:19 AM com.sun.enterprise.glassfish.bootstrap.ASMain main
INFO: Launching GlassFish on Felix platform
Welcome to Felix
================
INFO: Perform lazy SSL initialization for the listener 'http-listener-2'
INFO: Starting Grizzly Framework 1.9.18-o - Fri May 31 07:00:40 IST 2013
INFO: Starting Grizzly Framework 1.9.18-o - Fri May 31 07:00:40 IST 2013
INFO: GlassFish Server Open Source Edition 3.0.1 (22) startup time : Felix(19641ms) startup services(3015ms) total(22656ms)
SEVERE: doSelect IOException
java.io.IOException: Unable to establish loopback connection
        at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:106)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.nio.ch.PipeImpl.<init>(PipeImpl.java:122)
        at sun.nio.ch.SelectorProviderImpl.openPipe(SelectorProviderImpl.java:27)
        at java.nio.channels.Pipe.open(Pipe.java:133)
        at sun.nio.ch.WindowsSelectorImpl.<init>(WindowsSelectorImpl.java:105)
        at sun.nio.ch.WindowsSelectorProvider.openSelector(WindowsSelectorProvider.java:26)
        at java.nio.channels.Selector.open(Selector.java:209)
        at com.sun.grizzly.util.Utils.openSelector(Utils.java:100)
        at com.sun.grizzly.TCPSelectorHandler.initSelector(TCPSelectorHandler.java:399)
        at com.sun.grizzly.TCPSelectorHandler.preSelect(TCPSelectorHandler.java:379)
        at com.sun.enterprise.v3.services.impl.monitor.MonitorableSelectorHandler.preSelect(MonitorableSelectorHandler.java:85)
        at com.sun.grizzly.SelectorHandlerRunner.doSelect(SelectorHandlerRunner.java:183)
        at com.sun.grizzly.SelectorHandlerRunner.run(SelectorHandlerRunner.java:130)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
        at java.lang.Thread.run(Thread.java:619)
Caused by: java.net.ConnectException: Connection refused: connect
        at sun.nio.ch.Net.connect(Native Method)
        at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:507)
        at java.nio.channels.SocketChannel.open(SocketChannel.java:146)
        at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:78)
        ... 16 more

SEVERE: doSelect IOException
java.io.IOException: Unable to establish loopback connection
        at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:106)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.nio.ch.PipeImpl.<init>(PipeImpl.java:122)
        at sun.nio.ch.SelectorProviderImpl.openPipe(SelectorProviderImpl.java:27)
        at java.nio.channels.Pipe.open(Pipe.java:133)
        at sun.nio.ch.WindowsSelectorImpl.<init>(WindowsSelectorImpl.java:105)
        at sun.nio.ch.WindowsSelectorProvider.openSelector(WindowsSelectorProvider.java:26)
        at java.nio.channels.Selector.open(Selector.java:209)
        at com.sun.grizzly.util.Utils.openSelector(Utils.java:100)
        at com.sun.grizzly.TCPSelectorHandler.initSelector(TCPSelectorHandler.java:399)
        at com.sun.grizzly.TCPSelectorHandler.preSelect(TCPSelectorHandler.java:379)
        at com.sun.enterprise.v3.services.impl.monitor.MonitorableSelectorHandler.preSelect(MonitorableSelectorHandler.java:85)
        at com.sun.grizzly.SelectorHandlerRunner.doSelect(SelectorHandlerRunner.java:183)
        at com.sun.grizzly.SelectorHandlerRunner.run(SelectorHandlerRunner.java:130)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
        at java.lang.Thread.run(Thread.java:619)
Caused by: java.net.ConnectException: Connection refused: connect
        at sun.nio.ch.Net.connect(Native Method)
        at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:507)
        at java.nio.channels.SocketChannel.open(SocketChannel.java:146)
        at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:78)
        ... 16 more

SEVERE: doSelect IOException
java.io.IOException: Unable to establish loopback connection
        at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:106)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.nio.ch.PipeImpl.<init>(PipeImpl.java:122)
        at sun.nio.ch.SelectorProviderImpl.openPipe(SelectorProviderImpl.java:27)
        at java.nio.channels.Pipe.open(Pipe.java:133)
        at sun.nio.ch.WindowsSelectorImpl.<init>(WindowsSelectorImpl.java:105)
        at sun.nio.ch.WindowsSelectorProvider.openSelector(WindowsSelectorProvider.java:26)
        at java.nio.channels.Selector.open(Selector.java:209)
        at com.sun.grizzly.util.Utils.openSelector(Utils.java:100)
        at com.sun.grizzly.TCPSelectorHandler.initSelector(TCPSelectorHandler.java:399)
        at com.sun.grizzly.TCPSelectorHandler.preSelect(TCPSelectorHandler.java:379)
        at com.sun.grizzly.SelectorHandlerRunner.doSelect(SelectorHandlerRunner.java:183)
        at com.sun.grizzly.SelectorHandlerRunner.run(SelectorHandlerRunner.java:130)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
        at java.lang.Thread.run(Thread.java:619)
Caused by: java.net.ConnectException: Connection refused: connect
        at sun.nio.ch.Net.connect(Native Method)
        at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:507)
        at java.nio.channels.SocketChannel.open(SocketChannel.java:146)
        at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:78)
        ... 15 more

SEVERE: doSelect IOException
java.io.IOException: Unable to establish loopback connection
        at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:106)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.nio.ch.PipeImpl.<init>(PipeImpl.java:122)
        at sun.nio.ch.SelectorProviderImpl.openPipe(SelectorProviderImpl.java:27)
        at java.nio.channels.Pipe.open(Pipe.java:133)
        at sun.nio.ch.WindowsSelectorImpl.<init>(WindowsSelectorImpl.java:105)
        at sun.nio.ch.WindowsSelectorProvider.openSelector(WindowsSelectorProvider.java:26)
        at java.nio.channels.Selector.open(Selector.java:209)
        at com.sun.grizzly.util.Utils.openSelector(Utils.java:100)
        at com.sun.grizzly.TCPSelectorHandler.initSelector(TCPSelectorHandler.java:399)
        at com.sun.grizzly.TCPSelectorHandler.preSelect(TCPSelectorHandler.java:379)
        at com.sun.grizzly.SelectorHandlerRunner.doSelect(SelectorHandlerRunner.java:183)
        at com.sun.grizzly.SelectorHandlerRunner.run(SelectorHandlerRunner.java:130)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
        at java.lang.Thread.run(Thread.java:619)
Caused by: java.net.ConnectException: Connection refused: connect
        at sun.nio.ch.Net.connect(Native Method)
        at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:507)
        at java.nio.channels.SocketChannel.open(SocketChannel.java:146)
        at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:78)
        ... 15 more

SEVERE: doSelect IOException
java.io.IOException: Unable to establish loopback connection
        at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:106)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.nio.ch.PipeImpl.<init>(PipeImpl.java:122)
        at sun.nio.ch.SelectorProviderImpl.openPipe(SelectorProviderImpl.java:27)
        at java.nio.channels.Pipe.open(Pipe.java:133)
        at sun.nio.ch.WindowsSelectorImpl.<init>(WindowsSelectorImpl.java:105)
        at sun.nio.ch.WindowsSelectorProvider.openSelector(WindowsSelectorProvider.java:26)
        at java.nio.channels.Selector.open(Selector.java:209)
        at com.sun.grizzly.util.Utils.openSelector(Utils.java:100)
        at com.sun.grizzly.TCPSelectorHandler.initSelector(TCPSelectorHandler.java:399)
        at com.sun.grizzly.TCPSelectorHandler.preSelect(TCPSelectorHandler.java:379)
        at com.sun.grizzly.SelectorHandlerRunner.doSelect(SelectorHandlerRunner.java:183)
        at com.sun.grizzly.SelectorHandlerRunner.run(SelectorHandlerRunner.java:130)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
        at java.lang.Thread.run(Thread.java:619)
Caused by: java.net.ConnectException: Connection refused: connect
        at sun.nio.ch.Net.connect(Native Method)
        at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:507)
        at java.nio.channels.SocketChannel.open(SocketChannel.java:146)
        at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:78)
        ... 15 more

SEVERE: Shutting down v3 due to startup exception : Unable to establish loopback connection
INFO: Server shutdown initiated
INFO: [Thread[GlassFish Kernel Main Thread,5,main]] started

................}对不起,我的英语不好.

................ } sorry for my bad English.

或者我应该使用其他服务器,例如tomcat..etc 请帮助我.

or shall i use other server like tomcat..etc please help me..

推荐答案

在从Oracle Java网站安装带有J2EE-JDK发行版的Glassfish时,也遇到这种无法建立回送连接错误"的问题.

Ran into this "failure to establish loopback connection error" also when installing Glassfish with the J2EE-JDK distro from the Oracle Java site.

我已经让安装程序无人值守运行,并且认为通过套接字连接访问我的计算机的权限确认可能不是来自安装程序,或者可能是新安装的Glassfish服务器本身. (本来应该更好.)由于我不在那里看到防火墙发出的异常请求以确认异常,因此防火墙阻止了该异常,因此服务器无法在安装例程结束时启动.产品安装程序报告安装和初始配置已失败,但是也在我的浏览器中打开的安装报告说,两次安装均成功.这可能是因为服务器的实际自动启动未成功,因此尽管执行了其他安装和配置操作,安装程序仍报告总体失败.

I had left the installation to run unattended and didn't think a confirmation for permission to access my machine via a socket connection may originate from the installer or newly-installed Glassfish server itself may happen. (Should have known better.) Since I was not there to see the exception request from the firewall to confirm the exception, the firewall blocked it and so the server could not start up at the end of the installation routine. The product installer reported that the installation and initial config'n had failed but the installation report it also opened in my browser said it succeeded on both counts. This is probably because the actual automatic starting up of the server didn't succeed and so the installer reported overall failure despite the other install and config actions being executed OK.

修复:我的防火墙日志报告说它是"glassfish.jar",位于几级以下的已安装产品文件夹中,已被阻止".我只是在防火墙中为该对象手动添加了一个"ALLOW"条目,之后便可以运行服务器了.

The fix: My firewall log reported that it was "glassfish.jar", located in the installed product folder a few levels down, thathad been "BLOCK"ed. I simply manually added an "ALLOW" entry for that object in the firewall and after that was able to run the server.

这篇关于Glassfish服务器在NetBeans 6.9中启动失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆