如何解决glassfish 服务器状态错误:来自 ServletContext 的上下文路径:与来自包的路径不同:/|#]
在我插入用户名和密码后,我尝试从 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: /|#]
有什么提示吗?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。