Barley wrote:
Using castor version 0.9.5.2. This database setup has been working for me in the past. I just upgraded to JBuilderX from JBuilder8, but I can't imagine what difference that makes. How can I possibly be getting this exception?:
org.exolab.castor.mapping.MappingException: The persistence engine mysql is not supported in this Castor configuration
My configuration looks like:
<database name="mydatabase" engine="mysql" > <driver url="jdbc:mysql://localhost/mydatabase" class-name="org.gjt.mm.mysql.Driver"> <param name="user" value="root" /> </driver> <mapping href="dbmapping.xml" /> </database>
Any help is very much appreciated. Thanks!
Gregg,
I don't know exactly how JBuilder is using Castor so I cannot say specifically what the issue is. But off the top of my head, I wonder what is specified in the castor.properties file for the org.exolab.castor.jdo.engines property. This properties file is included inside of the castor.jar in the org.exolab.castor package. The reason I suggest looking into this is because the error above is only thrown when the PersistenceFactoryRegistry cannot locate the engine using this property. That error tells me that MySQL is not listed in that property within the castor.properties file.
You might try to work around this by creating a custom own castor.properties file and placing it in the CLASSPATH before the castor.jar file. The custom properties file should only contain the org.exolab.castor.jdo.engines property containing at a minimum the following:
org.exolab.castor.jdo.drivers.MySQLFactory
This tells Castor that this database is available for use. Note that this is only a workaround. I cannot guarantee that there may be more things missing from the castor.properties file or elsewhere.
Bruce
--
perl -e 'print unpack("u30","<0G)[EMAIL PROTECTED]&5R\"F9E<G)E=\$\!F<FEI+F-O;0\`\`");'
The Castor Project http://www.castor.org/
Apache Geronimo http://incubator.apache.org/projects/geronimo.html
----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev
