Glassfish 管理员永久加载

Glassfish 管理员永久加载

我已经在我的 Mac 机器上下载了 .sh 包Glassfish 3.1.2,并启动了服务器./asadmin stat-domain,并尝试访问 URLhttp://localhost:4848/

但页面一直在加载,我refreshing也尝试了该页面但没有成功

以下是我的 Mac 机器上的 Java 配置

java version "1.6.0_22"

Java(TM) SE Runtime Environment (build 1.6.0_22-b04-307-10M3261)

Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03-307, mixed mode)

JAVA_HOME我在安装之前已经设置好了glassfish

/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home

以下是server.log我不知道我在这里遗漏了什么

[#|2013-04-20T23:12:22.137+0530|SEVERE|glassfish3.1.2|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=20;_ThreadName=Thread-2;|java.lang.ExceptionInInitializerError
    at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.<init>(XMLSchemaValidator.java:1094)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.configurePipeline(XML11Configuration.java:1149)
    at com.sun.org.apache.xerces.internal.parsers.XIncludeAwareParserConfiguration.configurePipeline(XIncludeAwareParserConfiguration.java:151)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:778)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
    at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
    at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
    at com.sun.enterprise.deployment.io.DeploymentDescriptorFile.read(DeploymentDescriptorFile.java:306)
    at com.sun.enterprise.deployment.io.DeploymentDescriptorFile.read(DeploymentDescriptorFile.java:233)
    at com.sun.enterprise.deployment.archivist.Archivist.readStandardDeploymentDescriptor(Archivist.java:631)
    at com.sun.enterprise.deployment.archivist.Archivist.readDeploymentDescriptors(Archivist.java:373)
    at com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:243)
    at com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:252)
    at com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:213)
    at com.sun.enterprise.deployment.archivist.ApplicationFactory.openArchive(ApplicationFactory.java:165)
    at org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:185)
    at org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:94)
    at com.sun.enterprise.v3.server.ApplicationLifecycle.loadDeployer(ApplicationLifecycle.java:827)
    at com.sun.enterprise.v3.server.ApplicationLifecycle.setupContainerInfos(ApplicationLifecycle.java:769)
    at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:368)
    at com.sun.enterprise.v3.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:375)
    at com.sun.enterprise.v3.admin.adapter.InstallerThread.load(InstallerThread.java:210)
    at com.sun.enterprise.v3.admin.adapter.InstallerThread.run(InstallerThread.java:108)
Caused by: com.sun.org.apache.xerces.internal.impl.dv.DVFactoryException: Schema factory class com.sun.org.apache.xerces.internal.impl.dv.xs.SchemaDVFactoryImpl does not extend from SchemaDVFactory.
    at com.sun.org.apache.xerces.internal.impl.dv.SchemaDVFactory.getInstance(SchemaDVFactory.java:71)
    at com.sun.org.apache.xerces.internal.impl.dv.SchemaDVFactory.getInstance(SchemaDVFactory.java:52)
    at com.sun.org.apache.xerces.internal.impl.xs.SchemaGrammar$BuiltinSchemaGrammar.<init>(SchemaGrammar.java:158)
    at com.sun.org.apache.xerces.internal.impl.xs.SchemaGrammar.<clinit>(SchemaGrammar.java:904)
    ... 25 more

答案1

我遇到了类似的问题,payara4.(某物)——我追踪到它被捆绑在模块目录中的文件——它包含一个 xerces 实现——

如果您运行以下命令:

find <payara-dir> -name '*.jar' -exec grep -Hls SchemaDVFactory {} \;

您将找到一个包含该类的 jar 文件。问题是 rt.jar 还包含一个实现。我找到了这个

../glassfish/modules/aixporting-repackaged.jar

在我的系统上

末日审判 我认为您可能已经下载了包含捆绑的 xerces 实现的 aix 版本的 payara。

解决方案 下载正确(非 aix)版本的 payara

答案2

您是否尝试过禁用 Mac 上的所有网络连接,然后重试浏览http://localhost:4848/?这可能表明 JVM 存在问题。(声誉太低,无法评论)

答案3

您使用的是哪种浏览器?在 Mac 版 Safari 和 Chrome 上,glassfhish 的管理控制台“无法加载”的问题层出不穷。不过,在 Firefox 中加载正常。另外,根据说明,您是否启用了安全管理?如果启用了,则应该是 https,而不是 http。

相关内容