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.

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:

http://cvs.openejb.org/viewrep/openejb/trunk/openejb1/modules/core/ src/java/org/openejb/alt/containers/castor_cmp11/ JDOManagerBuilder.java?r=2599 http://cvs.openejb.org/viewrep/openejb/trunk/openejb1/modules/core/ src/java/org/openejb/alt/containers/castor_cmp11/ CastorCMP11_EntityContainer.java?r=2599#l287

-David



Reply via email to