Hi,
Thanks to Andrew Stevens, I have solved my previous problem (see thread [XDoclet 1.2]
String manipulation in a XDT file?) by creating a new namespace.
My XDT file used to generate a BusinessDelegate now looks like :
<XDtTagDef:tagDef namespace="Sofaxis"
handler="com.dexia.tools.xdoclet.SofaxisTagsHandler"/>
[...]
<XDtSofaxis:ifThrowsException name="javax.ejb.CreateException">
} catch(javax.ejb.CreateException ce) {
throw new SystemException("Erreur de creation avec l'EJB", ce);
</XDtSofaxis:ifThrowsException>
<XDtSofaxis:ifThrowsException name="javax.ejb.FinderException">
} catch(javax.ejb.FinderException fe) {
throw new SystemException("Erreur de recherche avec l'EJB", fe);
</XDtSofaxis:ifThrowsException>
}
[...]
This works perfeclty as long as I need to rebuild the Business Delegate.
The problem is that I get an error if the file does not need to be rebuilt:
(XDocletMain.start 47 ) Running <delegate/>
(TemplateEngine.getTagHandlerFor 206 ) Could not find tag handler for prefix:
'XDtSofaxis'
(TemplateEngine.invokeMethod 519 ) Error occured at/around line 18, offending
template tag: XDtSofaxis:ifThrowsException
(XDocletMain.start 53 ) Running XDoclet failed.
(XDocletMain.start 54 ) <<xdoclet.template.TemplateException: Could
not find tag handler for prefix: 'XDtSofaxis'>>
xdoclet.template.TemplateException: Could not find tag handler for prefix: 'XDtSofaxis'
at xdoclet.template.TemplateEngine.getTagHandlerFor(TemplateEngine.java:207)
at xdoclet.template.TemplateParser.getTagHandlerFor(TemplateParser.java:56)
at xdoclet.template.TemplateEngine.invokeMethod(TemplateEngine.java:516)
at xdoclet.template.TemplateEngine.invokeBlockMethod(TemplateEngine.java:959)
[...]
I don't understand why the TagHandler for the namespace XDtSofaxis is not found *only*
if no rebuild is needed?
Any info about this?
Thanks
Didier D
_________________________________________________________________________________________________________
Ce message (et toutes les pi�ces jointes) sont confidentiels ; son contenu ne
repr�sente en aucun cas un engagement de la part de DEXIA SOFAXIS. Toute publication,
utilisation ou diffusion, m�me partielle, doit �tre autoris�e pr�alablement par
l'�metteur.
Si vous n'�tes pas destinataire de ce message, merci d'en avertir imm�diatement
l'exp�diteur.
Conform�ment aux dispositions de la loi n� 78-17 du 6 janvier 1978 relative �
l'informatique, aux fichiers et aux libert�s, vous pouvez obtenir communication et, le
cas �ch�ant, rectification ou suppression des informations vous concernant en vous
adressant � DEXIA SOFAXIS - Route de Creton - 18110 VASSELAY
_________________________________________________________________________________________________________
Consultez notre site internet http://www.sofaxis.com
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id56&alloc_id438&op=click
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user