Re: JDK 1.3 and CharsetXMLWriter

2006-11-01 Thread Jochen Wiedmann
On 11/1/06, Vincent Reviol <[EMAIL PROTECTED]> wrote: NoClassDefFoundError is thrown on line 35 of CharsetXMLWriter (init method). But the following works: Applied, thank you! -- My wife Mary and I have been married for forty-seven years and not once have we had an argument serious enough to

Re: JDK 1.3 and CharsetXMLWriter

2006-11-01 Thread Vincent Reviol
No sorry,NoClassDefFoundError is thrown on line 35 of CharsetXMLWriter (init method).But the following works:static {    Class c;    try {    Class.forName("java.nio.charset.Charset ");    c = Class.forName("org.apache.ws.jaxme.impl.CharSetXMLWriter");    } catch (Exception e) {    c =

Re: JDK 1.3 and CharsetXMLWriter

2006-11-01 Thread Jochen Wiedmann
On 11/1/06, Vincent Reviol <[EMAIL PROTECTED]> wrote: static { Class c; try { Class.forName("java.nio.charset.Charset"); c = CharSetXMLWriter.class; } catch (Exception e) { c = XMLWriterImpl.class; } xmlWriterClassDefault = c; } I understand the is

JDK 1.3 and CharsetXMLWriter

2006-11-01 Thread Vincent Reviol
Hello,It seems that IBM's J2RE 1.3.1 class loader is able to load the CharsetXMLWriter class although it imports java.nio.charset.Charset which is not present. This leads to a NoClassDefFoundError at runtime when marshalling an XML document. To prevent this, the static block at line 101 in JMMarsha