有本事的看过来!!

码工码工 2006-12-11 12:03:41
Error processing 'META-INF/ejb-jar.xml': The public id, "-//W3C//DTD XHTML 1.0 Transitional//EN", specified in the XML document is invalid. Use one of the following valid public ids:
"-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN"
"-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"

]
at weblogic.appc.compileEJB(appc.java:781)
at weblogic.appc.compileInput(appc.java:463)
at weblogic.appc.runBody(appc.java:184)
at weblogic.utils.compiler.Tool.run(Tool.java:192)
at weblogic.utils.compiler.Tool.run(Tool.java:147)
at weblogic.appc.main(appc.java:1030)


出现问题的文件是ejb-jar.xml,其内容:
<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<display-name>EJBModule1</display-name>
<enterprise-beans>
<session>
<ejb-name>Converter</ejb-name>
<home>converter.ConverterHome</home>
<remote>converter.Converter</remote>
<ejb-class>converter.ConverterBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>
</enterprise-beans>
<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>Converter</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>

问题好像是出在doctype一项,但我改了几次,一直不行。。。

有本事的出招了~
...全文
106 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
许飘大叔 2006-12-11
  • 打赏
  • 举报
回复
用本地的dtd看看

81,092

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