1 Reply Latest reply on Feb 10, 2005 2:26 PM by Eric Dobbs

    Duke Bank Tutorial Problems - Missing EJB's

    Eric Dobbs Newbie

      My code will not compile. When I try to build the application I get the following:



      Buildfile: jboss-build.xml

      prepare:

      compile:
      [javac] Compiling 5 source files to C:\tutorial\examples\bank\build
      [javac] C:\tutorial\examples\bank\src\com\jboss\ebank\TellerBean.java:16: p
      ckage com.sun.ebank.ejb.account does not exist
      [javac] import com.sun.ebank.ejb.account.AccountController;
      [javac] ^
      [javac] C:\tutorial\examples\bank\src\com\jboss\ebank\TellerBean.java:17: p
      ckage com.sun.ebank.ejb.account does not exist
      [javac] import com.sun.ebank.ejb.account.AccountControllerHome;
      [javac] ^
      [javac] C:\tutorial\examples\bank\src\com\jboss\ebank\TellerBean.java:18: p
      ckage com.sun.ebank.util does not exist
      [javac] import com.sun.ebank.util.AccountDetails;
      [javac] ^
      [javac] C:\tutorial\examples\bank\src\com\jboss\ebank\TellerBean.java:26: c
      nnot resolve symbol
      [javac] symbol : class AccountController
      [javac] location: class com.jboss.ebank.TellerBean
      [javac] private AccountController getController()
      [javac] ^
      [javac] C:\tutorial\examples\bank\src\com\jboss\ebank\web\CustomerHackFilte
      .java:5: package com.sun.ebank.util does not exist
      [javac] import com.sun.ebank.util.Debug;
      [javac] ^
      [javac] C:\tutorial\examples\bank\src\com\jboss\ebank\web\CustomerHackFilte
      .java:6: package com.sun.ebank.web does not exist
      [javac] import com.sun.ebank.web.*;
      [javac] ^
      [javac] C:\tutorial\examples\bank\src\com\jboss\ebank\TellerBean.java:32: c
      nnot resolve symbol
      [javac] symbol : class AccountControllerHome
      [javac] location: class com.jboss.ebank.TellerBean
      [javac] AccountControllerHome home = (AccountControllerHome)
      [javac] ^
      [javac] C:\tutorial\examples\bank\src\com\jboss\ebank\TellerBean.java:32: c
      nnot resolve symbol
      [javac] symbol : class AccountControllerHome
      [javac] location: class com.jboss.ebank.TellerBean
      [javac] AccountControllerHome home = (AccountControllerHome)
      [javac] ^
      [javac] C:\tutorial\examples\bank\src\com\jboss\ebank\TellerBean.java:40: c
      nnot resolve symbol
      [javac] symbol : class AccountController
      [javac] location: class com.jboss.ebank.TellerBean
      [javac] AccountController mgr = getController();
      [javac] ^
      [javac] C:\tutorial\examples\bank\src\com\jboss\ebank\TellerBean.java:41: c
      nnot resolve symbol
      [javac] symbol : class AccountDetails
      [javac] location: class com.jboss.ebank.TellerBean
      [javac] AccountDetails details = mgr.getDetails(accountID);
      [javac] ^
      [javac] C:\tutorial\examples\bank\src\com\jboss\ebank\TellerBean.java:53: c
      nnot resolve symbol
      [javac] symbol : class AccountController
      [javac] location: class com.jboss.ebank.TellerBean
      [javac] AccountController mgr = getController();
      [javac] ^
      [javac] C:\tutorial\examples\bank\src\com\jboss\ebank\TellerBean.java:60: c
      nnot resolve symbol
      [javac] symbol : class AccountDetails
      [javac] location: class com.jboss.ebank.TellerBean
      [javac] AccountDetails details = (AccountDetails) it_list.next(
      ;
      [javac] ^
      [javac] C:\tutorial\examples\bank\src\com\jboss\ebank\TellerBean.java:60: c
      nnot resolve symbol
      [javac] symbol : class AccountDetails
      [javac] location: class com.jboss.ebank.TellerBean
      [javac] AccountDetails details = (AccountDetails) it_list.next(
      ;
      [javac] ^
      [javac] C:\tutorial\examples\bank\src\com\jboss\ebank\web\CustomerHackFilte
      .java:40: cannot resolve symbol
      [javac] symbol : class BeanManager
      [javac] location: class com.jboss.ebank.web.CustomerHackFilter
      [javac] BeanManager beanManager =
      [javac] ^
      [javac] C:\tutorial\examples\bank\src\com\jboss\ebank\web\CustomerHackFilte
      .java:41: cannot resolve symbol
      [javac] symbol : class BeanManager
      [javac] location: class com.jboss.ebank.web.CustomerHackFilter
      [javac] (BeanManager) session.getAttribute("beanManager");
      [javac] ^
      [javac] C:\tutorial\examples\bank\src\com\jboss\ebank\web\CustomerHackFilte
      .java:44: cannot resolve symbol
      [javac] symbol : variable Debug
      [javac] location: class com.jboss.ebank.web.CustomerHackFilter
      [javac] Debug.print("hack - Creating bean manager.");
      [javac] ^
      [javac] C:\tutorial\examples\bank\src\com\jboss\ebank\web\CustomerHackFilte
      .java:45: cannot resolve symbol
      [javac] symbol : class BeanManager
      [javac] location: class com.jboss.ebank.web.CustomerHackFilter
      [javac] beanManager = new BeanManager();
      [javac] ^
      [javac] C:\tutorial\examples\bank\src\com\jboss\ebank\web\CustomerHackFilte
      .java:49: cannot resolve symbol
      [javac] symbol : class CustomerBean
      [javac] location: class com.jboss.ebank.web.CustomerHackFilter
      [javac] CustomerBean customerBean = new CustomerBean();
      [javac] ^
      [javac] C:\tutorial\examples\bank\src\com\jboss\ebank\web\CustomerHackFilte
      .java:49: cannot resolve symbol
      [javac] symbol : class CustomerBean
      [javac] location: class com.jboss.ebank.web.CustomerHackFilter
      [javac] CustomerBean customerBean = new CustomerBean();
      [javac] ^
      [javac] C:\tutorial\examples\bank\src\com\jboss\ebank\web\CustomerHackFilte
      .java:52: cannot resolve symbol
      [javac] symbol : variable Debug
      [javac] location: class com.jboss.ebank.web.CustomerHackFilter
      [javac] Debug.print("hack - added customerBean to request");
      [javac] ^
      [javac] 20 errors

      BUILD FAILED


      Please help