I am running XDoclet v. 1.2.1 on a Hibernate class, but it is not generating .hbm 
scripts. It gives no feedback as to why it fails. If XDoclet finds my 'tagged' java 
source files, then shouldn't it give some feedback, even if the tags in the file are 
incorrect?

Below is a partial printout. As you can see, the JBoss descriptor gets generated, but 
that is the only hibernatedoclet task that runs. Also, the next task, ejbdoclet, also 
has errors. The Deploy and immediate Undeploy looks a bit suspect. Not sure how to 
interepret the ' content of element type' error. Just for kicks, I also added some 
relevant parts of my build script after the printout.

Thanks for helping!



The printout:

xdoclet:
[hibernatedoclet] Generiere JBoss Descriptor
[ejbdoclet] Deploy TEMPLATE URL: jar:file:F:\xdoclet121\lib\xdoclet-apache-modu
le-1.2.1.jar!/xdoclet/modules/apache/axis/ejb/resources/axis-deploy_wsdd.xdt
[ejbdoclet] Undeploy TEMPLATE URL: jar:file:F:\xdoclet121\lib\xdoclet-apache-mo
dule-1.2.1.jar!/xdoclet/modules/apache/axis/ejb/resources/axis-undeploy_wsdd.xdt

[ejbdoclet] Generating EJB deployment descriptor (ejb-jar.xml).
[ejbdoclet] Generating jboss.xml.
[ejbdoclet] org.xml.sax.SAXParseException: The content of element type "enterpri
se-beans" is incomplete, it must match "(session|entity|message-driven)+".
[ejbdoclet] at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseExce
ption(Unknown Source)
[ejbdoclet] at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Sour
ce)



Partial build script with xml characters removed:

basedir="."
property name="src" location="src"
property name="src.hibernate" location="${src}/hibernate"  !-- tagged java source 
files 

path id="xdoclet.classpath"
fileset dir="F:\xdoclet121\lib"
include name="*.jar"
fileset
path

taskdef
name="hibernatedoclet"
classname="xdoclet.modules.hibernate.HibernateDocletTask"
classpath refid="xdoclet.classpath"
taskdef

hibernatedoclet
destdir="${build.mappings}"
excludedtags="@version,@author,@todo"
force="true"
verbose="true"
mergedir="${build.mappings}"

fileset dir="${src.hibernate}"
include name="*.java"
fileset

hibernate version="2.0"
hibernatedoclet


taskdef
name="ejbdoclet"
classname="xdoclet.modules.ejb.EjbDocletTask"
classpathref="xdoclet.classpath"

tstamp
format property="TODAY" pattern="d-MM-yy"
tstamp

ejbdoclet !-- This should generate session bean files and interfaces --
destdir="${build.meta}"
excludedtags="@version,@author"
addedtags="@xdoclet-generated at ${TODAY}"
force="true"
ejbspec="2.0">

fileset dir="${src.ejb}"
include name="**/*.java"
fileset

session

localinterface pattern="{0}Local"
localhomeinterface pattern="{0}LocalHome"
remoteinterface pattern="{0}Remote"
homeinterface pattern="{0}Home"

ejbdoclet

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3834846#3834846

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3834846


-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to