Hello everybody,
I'm running into troubles with building my EJB files using ant (1.5.1) and
xdoclet (1.2.0b1) on win nt.
Everything seems to work fine until the <deploymentdescriptor/> task. It
throws an exception, what follows is the beginning of the error message:
(begin of error message)
[ejbdoclet] ERROR [main] (TemplateEngine.java:522) - Invoking method failed:
xdo
clet.modules.ejb.dd.EjbRefTagsHandler.forAllEjbRefs, line=23 of template
file: f
ile:/D:/user/wadas/xdoclet/modules/ejb/dd/resources/ejb-ref.xdt
[ejbdoclet] java.lang.reflect.InvocationTargetException
[ejbdoclet] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
[ejbdoclet] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
sorImpl.java:39)
...
a lot of message stuff
...
(end error message)
in the "template file" information above, you can see
file:/D:/user/wadas/xdoclet/modules/ejb/dd/resources/ejb-ref.xdt
but of course, the template file does not exist at this position in the path
(actually, it is located in the xdoclet-ejb-module.jar file in the lib
directory of my xdoclet installation under d:\xdoclet-1.2.0-beta1). Whereas
the path "d:/user/wadas" is the home location of my ant build file.
So it seems to be that it wants to look up from the build.xml path to find
this ejb-ref.xdt template file.
Is there a way to change this? Or is my build file erroneous? Is it a bug?
Thanks in advance, I need your help!
Marc
PS: the build file follows...
<?xml version="1.0"?>
<!-- =======================================================================
-->
<!-- JBoss build file
-->
<!-- =======================================================================
-->
<project name="JBoss" default="ejbjar" basedir=".">
<property environment="env"/>
<property name="src.dir" value="${basedir}/src/main"/>
<property name="src.resources" value="${basedir}/src/resources"/>
<property name="jboss.home" value="${env.JBOSS_HOME}"/>
<property name="build.dir" value="${basedir}/build"/>
<property name="build.classes.dir" value="${build.dir}/classes"/>
<!-- Build classpath -->
<path id="classpath">
<fileset dir="${jboss.home}/client">
<include name="**/*.jar"/>
</fileset>
<fileset dir="d:\xdoclet-1.2.0-beta1\lib">
<include name="**/*.jar"/>
</fileset>
<fileset dir="d:\jakarta-ant-1.5.1\lib">
<include name="**/*.jar"/>
</fileset>
<fileset dir="d:\java_libs">
<include name="**/*.jar"/>
</fileset>
<pathelement location="${build.classes.dir}"/>
<!-- So that we can get jndi.properties for InitialContext -->
<pathelement location="${basedir}/jndi"/>
</path>
<property name="build.classpath" refid="classpath"/>
<!-- ===================================================================
-->
<!-- Prepares the build directory
-->
<!-- ===================================================================
-->
<target name="prepare" >
<mkdir dir="${build.dir}"/>
<mkdir dir="${build.classes.dir}"/>
</target>
<!-- ===================================================================
-->
<!-- Generate EJB stuff -->
<!-- ===================================================================
-->
<target name="ejbdoclet" depends="prepare">
<taskdef name="ejbdoclet"
classname="xdoclet.modules.ejb.EjbDocletTask"
classpathref="classpath" />
<ejbdoclet destdir="${src.dir}"
excludedtags="@version,@author"
ejbspec="2.0"
force="${xdoclet.force}">
<fileset dir="${src.dir}">
<include name="**/*Bean.java" />
</fileset>
<!--dataobject/-->
<remoteinterface/>
<localinterface/>
<homeinterface/>
<localhomeinterface/>
<entitypk/>
<!--entitycmp/-->
<deploymentdescriptor destdir="${src.resources}/META-INF"
validateXml="true" />
<jboss version="3.0"
typemapping="ingres-ii-2.5"
datasource="java:/IngresDS"
destdir="${src.resources}/META-INF"
validateXml="true" />
</ejbdoclet>
</target>
<!-- ===================================================================
-->
<!-- Compiles the source code
-->
<!-- ===================================================================
-->
<target name="compile" depends="ejbdoclet">
<javac srcdir="${src.dir}"
destdir="${build.classes.dir}"
debug="on"
deprecation="on"
optimize="off"
includes="**">
<classpath refid="classpath"/>
</javac>
</target>
<target name="ejbjar" depends="compile">
<jar jarfile="build/wadas.jar">
<fileset dir="${build.classes.dir}">
<include name="bce/wadas/datacenter/**/*.class"/>
<include name="bce/wadas/tests/*.class"/>
</fileset>
<fileset dir="${src.resources}/">
<include name="**/*.xml"/>
</fileset>
</jar>
</target>
<target name="deploy" depends="ejbjar">
<copy file="build/wadas.jar"
todir="${jboss.home}/server/default/deploy"/>
</target>
<target name="run.client_wadas_1" depends="deploy">
<java classname="bce.wadas.clients.client_wadas_1" fork="yes" dir=".">
<classpath refid="classpath"/>
</java>
</target>
<target name="run.client_wadas_2" depends="deploy">
<java classname="bce.wadas.clients.client_wadas_2" fork="yes" dir=".">
<classpath refid="classpath"/>
</java>
</target>
<!-- ===================================================================
-->
<!-- Cleans up generated stuff
-->
<!-- ===================================================================
-->
<target name="clean">
<delete dir="${build.dir}"/>
<delete file="${jboss.home}/server/default/deploy/wadas.jar"/>
</target>
</project>
-------------------------------------------------------
This sf.net email is sponsored by: To learn the basics of securing
your web site with SSL, click here to get a FREE TRIAL of a Thawte
Server Certificate: http://www.gothawte.com/rd524.html
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user