Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

CMP bean Deployment Problem with DataSource (mysql)

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
hello Friends ,
i am getting following errors while deploying cmp beans.

Error :
11:37:34,679 INFO [EJBDeployer] Deployed: file:/C:/jboss-3.2.6/server/default/d
eploy/ProductBean.jar
11:37:34,679 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
MBeans waiting for other MBeans:
ObjectName: jboss.j2ee:jndiName=FaqMstLocal,plugin=pool,service=EJB
state: CREATED
I Depend On:
Depends On Me:
ObjectName: jboss.j2ee:jndiName=FaqMstLocal,service=EJB
state: FAILED
I Depend On:
Depends On Me: MBeanException: org.jboss.deployment.DeploymentException: Error
in jbosscmp-jdbc.xml : datasource-mapping MySql not found
Cause: org.jboss.deployment.DeploymentException: Error in jbosscmp-jdbc.xml : da
tasource-mapping MySql not found

MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM:
ObjectName: jboss.j2ee:jndiName=FaqMstLocal,plugin=pool,service=EJB
state: CREATED
I Depend On:
Depends On Me:
ObjectName: jboss.j2ee:jndiName=FaqMstLocal,service=EJB
state: FAILED
I Depend On:
Depends On Me: MBeanException: org.jboss.deployment.DeploymentException: Error
in jbosscmp-jdbc.xml : datasource-mapping MySql not found
Cause: org.jboss.deployment.DeploymentException: Error in jbosscmp-jdbc.xml : da
tasource-mapping MySql not found
1 ) Contain of mysql-ds.xml File

<?xml version="1.0" encoding="UTF-8"?>

<!-- $Id: mysql-ds.xml,v 1.1.2.1 2003/12/12 19:19:56 starksm Exp $ -->
<!-- Datasource config for MySQL using 3.0.9 available from:
http://www.mysql.com/downloads/api-jdbc-stable.html
-->

<datasources>

<local-tx-datasource>
<jndi-name>MySql</jndi-name>
<connection-url>jdbc:mysql://192.168.111.44:3306/temp</connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name>new_temp</user-name>
<password>temp</password>
</local-tx-datasource>
</datasources>

2) i have also add datasource mappping in standardjaws.xml and standardjbosscmp-jdbc.xml file
File :standardjaws.xml
<datasource>java:/MySql</datasource>
<type-mapping>MySql</type-mapping>

File : standardjbosscmp-jdbc.xml
<datasource>java:/MySql</datasource>
<datasource-mapping>MySql</datasource-mapping>

3)Contain of jbosscmp-jdbc.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jbosscmp-jdbc PUBLIC "-//JBoss//DTD JBOSSCMP-JDBC 3.2//EN" "http://www.jboss.org/j2ee/dtd/jbosscmp-jdbc_3_2.dtd">

<jbosscmp-jdbc>
<defaults>
<datasource>java:/MySql</datasource>
<datasource-mapping>MySql</datasource-mapping>
<create-table>false</create-table>
<remove-table>false</remove-table>
</defaults>

<enterprise-beans>

<!--
To add beans that you have deployment descriptor info for, add
a file to your XDoclet merge directory called jbosscmp-jdbc-beans.xml
that contains the <entity></entity> markup for those beans.
-->

<entity>
<ejb-name>FaqMst</ejb-name>
<datasource></datasource>
<datasource-mapping></datasource-mapping>
<create-table>false</create-table>
<remove-table>false</remove-table>
<table-name>FAQ_MST</table-name>

<cmp-field>
<field-name>faqCatId</field-name>
<column-name>faq_cat_id</column-name>

</cmp-field>
<cmp-field>
<field-name>faqCatName</field-name>
<column-name>faq_cat_name</column-name>

</cmp-field>
<cmp-field>
<field-name>faqCatDesc</field-name>
<column-name>faq_cat_desc</column-name>

</cmp-field>

<!-- jboss 3.2 features -->
<!-- optimistic locking does not express the exclusions needed -->
</entity>

</enterprise-beans>

</jbosscmp-jdbc>

Can Any one help me out to figure out this problem ?
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Please do not duplicate post. You already have the same thread in the JBoss forum. I am going to close this thread.

Thanks

Mark
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic