On Sat, 2003-06-28 at 13:27, [EMAIL PROTECTED] wrote:
> BUILD FAILED
> file:C:/Titan-JBoss-3.2-12d/workbook/XdocletCineuser/build.xml:70: taskdef class
>  xdoclet.modules.ejb.EjbDocletTask cannot be found
...
>     <taskdef
>         name="ejbdoclet"
>         classname="xdoclet.modules.ejb.EjbDocletTask"/>
...
> In C:\jakarta.apache.org\xdoclet\lib I have :
[all the xdoclet jars]
> ant -debug  gives this as build.classpath
> 
> Setting project property: build.classpath -> C:\jboss-3
> \client\concurrent.jar;C:\jboss-3\client\gnu-regexp.jar;C:\jboss-3
> \client\jaas.jar;C:\jboss-3\client\jacorb.jar;C:\jboss-3\client\jboss-
> client.jar;C:\jboss-3\client\jboss-common-client.jar;C:\jboss-3\client\jboss-
> iiop-client.jar;C:\jboss-3\client\jboss-j2ee.jar;C:\jboss-3\client\jboss-
> jsr77.jar;C:\jboss-3\client\jboss-net-client.jar;C:\jboss-3\client\jboss-system-
> client.jar;C:\jboss-3\client\jbossall-client.jar;C:\jboss-3\client\jbossha-
> client.jar;C:\jboss-3\client\jbossjmx-ant.jar;C:\jboss-3\client\jbossmq-
> client.jar;C:\jboss-3\client\jbossmqha.jar;C:\jboss-3\client\jbosssx-
> client.jar;C:\jboss-3\client\jcert.jar;C:\jboss-3\client\jmx-connector-client-
> factory.jar;C:\jboss-3\client\jmx-ejb-connector-client.jar;C:\jboss-3
> \client\jmx-rmi-connector-client.jar;C:\jboss-3\client\jnet.jar;C:\jboss-3
> \client\jnp-client.jar;C:\jboss-3\client\jsse.jar;C:\jboss-3
> \client\log4j.jar;C:\Titan-JBoss-3.2-
> 12d\workbook\XdocletCineuser\build\classes;C:\Titan-JBoss-3.2-
> 12d\workbook\XdocletCineuser\jndi;C:\jakarta.apache.org\xdoclet\lib
> 
> What am I doing wrong? 

Having "C:\jakarta.apache.org\xdoclet\lib" in the build classpath will
only look for class files below that, it won't look inside the jars that
are in there.  So as the xdoclet jars aren't in the classpath, the
"taskdef class xdoclet.modules.ejb.EjbDocletTask cannot be found".

How is that variable being set in your build file? (there's nothing in
the target you quoted to do it).  Also, you're not actually telling the
taskdef to use it; I believe you'll need to add a
classpathref="build.classpath" attribute to the taskdef.  I suppose it's
possible that taskdef will use a path of that name by default, but I
don't see anything in the Ant manual to suggest that's the case.  Be
safe, and specify it yourself.  See the samples' build.xml for an
example (look at the definition and use of samples.class.path).


Andrew.



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to