On Thu, 2004-01-08 at 19:24, Benjamin Cox wrote:
> Hello... I'm getting the error in the subject line when running the
> samples - the most basic thing of all! I've tried everything I found
> when searching this mailing list, but I still can't get past this problem.
>
> Below is a session where I untar the xdoclet distribution and
> immediately try to run 'ant' in the samples directory. It also shows
> the ant version I'm using and the contents of the ant 'lib' directory.
> I've tried removing everything from the ant 'lib' directory one by one
> and in groups, to no avail.
It works for me, though that probably doesn't help you much. I've
enclosed the corresponding output from my machine below. The only
obvious difference is I'm using Ant 1.5.3 not 1.5.4, though I'd be
surprised if that was the cause.
> Anyone have any idea why I can't do any XDoclet stuff from ant on my box?
Given that it's complaining about
org/apache/commons/collections/Predicate being missing, can you check
that commons-collections-2.0.jar is present in xdoclet-1.2/lib (and not
corrupted)? Also, you don't have a global classpath environment
variable set, do you? That can often confuse things.
Failing that, you could also try running ant -verbose; that will give
more information about the classpath it's using and where it's loading
all the classes from. Be prepared for a lot of output, though...
Andrew.
>
> Thanks in advance,
>
> Ben
>
> [EMAIL PROTECTED] samples]$ ant -version
> Apache Ant version 1.5.4 compiled on August 12 2003
> [EMAIL PROTECTED] samples]$ ls /usr/local/ant/lib
> README ant.jar xercesImpl.jar
> ant-contrib-0.6.jar optional.jar xml-apis.jar
> [EMAIL PROTECTED] tmp]$ tar -xzf ~/downloads/java/xdoclet-bin-1.2.tgz
> [EMAIL PROTECTED] tmp]$ cd xdoclet-1.2/
> [EMAIL PROTECTED] xdoclet-1.2]$ ls
> docs lib samples
> [EMAIL PROTECTED] xdoclet-1.2]$ cd samples
> [EMAIL PROTECTED] samples]$ ant
> Buildfile: build.xml
>
> init:
>
> prepare:
>
> ejbdoclet:
> [echo] +---------------------------------------------------+
> [echo] | |
> [echo] | R U N N I N G E J B D O C L E T |
> [echo] | |
> [echo] +---------------------------------------------------+
>
> BUILD FAILED
> file:/home/bjc/tmp/xdoclet-1.2/samples/build.xml:113: Could not create
> task of type: ejbdoclet due to java.lang.NoClassDefFoundError:
> org/apache/commons/collections/Predicate
>
> Total time: 2 seconds
[testing]$ ant -version
Apache Ant version 1.5.3 compiled on April 9 2003
[testing]$ ls /usr/local/java/apache-ant-1.5.3/lib
ant.jar junit.jar optional.jar README xercesImpl.jar xml-apis.jar
[testing]$ tar -xzf ~/download/programming/java/xdoclet-bin-1.2.tgz
[testing]$ cd xdoclet-1.2/
[xdoclet-1.2]$ ls
docs/ lib/ samples/
[xdoclet-1.2]$ cd samples
[samples]$ ant
Buildfile: build.xml
init:
prepare:
ejbdoclet:
[echo] +---------------------------------------------------+
[echo] | |
[echo] | R U N N I N G E J B D O C L E T |
[echo] | |
[echo] +---------------------------------------------------+
[ejbdoclet] Deploy TEMPLATE URL:
jar:file:/home/andy/testing/xdoclet-1.2/lib/xdoclet-apache-module-1.2.jar!/xdoclet/modules/apache/axis/ejb/resources/axis-deploy_wsdd.xdt
[ejbdoclet] Undeploy TEMPLATE URL:
jar:file:/home/andy/testing/xdoclet-1.2/lib/xdoclet-apache-module-1.2.jar!/xdoclet/modules/apache/axis/ejb/resources/axis-undeploy_wsdd.xdt
[ejbdoclet] (XDocletMain.start 47 ) Running <remoteinterface/>
[ejbdoclet] Generating Remote interface for 'test.ejb.CustomerBean'.
[ejbdoclet] Generating Remote interface for 'test.ejb.PersonBean'.
[ejbdoclet] Generating Remote interface for 'test.ejb.StatefulBean'.
[ejbdoclet] Generating Remote interface for 'test.ejb.AccountBean'.
[ejbdoclet] Generating Remote interface for 'test.ejb.AllTypesEntityBean'.
[ejbdoclet] Generating Remote interface for 'test.ejb.TellerBean'.
[ejbdoclet] (XDocletMain.start 47 ) Running
<localinterface/>[ejbdoclet] Generating Local interface for 'test.ejb.PersonBean'.
[ejbdoclet] Generating Local interface for 'test.ejb.cmr.LanguageCodeBean'.
[ejbdoclet] Generating Local interface for 'test.ejb.StatefulBean'.
[ejbdoclet] Generating Local interface for 'test.ejb.AccountBean'.
[ejbdoclet] Generating Local interface for 'test.ejb.cmr.CityBean'.
[ejbdoclet] Generating Local interface for 'test.ejb.AllTypesEntityBean'.
[ejbdoclet] Generating Local interface for 'test.ejb.TellerBean'.
[ejbdoclet] Generating Local interface for 'test.ejb.cmr.CountryBean'.
[ejbdoclet] Generating Local interface for 'test.ejb.AddressBean'.
[ejbdoclet] Generating Local interface for 'test.ejb.cmr.EmployeeBean'.
[ejbdoclet] Generating Local interface for 'test.ejb.cmr.LanguageBean'.
[ejbdoclet] Generating Local interface for 'test.ejb.FileBean'.
[ejbdoclet] Generating Local interface for 'test.ejb.cmr.EmployeeAddressBean'.
[ejbdoclet] (XDocletMain.start 47 ) Running <homeinterface/>
[ejbdoclet] Generating Home interface for 'test.ejb.CustomerBean'.
[ejbdoclet] Generating Home interface for 'test.ejb.PersonBean'.
[ejbdoclet] Generating Home interface for 'test.ejb.StatefulBean'.
[ejbdoclet] Generating Home interface for 'test.ejb.AccountBean'.
[ejbdoclet] Generating Home interface for 'test.ejb.AllTypesEntityBean'.
[ejbdoclet] Generating Home interface for 'test.ejb.TellerBean'.
[ejbdoclet] (XDocletMain.start 47 ) Running <localhomeinterface/>
[ejbdoclet] Generating Local Home interface for 'test.ejb.PersonBean'.
[ejbdoclet] Generating Local Home interface for
'test.ejb.cmr.LanguageCodeBean'.[ejbdoclet] Generating Local Home interface for
'test.ejb.StatefulBean'.
[ejbdoclet] Generating Local Home interface for 'test.ejb.AccountBean'.
[ejbdoclet] Generating Local Home interface for 'test.ejb.cmr.CityBean'.
[ejbdoclet] Generating Local Home interface for 'test.ejb.AllTypesEntityBean'.
[ejbdoclet] Generating Local Home interface for 'test.ejb.TellerBean'.
[ejbdoclet] Generating Local Home interface for 'test.ejb.cmr.CountryBean'.
[ejbdoclet] Generating Local Home interface for 'test.ejb.AddressBean'.
[ejbdoclet] Generating Local Home interface for 'test.ejb.cmr.EmployeeBean'.
[ejbdoclet] Generating Local Home interface for 'test.ejb.cmr.LanguageBean'.
[ejbdoclet] Generating Local Home interface for 'test.ejb.FileBean'.
[ejbdoclet] Generating Local Home interface for 'test.ejb.cmr.EmployeeAddressBean'.
...
snipped the rest, you should have the idea by now :-)
-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user