2 Replies Latest reply on Jul 14, 2005 1:20 PM by Mark Waschkowski

    problems during compilation of Duke's Bank App

    vivi vivi Newbie

      I have jboss 4.0 and I tried to compile the Duke's Bank App. I have configured jboss-build.properties.
      The result of compilation is follow:
      ................................
      ................................

      [javac] Files to be compiled:
      [javac] D:\Programmi\j2eetutorial14\examples\bank\src\com\jboss\ebank\TellerBean.java
      [javac] D:\Programmi\j2eetutorial14\examples\bank\src\com\jboss\ebank\TellerEndpoint.java
      [javac] D:\Programmi\j2eetutorial14\examples\bank\src\com\jboss\ebank\WSClient.java
      [javac] D:\Programmi\j2eetutorial14\examples\bank\src\com\jboss\ebank\TellerBean.java:15: package com.sun.ebank.ejb
      [javac] import com.sun.ebank.ejb.account.AccountController;
      [javac] ^
      [javac] D:\Programmi\j2eetutorial14\examples\bank\src\com\jboss\ebank\TellerBean.java:16: package com.sun.ebank.ejb
      [javac] import com.sun.ebank.ejb.account.AccountControllerHome;
      [javac] ^
      [javac] D:\Programmi\j2eetutorial14\examples\bank\src\com\jboss\ebank\TellerBean.java:17: package com.sun.ebank.uti
      [javac] import com.sun.ebank.util.AccountDetails;
      [javac] ^
      [javac] D:\Programmi\j2eetutorial14\examples\bank\src\com\jboss\ebank\TellerBean.java:25: cannot resolve symbol
      [javac] symbol : class AccountController
      [javac] location: class com.jboss.ebank.TellerBean
      [javac] private AccountController getController()
      [javac] ^
      [javac] D:\Programmi\j2eetutorial14\examples\bank\src\com\jboss\ebank\TellerBean.java:31: cannot resolve symbol
      [javac] symbol : class AccountControllerHome
      [javac] location: class com.jboss.ebank.TellerBean
      [javac] AccountControllerHome home = (AccountControllerHome)
      [javac] ^
      [javac] D:\Programmi\j2eetutorial14\examples\bank\src\com\jboss\ebank\TellerBean.java:31: cannot resolve symbol
      [javac] symbol : class AccountControllerHome
      [javac] location: class com.jboss.ebank.TellerBean
      [javac] AccountControllerHome home = (AccountControllerHome)
      [javac] ^
      [javac] D:\Programmi\j2eetutorial14\examples\bank\src\com\jboss\ebank\TellerBean.java:39: cannot resolve symbol
      [javac] symbol : class AccountController
      [javac] location: class com.jboss.ebank.TellerBean
      [javac] AccountController mgr = getController();
      [javac] ^
      [javac] D:\Programmi\j2eetutorial14\examples\bank\src\com\jboss\ebank\TellerBean.java:40: cannot resolve symbol
      [javac] symbol : class AccountDetails
      [javac] location: class com.jboss.ebank.TellerBean
      [javac] AccountDetails details = mgr.getDetails(accountID);
      [javac] ^
      [javac] D:\Programmi\j2eetutorial14\examples\bank\src\com\jboss\ebank\TellerBean.java:52: cannot resolve symbol
      [javac] symbol : class AccountController
      [javac] location: class com.jboss.ebank.TellerBean
      [javac] AccountController mgr = getController();
      [javac] ^
      [javac] D:\Programmi\j2eetutorial14\examples\bank\src\com\jboss\ebank\TellerBean.java:59: cannot resolve symbol
      [javac] symbol : class AccountDetails
      [javac] location: class com.jboss.ebank.TellerBean
      [javac] AccountDetails details = (AccountDetails) it_list.next();
      [javac] ^
      [javac] D:\Programmi\j2eetutorial14\examples\bank\src\com\jboss\ebank\TellerBean.java:59: cannot resolve symbol
      [javac] symbol : class AccountDetails
      [javac] location: class com.jboss.ebank.TellerBean
      [javac] AccountDetails details = (AccountDetails) it_list.next();
      [javac] ^
      [javac] 11 errors

      BUILD FAILED
      D:\Programmi\j2eetutorial14\examples\bank\jboss-build.xml:62: Compile failed; see the compiler error output for details
      at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:938)
      at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:758)
      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
      at org.apache.tools.ant.Task.perform(Task.java:364)
      at org.apache.tools.ant.Target.execute(Target.java:341)
      at org.apache.tools.ant.Target.performTasks(Target.java:369)
      at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
      at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
      at org.apache.tools.ant.Main.runBuild(Main.java:673)
      at org.apache.tools.ant.Main.startAnt(Main.java:188)
      at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
      at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)

      Total time: 16 seconds
      ...............
      ..............


      The com.sun.ebank.ejb.account.AccountController isn't found.
      Infact there's not into \j2eetutorial14\examples\bank\src\.

      Anybody has some suggestions?
      Thanks in advance

      vipic