Eclipse Glassfish 3.1 凭据错误
当我尝试在 Win xp 上启动服务器时,我在 eclipse indigo 3.7 和 glassfish 3.1 中收到错误“凭据错误”。 Glassfish 从命令行正常启动。当我从 Eclipse 启动 GS 时,我得到:
[#|2011-09-29T17:30:58.386+0200|SEVERE|glassfish3.1.1|javax.enterprise.system.tools.admin.org.glassfish.server|_ThreadID=17; _ThreadName=Thread-2;|日志消息为空。 java.rmi.NotBoundException:127.0.0.1 在sun.rmi.registry.RegistryImpl.unbind(RegistryImpl.java:140) 在 org.glassfish.admin.mbeanserver.RMIConnectorStarter.stopAndUnexport(RMIConnectorStarter.java:314) 在 org.glassfish.admin.mbeanserver.JMXStartupService$JMXConnectorsStarterThread.shutdown(JMXStartupService.java:191) 在 org.glassfish.admin.mbeanserver.JMXStartupService.shutdown(JMXStartupService.java:146) 在 org.glassfish.admin.mbeanserver.JMXStartupService.access$000(JMXStartupService.java:87) 在 org.glassfish.admin.mbeanserver.JMXStartupService$ShutdownListener.event(JMXStartupService.java:115) 在 org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:128) 在 com.sun.enterprise.v3.server.AppServerStartup.stop(AppServerStartup.java:435) 在 com.sun.enterprise.glassfish.bootstrap.GlassFishImpl.stop(GlassFishImpl.java:88) 在 com.sun.enterprise.glassfish.bootstrap.GlassFishDecorator.stop(GlassFishDecorator.java:68) 在 com.sun.enterprise.v3.admin.StopServer.doExecute(StopServer.java:70) 在 com.sun.enterprise.v3.admin.StopDomainCommand.execute(StopDomainCommand.java:95) 在 com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:355) 在 com.sun.enterprise.v3.admin.CommandRunnerImpl$2.run(CommandRunnerImpl.java:383)
我认为问题出在 RMI 中,即 Eclipse 中的 glassfish 适配器尝试启动 GS 的方式。没有端口占用 8686,这是 RMI 试图访问 GS 的端口。有没有解决方法。帮助
I get the error "credential error" in eclipse indigo 3.7 with glassfish 3.1 when I try to start the server on Win xp. Glassfish starts normally from command line. When I start GS from eclipse I get:
[#|2011-09-29T17:30:58.386+0200|SEVERE|glassfish3.1.1|javax.enterprise.system.tools.admin.org.glassfish.server|_ThreadID=17;_ThreadName=Thread-2;|The log message is null.
java.rmi.NotBoundException: 127.0.0.1
at sun.rmi.registry.RegistryImpl.unbind(RegistryImpl.java:140)
at org.glassfish.admin.mbeanserver.RMIConnectorStarter.stopAndUnexport(RMIConnectorStarter.java:314)
at org.glassfish.admin.mbeanserver.JMXStartupService$JMXConnectorsStarterThread.shutdown(JMXStartupService.java:191)
at org.glassfish.admin.mbeanserver.JMXStartupService.shutdown(JMXStartupService.java:146)
at org.glassfish.admin.mbeanserver.JMXStartupService.access$000(JMXStartupService.java:87)
at org.glassfish.admin.mbeanserver.JMXStartupService$ShutdownListener.event(JMXStartupService.java:115)
at org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:128)
at com.sun.enterprise.v3.server.AppServerStartup.stop(AppServerStartup.java:435)
at com.sun.enterprise.glassfish.bootstrap.GlassFishImpl.stop(GlassFishImpl.java:88)
at com.sun.enterprise.glassfish.bootstrap.GlassFishDecorator.stop(GlassFishDecorator.java:68)
at com.sun.enterprise.v3.admin.StopServer.doExecute(StopServer.java:70)
at com.sun.enterprise.v3.admin.StopDomainCommand.execute(StopDomainCommand.java:95)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:355)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.run(CommandRunnerImpl.java:383)
I assume that the problem is in RMI, the way the glassfish adapter in eclipse is trying to start GS. There is no port occupying 8686 which is the port throw which RMI is trying to get to GS. Is there a workaround. Help
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我之前也遇到过同样的问题。现在我像这样启动了域:
%glassfish_installdir%\glassfish\bin\asadmin.bat 启动域 domain1
(还应该有一个开始菜单条目)
它终于起作用了。
I had the same problem just before. Now I started the domain like this:
%glassfish_installdir%\glassfish\bin\asadmin.bat start-domain domain1
(There should also be an startmenu entry)
It finally works.