2 Replies Latest reply on Oct 11, 2002 9:06 AM by LUCIANO HARA

    Build error for examples

    LUCIANO HARA Newbie

      I've got Ant version 1.5.1 and I'm trying to build the examples from JBoss Advanced Documentation, but the following compile error msg appears. How can I solve this ?

      Buildfile: build.xml

      validate:

      fail_if_not_valid:

      init:
      [echo] Using jboss.dist=c:/jboss-3.0.3

      compile:
      [mkdir] Created dir: C:\ALLDOC~1\ADMIND~1\examples\output\classes
      [javac] Compiling 59 source files to C:\ALLDOC~1\ADMIND~1\examples\output\cl
      asses
      [javac] C:\ALLDOC~1\ADMIND~1\examples\src\main\org\jboss\chap8\ex3\service\P
      ropertiesVerifierStore.java:29: org.jboss.chap8.ex3.service.PropertiesVerifierSt
      ore should be declared abstract; it does not define verifyUserChallenge(java.lan
      g.String,java.lang.Object) in org.jboss.chap8.ex3.service.PropertiesVerifierStor
      e
      [javac] public class PropertiesVerifierStore extends ServiceMBeanSupport
      [javac] ^
      [javac] 1 error

      BUILD FAILED
      file:C:/ALLDOC~1/ADMIND~1/examples/build.xml:80: Compile failed; see the compile
      r error output for details.

        • 1. Re: Build error for examples
          Michael Schneider Newbie

          I found 2 errors, and here are the fixes that I used

          let me know if you still have problems,
          Mike


          ########################################################

          File:
          org.jboss.chap6.ex3.SendRecvClient.java

          Error:
          Wrong Package Def


          Bad Code:
          package org.jboss.chap4.example3;

          Good Code:
          package org.jboss.chap6.ex3;


          #--------------------- Missing Function
          Problem:
          org.jboss.security.srp.SRPVerifierStore interface defines a functions that the PropertiesVerifierStore in example 8 does not override.

          My Hack:
          Define an empty function in SRPVerifierStor


          File: org.jboss.chap8.ex3.service.PropertiesVerifierStore.java


          Add This Function:


          /** Verify an optional auxillary challenge sent from the client to the server. The
          * auxChallenge object will have been decrypted if it was sent encrypted from the
          * client. An example of a auxillary challenge would be the validation of a hardware
          * token (SafeWord, SecureID, iButton) that the server validates to further strengthen
          * the SRP password exchange.
          */
          public void verifyUserChallenge(String username, Object auxChallenge)
          throws SecurityException
          {

          }

          • 2. Re: Build error for examples
            LUCIANO HARA Newbie

            It worked out perfectly.

            Tks a lot, Mike.