Hi thx Andrew, i deleted the content of the classpath and everything went right...
...that's whats making developers live hard ;-) Johannes -----Urspr�ngliche Nachricht----- Von: Andrew Stevens [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 16. Juli 2003 22:03 An: [EMAIL PROTECTED] Betreff: Re: [Xdoclet-user] runnin mad On Wed, 2003-07-16 at 10:33, Rumpf, Johannes, Fremdfirma wrote: > i'm running mad... I'm just try to build the > samples and whatever i do i got: > > ... taskdef class xdoclet.ejb.EjbDocletTask cannot be found With the various 1.2 betas, that should be xdoclet.modules.ejb.EjbDocletTask, although there is still a class with the old name for backwards compatibility, so that ought not to be the problem. > or any other task i'd like to test. > > - i've copied the xdoclet.jar in every lib-dir Don't put anything in Ant's lib dir that wasn't there when you installed it. That way madness lies. In particular, it'll take you days after upgrading to a newer version of xdoclet to figure out why it's still behaving the same as before, because you forgot you'd put them in there ;-) As well as xdoclet.jar, did you also include the various modules' jars? In particular, the ejb module? Do you have the EJB API classes (Sun's j2ee.jar or an app server vendor's equivalent jar) available on the classpath too? The xdoclet module jars have various dependencies (both on each other and on third party stuff like the J2EE classes). If you're not sure which are needed, safest thing is to include them all. Also, you need to make sure the various jakarta commons jars (collections & logging) and the xjavadoc.jar are in there too. Depending what version of which beta you're using, they may be missing from the zip. > - i've put all jar's in the classpath Don't use the classpath environment variable, it's evil (as soon as you try the same build on another machine, it may not be set up the same and thus break your build). Build up a path structure in the Ant script and specify that, so you know for sure what's on it. See the samples' build script for an example. > - i've tried the xdoc 1.2b3 and i've tried the 1.1.2xdoc samples YMMV with 1.1.2. That was before everything got modularised, and everything was built into one jar. You still had to include the J2EE classes in the classpath, though (and Ant's own classes, I think, and log4j). >(ant 1.5.3 or 1.4.1, jdk 1.3.1) JDK version shouldn't matter, so long as it's >= 1.2. Ant needs to be >= 1.5, at least that's what it says under "Requirements" in the docs & on the web site :-) http://xdoclet.sourceforge.net/install.html If you've got more than one version of Ant installed, double-check what ANT_HOME is set to and run "ant -version" to make sure which one it's running. > i've no more idea why this **** won't work. > So if anybody has a good idea, that will show me that's all easy and i'm > just to stupid - > i'm a happy men. You could also try "ant -verbose" and see where it says it's looking when it tries to load the class. Andrew. ------------------------------------------------------- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user ------------------------------------------------------- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
