Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

datasource-mapping not found

Saptarshi Chakraborty
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic