Hello guys
i have a problem with xdoclet to create the hbm.xml files related with the
composite keys
after see in google it seems that the solution is xdoclet2
well after read the information, like
http://www.hibernate.org/284.html, i try do use the example configuration
and well
i used to work only with
ant, and i have the
xdoclet-plugins-1.0.3.tar.gz, the last version since 2005
here my build.xml
Code:
<project name="manoloTest" basedir="." default="hibernate" >
<property name="xdoclet2.lib.dir" value="${basedir}/MyLib/xdoclet2/lib"/>
<target name="xdoclet2">
<mkdir dir="${basedir}/target/xdoclet2/persistence"/>
<path id="xdoclet2.task.classpath">
<!-- Add the xdoclet2 plugins jar here -->
<pathelement location="${xdoclet2.lib.dir}/../plugins/xdoclet-plugin-hibernate-1.0.jar"/>
<!-- <pathelement location="${xdoclet2.lib.dir}/"/> -->
<pathelement location="${xdoclet2.lib.dir}/xdoclet-2.0.4.jar"/>
<pathelement location="${xdoclet2.lib.dir}/generama-1.2.1.jar"/>
<pathelement location="${xdoclet2.lib.dir}/nanocontainer-ant-1.0-beta-3.jar"/>
<pathelement location="${xdoclet2.lib.dir}/nanocontainer-1.0-beta-3.jar"/>
<pathelement location="${xdoclet2.lib.dir}/picocontainer-1.0.jar"/>
<pathelement location="${xdoclet2.lib.dir}/qdox-20051211.114207.jar"/>
<pathelement location="${xdoclet2.lib.dir}/velocity-1.4.jar"/>
<pathelement location="${xdoclet2.lib.dir}/commons-jelly-20050813.225330.jar"/>
<pathelement location="${xdoclet2.lib.dir}/commons-jelly-tags-define-1.0.jar"/>
<pathelement location="${xdoclet2.lib.dir}/commons-jelly-tags-jsl-1.0.jar"/>
<pathelement location="${xdoclet2.lib.dir}/commons-jelly-tags-xml-20050823.222913.jar"/>
<pathelement location="${xdoclet2.lib.dir}/commons-beanutils-1.7.0.jar"/>
<pathelement location="${xdoclet2.lib.dir}/commons-collections-3.1.jar"/>
<pathelement location="${xdoclet2.lib.dir}/commons-jexl-1.0.jar"/>
<pathelement location="${xdoclet2.lib.dir}/commons-logging-1.0.4.jar"/>
<pathelement location="${xdoclet2.lib.dir}/dom4j-1.6.jar"/>
<pathelement location="${xdoclet2.lib.dir}/jaxen-1.1-beta-4.jar"/>
<pathelement location="${xdoclet2.lib.dir}/saxpath-1.0-FCS.jar"/>
<pathelement location="${xdoclet2.lib.dir}/xerces-2.4.0.jar"/>
</path>
<taskdef name="xdoclet2" classname="org.xdoclet.ant.XDocletTask"
classpathref="xdoclet2.task.classpath" />
</target>
<target name="hibernate" depends="xdoclet2">
<xdoclet2>
<!-- defines the file handled by xdoclet2 -->
<fileset dir="${basedir}/src">
<include name="**/*.java"/>
</fileset>
<!-- defines the processing of a plugin -->
<component
classname="org.xdoclet.plugin.hibernate.HibernateMappingPlugin"
destdir="${basedir}/src"
version="3.0"
/>
</xdoclet2>
</target>
</project>
if i excute
ant hibernate , i recieve this error
Code:
/WEB-INF/build.xml:37: Class Not Found: Classloader URLs (classpath):
well the line is
<xdoclet2>
what is wrong?? , i have references to the all 19 jar files of the lib distribution and the plugin for hibernate
pls help, my boss have a gun and i need resolve this problem
thanks so much for advanced