5 Replies Latest reply on Mar 4, 2003 9:59 PM by Michael Dinsmore

    JBoss Schedulers & Timers

    Josephine Schwabel Newbie

      I read the article regarding JBoss Schedulers & Timers located at http://www.jboss.org/online-manual/HTML/ch13s58.html.
      I have a problem & I hope someone can help me. I am using JBoss 3.0 w/ Tomcat on Linux. I added the Timer MBean & Scheduler MBean code to jboss-service.xml. I also have one of my classes implementing Schedulable & it also imports org.jboss.util.*; But, that class will not compile. I get the following error when I try to compile:

      [echo] Compiling utility beans
      [javac] Compiling 53 source files to /projects/KDCS/apps/src/KDCSweb/KDCSWebSource/WEB-INF/classes
      [javac] /projects/KDCS/apps/src/KDCSweb/KDCSWebSource/WEB-INF/classes/InvoiceHandler.java:15: package org.jboss.util does not exist
      [javac] import org.jboss.util.*;
      [javac] ^
      [javac] /projects/KDCS/apps/src/KDCSweb/KDCSWebSource/WEB-INF/classes/InvoiceHandler.java:17: cannot resolve symbol
      [javac] symbol : class Schedulable
      [javac] location: class utilities.InvoiceHandler
      [javac] public class InvoiceHandler implements Schedulable
      [javac] ^
      [javac] Note: Some input files use or override a deprecated API.
      [javac] Note: Recompile with -deprecation for details.
      [javac] 2 errors

      file:/projects/KDCS/apps/src/KDCSweb/build.xml:51: Compile failed; see the compiler error output for details.

      Does anyone know why I am getting this error?