1 2 Previous Next 20 Replies Latest reply on May 13, 2006 6:02 PM by Mark Bloomfield

    Dike's Bank example - build failed

    Alex Molochnikov Newbie

      This topic came up many times, but I haven't seen a satisfactory answer yet.

      I installed JBoss 4.0.1, and the latest of Apache Ant (1.6.2). I downloaded the supplemental tutorial file jbossj2ee-src.zip and added it to the Sun's j2eetutorial14. Started working with the "Getting Started with JBoss 4.0" tutorial, and run into the problem while building the Duke's Bank application:

      Microsoft Windows XP [Version 5.1.2600]
      (C) Copyright 1985-2001 Microsoft Corp.

      C:\>cd C:\Transfer\j2eetutorial14\examples\bank

      C:\Transfer\j2eetutorial14\examples\bank>ant -f jboss-build.xml compile
      Buildfile: jboss-build.xml

      prepare:
      [mkdir] Created dir: C:\Transfer\j2eetutorial14\examples\bank\build

      compile:
      [javac] Compiling 57 source files to C:\Transfer\j2eetutorial14\examples\ban
      k\build

      BUILD FAILED
      C:\Transfer\j2eetutorial14\examples\bank\jboss-build.xml:49: C:\Transfer\j2eetutorial14\examples\bank${jboss.home}\client not found.

      Total time: 2 seconds
      C:\Transfer\j2eetutorial14\examples\bank>

      I edited the build.properties file to point to the JBoss installation directory, my JAVA_HOME env. variable points to Java 1.5, and I am at loss as to what I have done wrong.

      Any ideas?

        • 1. Re: Dike's Bank example - build failed
          Hua Wang Newbie

          Did you modified jboss-build.xml to have jboss.home point to the directory where you installed Jboss? Hope that will help

          Hua

          • 2. Re: Dike's Bank example - build failed
            Hua Wang Newbie

            Sorry, the file you should modified is "jboss-build.properties" to add jboss.home instead of jboss-build.xml.

            Good luck

            • 3. Re: Dike's Bank example - build failed
              Alex Molochnikov Newbie

              There is no jboss-build.properties file in the downloaded .zip archive, only build.properties, and I did set the jboss.home to the JBOSS install directory (C:\jboss-4.0.1sp1). To be sure, I duplicated the build.properties file, and renamed it jboss-build.properties - but nothing changed. The build still fails.

              Thanks for the reply, though.

              • 5. Re: Dike's Bank example - build failed
                Norman Richards Master

                It is there:

                [gettingstarted]$ jar tvf jbossj2ee-src.zip | grep jboss-build.properties
                 293 Wed Nov 24 11:16:42 CST 2004 jboss-build.properties
                


                • 6. Re: Dike's Bank example - build failed
                  Claire Costello Newbie

                  The jboss-build.properties file is in the root directory of the J2EE tutorial folder structure (where you installed tutorial).

                  • 7. Re: Dike's Bank example - build failed
                    Victor Declerk Newbie

                    Note this:

                    Make sure you have the 1.3 tutorial files and not the 1.4 ones, which contain the same examples but with a different directory layout.(The Duke's Bank Application Chapter)


                    • 8. Re: Dike's Bank example - build failed
                      Helmuth Karwatski Newbie

                      I got a different kind of a failure, did everything by the book. Am I missing something or the docs are incomplete?

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


                      • 9. Re: Dike's Bank example - build failed
                        Philipp Kanne Newbie

                        @hmkarw: you have to download the j2ee-1.4 tutorial from sun first. See at
                        http://java.sun.com/j2ee/1.4/download.html#tutorial

                        • 10. Re: Dike's Bank example - build failed
                          NGUYEN Hong-Thai Newbie

                          Great ! i've same problem. Some one add this comment to Getting Start for JBoss AS.

                          • 11. Re: Dike's Bank example - build failed
                            steven Zhong Newbie

                            hi, guys, just cp the properties file to the j2eetutorial14's top level directory. copy the libs dirctory to the the top level directory. overwrite the bank directory of j2eetoturial.

                            you will get the correct response.

                            • 12. Re: Dike's Bank example - build failed
                              John Coffie Newbie

                              I had the same problem today but got it working! Go to the sun site and download update 5 instead of update 4.

                              The needed files (AccountController.java, etc) were available and it compiled fine.

                              Regards!

                              • 13. Re: Dike's Bank example - build failed
                                Enrique Ferreyra Newbie

                                I have this in jboss-build.properties

                                jboss.home=c:/jboss-4.0.3RC1
                                jboss.server=${jboss.home}/server/default
                                jboss.deploy.dir=${jboss.server}/deploy

                                im trying to do the ANT build with eclipse, and i get this error...

                                C:\Proyectos\j2eetutorial14\examples\bank\jboss-build.xml:59: C:\Proyectos\j2eetutorial14\examples\bank\${jboss.home}\client not found.

                                some idea ??

                                • 14. Re: Dike's Bank example - build failed
                                  Enrique Ferreyra Newbie

                                  ups

                                  I Change:



                                  for



                                  and there is, i move this file before so i can see in the Eclipse WorkSpace ...

                                  THANKS

                                  1 2 Previous Next