I'm trying to compile the sample project and I keep getting this message:
G:\java\uml2ejb-1.3\sample\build.xml:255: null Property "build.classpath" is set but it doesn't seem to contain the Xdoclet jar.
added ${build.classpath} to the <fail> directive, and the xdoclet jar files are included.
I'm using ant v1.4.1, jdk 1.4.1
any ideas?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
There may be other classes that XDoclet depends upon but which may not be included in your classpath (e.g. log4j etc.). The problem is that Java thinks the XDoclet classes are not there but the truth is, they are there but cannot be loaded because their dependents cannot be loaded.
Here is the "Matthias Bohlen classpath debugging trick" to check that:
* Open a command prompt.
* Put all jars you think you have collected into the CLASSPATH variable.
* Try to invoke the "java" executable on XDoclet's ant task class.
If you get a "no such method: main()" error, your classpath is OK. If not, the message will tell you what is happening.
Cheers...
Matthias
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I don't know for sure, but if I were to make a guess at a possible cause ...
Perhaps you are using a newer version of XDoclet than was delivered with the UML2EJB release? The classname for the ant ejbdoclet class changed name in the newer XDoclet.
If so then you will have to edit the classname in you build.xml. Change:
from: xdoclet.module.ejb.EjbDocletTask
to: xdoclet.ejb.EjbDocletTask
There are two places in the build file where you will have to change this.
But ... if you are using the newer XDoclet you will also have to make some changes to your *.vsl template files. I already made some of these changes in another project.
- tony
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm trying to compile the sample project and I keep getting this message:
G:\java\uml2ejb-1.3\sample\build.xml:255: null Property "build.classpath" is set but it doesn't seem to contain the Xdoclet jar.
added ${build.classpath} to the <fail> directive, and the xdoclet jar files are included.
I'm using ant v1.4.1, jdk 1.4.1
any ideas?
There may be other classes that XDoclet depends upon but which may not be included in your classpath (e.g. log4j etc.). The problem is that Java thinks the XDoclet classes are not there but the truth is, they are there but cannot be loaded because their dependents cannot be loaded.
Here is the "Matthias Bohlen classpath debugging trick" to check that:
* Open a command prompt.
* Put all jars you think you have collected into the CLASSPATH variable.
* Try to invoke the "java" executable on XDoclet's ant task class.
If you get a "no such method: main()" error, your classpath is OK. If not, the message will tell you what is happening.
Cheers...
Matthias
I don't know for sure, but if I were to make a guess at a possible cause ...
Perhaps you are using a newer version of XDoclet than was delivered with the UML2EJB release? The classname for the ant ejbdoclet class changed name in the newer XDoclet.
If so then you will have to edit the classname in you build.xml. Change:
from: xdoclet.module.ejb.EjbDocletTask
to: xdoclet.ejb.EjbDocletTask
There are two places in the build file where you will have to change this.
But ... if you are using the newer XDoclet you will also have to make some changes to your *.vsl template files. I already made some of these changes in another project.
- tony