Hi All,
I am new to xdoclet and facing problem with the generation of ejb
classes with xdoclet .
I am getting the following error while running ant.
BUILD FAILED
file:D:/SaurabhSource/Convertor/src/build.xml:24: taskdef class xdoclet.modules.
ejb.EjbDocletTask cannot be found
Ant Version - 1.5.3
XDoclet version 1.2.3
XDoclet installation path=C:\xdoclet-1.2.3
Build File:
<project name="statelessSession_xdoclet" default="all" basedir=".">
<!-- set global properties for this build -->
<property environment="env"/>
<property file="../../examples.properties"/>
<property name="build.compiler" value="${compiler}"/>
<property name="source" value="."/>
<property name="build" value="../build"/>
<property name="dist" value="../dist"/>
<taskdef name="wlappc" classname="weblogic.ant.taskdefs.j2ee.Appc"
classpath="${wls.lib}/weblogic.jar"/>
<path id="xdoclet.classpath">
<fileset dir="c:\xdoclet-1.2.3\lib">
<include name="*.jar"/>
</fileset>
<pathelement location="D:\Program
Files\apache-ant-1.5.3-1\lib\ant.jar;D:\bea\weblogic81\server\lib\;D:\bea\weblogic81\server\lib\weblogic.jar;D:\Program
Files\Apache Tomcat 4.0\common\lib\servlet.jar;.;D:\Program
Files\logging-log4j-1.2.9\dist\lib\log4j-1.2.9.jar;d:\Program
Files\Altova\xmlspy\XMLSpyInterface.jar;"/>
</path>
<taskdef
name="ejbdoclet"
classname="xdoclet.modules.ejb.EjbDocletTask"
classpathref="xdoclet.classpath"
/>
<target name="all" depends="clean, init,ejbdoclet, compile_ejb,
jar.ejb,ear_app,run"/>
<target name="init">
<!-- Create the time stamp -->
<tstamp/>
<echo>JAR PATH:: ${xdoclet.jar.path}</echo>
<!-- Create the build directory structure used by compile
and copy the deployment descriptors into it-->
<mkdir dir="${build}"/>
<mkdir dir="${build}/META-INF"/>
<mkdir dir="${dist}"/>
<copy todir="${build}/META-INF">
<fileset dir="${source}">
<include name="ejb-jar.xml"/>
<include name="weblogic-ejb-jar.xml"/>
</fileset>
</copy>
<copy todir="${build}">
<fileset dir=".">
<include name="*.jar"/>
</fileset>
</copy>
</target>
<target name="ejbdoclet" depends="init">
<echo>xdoclet.classpath</echo>
<ejbdoclet
sourcepath="${source}"
destdir="${build}"
ejbspec="2.0">
<fileset dir="${source}">
<include name="**/ConvertorBean.java" />
</fileset>
<remoteinterface/>
<homeinterface/>
<deploymentdescriptor destdir="${build.dir}/ejb/META-INF"/>
<jboss destdir="${build.dir}/ejb/META-INF"
version="2.4" xmlencoding="UTF-8" />
<weblogic destdir="${build.dir}/ejb/META-INF"
xmlencoding="UTF-8"
validatexml="true"/>
</ejbdoclet>
</target>
<!-- Compile ejb classes into the build directory (jar preparation) -->
<target name="compile_ejb" depends="init">
<javac srcdir="${source}" destdir="${build}"
includes="*.java"
/>
</target>
<!-- Update ejb jar file or create it if it doesn't exist, including XML
deployment descriptors -->
<target name="jar.ejb" depends="compile_ejb">
<echo message="${dist}"/>
<echo message="${build}"/>
<jar jarfile="${dist}/HelloSaurabh.jar"
basedir="${build}"
update="yes">
</jar>
</target>
<target name="appc" depends="jar.ejb">
<wlappc debug="${debug}"
source="${dist}/HelloSaurabh.jar"
/>
</target>
<!-- Put the ejb into an ear, to be deployed from the ${apps.dir} dir -->
<target name="ear_app" depends="jar.ejb">
<echo message ="${apps.dir}"/>
<ear earfile="${dist}/Hello.ear" appxml="${source}/application.xml">
<fileset dir="${dist}" includes="HelloSaurabh.jar"/>
</ear>
</target>
<target name="clean">
<delete dir="${build}"/>
</target>
<!-- Run the example -->
<target name="run">
<java classname="Client" fork="yes" failonerror="true">
<arg value="t3://localhost:7001"/>
<classpath>
<pathelement path="${dist}/HelloSaurabh.jar"/>
</classpath>
</java>
</target>
</project>
Please Help
Saurabh
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
xdoclet-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel