Glassfish 4管理员无法从Netbeans 7.4运行(密码不正确)

时间:2013-08-21 15:46:53

标签: netbeans-7 glassfish-4

我正在尝试使用Netbeans 7.4 IDE运行Glassfish 4,但我收到一个错误对话框,如

Please check server admin user name and password properties.

Also please check the server log file for other possible causes.

我正在传递正确的用户名和密码,我已经通过从Windows命令提示符运行glassfish 4来确保它正常运行,它运行正常,但它没有从Netbeans 7.4运行

附上服务器日志供您参考。

[2013-08-21T21:09:02.736+0530] [glassfish 4.0] [INFO] [NCLS-LOGGING-00009] [javax.enterprise.logging] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1377099542736] [levelValue: 800] [[
  Running GlassFish Version: GlassFish Server Open Source Edition  4.0  (build 89)]]

[2013-08-21T21:09:02.740+0530] [glassfish 4.0] [INFO] [NCLS-LOGGING-00010] [javax.enterprise.logging] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1377099542740] [levelValue: 800] [[
  Server log file is using Formatter class: com.sun.enterprise.server.logging.ODLLogFormatter]]

[2013-08-21T21:09:02.923+0530] [glassfish 4.0] [INFO] [realm.loaded.successfully] [javax.enterprise.system.core.security.com.sun.enterprise.security.auth.realm] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1377099542923] [levelValue: 800] [[
  SEC1115: Realm [admin-realm] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.]]

[2013-08-21T21:09:02.928+0530] [glassfish 4.0] [INFO] [realm.loaded.successfully] [javax.enterprise.system.core.security.com.sun.enterprise.security.auth.realm] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1377099542928] [levelValue: 800] [[
  SEC1115: Realm [file] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.]]

[2013-08-21T21:09:02.935+0530] [glassfish 4.0] [INFO] [realm.loaded.successfully] [javax.enterprise.system.core.security.com.sun.enterprise.security.auth.realm] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1377099542935] [levelValue: 800] [[
  SEC1115: Realm [certificate] of classtype [com.sun.enterprise.security.auth.realm.certificate.CertificateRealm] successfully created.]]

[2013-08-21T21:09:03.466+0530] [glassfish 4.0] [INFO] [] [javax.enterprise.system.core] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1377099543466] [levelValue: 800] [[
  Grizzly Framework 2.3.1 started in: 25ms - bound to [/0.0.0.0:8,080]]]

[2013-08-21T21:09:03.503+0530] [glassfish 4.0] [INFO] [] [javax.enterprise.system.core] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1377099543503] [levelValue: 800] [[
  Grizzly Framework 2.3.1 started in: 3ms - bound to [/0.0.0.0:8,181]]]

[2013-08-21T21:09:03.516+0530] [glassfish 4.0] [INFO] [] [javax.enterprise.system.core] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1377099543516] [levelValue: 800] [[
  Grizzly Framework 2.3.1 started in: 3ms - bound to [/0.0.0.0:4,848]]]

[2013-08-21T21:09:03.631+0530] [glassfish 4.0] [INFO] [] [javax.enterprise.system.core.security.org.glassfish.security.services.impl.authorization] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1377099543631] [levelValue: 800] [[
  Authorization Service has successfully initialized.]]

[2013-08-21T21:09:03.709+0530] [glassfish 4.0] [INFO] [] [javax.enterprise.system.core] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1377099543709] [levelValue: 800] [[
  Grizzly Framework 2.3.1 started in: 2ms - bound to [/0.0.0.0:3,700]]]

[2013-08-21T21:09:03.719+0530] [glassfish 4.0] [INFO] [] [org.glassfish.ha.store.spi.BackingStoreFactoryRegistry] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1377099543719] [levelValue: 800] [[
  Registered org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for persistence-type = replicated in BackingStoreFactoryRegistry]]

[2013-08-21T21:09:03.992+0530] [glassfish 4.0] [INFO] [] [org.hibernate.validator.internal.util.Version] [tid: _ThreadID=53 _ThreadName=pool-6-thread-2] [timeMillis: 1377099543992] [levelValue: 800] [[
  HV000001: Hibernate Validator 5.0.0.Final]]

[2013-08-21T21:09:03.992+0530] [glassfish 4.0] [INFO] [NCLS-CORE-00017] [javax.enterprise.system.core] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1377099543992] [levelValue: 800] [[
  GlassFish Server Open Source Edition  4.0  (89) startup time : Felix (3,785ms), startup services(1,359ms), total(5,144ms)]]

[2013-08-21T21:09:04.239+0530] [glassfish 4.0] [INFO] [] [org.glassfish.jersey.server.ApplicationHandler] [tid: _ThreadID=52 _ThreadName=pool-6-thread-1] [timeMillis: 1377099544239] [levelValue: 800] [[
  Initiating Jersey application, version Jersey: 2.0 2013-05-03 14:50:15...]]

[2013-08-21T21:09:05.470+0530] [glassfish 4.0] [INFO] [NCLS-JMX-00005] [javax.enterprise.system.jmx] [tid: _ThreadID=54 _ThreadName=Thread-6] [timeMillis: 1377099545470] [levelValue: 800] [[
  JMXStartupService has started JMXConnector on JMXService URL service:jmx:rmi://RAJESHWARAN-MOBI.TOSHIBA-TSIP.COM:8686/jndi/rmi://RAJESHWARAN-MOBI.TOSHIBA-TSIP.COM:8686/jmxrmi]]

[2013-08-21T21:09:05.501+0530] [glassfish 4.0] [INFO] [] [javax.enterprise.system.core] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1377099545501] [levelValue: 800] [[
  Grizzly Framework 2.3.1 started in: 43ms - bound to [/0.0.0.0:7,676]]]

[2013-08-21T21:09:05.810+0530] [glassfish 4.0] [INFO] [NCLS-BOOTSTRAP-00027] [javax.enterprise.bootstrap] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1377099545810] [levelValue: 800] [[
  Registered com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishImpl@739168d7 as OSGi service registration: org.apache.felix.framework.ServiceRegistrationImpl@62c7f808.]]

[2013-08-21T21:09:05.857+0530] [glassfish 4.0] [INFO] [] [] [tid: _ThreadID=72 _ThreadName=Thread-10] [timeMillis: 1377099545857] [levelValue: 800] [[
  this.makeModuleFor(org.glassfish.main.web.glue, null) returned OSGiModuleImpl:: Bundle = [org.glassfish.main.web.glue [350]], State = [READY]]]

[2013-08-21T21:09:05.857+0530] [glassfish 4.0] [INFO] [] [] [tid: _ThreadID=72 _ThreadName=Thread-10] [timeMillis: 1377099545857] [levelValue: 800] [[
  this.makeModuleFor(org.glassfish.web.javax.servlet.jsp, null) returned OSGiModuleImpl:: Bundle = [org.glassfish.web.javax.servlet.jsp [209]], State = [READY]]]

[2013-08-21T21:09:06.610+0530] [glassfish 4.0] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=72 _ThreadName=Thread-10] [timeMillis: 1377099546610] [levelValue: 800] [[
  visiting unvisited references]]

[2013-08-21T21:09:06.865+0530] [glassfish 4.0] [INFO] [] [] [tid: _ThreadID=72 _ThreadName=Thread-10] [timeMillis: 1377099546865] [levelValue: 800] [[
  this.makeModuleFor(org.glassfish.main.admingui.console-common, 4.0.0) returned OSGiModuleImpl:: Bundle = [org.glassfish.main.admingui.console-common [76]], State = [READY]]]

