3 Replies Latest reply on Aug 25, 2006 2:48 AM by Warren White

    jboss4guide v5 example does not compile

    Wenjie Tong Newbie

      I have downloaded jboss AS 4.04GA and jboss4guide example code. I tried to compile the example code, but allways get error as:

      E:\JBOSSD~1\JBOSS4~1\examples>ant
      Buildfile: build.xml

      validate:

      fail_if_not_valid:

      init:
      [echo] Using jboss.dist=D:/jboss-4.0.4.GA

      compile:
      [javac] Compiling 139 source files to E:\JBOSSD~1\JBOSS4~1\examples\output\classes
      [javac] E:\JBOSSD~1\JBOSS4~1\examples\src\main\org\jboss\chap8\ex3a\service\DistributedCacheService.java:20: package org.jboss.ha.framework.server.util does
      exist
      [javac] import org.jboss.ha.framework.server.util.DistributedTimedCachePolicy;
      [javac] ^
      [javac] E:\JBOSSD~1\JBOSS4~1\examples\src\main\org\jboss\chap8\ex3a\service\DistributedCacheService.java:37: cannot find symbol
      [javac] symbol : class DistributedTimedCachePolicy
      [javac] location: class org.jboss.chap8.ex3a.service.DistributedCacheService
      [javac] private DistributedTimedCachePolicy cache;
      [javac] ^
      [javac] E:\JBOSSD~1\JBOSS4~1\examples\src\main\org\jboss\chap8\ex3a\service\DistributedCacheService.java:47: cannot find symbol
      [javac] symbol : class DistributedTimedCachePolicy
      [javac] location: class org.jboss.chap8.ex3a.service.DistributedCacheService
      [javac] cache = new DistributedTimedCachePolicy(jndiName, partitionName, cacheTimeout);
      [javac] ^
      [javac] Note: Some input files use unchecked or unsafe operations.
      [javac] Note: Recompile with -Xlint:unchecked for details.
      [javac] 3 errors

      BUILD FAILED
      E:\JBOSSD~1\JBOSS4~1\examples\build.xml:85: Compile failed; see the compiler error output for details.

      The only thing I did is change is jboss.dist



      I have no idea where class DistributedTimedCachePolicy is located .

      Please give me some clue,