[jboss-user] [JBoss Getting Started Documentation] - Re: Duke's Bank Application Problem

HZH do-not-reply at jboss.com
Fri Nov 23 07:19:21 EST 2007


when i ccompile the Duke's Bank Application, it came the follwing errors:

E:\j2ee-1_3-doc-tutorial-draft5\j2eetutorial\bank>ant -f build.xml compile-inter
face
Buildfile: build.xml

init:

prepare:

compile-detail:

compile-exception:

compile-interface:
    [javac] Compiling 12 source files to E:\j2ee-1_3-doc-tutorial-draft5\j2eetut
orial\bank\build
    [javac] E:\j2ee-1_3-doc-tutorial-draft5\j2eetutorial\bank\src\com\sun\ebank\
ejb\account\Account.java:14: 软件åŒ
 javax.ejb 不存在
    [javac] import javax.ejb.EJBObject;
    [javac]                 ^
    [javac] E:\j2ee-1_3-doc-tutorial-draft5\j2eetutorial\bank\src\com\sun\ebank\
ejb\account\Account.java:18: 找不到符号
    [javac] 符号: 类 EJBObject
    [javac] public interface Account extends EJBObject {
    [javac]                                  ^
    [javac] E:\j2ee-1_3-doc-tutorial-draft5\j2eetutorial\bank\src\com\sun\ebank\
ejb\account\AccountController.java:15: 软件åŒ
 javax.ejb 不存在
    [javac] import javax.ejb.EJBObject;
    [javac]                 ^
    [javac] E:\j2ee-1_3-doc-tutorial-draft5\j2eetutorial\bank\src\com\sun\ebank\
ejb\account\AccountController.java:20: 找不到符号
    [javac] 符号: 类 EJBObject
    [javac] public interface AccountController extends EJBObject {
    [javac]                                            ^
    [javac] E:\j2ee-1_3-doc-tutorial-draft5\j2eetutorial\bank\src\com\sun\ebank\
ejb\account\AccountControllerHome.java:14: 软件åŒ
 javax.ejb 不存在
    [javac] import javax.ejb.CreateException;
    [javac]                 ^
    [javac] E:\j2ee-1_3-doc-tutorial-draft5\j2eetutorial\bank\src\com\sun\ebank\
ejb\account\AccountControllerHome.java:15: 软件åŒ
 javax.ejb 不存在
    [javac] import javax.ejb.EJBHome;
    [javac]                 ^
    [javac] E:\j2ee-1_3-doc-tutorial-draft5\j2eetutorial\bank\src\com\sun\ebank\
ejb\account\AccountControllerHome.java:18: 找不到符号
    [javac] 符号: 类 EJBHome
    [javac] public interface AccountControllerHome extends EJBHome {
    [javac]                                                ^
    [javac] E:\j2ee-1_3-doc-tutorial-draft5\j2eetutorial\bank\src\com\sun\ebank\
ejb\account\AccountControllerHome.java:20: 找不到符号
    [javac] 符号: 类 CreateException
    [javac] 位置: 接口 com.sun.ebank.ejb.account.AccountControllerHome
    [javac]     AccountController create() throws RemoteException, CreateExcepti
on;
    [javac]                                                        ^
    [javac] E:\j2ee-1_3-doc-tutorial-draft5\j2eetutorial\bank\src\com\sun\ebank\
ejb\account\AccountHome.java:14: 软件åŒ
 javax.ejb 不存在
    [javac] import javax.ejb.*;
    [javac] ^
    [javac] E:\j2ee-1_3-doc-tutorial-draft5\j2eetutorial\bank\src\com\sun\ebank\
ejb\account\AccountHome.java:18: 找不到符号
    [javac] 符号: 类 EJBHome
    [javac] public interface AccountHome extends EJBHome {
    [javac]                                      ^
    [javac] E:\j2ee-1_3-doc-tutorial-draft5\j2eetutorial\bank\src\com\sun\ebank\
ejb\account\AccountHome.java:23: 找不到符号
    [javac] 符号: 类 CreateException
    [javac] 位置: 接口 com.sun.ebank.ejb.account.AccountHome
    [javac]         throws RemoteException, CreateException, MissingPrimaryKeyEx
ception;
    [javac]                                 ^
    [javac] E:\j2ee-1_3-doc-tutorial-draft5\j2eetutorial\bank\src\com\sun\ebank\
ejb\account\AccountHome.java:26: 找不到符号
    [javac] 符号: 类 FinderException
    [javac] 位置: 接口 com.sun.ebank.ejb.account.AccountHome
    [javac]         throws FinderException, RemoteException;
    [javac]                ^
    [javac] E:\j2ee-1_3-doc-tutorial-draft5\j2eetutorial\bank\src\com\sun\ebank\
ejb\account\AccountHome.java:29: 找不到符号
    [javac] 符号: 类 FinderException
    [javac] 位置: 接口 com.sun.ebank.ejb.account.AccountHome
    [javac]         throws FinderException, RemoteException;
    [javac]                ^
    [javac] E:\j2ee-1_3-doc-tutorial-draft5\j2eetutorial\bank\src\com\sun\ebank\
ejb\customer\Customer.java:13: 软件åŒ
 javax.ejb 不存在
    [javac] import javax.ejb.EJBObject;
    [javac]                 ^
    [javac] E:\j2ee-1_3-doc-tutorial-draft5\j2eetutorial\bank\src\com\sun\ebank\
ejb\customer\Customer.java:17: 找不到符号
    [javac] 符号: 类 EJBObject
    [javac] public interface Customer extends EJBObject {
    [javac]                                   ^
    [javac] E:\j2ee-1_3-doc-tutorial-draft5\j2eetutorial\bank\src\com\sun\ebank\
ejb\customer\CustomerController.java:14: 软件åŒ
 javax.ejb 不存在
    [javac] import javax.ejb.EJBObject;
    [javac]                 ^
    [javac] E:\j2ee-1_3-doc-tutorial-draft5\j2eetutorial\bank\src\com\sun\ebank\
ejb\customer\CustomerController.java:19: 找不到符号
    [javac] 符号: 类 EJBObject
    [javac] public interface CustomerController extends EJBObject {
    [javac]                                             ^
    [javac] E:\j2ee-1_3-doc-tutorial-draft5\j2eetutorial\bank\src\com\sun\ebank\
ejb\customer\CustomerControllerHome.java:14: 软件åŒ
 javax.ejb 不存在
    [javac] import javax.ejb.CreateException;
    [javac]                 ^
    [javac] E:\j2ee-1_3-doc-tutorial-draft5\j2eetutorial\bank\src\com\sun\ebank\
ejb\customer\CustomerControllerHome.java:15: 软件åŒ
 javax.ejb 不存在
    [javac] import javax.ejb.EJBHome;
    [javac]                 ^
    [javac] E:\j2ee-1_3-doc-tutorial-draft5\j2eetutorial\bank\src\com\sun\ebank\
ejb\customer\CustomerControllerHome.java:18: 找不到符号
    [javac] 符号: 类 EJBHome
    [javac] public interface CustomerControllerHome extends EJBHome {
    [javac]                                                 ^
    [javac] E:\j2ee-1_3-doc-tutorial-draft5\j2eetutorial\bank\src\com\sun\ebank\
ejb\customer\CustomerControllerHome.java:20: 找不到符号
    [javac] 符号: 类 CreateException
    [javac] 位置: 接口 com.sun.ebank.ejb.customer.CustomerControllerHome
    [javac]     CustomerController create() throws RemoteException, CreateExcept
ion;
    [javac]                                                         ^
    [javac] E:\j2ee-1_3-doc-tutorial-draft5\j2eetutorial\bank\src\com\sun\ebank\
ejb\customer\CustomerHome.java:13: 软件åŒ
 javax.ejb 不存在
    [javac] import javax.ejb.*;
    [javac] ^
    [javac] E:\j2ee-1_3-doc-tutorial-draft5\j2eetutorial\bank\src\com\sun\ebank\
ejb\customer\CustomerHome.java:17: 找不到符号
    [javac] 符号: 类 EJBHome
    [javac] public interface CustomerHome extends EJBHome {
    [javac]                                       ^
    [javac] E:\j2ee-1_3-doc-tutorial-draft5\j2eetutorial\bank\src\com\sun\ebank\
ejb\customer\CustomerHome.java:23: 找不到符号
    [javac] 符号: 类 CreateException
    [javac] 位置: 接口 com.sun.ebank.ejb.customer.CustomerHome
    [javac]         throws RemoteException, CreateException, MissingPrimaryKeyEx
ception;
    [javac]                                 ^
    [javac] E:\j2ee-1_3-doc-tutorial-draft5\j2eetutorial\bank\src\com\sun\ebank\
ejb\customer\CustomerHome.java:26: 找不到符号
    [javac] 符号: 类 FinderException
    [javac] 位置: 接口 com.sun.ebank.ejb.customer.CustomerHome
    [javac]         throws FinderException, RemoteException;
    [javac]                ^
    [javac] E:\j2ee-1_3-doc-tutorial-draft5\j2eetutorial\bank\src\com\sun\ebank\
ejb\customer\CustomerHome.java:29: 找不到符号
    [javac] 符号: 类 FinderException
    [javac] 位置: 接口 com.sun.ebank.ejb.customer.CustomerHome
    [javac]         throws FinderException, RemoteException;
    [javac]                ^
    [javac] E:\j2ee-1_3-doc-tutorial-draft5\j2eetutorial\bank\src\com\sun\ebank\
ejb\customer\CustomerHome.java:32: 找不到符号
    [javac] 符号: 类 FinderException
    [javac] 位置: 接口 com.sun.ebank.ejb.customer.CustomerHome
    [javac]         throws FinderException, RemoteException;
    [javac]                ^
    [javac] E:\j2ee-1_3-doc-tutorial-draft5\j2eetutorial\bank\src\com\sun\ebank\
ejb\tx\Tx.java:13: 软件åŒ
 javax.ejb 不存在
    [javac] import javax.ejb.EJBObject;
    [javac]                 ^
    [javac] E:\j2ee-1_3-doc-tutorial-draft5\j2eetutorial\bank\src\com\sun\ebank\
ejb\tx\Tx.java:17: 找不到符号
    [javac] 符号: 类 EJBObject
    [javac] public interface Tx extends EJBObject {
    [javac]                             ^
    [javac] E:\j2ee-1_3-doc-tutorial-draft5\j2eetutorial\bank\src\com\sun\ebank\
ejb\tx\TxController.java:15: 软件åŒ
 javax.ejb 不存在
    [javac] import javax.ejb.EJBObject;
    [javac]                 ^
    [javac] E:\j2ee-1_3-doc-tutorial-draft5\j2eetutorial\bank\src\com\sun\ebank\
ejb\tx\TxController.java:20: 找不到符号
    [javac] 符号: 类 EJBObject
    [javac] public interface TxController extends EJBObject {
    [javac]                                       ^
    [javac] E:\j2ee-1_3-doc-tutorial-draft5\j2eetutorial\bank\src\com\sun\ebank\
ejb\tx\TxControllerHome.java:14: 软件åŒ
 javax.ejb 不存在
    [javac] import javax.ejb.CreateException;
    [javac]                 ^
    [javac] E:\j2ee-1_3-doc-tutorial-draft5\j2eetutorial\bank\src\com\sun\ebank\
ejb\tx\TxControllerHome.java:15: 软件åŒ
 javax.ejb 不存在
    [javac] import javax.ejb.EJBHome;
    [javac]                 ^
    [javac] E:\j2ee-1_3-doc-tutorial-draft5\j2eetutorial\bank\src\com\sun\ebank\
ejb\tx\TxControllerHome.java:18: 找不到符号
    [javac] 符号: 类 EJBHome
    [javac] public interface TxControllerHome extends EJBHome {
    [javac]                                           ^
    [javac] E:\j2ee-1_3-doc-tutorial-draft5\j2eetutorial\bank\src\com\sun\ebank\
ejb\tx\TxControllerHome.java:20: 找不到符号
    [javac] 符号: 类 CreateException
    [javac] 位置: 接口 com.sun.ebank.ejb.tx.TxControllerHome
    [javac]     TxController create() throws RemoteException, CreateException;
    [javac]                                                   ^
    [javac] E:\j2ee-1_3-doc-tutorial-draft5\j2eetutorial\bank\src\com\sun\ebank\
ejb\tx\TxHome.java:14: 软件åŒ
 javax.ejb 不存在
    [javac] import javax.ejb.*;
    [javac] ^
    [javac] E:\j2ee-1_3-doc-tutorial-draft5\j2eetutorial\bank\src\com\sun\ebank\
ejb\tx\TxHome.java:18: 找不到符号
    [javac] 符号: 类 EJBHome
    [javac] public interface TxHome extends EJBHome {
    [javac]                                 ^
    [javac] E:\j2ee-1_3-doc-tutorial-draft5\j2eetutorial\bank\src\com\sun\ebank\
ejb\tx\TxHome.java:23: 找不到符号
    [javac] 符号: 类 CreateException
    [javac] 位置: 接口 com.sun.ebank.ejb.tx.TxHome
    [javac]         throws RemoteException, CreateException, MissingPrimaryKeyEx
ception;
    [javac]                                 ^
    [javac] E:\j2ee-1_3-doc-tutorial-draft5\j2eetutorial\bank\src\com\sun\ebank\
ejb\tx\TxHome.java:26: 找不到符号
    [javac] 符号: 类 FinderException
    [javac] 位置: 接口 com.sun.ebank.ejb.tx.TxHome
    [javac]         throws FinderException, RemoteException;
    [javac]                ^
    [javac] E:\j2ee-1_3-doc-tutorial-draft5\j2eetutorial\bank\src\com\sun\ebank\
ejb\tx\TxHome.java:30: 找不到符号
    [javac] 符号: 类 FinderException
    [javac] 位置: 接口 com.sun.ebank.ejb.tx.TxHome
    [javac]         throws FinderException, RemoteException;
    [javac]                ^
    [javac] 40 错误

BUILD FAILED
E:\j2ee-1_3-doc-tutorial-draft5\j2eetutorial\bank\build.xml:58: Compile failed;
see the compiler error output for details.

could anyone be so kind to tell me why i got these errors?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107316#4107316

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107316




More information about the jboss-user mailing list