2 Replies Latest reply on Jun 2, 2003 4:56 PM by dash

    Ant and Example

    dash Newbie

      Hello there. I got a problem with ant, when i am trying to compile the tutorial example...

      >dash@gentoo:~/prog/EJB/jboos/transaction$ ant
      >Buildfile: build.xml
      >
      >check-environment:
      >
      >check-jboss:
      >
      >wrong-jboss:
      >
      >check-xdoclet:
      >
      >wrong-xdoclet:
      >
      >init:
      > [echo] build.compiler = ${build.compiler}
      > [echo] user.home = /home/dash
      > [echo] java.home = /opt/blackdown-jdk-1.4.1/jre
      > [echo] ant.home = /usr/share/ant
      > [echo] jboss.home = /opt/jboss-3.0.6/
      > [echo] xdoclet.home = /usr/share/xdoclet
      > [echo] java.class.path = /opt/blackdown-jdk-1.4.1/jre/lib/rt.jar:/usr/share/ant/lib/ant.jar:/usr/share/ant/lib/optional.jar:/opt/blackdown-jdk-1.4.1/lib/tools.jar
      >
      >
      >xdoclet-generate:
      >
      >BUILD FAILED
      >file:/home/dash/prog/EJB/jboos/transaction/build.xml:133: taskdef >class xdoclet.ejb.EjbDocletTask cannot be found
      >
      >Total time: 2 seconds
      >dash@gentoo:~/prog/EJB/jboos/transaction$ echo $JAVA_HOME
      >/opt/blackdown-jdk-1.3.1
      >dash@gentoo:~/prog/EJB/jboos/transaction$ echo $CLASSPATH
      >/usr/share/xalan/lib/xalan.jar:/usr/share/jboss/lib/jboss-j2ee.jar:/opt/blackdown-jdk-1.3.1/jre/lib/rt.jar:.:/usr/share/jboss/lib/jnet.jar:/opt/tomcat/common/lib/servlet.jar:/home/dash/prog/EJB/Morpion/MorpionEJB.jar:/usr/share/jboss/lib/jnp-client.jar:/usr/share/jboss/lib/log4j.jar:/usr/share/jboss/lib/jboss-client.jar:/usr/share/jboss/lib/jboss-common-client.jar:/opt/jboss-3.0.6/lib/jboss-common.jar:/opt/jboss-3.0.6/lib/crimson.jar:/usr/share/xerces/lib/xercesImpl.jar:/usr/share/gnu-jaxp/lib/gnujaxp.jar:/usr/share/xdoclet/lib/xjavadoc.jar:/usr/share/xdoclet/lib/xdoclet-ejb-module.jar
      >

      It seems that ant overrides my JAVA_HOME and my CLASSPATH. Anyone can help with this?

      thanks in advance!!!

        • 1. Re: Ant and Example
          dash Newbie

          I was able to get rid of that with the command:

          ant -Djava.class.path=$CLASSPATH -Djava.home=$JAVA_HOME

          but the problem persist... is there any JAR i am missing ?

          init:
          [echo] build.compiler = ${build.compiler}
          [echo] user.home = /home/dash
          [echo] java.home = /opt/blackdown-jdk-1.3.1
          [echo] ant.home = /usr/share/ant
          [echo] jboss.home = /opt/jboss-3.0.6/
          [echo] xdoclet.home = /usr/share/xdoclet
          [echo] java.class.path = /usr/share/xalan/lib/xalan.jar:/usr/share/jboss/lib/jboss-j2ee.jar:/opt/blackdown-jdk-1.3.1/jre/lib/rt.jar:.:/usr/share/jboss/lib/jnet.jar:/opt/tomcat/common/lib/servlet.jar:/home/dash/prog/EJB/Morpion/MorpionEJB.jar:/usr/share/jboss/lib/jnp-client.jar:/usr/share/jboss/lib/log4j.jar:/usr/share/jboss/lib/jboss-client.jar:/usr/share/jboss/lib/jboss-common-client.jar:/opt/jboss-3.0.6/lib/jboss-common.jar:/opt/jboss-3.0.6/lib/crimson.jar:/usr/share/xerces/lib/xercesImpl.jar:/usr/share/gnu-jaxp/lib/gnujaxp.jar:/usr/share/xdoclet/lib/xdoclet.jar:/usr/share/xdoclet/lib/xdoclet-jboss-module.jar:/usr/share/xdoclet/lib/xdoclet-ejb-module.jar:/usr/share/xdoclet/lib/xdoclet-java-module.jar:.


          xdoclet-generate:

          BUILD FAILED
          file:/home/dash/prog/EJB/jboos/transaction/build.xml:133: taskdef class xdoclet.ejb.EjbDocletTask cannot be found

          • 2. Re: Ant and Example
            dash Newbie

            I had to edit the xml file to make it work... But now new problems are coming... I think i need to find a more up to date example...