-
1. Re: JBoss-3.2.1 - How do I edit JBoss DTD's
raja05 Aug 21, 2003 8:05 AM (in response to kv_moj)I think you need to change the DTD in
jboss.jar file in
JBOSS_HOME/server//lib/
There is a localResolver that resolves all the DTDs, so im imagining you could even specify the XML without the DTD and it would still get validated because the LocalREsolver uses DTDs that are built inside the jar file. Try updating that copy and it might take it.
BTW, how do you turn off validation? -
2. Re: JBoss-3.2.1 - How do I edit JBoss DTD's
kv_moj Aug 21, 2003 8:41 AM (in response to kv_moj)Hi Raja,
If you remove the <!DOCTYPE ..?> tag or just use the one I have above that turns off validation.
I'm gonna checkout what you've suggested.
I'll get back with that in a bit.
kv. -
3. Re: JBoss-3.2.1 - How do I edit JBoss DTD's
kv_moj Aug 21, 2003 9:07 AM (in response to kv_moj)OK,
So that's done it - but at the expense of extracting jboss.jar, editing the dtd and re-jaring the file.
I must say I think it's a bit strange that the parser doesn't perform any validation when using a private doctype (<!DOCTYPE root SYSTEM "http://host/file.dtd"?>).
Thanks for that m8.
kv. -
4. Re: JBoss-3.2.1 - How do I edit JBoss DTD's
raja05 Aug 21, 2003 9:19 AM (in response to kv_moj)If you look at the code(org.jboss.metadata.XMLFileLoader), they take care of conditions where the bean developer doesnt give the DTD declaration. So whatever be the DTD, they use a localresolver which points to this version of DTD inside the jar.
yeah, it is strange to unjar and rejar it but as long as it works, its cool.