Deploying sample from middlegen-2.0-vo on JBoss/MySQL

Andreas Kemkes <[email protected]>
Newsgroups gmane.comp.java.ejb.middlegen.user
Message-ID <[email protected]>
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






-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.