I've trying to deploy Adobe ColdFusion 9 to JBoss AS7. This is not a supported platform (JBoss 5.x and 6.x are supported), but I was keen to give it a try in my development environment.
Everything I have tried so far seems to work, except for XML parsing. I think what is happening that under AS7, it seems to be retrieving default values from the referenced DTD, whereas in previous versions of JBoss this was not the case.
To illustrate what I mean, above is a screenshot of the behaviour under JBoss 5.0.1 (left), and 7.1.0 (right). The XML file I'm parsing is:
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd"> <beans default-autowire="byName"> <bean id="userService" class="coldspring.examples.quickstart.components.UserService" /> <bean id="userGateway" class="coldspring.examples.quickstart.components.UserGateway" /> <bean id="configBean" class="coldspring.examples.quickstart.components.ConfigBean" /> </beans>
ColdFusion seems to use Xerces / Xalan under the hood. I've tried a few things like adding -Dhttp://xml.org/sax/features/validation=false to JAVA_OPTS (and a host of others) in the hope this might prevent this behaviour, but it hasn't seemed to have made any difference.
Does anyone have any suggestions as to whether there is a configuration option I can pass to prevent this inclusion of default values in the xml parse?