0

我在 Eclipse Juno 和 Kepler 中尝试了 GlassFish 4.0 和 3.1 Final,但无法正常工作。我在 Eclipse Market 上下载了适用于 Kepler/Juno 的 GlassFish Tools。如果我尝试运行它只是加载直到时间用完。在目录“glassfish 3.1\glassfish3\bin”中,我打开“asadmin.bat”并尝试使用“start-domain”代码,服务器已经启动,但有时它只是无限加载。当服务器启动时,我在浏览器中打开“localhost:4848”,我得到的只是“状态:管理控制台应用程序已加载”。这是无限加载(如果我刷新页面它会变成空白什么都不做)..我运行Windows 7 Professional N 64x。

知道我该怎么做吗?

编辑:我在朋友的电脑上尝试了相同的设置,它可以工作,但我需要这个!我得到了这些错误:

Blockquote SEVERE:SEC5054:证书已过期:

Blockquote 严重:DPL8015:存档 [_ admingui] 中部署描述符文件 WEB-INF/web.xml 中的部署描述符无效。第 116 行第 42 列——src-resolve:无法将名称“javaee:web-appType”解析为(n)“类型定义”组件。严重:DPL8005:部署描述符解析失败:src-resolve:无法将名称“javaee:web-appType”解析为(n)“类型定义”组件。严重:部署应用程序时出现异常 [_admingui] 严重:org.xml.sax.SAXParseExceptionpublicId:文件:/E:/Šola/2.Letnik/2.Semester/Praktikum/Projekt%20po%20roku/glassfish%203.1/glassfish3/glassfish/lib/schemas/web- app_3_0.xsd;行号:116;列号:42;档案 [__admingui] 中的部署描述符文件 WEB-INF/web.xml。src-resolve:无法将名称“javaee:web-appType”解析为(n)“类型定义”component.java.io.IOException:org.xml.sax.SAXParseExceptionpublicId:文件:/E:/Šola/2。 Letnik/2.Semester/Praktikum/Projekt%20po%20roku/glassfish%203.1/glassfish3/glassfish/lib/schemas/web-app_3_0.xsd;行号:116;列号:42;档案 [__admingui] 中的部署描述符文件 WEB-INF/web.xml。src-resolve:无法将名称“javaee:web-appType”解析为(n)“类型定义”组件。在 org.glassfish.javaee.core.deployment。1/glassfish3/glassfish/lib/schemas/web-app_3_0.xsd;行号:116;列号:42;档案 [__admingui] 中的部署描述符文件 WEB-INF/web.xml。src-resolve:无法将名称“javaee:web-appType”解析为(n)“类型定义”组件。在 com.sun.enterprise.deployment.io.DeploymentDescriptorFile.read(DeploymentDescriptorFile.java:315) 在 com.sun.enterprise.deployment.io.DeploymentDescriptorFile.read(DeploymentDescriptorFile.java:236) 在 com.sun.enterprise.deployment .archivist.Archivist.readStandardDeploymentDescriptor(Archivist.java:639) 在 com.sun.enterprise.deployment.archivist.Archivist.readDeploymentDescriptors(Archivist.java:376) 在 com.sun.enterprise.deployment.archivist.Archivist.open(Archivist .java:246) 在 com.sun.enterprise.deployment.archivist.Archivist.open(Archivist. java:255) 在 com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:216) 在 com.sun.enterprise.deployment.archivist.ApplicationFactory.openArchive(ApplicationFactory.java:165) 在 org.glassfish .javaee.core.deployment.DolProvider.load(DolProvider.java:180) ... 7 moreCaused by: org.xml.sax.SAXParseException; systemId:文件:/E:/Šola/2.Letnik/2.Semester/Praktikum/Projekt%20po%20roku/glassfish%203.1/glassfish3/glassfish/lib/schemas/web-app_3_0.xsd;行号:116;列号:42;src-resolve:无法将名称“javaee:web-appType”解析为(n)“类型定义”组件。在 com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:198) 在 com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:

严重:部署应用程序时出现异常 [__admingui]

4

3 回答 3

3

并尝试安装到 Glassfish 路径中只有拉丁字符的目录中。我在带有西里尔文文件夹名称的目录中有 Glassfish,但由于此错误而无法启动:

java.io.IOException: org.xml.sax.SAXParseExceptionpublicId: file:/C:/Users/Сергей/Downloads/glassfish-4.1-web/glassfish4/glassfish/lib/schemas/web-app_3_0.xsd; lineNumber: 116; columnNumber: 42; Deployment descriptor file WEB-INF/web.xml in archive [__admingui].  src-resolve: Cannot resolve the name 'javaee:web-appType' to a(n) 'type definition' component.

然后我将它移到文件夹路径中没有'Сергей'的'F:\'并且它起作用了

于 2014-12-15T20:41:40.163 回答
2

尝试在不包含空格的路径中重新安装 Glassfish。Eclipse Marketplace 上的 Glassfish 工具版本也可能存在问题(从那里安装时我一直无法让它工作),我会仔细检查并确保您从那里获得的 Glassfish 工具Eclipse Marketplace 与来自此更新服务器的相同:http://download.oracle.com/otn_software/12.1.2.1/kepler

于 2013-08-24T05:48:14.363 回答
0

尝试下载 Glassfish 5。

于 2016-09-09T13:46:51.003 回答