[2013-08-21T21:09:06.867+0530] [glassfish 4.0] [INFO] [] [] [tid: _ThreadID=72 _ThreadName=Thread-10] [timeMillis: 1377099546867] [levelValue: 800] [[
  this.makeModuleFor(org.glassfish.hk2.hk2, 2.1.92) returned OSGiModuleImpl:: Bundle = [org.glassfish.hk2.hk2 [176]], State = [READY]]]

[2013-08-21T21:09:06.868+0530] [glassfish 4.0] [INFO] [] [] [tid: _ThreadID=72 _ThreadName=Thread-10] [timeMillis: 1377099546868] [levelValue: 800] [[
  this.makeModuleFor(org.glassfish.main.admingui.console-plugin-service, 4.0.0) returned OSGiModuleImpl:: Bundle = [org.glassfish.main.admingui.console-plugin-service [96]], State = [READY]]]

[2013-08-21T21:09:06.875+0530] [glassfish 4.0] [INFO] [] [] [tid: _ThreadID=72 _ThreadName=Thread-10] [timeMillis: 1377099546875] [levelValue: 800] [[
  this.makeModuleFor(org.glassfish.main.deployment.deployment-client, 4.0.0) returned OSGiModuleImpl:: Bundle = [org.glassfish.main.deployment.deployment-client [111]], State = [READY]]]

[2013-08-21T21:09:06.875+0530] [glassfish 4.0] [INFO] [] [] [tid: _ThreadID=72 _ThreadName=Thread-10] [timeMillis: 1377099546875] [levelValue: 800] [[
  this.makeModuleFor(org.glassfish.main.registration.registration-api, 4.0.0) returned OSGiModuleImpl:: Bundle = [org.glassfish.main.registration.registration-api [305]], State = [READY]]]

[2013-08-21T21:09:06.876+0530] [glassfish 4.0] [INFO] [] [] [tid: _ThreadID=72 _ThreadName=Thread-10] [timeMillis: 1377099546876] [levelValue: 800] [[
  this.makeModuleFor(org.glassfish.main.registration.registration-impl, 4.0.0) returned OSGiModuleImpl:: Bundle = [org.glassfish.main.registration.registration-impl [307]], State = [READY]]]

[2013-08-21T21:09:06.877+0530] [glassfish 4.0] [INFO] [] [] [tid: _ThreadID=72 _ThreadName=Thread-10] [timeMillis: 1377099546877] [levelValue: 800] [[
  this.makeModuleFor(javax.servlet-api, 3.1.0) returned OSGiModuleImpl:: Bundle = [javax.servlet-api [207]], State = [READY]]]

[2013-08-21T21:09:06.877+0530] [glassfish 4.0] [INFO] [] [] [tid: _ThreadID=72 _ThreadName=Thread-10] [timeMillis: 1377099546877] [levelValue: 800] [[
  this.makeModuleFor(javax.servlet.jsp-api, 2.3.1) returned OSGiModuleImpl:: Bundle = [javax.servlet.jsp-api [208]], State = [READY]]]

[2013-08-21T21:09:06.878+0530] [glassfish 4.0] [INFO] [] [] [tid: _ThreadID=72 _ThreadName=Thread-10] [timeMillis: 1377099546878] [levelValue: 800] [[
  this.makeModuleFor(com.sun.el.javax.el, 3.0.0) returned OSGiModuleImpl:: Bundle = [com.sun.el.javax.el [192]], State = [READY]]]

[2013-08-21T21:09:06.878+0530] [glassfish 4.0] [INFO] [] [] [tid: _ThreadID=72 _ThreadName=Thread-10] [timeMillis: 1377099546878] [levelValue: 800] [[
  this.makeModuleFor(com.sun.jsftemplating, 2.1.0) returned OSGiModuleImpl:: Bundle = [com.sun.jsftemplating [252]], State = [READY]]]

[2013-08-21T21:09:06.879+0530] [glassfish 4.0] [INFO] [] [] [tid: _ThreadID=72 _ThreadName=Thread-10] [timeMillis: 1377099546879] [levelValue: 800] [[
  this.makeModuleFor(org.glassfish.main.admingui.dataprovider, 4.0.0) returned OSGiModuleImpl:: Bundle = [org.glassfish.main.admingui.dataprovider [104]], State = [READY]]]

