- This topic has 1 reply, 2 voices, and was last updated 15 years, 7 months ago by support-joy.
-
AuthorPosts
-
gowrinmMemberI developed an EJB3 application in MyEclipse and tried to deploy in JBOSS Application server which is running in MyEclipse. During deployment I am getting the following error messages.
— MBeans waiting for other MBeans —
ObjectName: persistence.units:jar=proj5.jar,unitName=proj5
State: NOTYETINSTALLED
I Depend On:
jboss.jca:name=MySqlDS,service=DataSourceBinding
Depends On Me:
jboss.j2ee:jar=proj5.jar,name=BookStateless,service=EJB3ObjectName: jboss.j2ee:jar=proj5.jar,name=BookStateless,service=EJB3
State: NOTYETINSTALLED
I Depend On:
persistence.units:jar=proj5.jar,unitName=proj5— MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM —
ObjectName: jboss.jca:name=MySqlDS,service=DataSourceBinding
State: NOTYETINSTALLED
Depends On Me:
persistence.units:jar=proj5.jar,unitName=proj5
<?xml version=”1.0″ encoding=”UTF-8″?>
<persistence xmlns=”http://java.sun.com/xml/ns/persistence”
xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”
xsi:schemaLocation=”http://java.sun.com/xml/ns/persistence
http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd” version=”1.0″>
<persistence-unit name=”proj5″>
<jta-data-source>java:/MySqlDS</jta-data-source>
<properties>
<property name=”hibernate.hbm2ddl.auto” value=”create-drop”/>
<property name=”hibernate.dialect” value= “org.hibernate.dialect.MySQL5Dialect” />
</properties>
</persistence-unit>
</persistence>The persistence.xml file is available at src/META-INF dir and is given below:
The datasource file : MySql-ds.xml is available at JBOSS_HOME/server/default dir
?xml version=”1.0″ encoding=”UTF-8″?>
<!– $Id: mysql-ds.xml 63175 2007-05-21 16:26:06Z rrajesh $ –>
<!– 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>MySqlDS</jndi-name>
<connection-url>jdbc:mysql://localhost:3306/logicadb1</connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name>root</user-name>
<password>root</password>
<metadata>
<type-mapping>mySQL</type-mapping>
</metadata>
</local-tx-datasource>
</datasources>Could anyone help on this.
Thanks
support-joyMemberHi gowrinm,
Can you refer to this post here – http://www.myeclipseide.com/PNphpBB2-viewtopic-t-11822-start-15.html.
I am not very familiar with JBOSS. I would recommend you to cross-post to EJB and JBOSS forums, you may get more help.Best.
-
AuthorPosts