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 (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...