没有定义XML的头文件.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">

解决方案 »

  1.   

    我添加了xml的头文件,可是又有新的问题了E:\code\work\hello>java weblogic.ejbc -compiler javac build\std_myfirstejb_hello
    .jar build\myfirstejb_hello.jar
    <2004-4-13 下午02时52分04秒> <Warning> <EJB> <EJB Deployment: MyFirstEJB has a c
    lass HelloBean which is in the classpath. This class should only be located in t
    he ejb-jar file.>
    <2004-4-13 下午02时52分05秒> <Warning> <EJB> <EJB Deployment: MyFirstEJB has a c
    lass HelloHome which is in the classpath. This class should only be located in t
    he ejb-jar file.>
    <2004-4-13 下午02时52分05秒> <Warning> <EJB> <EJB Deployment: MyFirstEJB has a c
    lass Hello which is in the classpath. This class should only be located in the e
    jb-jar file.>
    ERROR: Could not create a backup file E:\code\work\hello\build\myfirstejb_hello.
    jarSAVE谁可以帮忙,,在线等待
      

  2.   

    再次修改,原来是我便宜的*.java文件的.class文件存放位置错误,可是还是有错,如下:E:\code\work\hello>java weblogic.ejbc -compiler javac build\std_myfirstejb_hello
    .jar build\myfirstejb_hello.jar
    ERROR: Could not create a backup file E:\code\work\hello\build\myfirstejb_hello.
    jarSAVE各位大侠,出手帮帮忙~谢了