File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "datasource-mapping not found" Watch "datasource-mapping not found" New topic
Author

datasource-mapping not found

Saptarshi Chakraborty
Greenhorn

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>(JDBCEntityMetaData.java:501)
at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCApplicationMetaData.<init>(JDBCApplicationMetaData.java:312)
at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCXmlFileLoader.load(JDBCXmlFileLoader.java:67)
at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadJDBCEntityMetaData(JDBCStoreManager.java:721)
at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.initStoreManager(JDBCStoreManager.java:409)
at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:353)
at org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java:157)


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: http://aspose.com/file-tools
 
subject: datasource-mapping not found
 
Similar Threads
CMP bean Deployment Problem with DataSource (mysql)
exception in running cmp in jboss4.0.2
CMP 2.0 problem in Jboss 4.0.2
ms sql server2000 and jboss
Help me to remove this Error in Entity Bean