Title: Loved Xdoclet 1.1.2 but can't get 1.2b2 to work - Please Help
I faced the same problem ... but after specifying all the jars in the lib in classpath ... it got resolved ... may be there are some unwanted ones too ... but i got through this way ...
----- Original Message -----
From: Jeff Gager
Sent: Friday, June 06, 2003 10:47 AM
Subject: [Xdoclet-user] Loved Xdoclet 1.1.2 but can't get 1.2b2 to work - Please Help

I have downloaded xdoclet-bin-1.2b2 and I am now getting the following error:

[ejbdoclet] Make sure the jar file containing the ejbdoclet class is on the classpath specified in the <taskdef> that defined {2}. These classes are needed in order to generate correct output.

[ejbdoclet]     at xdoclet.DocletTask.checkClass(DocletTask.java:501)
[ejbdoclet]     at xdoclet.modules.ejb.EjbDocletTask.validateOptions(EjbDocletTask.java:82)
[ejbdoclet]     at xjavadoc.ant.XJavadocTask.execute(XJavadocTask.java:53)
[ejbdoclet]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:193)
[ejbdoclet]     at org.apache.tools.ant.Task.perform(Task.java:341)
[ejbdoclet]     at org.apache.tools.ant.Target.execute(Target.java:309)
[ejbdoclet]     at org.apache.tools.ant.Target.performTasks(Target.java:336)
[ejbdoclet]     at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
[ejbdoclet]     at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
[ejbdoclet]     at org.apache.tools.ant.Main.runBuild(Main.java:609)
[ejbdoclet]     at org.apache.tools.ant.Main.start(Main.java:196)
[ejbdoclet]     at org.apache.tools.ant.Main.main(Main.java:235)

BUILD FAILED
file:N:/Applications/taxcalc/build.xml:25: Unexpected error

Total time: 27 seconds

This does not happen in Xdoclet 1.1.2 but I would really like to upgrade.

The ejbdoclet class refered to is xdoclet.modules.ejb.EjbDocletTask.class

This is in the jar file xdoclet-ejb-module-1.2b2.jar

The classpathref attribute of the ejbdoclet taskdef in my ant build.xml is set to a path which includes this jar file

so ant should be able to find the .class file!

What's going on?

I have found someone else with a similar problem who solved it by obtaining the latest cvs source and compiling it.

I would prefer not to do this because of your very sensible warnings about 'the bleeding edge'.

(life is hard enough without going there!).

I would be very grateful if you could help me out with this.

Many thanks in advance

- Jeff Gager

BACKGROUND IF YOU NEED IT



I am using
Windows XP
Ant 1.5.3
ant\bin is in my %PATH%

There are the relevant bits of my build.properties file:

ejb.version = 2.0
xdoclet.path = N:/Applications/xdoclet-bin-1.2b2
xdoclet.force = false
ant.path = N:/Applications/ant
src.path = src/main
generate.path = src/generate
build.path = build
classes.path = ${build.path}/classes

And these are the relevant bits in my build.xml file:

        <path id="xdoclet.lib.path">
            <fileset dir="${xdoclet.path}/lib">
                <include name="*.jar"/>
            </fileset>
        </path>

        <target name="build">

            <taskdef
                name="ejbdoclet"
                classname="xdoclet.modules.ejb.EjbDocletTask"
                  classpathref="xdoclet.lib.path"/>
               
                <mkdir dir="${generate.path}"/>

                <ejbdoclet destdir="${generate.path}"
                                   excludedtags="@version,@author"
                                   ejbspec="${ejb.version}"
                                   force="${xdoclet.force}">

                        <fileset dir="${src.path}">
                                <include name="**/*EJB.java"/>
                        </fileset> 

                        <remoteinterface/>
                        <homeinterface/>

                </ejbdoclet>
        </target>






**********************************************************************
This message is intended only for the use of the intended recipients to whom
it is addressed.
It may contain information which is privileged and confidential within the
meaning of applicable law.
If you are not the intended recipient, please contact the sender as soon as
possible.
The views expressed in this communication may not necessarily be the views
held by British Airways Pensions.
**********************************************************************

Reply via email to