permaculture playing cards
The moose likes EJB and other Java EE Technologies and the fly likes datasource-mapping not found Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "datasource-mapping not found" Watch "datasource-mapping not found" New topic

datasource-mapping not found

Saptarshi Chakraborty

Joined: Jul 26, 2007
Posts: 23
Hi all,
I'm a new learner in EJB 2. I am creating a demo application in EJB 2 CMP with JBoss 4.0.2. In my bean within the tag I've written

After running the XDoclet the jbosscmp-jdbc.xml comes like this

While deploying my log file gives the following exception
org.jboss.deployment.DeploymentException: Error in jbosscmp-jdbc.xml : datasource-mapping postgreSQL not found
at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCEntityMetaData.<init>(
at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCApplicationMetaData.<init>(
at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCXmlFileLoader.load(
at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadJDBCEntityMetaData(
at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.initStoreManager(
at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(
at org.jboss.ejb.plugins.CMPPersistenceManager.start(

Do I need to change anything in the standardjbosscmp-jdbc.xml in conf folder because <datasource-mapping> is tagged as optional from version 4.0.Though I changed the <datasource-mapping> but it still the same error.
nad my postgre-ds.xml is written like this

I agree. Here's the link:
subject: datasource-mapping not found
It's not a secret anymore!