This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I believe something can be very wrong with our settings support on 1.5.0_03 VM: Module: core/settings org.netbeans.spi.settings.DOMConvertorTest.testCreateSetting error Unsupported DOM document implementation! java.lang.ClassNotFoundException: org.apache.xml.serialize.XMLSerializer testbag_stable_code
Fixed in trunk. Doesn't need to be fixed in release41_beta branch. /cvs/core/settings/nbproject/project.properties new revision: 1.4; previous revision: 1.3 XMLUtil.write looks primarily for Crimson. But J2SE 1.4.x includes the Crimson parser, while J2SE 1.5 include the Xerces2 parser. If Crimson not find there is looked for XMLSerializer. In NB IDE is XMLSerializer found but in DOMConvertorTest not. The reason seems to be that there are NB modules that have dependency on netbeans.libs.xerces which is autoload and serves as a xerces provider (Class-Path: ext/xerces-2.6.2.jar). So, there is no problem in core/settings module nor its tests. This problem occures just because there is called XMLUtil.write method. I don't think that every module that call this method should empirically define its dependency on xerces. Maybe there should be filed separate issue to review current XMLUtil code.
Crimson is useless and irrelevant. XMLUtil.write needs Xerces if and only if you are attempting to write a document containing XML namespaces, which currently AFAIK is impossible to do correctly and reliably using pure JAXP APIs, nor with Xalan - you need to use Xerces' serializer package. XMLUtil.write will as of Mar 14 work with the JDK's copy of Xerces for JDK 1.5+, but for JDK 1.4 you must unfortunately still add some xerces.jar to your classpath or it cannot work.