5 Replies Latest reply on Jan 25, 2006 4:07 PM by dredley

    please help : error building jboss-build.xml

    mm007m

      Hello,
      i am unable to build the jboss-build.xml from the j2eetutorial14
      with command ant -f jboss-build.xml.

      can anybody help? thanks

      i got the following errors.
      Buildfile: jboss-build.xml

      prepare:

      compile:
      [javac] Compiling 5 source files to C:\j2eetutorial14\examples\bank\build
      [javac] C:\j2eetutorial14\examples\bank\src\com\jboss\ebank\TellerBean.java:16: package com.sun.ebank.ejb.account does not exist
      [javac] import com.sun.ebank.ejb.account.AccountController;
      [javac] ^
      [javac] C:\j2eetutorial14\examples\bank\src\com\jboss\ebank\TellerBean.java:17: package com.sun.ebank.ejb.account does not exist
      [javac] import com.sun.ebank.ejb.account.AccountControllerHome;
      [javac] ^
      [javac] C:\j2eetutorial14\examples\bank\src\com\jboss\ebank\TellerBean.java:18: package com.sun.ebank.util does not exist
      [javac] import com.sun.ebank.util.AccountDetails;
      [javac] ^
      [javac] C:\j2eetutorial14\examples\bank\src\com\jboss\ebank\TellerBean.java:26: cannot resolve symbol
      [javac] symbol : class AccountController
      [javac] location: class com.jboss.ebank.TellerBean
      [javac] private AccountController getController()
      [javac] ^
      [javac] C:\j2eetutorial14\examples\bank\src\com\jboss\ebank\web\CustomerHackFilter.java:5: package com.sun.ebank.util does not exist
      [javac] import com.sun.ebank.util.Debug;
      [javac] ^
      [javac] C:\j2eetutorial14\examples\bank\src\com\jboss\ebank\web\CustomerHackFilter.java:6: package com.sun.ebank.web does not exist
      [javac] import com.sun.ebank.web.*;
      [javac] ^
      [javac] C:\j2eetutorial14\examples\bank\src\com\jboss\ebank\TellerBean.java:32: cannot resolve symbol
      [javac] symbol : class AccountControllerHome
      [javac] location: class com.jboss.ebank.TellerBean
      [javac] AccountControllerHome home = (AccountControllerHome)
      [javac] ^
      [javac] C:\j2eetutorial14\examples\bank\src\com\jboss\ebank\TellerBean.java:32: cannot resolve symbol
      [javac] symbol : class AccountControllerHome
      [javac] location: class com.jboss.ebank.TellerBean
      [javac] AccountControllerHome home = (AccountControllerHome)
      [javac] ^
      [javac] C:\j2eetutorial14\examples\bank\src\com\jboss\ebank\TellerBean.java:40: cannot resolve symbol
      [javac] symbol : class AccountController
      [javac] location: class com.jboss.ebank.TellerBean
      [javac] AccountController mgr = getController();
      [javac] ^
      [javac] C:\j2eetutorial14\examples\bank\src\com\jboss\ebank\TellerBean.java:41: cannot resolve symbol
      [javac] symbol : class AccountDetails
      [javac] location: class com.jboss.ebank.TellerBean
      [javac] AccountDetails details = mgr.getDetails(accountID);
      [javac] ^
      [javac] C:\j2eetutorial14\examples\bank\src\com\jboss\ebank\TellerBean.java:53: cannot resolve symbol
      [javac] symbol : class AccountController
      [javac] location: class com.jboss.ebank.TellerBean
      [javac] AccountController mgr = getController();
      [javac] ^
      [javac] C:\j2eetutorial14\examples\bank\src\com\jboss\ebank\TellerBean.java:60: cannot resolve symbol
      [javac] symbol : class AccountDetails
      [javac] location: class com.jboss.ebank.TellerBean
      [javac] AccountDetails details = (AccountDetails) it_list.next();
      [javac] ^
      [javac] C:\j2eetutorial14\examples\bank\src\com\jboss\ebank\TellerBean.java:60: cannot resolve symbol
      [javac] symbol : class AccountDetails
      [javac] location: class com.jboss.ebank.TellerBean
      [javac] AccountDetails details = (AccountDetails) it_list.next();
      [javac] ^
      [javac] C:\j2eetutorial14\examples\bank\src\com\jboss\ebank\web\CustomerHackFilter.java:40: cannot resolve symbol
      [javac] symbol : class BeanManager
      [javac] location: class com.jboss.ebank.web.CustomerHackFilter
      [javac] BeanManager beanManager =
      [javac] ^
      [javac] C:\j2eetutorial14\examples\bank\src\com\jboss\ebank\web\CustomerHackFilter.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:\j2eetutorial14\examples\bank\src\com\jboss\ebank\web\CustomerHackFilter.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:\j2eetutorial14\examples\bank\src\com\jboss\ebank\web\CustomerHackFilter.java:45: cannot resolve symbol
      [javac] symbol : class BeanManager
      [javac] location: class com.jboss.ebank.web.CustomerHackFilter
      [javac] beanManager = new BeanManager();
      [javac] ^
      [javac] C:\j2eetutorial14\examples\bank\src\com\jboss\ebank\web\CustomerHackFilter.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:\j2eetutorial14\examples\bank\src\com\jboss\ebank\web\CustomerHackFilter.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:\j2eetutorial14\examples\bank\src\com\jboss\ebank\web\CustomerHackFilter.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

        • 1. Re: please help : error building jboss-build.xml
          mm007m

          was finally able to go further,
          in the docs you can read
          "You should be able to obtain the supplementary JBoss files from the same place as this document. The file is packaged
          as a ZIP archive called jbossj2ee-src.zip. Download this and unpack it into the j2eetutorial14 directory,
          adding to the existing tutorial files. "

          finally i get rid of this by unpacking both zip files separately, then put them toegether.

          regards,

          • 2. Re: please help : error building jboss-build.xml
            pwang1

            Can you give exact path to the zip file? I have same problem but still cannot find the source files.

            thanks

            • 3. Re: please help : error building jboss-build.xml
              mm007m

              Hello,
              you can go there
              http://www.jboss.com/products/jbossas/docss

              select Jboss as getting started guide 4.0.2 revision 4
              you will get the zip file named startguide40.zip that contains the pdf and the jbossj2ee-src.zip file
              hope this helps
              regards

              • 4. Re: please help : error building jboss-build.xml
                dredley

                I'm sorry but could you clarify this for me. I am having the same 20 error issue.

                I have downloaded the jbossj2ee-src.zip file and the startguide40.zip.

                I created the j2eetutorial14 directory and unzipped the jbossj2ee-src.zip file into it. I'm not sure what "adding to the existing tutorial files" mean?

                I guess I'm not sure where should I be unzipping the zip file to? And where does this j2eetutorial14 directory belong?

                Thanks for your help.

                -Deb

                • 5. Re: please help : error building jboss-build.xml
                  dredley

                  I'm all set.

                  The missing piece was the Sun J2EE 1.4 Tutorial which is the "j2eetutorial14" folder.

                  I unzipped that file and combined it with the jbossj2ee-src.zip files and I've got my directory built correctly.

                  Compiled with no errors.

                  Thanks!

                  -Deb