[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