Andreas Kemkes
2004-02-25 07:20:03 UTC
I'm trying to deploy the airplane.ear on JBoss 3.2.3 with an MySQL
database, but the server log shows the following error:
2004-02-24 16:14:03,531 INFO [org.jboss.ejb.EjbModule] Deploying
FlightFacade
2004-02-24 16:14:03,765 INFO [org.jboss.ejb.EjbModule] Deploying
PersonFacade
2004-02-24 16:14:03,765 INFO [org.jboss.ejb.EjbModule] Deploying
SequenceSession
2004-02-24 16:14:04,109 ERROR [org.jboss.ejb.EntityContainer] Starting
failed
org.jboss.deployment.DeploymentException: Error in jbosscmp-jdbc.xml :
datasource-mapping MySQL not found
at
org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCEntityMetaData.<init>(JDBCEntityMetaData.java:433)
I've configured the mapping as mySQL (please note the different
spelling) in mysql.xml:
<property name="jboss.datasource.mapping" value="mySQL"/>
That is reflected in jbosscmp-jdbc.xml:
<defaults>
<datasource>java:/DefaultDS</datasource>
<datasource-mapping>mySQL</datasource-mapping>
</defaults>
My understanding is that the mapping is resolved through
standardjbosscmp-jdbc.xml.
What I do not understand is where the MySQL name originates that causes
the error. I've scanned the sample directory for the string, but
nothing noteable came up. I've also removed an older version of the
file from the JBoss's deploy directory including the tmp directory. Any
help would be appreciated.
Thanks,
Andreas
database, but the server log shows the following error:
2004-02-24 16:14:03,531 INFO [org.jboss.ejb.EjbModule] Deploying
FlightFacade
2004-02-24 16:14:03,765 INFO [org.jboss.ejb.EjbModule] Deploying
PersonFacade
2004-02-24 16:14:03,765 INFO [org.jboss.ejb.EjbModule] Deploying
SequenceSession
2004-02-24 16:14:04,109 ERROR [org.jboss.ejb.EntityContainer] Starting
failed
org.jboss.deployment.DeploymentException: Error in jbosscmp-jdbc.xml :
datasource-mapping MySQL not found
at
org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCEntityMetaData.<init>(JDBCEntityMetaData.java:433)
I've configured the mapping as mySQL (please note the different
spelling) in mysql.xml:
<property name="jboss.datasource.mapping" value="mySQL"/>
That is reflected in jbosscmp-jdbc.xml:
<defaults>
<datasource>java:/DefaultDS</datasource>
<datasource-mapping>mySQL</datasource-mapping>
</defaults>
My understanding is that the mapping is resolved through
standardjbosscmp-jdbc.xml.
What I do not understand is where the MySQL name originates that causes
the error. I've scanned the sample directory for the string, but
nothing noteable came up. I've also removed an older version of the
file from the JBoss's deploy directory including the tmp directory. Any
help would be appreciated.
Thanks,
Andreas