Eric, can you please try to set the required XMLSerializer instance in the castor.properties file
# Defines the default XML serializer to be used by castor # The serializer must implement org.apache.xml.serialize.Serializer # org.exolab.castor.serializer=org.apache.xml.serialize.XMLSerializer and let me know whether this solves your problem. Thanks Werner On Wed, 22 Dec 2004 18:45:40 -0600, Erik Pearson wrote: > > >I'm trying to use Castor 0.9.5.4 with JAXP 1.3 RI, available at >http://jaxp.dev.java.net/. While marshalling, I'm getting the following error >message: > >java.lang.NoClassDefFoundError: org/apache/xml/serialize/XMLSerializer > at org.exolab.castor.xml.Unmarshaller.initConfig(Unmarshaller.java:272) > at org.exolab.castor.xml.Unmarshaller.<init>(Unmarshaller.java:225) > at org.exolab.castor.xml.Unmarshaller.<init>(Unmarshaller.java:212) > at > org.exolab.castor.mapping.Mapping.loadMappingInternal(Mapping.java:524) > at org.exolab.castor.mapping.Mapping.loadMapping(Mapping.java:453) > at >com.moneygram.dss.translator.castor.CastorXMLSupport.setApiVersionToURIMap(CastorXMLSupport.java:55) > at >com.moneygram.dss.translator.castor.CastorXMLFormatterTest.setUp(CastorXMLFormatterTest.java:49) > at junit.framework.TestCase.runBare(TestCase.java:125) > at junit.framework.TestResult$1.protect(TestResult.java:106) > at junit.framework.TestResult.runProtected(TestResult.java:124) > at junit.framework.TestResult.run(TestResult.java:109) > at junit.framework.TestCase.run(TestCase.java:118) > at junit.framework.TestSuite.runTest(TestSuite.java:208) > at junit.framework.TestSuite.run(TestSuite.java:203) > at >org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:392) > at >org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:276) > at >org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:167) > >In J2SE 1.5, Sun repackaged the classes in xercesImpl.jar (from >org.apache.xerces.* to com.sun.org.apache.xerces.*, etc). The required class >looks like it's available, but it's been repackaged as >com.sun.org.apache.xml.internal.serialize.XMLSerializer. > >Is it possible to use Castor with JAXP 1.3? Do I need to use Xerces 2.6.2 >instead? What are the plans to update Castor to work with standard JAXP? > >-- >Erik Pearson >[EMAIL PROTECTED] > > > >----------------------------------------------------------- >If you wish to unsubscribe from this mailing, send mail to >[EMAIL PROTECTED] with a subject of: > unsubscribe castor-user > ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-user
