上面忘了说,服务器是JBOSS4.0
...........

解决方案 »

  1.   

    有可能是你的编码不是utf-8的。
      

  2.   

    郁闷啊~~~
    用Sun Microsystems的Deploytool来打包成JAR文件
    就可以在JBOSS里部署
    它自己生成的ejb-jar.xml和我上面的只有一点点不同~~
    到底我自己写的这个ejb-jar.xml哪里错了?????????
      

  3.   

    多半是你的编码有问题,或者里面有不是UTF-8编码的字符。
    你可以用XMLSpy检查你的ejb-jarxml看看。
      

  4.   

    ejb-jar.xml must either obey the right
       xml schema or define a valid DOCTYPE!
    呵呵,跟人家对照一下什么不同啊
      

  5.   

    你得ejb-jar.xml文件少了,把它加上就可以了。
     --------------------------------------------------------------
       ejb-jar.xml
      ---------------------------------------------------------------
       <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans  1.1//EN" "http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd">   <ejb-jar>
    <description>JBoss Hello Application</description>
    <display-name>Hello Bean</display-name>
    <enterprise-beans>
    <session>
    <ejb-name>Hello</ejb-name>
    <home>gg.mm.HelloHome</home>
    <remote>gg.mm.HelloRemote</remote>
    <ejb-class>gg.mm.Hello</ejb-class>
    <session-type>Stateless</session-type>
    <transaction-type>Bean</transaction-type>
    </session>
    </enterprise-beans>
       </ejb-jar>