2 Replies Latest reply on Oct 17, 2007 8:49 AM by muanis

    Classpath issues for ex04_1

    davedave

      Hi there,
      I have installed jdk1.6.0 and jboss-4.0.4GA. I have set my JAVA_HOME, JBOSS_HOME and added Java and ant to my path.

      When i run ant for ex04_1 I get the following errors:

      C:\java\workbook\ex04_1\build.xml:39: C:\java\jboss-4.0.4.GA\server\default\depl
      oy\ejb3.deployer not found.


      The following are included in the classpath in the build.xml but do not exist in my jboss install -

      ${jboss.home}/server/default/deploy/ejb3.deployer
      ${jboss.home}/server/default/deploy/jboss-aop-jdk50.deployer


      Does anyone have any ideas on what I need to do?

      Also I noticed the following directories exist in my jboss install so i tried including them in the classpath instead of the above but this did not fix it. Instead I get compile errors.

      ${jboss.home}/server/default/deploy/jboss-bean.deployer
      ${jboss.home}/server/default/deploy/jboss-aop.deployer


      Here is the first few lines of the compile errors -

      C:\java\workbook\ex04_1>ant
      Buildfile: build.xml

      prepare:

      compile:
      [javac] Compiling 4 source files to C:\java\workbook\ex04_1\build\classes
      [javac] C:\java\workbook\ex04_1\src\main\com\titan\domain\Cabin.java:3: pack
      age javax.persistence does not exist
      [javac] import javax.persistence.Entity;
      [javac] ^
      [javac] C:\java\workbook\ex04_1\src\main\com\titan\domain\Cabin.java:4: pack
      age javax.persistence does not exist
      [javac] import javax.persistence.Table;
      [javac] ^
      [javac] C:\java\workbook\ex04_1\src\main\com\titan\domain\Cabin.java:5: pack
      age javax.persistence does not exist
      [javac] import javax.persistence.Column;
      [javac] ^
      [javac] C:\java\workbook\ex04_1\src\main\com\titan\domain\Cabin.java:6: pack
      age javax.persistence does not exist
      [javac] import javax.persistence.Id;
      [javac] ^