Ok, I am now in desperate need of help, I managed to find out how to upgrade the castor, BUT, 1. I need the old 9.3.9 xml file to allow openejb to run as apparently Xerces uses 939 and only 939 to read the config - the 9.5.3 doesnt do it for openejb, and once I got the 9.5.3 up and running - it reported that the Castor implementation doesnt support the mysql engine....
Aaaaaarrrgggggg. All I want is CMP containers to support Date / Datetime fields.... Mike. -----Original Message----- From: Michael Forster [mailto:[EMAIL PROTECTED] Sent: 29 March 2004 13:03 To: [EMAIL PROTECTED] Subject: RE: [openejb-user] Problem with Mapping Ok I updated the castor files to the latest and now Openejb is not running.... I get the exception 2004-03-29 13:00:10,188 FATAL [main] (Logger.java:1113) - OpenEJB has encountered a fatal error and cannot be started: The Assembler encountered an unexpected error while attempting to initialize. java.lang.NullPointerException at org.exolab.castor.xml.util.XMLClassDescriptorImpl.getFieldDescriptor(XMLClas sDescriptorImpl.java:391) at org.exolab.castor.xml.MarshalFramework$InternalXMLClassDescriptor.getFieldDe scriptor(MarshalFramework.java:456) at org.exolab.castor.xml.UnmarshalHandler.startElement(UnmarshalHandler.java:16 63) at org.exolab.castor.xml.UnmarshalHandler.startElement(UnmarshalHandler.java:12 92) at org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.j ava:454) at org.apache.xerces.impl.XMLNamespaceBinder.startElement(XMLNamespaceBinder.ja va:571) at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java :756) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDo cumentFragmentScannerImpl.java:752) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc her.dispatch(XMLDocumentFragmentScannerImpl.java:1453) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocume ntFragmentScannerImpl.java:333) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:524) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:580) at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152) at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:116 9) at org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:605) at org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:513) at org.openejb.alt.config.EjbJarUtils.unmarshalEjbJar(EjbJarUtils.java:135) at org.openejb.alt.config.EjbJarUtils.readEjbJar(EjbJarUtils.java:101) at org.openejb.alt.config.ConfigurationFactory.loadDeployments(ConfigurationFac tory.java:1060) at org.openejb.alt.config.ConfigurationFactory.getOpenEjbConfiguration(Configur ationFactory.java:162) at org.openejb.alt.assembler.classic.Assembler.init(Assembler.java:163) at org.openejb.OpenEJB.init(OpenEJB.java:228) at org.openejb.server.EjbDaemon.init(EjbDaemon.java:137) at org.openejb.server.EjbDaemon.main(EjbDaemon.java:1116) at org.openejb.server.Main.main(Main.java:61) can anyone advise how to get it up and running again? Mike. -----Original Message----- From: Michael Forster [mailto:[EMAIL PROTECTED] Sent: 29 March 2004 12:50 To: Openejb-User Subject: [openejb-user] Problem with Mapping I have scoured the websites and googled until my fingers are raw, I need to know how to map a Java.util.Date() object to a mySQL DateTime field. When I do it I get an exception java.rmi.RemoteException: The bean encountered a non-application exception.; nested exception is: java.rmi.RemoteException: Castor JDO DatabaseNotFoundException thrown when attempting to begin a local transaciton; nested exception is: I have a sneaking feeling that it is due to the mapping setup the mapping I have is as follows <class name="com.ingotz.j2ee.ejb.WebHitBean" identity="id"> <map-to table="ingotz_webhits"/> <field name="id" type="long" direct="true"> <sql name="id" type="bigint"/> </field> <field name="host" type="string" direct="true"> <sql name="host" type="char"/> </field> <field name="page" type="string" direct="true"> <sql name="page" type="char"/> </field> <field name="crdate" type="Date" direct="true"> <sql name="dateofhit" type="DateTime"/> </field> </class> I am using Openejb 0.9.2 with the Castor 0.9.5.2 jars can anyone advise how to proceed (I am already looking into upgrading to the latest of the jars.....) Michael Forster Ingotz Uk Ltd. Tel: 07005006216 Fax: 07005006217 This email (and any attachments) is for the addressee only. It is confidential and protected by copyright, any opinions/information are those of the author and not Ingotz UK Ltd. Ingotz accepts no responsibility for loss or damage (including by viruses) due to it's use. Ingotz reserves the right to monitor emails with the lawful business practice regulations 2000. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.644 / Virus Database: 412 - Release Date: 26/03/2004 --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.644 / Virus Database: 412 - Release Date: 26/03/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.644 / Virus Database: 412 - Release Date: 26/03/2004 --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.644 / Virus Database: 412 - Release Date: 26/03/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.644 / Virus Database: 412 - Release Date: 26/03/2004
