gpt4 book ai didi

netbeans-7 - Glassfish 4 Admin 未从 Netbeans 7.4 运行(密码不正确)

转载 作者:行者123 更新时间:2023-12-02 11:25:54 30 4
gpt4 key购买 nike

我尝试使用 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

最佳答案

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

要了解这些密码是什么:

  1. 点击“服务”选项卡。
  2. 展开服务器下拉节点(如果尚未展开)。
  3. 右键单击您需要密码的网络服务器 > 选择属性
  4. 在打开的对话窗口中,有一个密码字段,右侧有一个显示按钮,单击显示即可得到答案。

从某种意义上说,开箱即用的良好密码是件好事,因此它可以立即解决外部访问问题。但弄清楚这一点确实很烦人。

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

<小时/>

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

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

如果您要从终端管理 glassfish,则后者比较好。

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

在全新安装中使用 Glassfish 4.1 或更高版本,在 asadmin shell 中执行以下命令:

输入:更改管理员密码现在输入“admin”(默认值)两次。现在输入新的非空密码两次。输入:enable-secure-admin

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

PS:如果您确实通过编辑破解了密码文件,因为它是新安装,只需再次解压缩 glassfish 并自行复制该文件即可。

关于netbeans-7 - Glassfish 4 Admin 未从 Netbeans 7.4 运行(密码不正确),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18362037/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com