Java Glassfish sun-ejb-jar.xml DTD部署错误

Java Glassfish sun-ejb-jar.xml DTD部署错误,java,deployment,glassfish,ejb,dtd,Java,Deployment,Glassfish,Ejb,Dtd,我尝试在Glassfish中部署era归档,使用非常简单的带有DTD字符串的sun ej jar文件: <!DOCTYPE sun-ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 9.1.1 EJB 3.0//EN" "http://www.sun.com/software/appserver/dtds/sun-ejb-jar_3_0-1.dtd"> 注意事项: 装有glassfish的计算机无法访

我尝试在Glassfish中部署era归档,使用非常简单的带有DTD字符串的sun ej jar文件:

<!DOCTYPE sun-ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 9.1.1 EJB 3.0//EN" "http://www.sun.com/software/appserver/dtds/sun-ejb-jar_3_0-1.dtd">
注意事项:

  • 装有glassfish的计算机无法访问Internet
  • 我将sun-ejb-jar_3_0-1.dtd放在glassfish\lib\dtds文件夹中
  • DTD字符串与sun-ejb-jar_3_0-1.DTD(第49行)中的字符串完全相同
  • 如果我将“应用程序服务器9.1.1”替换为“应用程序服务器9.0”,则应用程序eploys不会出现任何错误 我使用glassfish 3.1.2

    有人知道这个问题吗

    p.S.server.log包含带有DTD验证错误的堆栈跟踪,没有有用的内容

    “Error occurred during deployment: Exception while deploying the app [app]: Unable to locate the DTD to validate your deployment descriptor file [META-INF/sun-ejb-jar.xml] in archive [app-ejb-1.2.0-SNAPSHOT_jar]. Please make sure the DOCTYPE is correct (no type in public ID or system Id) and you have proper access to the internet.. Please see sever.log for more details.”