1 Reply Latest reply on Dec 14, 2002 10:55 AM by jwkaltz

    error while running ant to build template example

    sbethi

      Hi All,

      can anyone help me out? I am getting the below errors While I am running ant tool to build jboss template. I had set all home paths in .ant.properties.class path also set for xdoclet.jar but still this error is coming.Plz..help me out..

      Error is :

      init:
      [echo] build.compiler = ${build.compiler}
      [echo] user.home = C:\WINNT\Profiles\Administrator
      [echo] java.home = D:\bea\jdk131\jre
      [echo] ant.home = d:\ant1.4\jakarta-ant-1.4
      [echo] jboss.home = D:\jboss-3.0.4_tomcat-4.1.12
      [echo] xdoclet.home = D:\jboss-3.0.4_tomcat-4.1.12
      [echo] java.class.path = D:\bea\jdk131\lib\tools.jar;d:\ant1.4\jakarta-ant-
      1.4\lib\jaxp.jar;d:\ant1.4\jakarta-ant-1.4\lib\crimson.jar;d:\ant1.4\jakarta-ant
      -1.4\lib\ant.jar;D:\jboss-3.0.4_tomcat-4.1.12\examples\xdoclet-1.1.2\lib
      [echo]

      xdoclet-generate:

      BUILD FAILED

      D:\jboss-3.0.4_tomcat-4.1.12\examples\JBoss.3.0TemplateAndExamples\template\buil
      d.xml:136: taskdef class xdoclet.ejb.EjbDocletTask cannot be found

      Total time: 1 second
      D:\jboss-3.0.4_tomcat-4.1.12\examples\JBoss.3.0TemplateAndExamples\template>

      Bethi

        • 1. Re: error while running ant to build template example
          jwkaltz

          According to the XDoclet doc
          http://xdoclet.sourceforge.net/1.2beta/install.html
          "You have to make sure tools.jar from JDK's lib directory is on your classpath, and that you are using Jakarta Ant 1.5 or higher (XDoclet does not support previous versions)."

          So you should upgrade your Ant, since you are using an old one. I haven't tried xdoclet myself so I don't know if that will be enough, but you definitely need to upgrade your Ant.

          Please note: the FAQ forum is not appropriate for asking questions. In the future please post to an appropriate forum. This thread will probably deleted by the forum maintainer.