我试图运行Glassfish 4使用Netbean 7.4 IDE,但我收到一个错误对话框,如
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 ]]
是否需要在管理员模式下运行Netbean 7.4?(我尝试过,但收到了相同的错误)。
请帮我用Netbean 7.4运行Glassfish 4
您可以尝试从NetBeans(选项卡服务)中删除服务器-
我开通了服务
出于某种原因,他们在安装了Netbeans 7.4(目前是Apache Tomcat 7.0.41.0和GlassFishServer 4.0)的两台Web服务器上都添加了随机生成的密码。
要了解这些密码是什么,请执行以下操作:
在某种程度上,有现成的好密码是一件好事,因此它可以立即处理外部访问问题。但弄明白这一点肯定很烦人。
下面是关于shell和gui的信息,如果上面解决了您的问题,则无需进一步阅读。
更新:原来这个密码是从一个文本文件中提取出来的,在我的系统中,这个文件位于~/glassfish-4.0/glassfish/domains/domain1/config/local-password
警告:手动更新该文件不是个好主意!(见更新2)
如果你要从终端管理玻璃鱼,后者是好的。
更新2:在以前的版本中,可以直接更新上面列出的文件,这将不再起作用,并会破坏东西。在没有图形用户界面的新鲜玻璃鱼安装上,将密码更改为已知状态。
在干净的安装上使用Glassfish 4.1或更高版本,在asadmin外壳内执行以下操作:
输入:更改管理员密码
现在输入“admin”(默认值)两次。现在输入两次新的非空密码。输入:启用安全管理
完成上述操作后,您可以从不同的主机远程登录。此设置适合开发需求,但对于生产需求,请参阅glassfish留档了解进一步的安全限制(如何限制到特定域的端口)。
PS:如果你确实通过编辑密码文件破坏了它,因为它是一个新安装,只需再次解压glassfish,并在其上复制该文件即可。
下面的代码不能正常工作,总是打印第一个的。这是在bbb上运行的。有人能找到错误吗?我知道这很愚蠢,但我找不到。
我正在寻找一种方法来保护PDF文件的密码在飞行中,而不必存储用户的密码在明文。 我想做的是根据PDF规范生成用户和所有者密钥,并使用这些密钥加密文档的字符串和流。是否存在支持此功能的库?
我将生成的salt前缀存储到加密文件。密码不存储,只有用户知道。 解决方案奏效了。我的问题是,今天这个解决方案是否足够好和安全?
当我试图在Android Studio上构建另一台计算机上(而不是在生成密钥的PC上)的签名APK文件时,出现了错误:
当我执行这段代码时,输出是“140”,也就是“28*5”,但它应该是“150”,也就是“28+31+30+31+30”,它应该计算两个月“2月”和“7月”之间的天数...所以这意味着for循环不能正常工作还是怎么的?为什么会这样!你能帮我一下吗??PS:我试图将循环中的j++更改为j+1,但Android Studio说“这不是一个声明”
我已经生成了一个带有视觉效果的Dockerfile 当我将复制更改为它确实在继续,然后我得到: 我做错了什么?我将DockerLinux更改为Windows,更改了WSL,并重新启动了一切。 Dockerfile客户端