3 Replies Latest reply on Oct 25, 2004 9:49 AM by tomb_fish

    Compilation error while running

    fkhwaja

      Hi,
      I have downloaded Jboss 4 and trying to compile/deploy dukes bank application. however, when i try to compile it gives me error:

      compile:
      [javac] Compiling 3 source files to C:\khwaja\java\projects\j2eetutorial\exa
      mples\bank\build
      [javac] C:\khwaja\java\projects\j2eetutorial\examples\bank\src\com\jboss\eba
      nk\TellerBean.java:15: package com.sun.ebank.ejb.account does not exist
      [javac] import com.sun.ebank.ejb.account.AccountController;
      [javac] ^
      [javac] C:\khwaja\java\projects\j2eetutorial\examples\bank\src\com\jboss\eba
      nk\TellerBean.java:16: package com.sun.ebank.ejb.account does not exist
      [javac] import com.sun.ebank.ejb.account.AccountControllerHome;
      [javac] ^.ejb.account.AccountControllerHome;

      seems like I am missing some jar files....can anyone help....

      thanks in advance
      Faisal

        • 1. Re: Compilation error while running
          fkhwaja

          Please ignore as I got to compile...problem was the supplementry files from sun has to be in the same directory as jobss's bank application...

          Faisal

          • 2. Re: Compilation error while running
            lfalcao

            I have the same problem.
            What files did you move to the directory?

            Thanks.

            • 3. Compilation error
              tomb_fish

              Hi, I am trying to deploy Duke's Bank app. I've followed the Getting Started with JBoss 4.0 guide, but when I try to compile using ant -f jboss-build.xml compile on WinXP
              I get following output:

              Buildfile: ..\..\j2eetutorial14\examples\bank\jboss-build.xml
              
              prepare:
              
              compile:
               [javac] Compiling 56 source files to D:\ihk\game_design\j2eetutorial14\examples\bank\build
              
              BUILD FAILED
              D:\ihk\game_design\j2eetutorial14\examples\bank\jboss-build.xml:49: D:\ihk\game_design\j2eetutorial14\examples\bank${jboss.home}\client not found.
              


              I have also point jboss.home to my installation directory of JBoss in build.properties file:

              # Set the path to the JBoss directory containing the JBoss application server
              # (This is the one containing directories like "bin", "client" etc.)
              
              jboss.home=d:/ihk/jboss-4.0.0
              
              #d:/ihk/jboss-4.0.0
              # Set the path to the JBoss server environment. For 3.2.x it is under JBoss Home
              # in the server directory either "default" or "all"
              #jboss.server=${jboss.home}
              
              jboss.server=${jboss.home}/server/default
              
              jboss.deploy.dir=${jboss.server}/deploy
              
              # Set the path to the servlet archive
              servlet.jar=${jboss.server}/lib/javax.servlet.jar
              #servlet.jar=${jboss.home}/tomcat-4.1.x/common/lib/servlet.jar
              


              What client should I point and where? Does anybody know?