在插入用户和密码后,我尝试从netbeans启动glassfish,但netbeans弹出一条错误消息:
检查glassfish服务器状态时授权失败。请提供有效的管理凭据
我确信,而且我已经检查过很多次了,我的证件是对的。我认为这个问题与下面服务器日志输出的最后一行有关;最后一行写着:
servletcontext的上下文路径:与bundle的路径不同:/|#]
以下是glassfish的整个输出日志:
>
> Java HotSpot(TM) Client VM warning: ignoring option MaxPermSize=192m;
> support was removed in 8.0 Launching GlassFish on Felix platform
> INFORMAZIONI: Create bundle provisioner class = class
> com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner.
> AVVERTENZA: Skipping entry because it is not an absolute URI.
> AVVERTENZA: Skipping entry because it is not an absolute URI.
> Registered
> com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishRuntime@e9ac86
> in service registry.
> #!## LogManagerService.postConstruct : rootFolder=C:\Users\paolo\Downloads\java_ee_sdk-8u1\glassfish5\glassfish
> #!## LogManagerService.postConstruct : templateDir=C:\Users\paolo\Downloads\java_ee_sdk-8u1\glassfish5\glassfish\lib\templates
> #!## LogManagerService.postConstruct : src=C:\Users\paolo\Downloads\java_ee_sdk-8u1\glassfish5\glassfish\lib\templates\logging.properties
> #!## LogManagerService.postConstruct : dest=C:\Users\paolo\Downloads\java_ee_sdk-8u1\glassfish5\glassfish\domains\domain1\config\logging.properties
> Running GlassFish Version: GlassFish Server Open Source Edition 5.0.1
> (build 5)|#] Server log file is using Formatter class:
> com.sun.enterprise.server.logging.ODLLogFormatter|#] Realm
> [admin-realm] of classtype
> [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully
> created.|#] Realm [file] of classtype
> [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully
> created.|#] Realm [certificate] of classtype
> [com.sun.enterprise.security.auth.realm.certificate.CertificateRealm]
> successfully created.|#] Registered
> org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for
> persistence-type = replicated in BackingStoreFactoryRegistry|#]
> Authorization Service has successfully initialized.|#] Grizzly
> Framework 2.4.3 started in: 61ms - bound to [/0.0.0.0:8080]|#]
> Grizzly Framework 2.4.3 started in: 2ms - bound to [/0.0.0.0:8181]|#]
> Grizzly Framework 2.4.3 started in: 3ms - bound to [/0.0.0.0:4848]|#]
> Grizzly Framework 2.4.3 started in: 3ms - bound to [/0.0.0.0:3700]|#]
> GlassFish Server Open Source Edition 5.0.1 (5) startup time : Felix
> (7.780ms), startup services(1.268ms), total(9.048ms)|#] JTS5014:
> Recoverable JTS instance, serverId = [100]|#] Grizzly Framework
> 2.4.3 started in: 2ms - bound to [/0.0.0.0:7676]|#] Registered com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishImpl@160bcdf
> as OSGi service registration:
> org.apache.felix.framework.ServiceRegistrationImpl@1558294.|#]
> JMXStartupService has started JMXConnector on JMXService URL
> service:jmx:rmi://DESKTOP-9JQG083:8686/jndi/rmi://DESKTOP-9JQG083:8686/jmxrmi|#]
> Skipping registration of inhabitant for service reference
> [org.osgi.service.cm.ManagedService] as the service object could not
> be obtained.|#] Skipping registration of inhabitant for service
> reference [org.osgi.service.metatype.MetaTypeProvider] as the service
> object could not be obtained.|#] HV000001: Hibernate Validator
> 6.0.10.Final|#] Grizzly Framework 2.4.3 started in: 3ms - bound to [/0.0.0.0:8080]|#] Grizzly Framework 2.4.3 started in: 3ms - bound
> to [/0.0.0.0:8181]|#] visiting unvisited references|#] Created
> HTTP listener http-listener-1 on host/port 0.0.0.0:8080|#] Created
> HTTP listener http-listener-2 on host/port 0.0.0.0:8181|#] Created
> HTTP listener admin-listener on host/port 0.0.0.0:4848|#] Created
> virtual server server|#] Created virtual server __asadmin|#]
> Setting JAAS app name glassfish-web|#] Virtual server server loaded
> default web module |#] Java security manager is disabled.|#]
> Entering Security Startup Service.|#] Loading policy provider
> com.sun.enterprise.security.provider.PolicyWrapper.|#] Security
> Service(s) started successfully.|#] visiting unvisited references|#]
> visiting unvisited references|#] visiting unvisited references|#]
> Listening to REST requests at context: /management/domain.|#]
> Initializing Mojarra 2.3.2 ( 20170627-2139
> e63598abf2ed2bb1a24674f308a734e0dce18a72) for context ''|#] Loading
> application [__admingui] at [/]|#] Loading application __admingui
> done in 7.938 ms|#] Context path from ServletContext: differs from
> path from bundle: /|#]
有什么提示吗?
暂无答案!
目前还没有任何答案,快来回答吧!