[2013-08-21T21:09:06.879+0530] [glassfish 4.0] [INFO] [] [] [tid: _ThreadID=72 _ThreadName=Thread-10] [timeMillis: 1377099546879] [levelValue: 800] [[
  this.makeModuleFor(com.sun.pkg.client, 1.0.0) returned OSGiModuleImpl:: Bundle = [com.sun.pkg.client [304]], State = [READY]]]

[2013-08-21T21:09:06.879+0530] [glassfish 4.0] [INFO] [] [] [tid: _ThreadID=72 _ThreadName=Thread-10] [timeMillis: 1377099546879] [levelValue: 800] [[
  this.makeModuleFor(org.glassfish.main.admingui.console-jca-plugin, 4.0.0) returned OSGiModuleImpl:: Bundle = [org.glassfish.main.admingui.console-jca-plugin [89]], State = [READY]]]

[2013-08-21T21:09:06.880+0530] [glassfish 4.0] [INFO] [] [] [tid: _ThreadID=72 _ThreadName=Thread-10] [timeMillis: 1377099546880] [levelValue: 800] [[
  this.makeModuleFor(org.glassfish.main.admingui.console-web-plugin, 4.0.0) returned OSGiModuleImpl:: Bundle = [org.glassfish.main.admingui.console-web-plugin [100]], State = [READY]]]

[2013-08-21T21:09:06.880+0530] [glassfish 4.0] [INFO] [] [] [tid: _ThreadID=72 _ThreadName=Thread-10] [timeMillis: 1377099546880] [levelValue: 800] [[
  this.makeModuleFor(org.glassfish.main.admingui.console-corba-plugin, 4.0.0) returned OSGiModuleImpl:: Bundle = [org.glassfish.main.admingui.console-corba-plugin [82]], State = [READY]]]

[2013-08-21T21:09:06.880+0530] [glassfish 4.0] [INFO] [] [] [tid: _ThreadID=72 _ThreadName=Thread-10] [timeMillis: 1377099546880] [levelValue: 800] [[
  this.makeModuleFor(org.glassfish.main.admingui.console-community-branding-plugin, 4.0.0) returned OSGiModuleImpl:: Bundle = [org.glassfish.main.admingui.console-community-branding-plugin [78]], State = [READY]]]

[2013-08-21T21:09:06.881+0530] [glassfish 4.0] [INFO] [] [] [tid: _ThreadID=72 _ThreadName=Thread-10] [timeMillis: 1377099546881] [levelValue: 800] [[
  this.makeModuleFor(org.glassfish.main.admingui.console-jts-plugin, 4.0.0) returned OSGiModuleImpl:: Bundle = [org.glassfish.main.admingui.console-jts-plugin [95]], State = [READY]]]

[2013-08-21T21:09:06.881+0530] [glassfish 4.0] [INFO] [] [] [tid: _ThreadID=72 _ThreadName=Thread-10] [timeMillis: 1377099546881] [levelValue: 800] [[
  this.makeModuleFor(org.glassfish.main.admingui.console-ejb-plugin, 4.0.0) returned OSGiModuleImpl:: Bundle = [org.glassfish.main.admingui.console-ejb-plugin [87]], State = [READY]]]

[2013-08-21T21:09:06.881+0530] [glassfish 4.0] [INFO] [] [] [tid: _ThreadID=72 _ThreadName=Thread-10] [timeMillis: 1377099546881] [levelValue: 800] [[
  this.makeModuleFor(org.glassfish.main.admingui.console-common-full-plugin, 4.0.0) returned OSGiModuleImpl:: Bundle = [org.glassfish.main.admingui.console-common-full-plugin [74]], State = [READY]]]

