Hi All,
A few days ago this same problem was presented by somebody else, so obviously
it is not unique. There have been no answers as yet.
It happens when running the samples directly after clicking the Generate
button on the GUI.
First question: where is this class that can't be found?
Answer: in the middlegen.jar file in the ${MIDDLEGEN_HOME}/samples/lib
directory.
It would therefore seem that this middlegen.jar is not on the classpath.
Unfortunately, it is not so simple.
Looking at the build.xml I find:
<path id="lib.class.path">
<pathelement path="${database.driver.classpath}"/>
<fileset dir="${lib.dir}">
<include name="*.jar"/>
</fileset>
<!-- The middlegen jars -->
<fileset dir="${middlegen.home}/">
<include name="*.jar"/>
</fileset>
</path>
I also find: <property name="lib.dir" value="${basedir}/lib"/>
As ${basedir} is the samples directory that places us right in the middle of
lib directory which contains middlegen.jar
Now we find:
<taskdef name="middlegen" classname="middlegen.MiddlegenTask"
classpathref="lib.class.path" /> in the middlegen task. BTW, this class is
also in the same jar file, and it seems to load well. Running the individual
tasks in sequence from the commandline, this is where the trouble is.
However, it seems that some of the other jars in the lib directory are indeed
added to the classpath, because disabling this little bit brings us not even
this far.
Of course, adding the middlegen.jar to the classpath does not work.
I've searched the middlegen archives, but no mention of this, apart from the
letter a few days ago.
The database tables where generated and populated (the three names etc), no
problem.
I run XDoclet1.2.1b2 and Ant 1.5.1
Any idea what can be wrong? I'm stuck.
Thanks very much.
--
Chris Malan
[EMAIL PROTECTED]
Home Page: http://members.optusnet.com.au/~malan2000
-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
_______________________________________________
middlegen-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/middlegen-user