Netbeans没有运行项目。显示错误无法连接到Glass Fish Server 3.1.2的管理员侦听器

时间:2012-09-20 08:27:56

标签: glassfish-3 netbeans-7

我刚刚安装了netbeans 7.2并在其中创建了一个项目。但是当我试图运行该项目时。我收到以下错误

enter image description here

错误是

Could not connect to admin Listener for Glass Fish server 3.1.2
Verify that Netbeans can make outbound connections to localhost:4848

我也通过去玻璃鱼的属性取消选中Use IDEs Proxy Settings,但它仍然无效。知道我为什么会这样做吗?

错误发生在

<target if="netbeans.home" name="-run-deploy-nb">
    <nbdeploy clientUrlPart="${client.urlPart}" debugmode="false" forceRedeploy="${forceRedeploy}"/>
</target>

谢谢。

-------------------------------------------- ----------------------------- 修改

您提到的目录中有文件server.txt。这是文件包含的内容。

Sep 24, 2012 1:18:39 PM com.sun.enterprise.admin.launcher.GFLauncherLogger info
INFO: JVM invocation command line:
-XX:+UnlockDiagnosticVMOptions
-XX:PermSize=64m
-XX:MaxPermSize=192m
-XX:NewRatio=2
-Xmx512m
-client
-javaagent:C:/Program Files/glassfish-3.1.2.2/glassfish/lib/monitor/flashlight-agent.jar
-Dosgi.shell.telnet.maxconn=1
-Dfelix.fileinstall.disableConfigSave=false
-Djdbc.drivers=org.apache.derby.jdbc.ClientDriver
-Dfelix.fileinstall.dir=C:\Program Files\glassfish-3.1.2.2\glassfish/modules/autostart/
-Djavax.net.ssl.keyStore=C:\Program Files\glassfish-3.1.2.2\glassfish\domains\domain1/config/keystore.jks
-Dosgi.shell.telnet.port=6666
-Djava.security.policy=C:\Program Files\glassfish-3.1.2.2\glassfish\domains\domain1/config/server.policy
-Djava.awt.headless=true
-Dfelix.fileinstall.log.level=2
-Dfelix.fileinstall.poll=5000
-Dcom.sun.aas.instanceRoot=C:\Program Files\glassfish-3.1.2.2\glassfish\domains\domain1
-Dosgi.shell.telnet.ip=127.0.0.1
       -Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory
-Djava.endorsed.dirs=C:\Program Files\glassfish-3.1.2.2\glassfish/modules/endorsed;C:\Program Files\glassfish-3.1.2.2\glassfish/lib/endorsed
-Dcom.sun.aas.installRoot=C:\Program Files\glassfish-3.1.2.2\glassfish
-Dfelix.fileinstall.bundles.startTransient=true
-Djava.ext.dirs=C:\Program Files\Java\jdk1.6.0_06/lib/ext;C:\Program Files\Java\jdk1.6.0_06/jre/lib/ext;C:\Program Files\glassfish-3.1.2.2\glassfish\domains\domain1/lib/ext
-Dfelix.fileinstall.bundles.new.start=true
-Djavax.net.ssl.trustStore=C:\Program Files\glassfish-3.1.2.2\glassfish\domains\domain1/config/cacerts.jks
-Dcom.sun.enterprise.security.httpsOutboundKeyAlias=s1as
-Djava.security.auth.login.config=C:\Program Files\glassfish-3.1.2.2\glassfish\domains\domain1/config/login.conf
-DANTLR_USE_DIRECT_CLASS_LOADING=true
-Dgosh.args=--nointeractive
Sep 24, 2012 1:18:39 PM com.sun.enterprise.admin.launcher.GFLauncherLogger info
INFO: Successfully launched in 0 msec.

0 个答案:

没有答案