Issue Details (XML | Word | Printable)

Key: XDT-883
Type: Bug Bug
Status: Closed Closed
Resolution: Won't Fix
Priority: Minor Minor
Assignee: Eric Pugh
Reporter: Matt Raible
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
XDoclet

HibernateDoclet depends on EjbDocletTask?

Created: 26/Apr/04 03:15 AM   Updated: 07/Sep/04 06:34 AM
Component/s: Hibernate Module
Affects Version/s: 1.2.1
Fix Version/s: None

Time Tracking:
Not Specified

Environment: Windows XP, JDK 1.4.2, Ant 1.6.1


 Description  « Hide
Using the latest stuff from CVS, if I don't have the ejb module in my classpath, when I try to run <hibernatedoclet> - I get the following error:

Couldn't find the class xdoclet.modules.ejb.EjbDocletTask on the classpath

I searched through and couldn't find anywhere where Hibernate's XDoclet code depends on ejbdoclet. Any ideas?

Here's my target that fails at the "xdoclet.force" line:

    <target name="hibernatedoclet" depends="init" unless="hibernatedoclet.unnecessary"
        description="Generate Persistence and form classes">

        <taskdef
            name="hibernatedoclet"
            classname="xdoclet.modules.hibernate.HibernateDocletTask"
            classpathref="xdoclet.classpath"/>

        <mkdir dir="${build.dir}/dao/gen"/>
        
        <!-- generate hibernate files -->
        <hibernatedoclet
            destdir="${build.dir}/dao/gen"
            mergedir="metadata/dao"
            excludedtags="@version,@author"
            addedtags="@xdoclet-generated at ${TODAY}"
            force="${xdoclet.force}">
            <fileset dir="src/dao"/>

            <hibernate validatexml="true" version="2.0"/>

        </hibernatedoclet>
    </target>

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Eric Pugh added a comment - 03/Aug/04 02:41 PM
I think this can be closed as "can't duplicate". I just finished writing a tutorial on using xdoclet and hibernate. I just checked, and in my classpath I have:
commons-collections
commons-logging
log4j
xdoclet-1.2.1
xdoclet-hibernate-module-1.2.1
xdoclet-xdoclet-module-1.2.1
xjavadoc-1.0.3.


I seem to recall that in older versions of xdoclet the ejbdoclet was required...?
Eric Pugh

Matt Raible added a comment - 01/Sep/04 06:40 AM
I tracked down the problem this evening. This error is caused by the apache module. I found that by deleting the axis, soap and StrutsForm classes, I was able to eliminate the error. So it's not related to hibernatedoclet, but rather any Struts/Apache stuff. I'm about to checkin an <actionform> subtask that can generate ActionForms from POJOs - hence no EJB required. I suppose users will still need to include xdoclet's EJB module to "workaround" this. Or they can hack it like I did.

Matt

Eric Pugh added a comment - 07/Sep/04 06:34 AM
Since this bug doesn't affect HibernateDoclet, I'm going to mark it closed and resolved as part of housekeeping. If you think it's required, can you reopen/move this bug under the appropriate module?