On Tue, 11 Dec 2001, Emmanuel Sciara wrote: > 1) As it happens, the jboss_3_0.dtd does not exist yet. This is the reason > why we had this problem on JBoss 3.0a, which has been identified as a bug. > If you want more info, see bug report at > http://sourceforge.net/tracker/?func=detail&atid=376685&aid=489465&group_id= > 22866 . To fix the problem, you are now using jboss.dtd . I wonder how much > trouble this could trigger because this is the dtd for JBoss 2.2! Maybe it > would be safer to use jboss_2_4.dtd for the time being.
oh shit! I assumed (hehe, oops) that the jboss.dtd was for 3.0. I must admit, I didn't really read the comments as it seemed to go ok... will have a look at that... > 2) I tried removing the declaration of the dtd in the generated jboss.xml . > This works fine for JBoss3.0a as it stops complaining. isn't it deploying/working in 3.0a ? It was when I checked it in... > However, if I change > this in jboss.j, than xdoclet starts complaining because it is set to > validate any generated xml file (hard coded)... Looked more at the code and > found out that the dtd has to be changed in two places: jboss.j and the > static variable JBOSS_DTD_FILE_NAME_30 of the JBossSubTask class. This > static variable points to a local dtd where in the jboss.j an http address > is used. I can see two problems with the having the dtd declared in two > places and refereing to an http address for a dtd: > > a) there is somne redundancy here, which can trigger to some problems, > especially when you use two deferent dtd location, one local the other on > the web, which might get out of sink. Is it possible to avoid it? > b) The validation is hard coded to true and the dtd declared in the > jboss.xml requires an http connection! What if I want to work and I am not > connected to the internet? JBoss went around this problem by using a local > resolver. Have a look at the org.jboss.metadata.XMLFileLoader.LocalResolver > class (if you need I can send it to you). yeah, we'd be better off having one resource, I'll have a look at the JBoss code... Ara - do you have any input on this? > Errr... Should we move this to the xdoclet-dev list? yep (o: see the to: address cheers dim _______________________________________________ Xdoclet-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-devel
