On 4/12/06, David Blevins <[EMAIL PROTECTED]> wrote:
> On Apr 11, 2006, at 3:46 PM, Jason Woollard wrote:
>
> > Thanks so much for all your efforts so far - alas its still not going
> > smoothly! Although I copied mysql-connector-java-3.1.12-bin.jar to
> > $openejb_home/lib I'm getting:
> >
> > FATAL: OpenEJB has encountered a fatal error and cannot be started:
> > Assembler failed to build the container system.
> > org.openejb.OpenEJBException: Cannot load the container Default CMP
> > Container. Received message: Unable to construct the Castor
> > JDOManager
> > objects: org.exolab.castor.mapping.MappingException: The persistence
> > engine mysql is not supported in this Castor configuration: The
> > persistence engine mysql is not supported in this Castor
> > configuration
> > at
> > org.openejb.alt.assembler.classic.ContainerBuilder.buildContainer
> > (ContainerBuilder.java:177)
> > ...
> >
> > I've put mappings under webapps/EJB/META-INF/cmp.mapping.xml;
> > removed the
> > global/local TX*.xml files; and my openejb.conf now looks like this:
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> > <openejb
> > xmlns="http://www.openejb.org/System/Configuration">
> > <Container
> > id="Default CMP Container" ctype="CMP_ENTITY">
> > PoolSize 100
> > Engine mysql
> > ConnectorName Default JDBC Database
> > JdbcDriver com.mysql.jdbc.Driver
> > JdbcUrl jdbc:mysql://localhost:3306/edushop
> > UserName www-data
> > Password removed
> > </Container>
> >
>
> Ok that is odd, of course mysql is supported by Castor.
Yep, MySQL is definitely supported.
> Bruce, you have any idea what is going on? That error message
> doesn't mean a lot to me. Here is where we configure our JDOManager
> instances:
The only way that the error above will be thrown is if the engine is
not listed in the castor.properties file or if the Hashtable where
engines are loaded doesn't contain an engine. All supported
persistence engines in Castor are listed in the castor.properties file
by way of their factory and I know that MySQL is listed there, So I'm
wondering if there is an extra space after the engine name in your
configuration. The error message shown above contains an extra space
therefore I wonder if that's causing the MySQLFactory to not be found
in the Hashtable.
Bruce
--
perl -e 'print unpack("u30","D0G)[EMAIL
PROTECTED]&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'
Apache Geronimo - http://geronimo.apache.org/
Apache ActiveMQ - http://incubator.apache.org/activemq/
Apache ServiceMix - http://incubator.apache.org/servicemix/
Castor - http://castor.org/