facebook

Problem is EJB3 deployment in JBOSS server through MyEclips

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #297182 Reply

    gowrinm
    Member

    I 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=EJB3

    ObjectName: 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&#8221;
    xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance&#8221;
    xsi:schemaLocation=”http://java.sun.com/xml/ns/persistence
    http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd&#8221; 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

    #297190 Reply

    support-joy
    Member

    Hi 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.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Problem is EJB3 deployment in JBOSS server through MyEclips

You must be logged in to post in the forum log in