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.

Bug 55045 - some problem with settings on 1.5.0_03
Summary: some problem with settings on 1.5.0_03
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 4.x
Hardware: Other Linux
: P2 blocker (vote)
Assignee: rmatous
URL:
Keywords: TEST
Depends on:
Blocks:
 
Reported: 2005-02-16 12:12 UTC by Jaroslav Tulach
Modified: 2008-12-22 23:05 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2005-02-16 12:12:54 UTC
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
Comment 1 rmatous 2005-02-16 18:56:21 UTC
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.
Comment 2 Jesse Glick 2005-03-31 22:24:48 UTC
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.