File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JBoss/WildFly and the fly likes Jboss- DataSource Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Jboss- DataSource Problem" Watch "Jboss- DataSource Problem" New topic

Jboss- DataSource Problem

Mukti Furtado

Joined: Oct 17, 2003
Posts: 9
I have Jboss 4.0.1 and mysql4.1 and j2sdk1.4.2_07. i have deployed a ear file which contains 1 entity bean . I get the following errors when i start the server

ObjectName: jboss.j2ee:jndiName=ejb/Example/Story,service=EJB
state: FAILED
I Depend On:
Depends On Me: org.jboss.deployment.DeploymentException: Error: can't find data
source: java:/MySqlDS; - nested throwable: (javax.naming.NameNotFoundException:
MySqlDS not bound)

and in the browser i get following error

java.rmi.ServerException: RuntimeException; nested exception is: java.lang.IllegalStateException: createBeanClassInstanceCommand == null

Can somebody please help me with this problem .
Mukti Furtado

Joined: Oct 17, 2003
Posts: 9
My problem is solved. I followed the steps mentioned below

1.Replace jboss-4.0.0/server/standard/deploy/hsqldb-ds.xml by a file named mysql-ds.xml with the following content:
2.Edit jboss-4.0.0/server/standard/conf/standardjaws.xml with the following parameters:

3.Edit jboss-4.0.0/server/standard/conf/standardjbosscmp-jdbc.xml with the following parameters:

4.Replace file jboss-4.0.0/server/standard/deploy/jms/hsql-jdbc2-service.xml by file jboss-4.0.0/docs/examples/jms/mysql-jdbc2-service.xml and change MySqlDs to DefaultDS (line 47) in that file.
I agree. Here's the link:
subject: Jboss- DataSource Problem
It's not a secret anymore!