I think you need to change the DTD in
jboss.jar file in
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?
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.
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.
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.