[2013-08-21T21:09:06.882+0530] [glassfish 4.0] [INFO] [] [] [tid: _ThreadID=72 _ThreadName=Thread-10] [timeMillis: 1377099546882] [levelValue: 800] [[
  this.makeModuleFor(org.glassfish.main.admingui.console-concurrent-plugin, 4.0.0) returned OSGiModuleImpl:: Bundle = [org.glassfish.main.admingui.console-concurrent-plugin [80]], State = [READY]]]

[2013-08-21T21:09:06.882+0530] [glassfish 4.0] [INFO] [] [] [tid: _ThreadID=72 _ThreadName=Thread-10] [timeMillis: 1377099546882] [levelValue: 800] [[
  this.makeModuleFor(org.glassfish.main.admingui.console-common, 4.0.0) returned OSGiModuleImpl:: Bundle = [org.glassfish.main.admingui.console-common [76]], State = [READY]]]

[2013-08-21T21:09:06.882+0530] [glassfish 4.0] [INFO] [] [] [tid: _ThreadID=72 _ThreadName=Thread-10] [timeMillis: 1377099546882] [levelValue: 800] [[
  this.makeModuleFor(org.glassfish.main.admingui.console-jms-plugin, 4.0.0) returned OSGiModuleImpl:: Bundle = [org.glassfish.main.admingui.console-jms-plugin [93]], State = [READY]]]

[2013-08-21T21:09:06.883+0530] [glassfish 4.0] [INFO] [] [] [tid: _ThreadID=72 _ThreadName=Thread-10] [timeMillis: 1377099546883] [levelValue: 800] [[
  this.makeModuleFor(org.glassfish.main.admingui.console-cluster-plugin, 4.0.0) returned OSGiModuleImpl:: Bundle = [org.glassfish.main.admingui.console-cluster-plugin [72]], State = [READY]]]

[2013-08-21T21:09:06.883+0530] [glassfish 4.0] [INFO] [] [] [tid: _ThreadID=72 _ThreadName=Thread-10] [timeMillis: 1377099546883] [levelValue: 800] [[
  this.makeModuleFor(org.glassfish.main.admingui.console-ejb-lite-plugin, 4.0.0) returned OSGiModuleImpl:: Bundle = [org.glassfish.main.admingui.console-ejb-lite-plugin [85]], State = [READY]]]

[2013-08-21T21:09:06.884+0530] [glassfish 4.0] [INFO] [] [] [tid: _ThreadID=72 _ThreadName=Thread-10] [timeMillis: 1377099546884] [levelValue: 800] [[
  this.makeModuleFor(org.glassfish.main.admingui.console-updatecenter-plugin, 4.0.0) returned OSGiModuleImpl:: Bundle = [org.glassfish.main.admingui.console-updatecenter-plugin [98]], State = [READY]]]

[2013-08-21T21:09:06.884+0530] [glassfish 4.0] [INFO] [] [] [tid: _ThreadID=72 _ThreadName=Thread-10] [timeMillis: 1377099546884] [levelValue: 800] [[
  this.makeModuleFor(org.glassfish.main.admingui.console-jdbc-plugin, 4.0.0) returned OSGiModuleImpl:: Bundle = [org.glassfish.main.admingui.console-jdbc-plugin [91]], State = [READY]]]

[2013-08-21T21:09:07.475+0530] [glassfish 4.0] [INFO] [AS-WEB-GLUE-00198] [javax.enterprise.web] [tid: _ThreadID=72 _ThreadName=Thread-10] [timeMillis: 1377099547475] [levelValue: 800] [[
  Created HTTP listener http-listener-1 on host/port 0.0.0.0:8080]]

[2013-08-21T21:09:07.493+0530] [glassfish 4.0] [INFO] [AS-WEB-GLUE-00198] [javax.enterprise.web] [tid: _ThreadID=72 _ThreadName=Thread-10] [timeMillis: 1377099547493] [levelValue: 800] [[
  Created HTTP listener http-listener-2 on host/port 0.0.0.0:8181]]

