1 Reply Latest reply on Mar 27, 2005 3:55 AM by Jay Herrick

    EjbDocletTask can't find ant's DynamicConigurator

    Jay Herrick Newbie

      I'm getting this error when I try to RunXDoclet on my project:

      BUILD FAILED: /home/jay/workspace/anna/annaBeans/xdoclet-build.xml:31: taskdef A class needed by class xdoclet.modules.ejb.EjbDocletTask cannot be found: org/apache/tools/ant/DynamicConfigurator
      Total time: 1 second
      


      Here's my current xdoclet-build.xml:

      <?xml version="1.0" encoding="UTF-8"?>
      <project name="XDoclet Generator" default="_xdoclet_generation_">
      <property file="xdoclet-build.properties"/>
      <property name="eclipse.home" value="/usr/local/eclipse"/>
      <property name="xdoclet.basedir" value="${eclipse.home}/plugins/org.jboss.ide.eclipse.xdoclet.core_1.4.1.e30"/>
      <property name="jboss.net.version" value="4.0"/>
      <path id="project.classpath"><pathelement location="bin"/>
      <pathelement location="${eclipse.home}/plugins/org.jboss.ide.eclipse.jdt.j2ee.core_1.4.1.e30/lib/j2ee-1.3/sql-api.jar"/>
      <pathelement location="${eclipse.home}/plugins/org.jboss.ide.eclipse.jdt.j2ee.core_1.4.1.e30/lib/j2ee-1.3/jta-api.jar"/>
      <pathelement location="${eclipse.home}/plugins/org.jboss.ide.eclipse.jdt.j2ee.core_1.4.1.e30/lib/j2ee-1.3/servlet-api.jar"/>
      <pathelement location="${eclipse.home}/plugins/org.jboss.ide.eclipse.jdt.j2ee.core_1.4.1.e30/lib/j2ee-1.3/ejb-api.jar"/>
      <pathelement location="${eclipse.home}/plugins/org.jboss.ide.eclipse.jdt.j2ee.core_1.4.1.e30/lib/j2ee-1.3/jsp-api.jar"/>
      <pathelement location="${eclipse.home}/plugins/org.jboss.ide.eclipse.jdt.j2ee.core_1.4.1.e30/lib/j2ee-1.3/jms-api.jar"/>
      <pathelement location="${eclipse.home}/plugins/org.jboss.ide.eclipse.jdt.j2ee.core_1.4.1.e30/lib/j2ee-1.3/jca-api.jar"/>
      </path>
      <path id="xdoclet.classpath">
      <path refid="project.classpath"/>
      <fileset dir="${xdoclet.basedir}">
      <include name="*.jar"/>
      <exclude name="xdoclet-module-jboss-net-*.jar"/>
      </fileset>
      <fileset dir="${xdoclet.basedir}">
      <include name="xdoclet-module-jboss-net-${jboss.net.version}*.jar"/>
      </fileset>
      <fileset dir="${eclipse.home}/plugins/org.eclipse.platform.source_3.0.2/src/org.apache.ant_1.6.2/lib">
       <include name="*.jar"/>
      </fileset>
      </path>
      <target name="_xdoclet_generation_" depends="N65540"/>
      <target name="N65540" description="EJB">
      <taskdef name="ejbdoclet" classname="xdoclet.modules.ejb.EjbDocletTask" classpathref="xdoclet.classpath"/><ejbdoclet ejbSpec="2.0" destDir="src" >
      <fileset dir="src" includes="**/*Bean.java" >
      </fileset>
      <deploymentdescriptor destDir="src/META-INF" >
      </deploymentdescriptor>
      <jboss Version="3.0" destDir="src/META-INF" >
      </jboss>
      <packageSubstitution packages="ejb" substituteWith="interfaces" >
      </packageSubstitution>
      <remoteinterface>
      </remoteinterface>
      <homeinterface>
      </homeinterface>
      </ejbdoclet></target>
      </project>
      


      As you can see, I tried to add a fileset for the Ant jars to the xdoclet classpath, but that didn't change the error. Any ideas.

      Thanks,

      -Jay