Krey�el, Conny wrote:

Yesterday I downloaded the daily-snapshot of castor. And I have compiled it and now I get the following exception when I load the mapping file:

Nested error: org.xml.sax.SAXException: unable to add attribute "type" to 'org.exolab.castor.mapping.xml.Sql' due to the following error: java.lang.IllegalStateException: "char[01]" is not a valid NMToken.

I use castor in JDK 1.4.1_01 + Tomcat 4.1.12 and Castor stable version 0.9.4.3. In this enviroment succesfully loads the mapping file. But not if I use the daily-snapshot. I also copied the xerces.jar to shared/lib directory of Tomcat, but nothings changed.

This is the concerned part of my mapping file:

   <field name="valid" type="boolean">
     <sql name="gueltig" type="char[01]" />
   </field>


Any hints - what do I wrong?


C. Krey�el

----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev




I dont know exactly about your problem with Castor but copying to the common/lib for tomcat doesn't help to get a different parser or parser version to work for your webapp.
The webapps have different class loaders or so... check the tomcat site for more info.


rgds,
koen

----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev




Reply via email to