[2013-08-21T21:09:07.502+0530] [glassfish 4.0] [INFO] [AS-WEB-GLUE-00198] [javax.enterprise.web] [tid: _ThreadID=72 _ThreadName=Thread-10] [timeMillis: 1377099547502] [levelValue: 800] [[
  Created HTTP listener admin-listener on host/port 0.0.0.0:4848]]

[2013-08-21T21:09:07.563+0530] [glassfish 4.0] [INFO] [AS-WEB-GLUE-00200] [javax.enterprise.web] [tid: _ThreadID=72 _ThreadName=Thread-10] [timeMillis: 1377099547563] [levelValue: 800] [[
  Created virtual server server]]

[2013-08-21T21:09:07.563+0530] [glassfish 4.0] [INFO] [AS-WEB-GLUE-00200] [javax.enterprise.web] [tid: _ThreadID=72 _ThreadName=Thread-10] [timeMillis: 1377099547563] [levelValue: 800] [[
  Created virtual server __asadmin]]

[2013-08-21T21:09:07.875+0530] [glassfish 4.0] [INFO] [AS-WEB-CORE-00306] [javax.enterprise.web.core] [tid: _ThreadID=72 _ThreadName=Thread-10] [timeMillis: 1377099547875] [levelValue: 800] [[
  Setting JAAS app name glassfish-web]]

[2013-08-21T21:09:07.875+0530] [glassfish 4.0] [INFO] [AS-WEB-GLUE-00201] [javax.enterprise.web] [tid: _ThreadID=72 _ThreadName=Thread-10] [timeMillis: 1377099547875] [levelValue: 800] [[
  Virtual server server loaded default web module ]]

是否需要在管理员模式下运行Netbeans 7.4? (我已经尝试但收到同样的错误)。

请帮我使用Netbeans 7.4运行Glassfish 4

13 个答案:

答案 0 :(得分:20)

由于某种原因,他们为随Netbeans 7.4安装的Web服务器(目前是Apache Tomcat 7.0.41.0和GlassFishServer 4.0)添加了随机生成的密码。

要了解这些密码是什么:

  1. 点击服务标签。
  2. 展开服务器下拉节点(如果尚未展开)。
  3. 右键单击您想要密码的网络服务器>选择属性
  4. 在打开的对话窗口中有一个密码字段,右边的显示按钮单击 show ,您就可以得到答案。
  5. 从某种意义上说,开箱即用的密码很好,所以它可以立即解决外部访问问题。但是把它弄清楚当然很烦人。

    这里有关于shell和gui-less问题的信息,如果上面的问题解决了你的问题,则无需进一步阅读。


    更新:事实证明此密码是从文本文件中提取的,在我的系统上,此文件位于〜/ glassfish-4.0 / glassfish / domains / domain1 / config /本地密码

    警告:手动更新该文件不是个好主意! (见更新2)

    如果你要从码头管理玻璃鱼,那么后者是好的。

    更新2 :在以前的某些版本中,可以直接更新上面列出的文件,这将不再有效并且会破坏。在没有gui的情况下将密码更改为新鲜glassfish安装上的已知状态。

    在干净安装中使用Glassfish 4.1或更高版本,从asadmin shell中执行以下操作:

    输入:change-admin-password 现在输入“admin”(默认值)两次。 现在输入两次新的非空白密码。 输入:enable-secure-admin

    完成上述操作后,您可以从其他主机远程登录。 此设置适用于开发需求,但是对于生产需求,请参阅glassfish文档以获取进一步的安全性约束(如何限制到特定域的端口)。

    PS:如果您确实通过编辑来破解密码文件,因为它是一个新安装,只需再次解压缩glassfish并将该文件复制到其上。

答案 1 :(得分:5)

您可以尝试从NetBeans中删除服务器(选项卡Services-> Servers-> GlassFish,右键单击并删除)并再次添加(右键单击Servers-> Add server)并在Add Server对话框中,选择GlassFish并注册一些新域(例如domain2)并完成向导。

答案 2 :(得分:5)

我打开了服务>服务器> GlassFish Server 4.0>属性。 然后删除用户和密码(完全空白) 突然它起作用了吗?

答案 3 :(得分:2)

点击服务 - >服务器 - > Glassfis服务器 - >特性

在对话框窗口中,您会看到用户名密码字段。清除密码字段,它突然开始工作!

答案 4 :(得分:0)

我有完全相同的错误(在Netbeans 7.4和GlassFish 4中),这来自错误的登录/密码,即使我真的认为它们是正确的。
尝试重置它们:在“服务”选项卡的服务器列表中,右键单击GlassFish 4并输入新的登录名和密码。

答案 5 :(得分:0)

我今天遇到了同样的问题,结果发现我安装了两个glassfish实例,一个安装了Java EE安装程序,另一个安装了NetBeans IDE安装程序

drwxrwxr-x. 13 nikhil nikhil 4.0K Jan 25 09:01 glassfish4
drwxrwxr-x.  8 nikhil nikhil 4.0K Jan 25 10:26 glassfish-4.0

我不太确定为什么默认密码(admin)无法在NetBeans中运行,也许系统无法分辨两个glassfish服务器,因为它们都使用默认端口。无论如何,我手动从NetBeans中删除了GlassFish服务器并添加了Java EE安装程序附带的服务器(密码正确的服务器),现在它可以正常工作。

答案 6 :(得分:0)

我遇到了同样的问题。我用一个小技巧解决了它。我从界面中删除了安装了NetBeans的服务器,并添加了另一个。执行此操作时,您可以创建个人域。在此个人域中,匿名登录已启用,根本没有密码。

我知道这不是一个好的解决方案,但它仍然是一个解决方案。

希望它有所帮助!

PS:至少在我的Linux的NwetBeans 7.4中,有时当我离开NetBeans时,服务器不会停机。然后你必须杀死他们的进程,否则你将无法安装另一个由于端口冲突。找到服务器的进程是一件棘手的事情。当你使用“ps -A”时,进程的名称只是“java”,不知道它是服务器。

答案 7 :(得分:0)

您可以在文件local-password

上找到默认密码

在Windows上它就是 \应用程序数据\漫游\的NetBeans \ 7.4 \配置\ GF_4.0 \ domain1的\配置

On Linuix应该是这样的 的.netbeans .....

答案 8 :(得分:0)

点击服务 - >服务器 - > Glassfis服务器 - >特性

在对话框中,您会看到用户名= admin和密码= admin。清除密码字段。

答案 9 :(得分:0)

错误234594 - 由于缺少密码,无法使用以前安装的GlassFish

https://netbeans.org/bugzilla/show_bug.cgi?id=234594

答案 10 :(得分:0)

找到这个文件: ... GlassFish的\域\ DOMAIN1 \设置\本地密码 阅读并输入密码

答案 11 :(得分:0)

我遇到了同样的问题,这是针对 Netbeams 8.2 Glassfish 4.1.1 转到Tools > Servers并删除GlassFish Server。然后继续 使用此页面https://javaee.github.io/glassfish/download下载Glassfish 在 C:\ User \ YourUser 下创建一个文件夹。将文件夹命名为Glassfish_Server,然后将Zip文件放入其中。在NetBeans上,选择“添加服务器”,然后选择“ GlassFish Server”,使用浏览选项选择Zip文件所在的文件夹(在C:\ User上创建的文件夹),选择“下一步”并等待其完成。这应该绕过NetBeans 8.2和GlassFish 4.1.1中的Bug来解决Please check server admin user name and password properties.错误。

答案 12 :(得分:-1)

只需更新NB(Tools > Plugins > Updates)即可。我有同样的问题。所以,我更新了我的NB,然后问题就消失了。