weblogic7问题求助!!

03-11-19 朱雀火羽
昨晚写程序到现在,在weblogic7.0上一直调不过去请各位大人帮忙分析一下错误!!
具体错误如下:


C:\bea\user_projects\mydomain\hello>java weblogic.ejbc -compiler javac build\std
_myfirstejb_hello.jar build\myfirstejb_hello.jar



ERROR: ejbc found errors while processing the descriptor for build\std_myfirstej
b_hello.jar:



ERROR: Error from ejbc: Error processing 'ejb-jar.xml': The public id, "-//Sun M
icrosystems,Inc.//DTD Enterprise JavaBeans 1.1//EN", specified in the XML docume
nt 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"



ERROR: ejbc found errors



我的xml代码如下:
ejb-jar.xml:

<?xml version="1.0" encoding="gb2312"?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems,Inc.//DTD Enterprise JavaBeans 2.0//EN" 'http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd'>
<!--EJB说明文件-->
<ejb-jar>
<small-icon>images/green-cube.gif</small-icon>
<enterprise-beans>
<!--定义会话EJB-->
<session>
<small-icon>images/orange-cube.gif</small-icon>
<!--定义会话EJB名-->
<ejb-name>MyFirstEJB</ejb-name>
<!--定义会话EJB主接口名-->
<home>HelloHome</home>
<!--定义会话EJB远程接口名-->
<remote>Hello</remote>
<!--定义会话EJB实现类名-->
<ejb-class>HelloBean</ejb-class>
<!--定义会话EJB类型-->
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>
</enterprise-beans>
<!--定义会话EJB装配描述-->
<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>MyFirstEJB</ejb-name>
<method-intf>Remote</method-intf>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>


总是说我
"-//Sun M
icrosystems,Inc.//DTD Enterprise JavaBeans 1.1//EN", specified in the XML docume
nt 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"

可是我的xml文件中就是这么写的呀!!到底是怎么回事?请各位大人帮忙看一下!!
好累~~~看了一晚上的代码,去hu~~~hu~~~了,我下午给分!!!