8 Replies Latest reply on Mar 6, 2005 3:50 PM by anushi2004

    Duke's Bank Build Fail

      I'm using Jboss 4.0.0RC1, JDk 1.4.1, Ant 1.6.2

      My class paths check out correctly. But when I launch:

      ant -f jboss-build.xml compile

      I get the following error

      Build Failed:
      c:\j2eetutorial\bank\jboss-build.xml:49 c:\Jboss\server\all\deploy\jboss-net.sar not found

      I checked the directory and the jboss-net.sar files are not there. I've downloaded and tried to compile using Jboss 4.0.0RC2 and Jboss 4.0.0 (just to see if the files might be included there) and I get the same errors at the same line 49.

      Where can I get the Jboss-net file and shouldn't it be in the downloaded zips files? The tutorial doesn't say anything about getting it from anywhere. Thanks!

        • 1. Re: Duke's Bank Build Fail
          johnd

          I have the exact same problem - Any answerss anyone?

          • 2. Re: Duke's Bank Build Fail
            simonk99

            I am getting the same issue.. The required directory exists elsewhere in the install but moving it to the suggested location just results in further errors. Any ideas?

            • 3. Re: Duke's Bank Build Fail
              truyen

              edit your c:\j2eetutorial\bank\jboss-build.xml and replace:

              <fileset dir="${jboss.home}/server/all/deploy/jboss-net.sar">
               <include name="*.jar"/>
               </fileset>


              with this:
              <fileset dir="${jboss.home}/server/all/deploy/jboss-ws4ee.sar">
               <include name="*.jar"/>
               </fileset>


              • 4. Re: Duke's Bank Build Fail
                simonk99

                Thanks but am now getting the following when I try to build:


                compile:
                [javac] Compiling 1 source file to C:\JBOSS\j2eetutorial14\bank\build
                [javac] C:\JBOSS\j2eetutorial14\bank\src\WSClient.java:2: cannot access org.
                apache.axis.client.Call
                [javac] bad class file: C:\JBOSS\jboss\client\axis-ws4ee.jar(org/apache/axis
                /client/Call.class)
                [javac] class file has wrong version 48.0, should be 47.0
                [javac] Please remove or make sure it appears in the correct subdirectory of
                the classpath.
                [javac] import org.apache.axis.client.Call;
                [javac] ^
                [javac] 1 error

                BUILD FAILED

                C:\JBOSS\j2eetutorial14\bank\jboss-build.xml:49: Compile failed, messages should
                have been provided.

                • 5. Re: Duke's Bank Build Fail

                  Somehow you have compiled the code with Java 1.5 but are trying to run it with 1.4

                  • 6. Re: Duke's Bank Build Fail
                    simonk99

                    Hi Norman,

                    Are you refering to WSDP V1.5 as I have Java 1.4.2 installed.
                    I am a little confused as I have just unpacked the code as instructed and followed the steps in the manual. Is there anywhere that the 1.5 and 1.4 values would have been set..?

                    Regards

                    Simon

                    • 7. Re: Duke's Bank Build Fail

                      Thanks guys I changed the jboss-net.sar file and now it works.

                      • 8. Re: Duke's Bank Build Fail
                        anushi2004

                        Hi,

                        I am using the same configuration ( Jdk1.4.2 , Ant 1.6.2 and JBoss 4.0.1 ).

                        When I execute the command ' ant -f jboss-build.xml compile '

                        I get the following error :


                        =============================================
                        Buildfile: jboss-build.xml

                        prepare:

                        compile:
                        [javac] Compiling 56 source files to C:\J2EE-1~1\J2EETU~1\EXAMPLES\BAN
                        K\build
                        [javac] C:\J2EE-1~1\J2EETU~1\EXAMPLES\BANK\src\com\sun\ebank\web\templ
                        ate\DefinitionTag.java:31: cannot resolve symbol
                        [javac] symbol : class SimpleTagSupport
                        [javac] location: package tagext
                        [javac] import javax.servlet.jsp.tagext.SimpleTagSupport;
                        [javac] ^
                        [javac] C:\J2EE-1~1\J2EETU~1\EXAMPLES\BANK\src\com\sun\ebank\web\templ
                        ate\DefinitionTag.java:34: cannot resolve symbol
                        [javac] symbol : class SimpleTagSupport
                        [javac] location: class com.sun.ebank.web.template.DefinitionTag
                        [javac] public class DefinitionTag extends SimpleTagSupport {
                        [javac] ^

                        ....

                        BUILD FAILED

                        ===============================================

                        I understand that it is not able to find javax.servlet.jsp.tagext.SimpleTagSupport and related files . Which jar file do I need to include in the classpath ??

                        Thanks .