On Thu, 2003-07-17 at 13:21, Stefan Schendel wrote:
> i�m developing EJB for JBOSS with Netbeans and XDoclet. With XDoclet 1.1
> everything is okay. Now i want to upgrade to XDoclet 1.2Beta and inside
> Netbeans my ANT-Script hangs. When i start the script outside Netbeans on
> the commandline it works.
>
> The error i get, is:
>
> buildNB.xml [172] Can't create a dataobject element under ejbdoclet. Make
> sure the jar file containing the corresponding subtask class is on the
> classpath specified in the <taskdef> that defined {2}.
Usually a classpath problem.
> And here is my script:
>
> <!-- J2EE classpath -->
> <path id="j2ee-classpath">
> <fileset dir="${jboss.home}">
> <include name="client/*.jar"/>
> <include name="lib/*.jar"/>
> <include name="lib/ext/*.jar"/>
> </fileset>
> </path>
>
> <!-- Ant classpath -->
> <path id="ant-opt-classpath">
> <fileset
> dir="${netbeans.home}/modules/patches/org-apache-tools-ant-module">
> <include name="*.jar"/>
> </fileset>
> <fileset dir="${netbeans.home}/modules/ext">
> <include name="ant-*.jar"/>
> </fileset>
> </path>
>
> <!-- XDoclet classpath -->
> <path id="xdoclet-classpath">
> <path refid="j2ee-classpath"/>
> <path refid="ant-opt-classpath"/>
> </path>
>
> <target name="xdoclet-generate" depends="init">
>
> <taskdef
> name="ejbdoclet"
> classname="xdoclet.modules.ejb.EjbDocletTask"
> classpathref="xdoclet-classpath"
> >
> </taskdef>
>
> <ejbdoclet
> destdir="${generated.java.dir}"
> excludedtags="@version,@author"
> addedtags="@xdoclet-generated at ${TODAY}"
> ejbspec="2.0"
> >
> <fileset dir="${src.dir}">
>
> Did anyone have an idea, what went wrong?
I see you have the jboss & Ant jars in the classpath used in the
taskdef, but where's it going to get the xdoclet jars from? Or have you
put those in one of the other directories? Please don't say you've put
them in Ant's lib directory (like I said yesterday, that way madness
lies). If you /did/ put them in Ant's lib directory, have you done
likewise for the NB Ant module (it doesn't use the other installation at
all, at least not with the current versions of the module)? That, at
least, might explain why it works from the command line but not within
Netbeans.
Have you tried increasing the Verbosity Level in Netbeans' Ant Settings
(under Tools->Options->Building) to see if that gives you any better
idea of where it's searching for the classes? Do the same on the
command line (ant -verbose) and see what extra jars are being picked up.
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