1 Reply Latest reply on Oct 14, 2007 8:51 PM by tjclifford

    Deployment problem

    jrein

      Hello,

      i'm in the chapter 4 of the workbook. I have create the classes and have made the titan.jar file. When i deploy the file to my JBoss Server, i get the following error message.

      --- MBeans waiting for other MBeans ---
      ObjectName: persistence.units:jar=titan.jar,unitName=titan
       State: NOTYETINSTALLED
       I Depend On:
       jboss.jca:name=TitanDB,service=DataSourceBinding
       Depends On Me:
       jboss.j2ee:jar=titan.jar,name=TravelAgentBean,service=EJB3
      
      ObjectName: jboss.j2ee:jar=titan.jar,name=TravelAgentBean,service=EJB3
       State: NOTYETINSTALLED
       I Depend On:
       persistence.units:jar=titan.jar,unitName=titan
      
      --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
      ObjectName: jboss.jca:name=TitanDB,service=DataSourceBinding
       State: NOTYETINSTALLED
       Depends On Me:
       persistence.units:jar=titan.jar,unitName=titan
      


      Whats the problem?

      best regards,

      jrein

      Sorry for my bad englisch :)

        • 1. Re: Deployment problem
          tjclifford

          jrein:

          I use MySql on my development machine, and I had to set up
          a mysql-ds.xml in \jboss\server\xxxx\deploy to define the datasource,
          then change persistence.xml to look like this:

          <?xml version="1.0" encoding="UTF-8"?>
          <persistence>
           <persistence-unit name="titan">
           <jta-data-source>java:/MySqlHibernateDS</jta-data-source>
           <properties>
           <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/>
           <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
           </properties>
           </persistence-unit>
          </persistence>
          


          the pertinent section of mysql-ds.xml looks like this:

           <local-tx-datasource>
           <jndi-name>MySqlHibernateDS</jndi-name>
           <connection-url>jdbc:mysql://192.168.0.102:3306/workbook</connection-url>
           <!-- driver-class>com.mysql.jdbc.Driver</driver-class -->
           <driver-class>org.gjt.mm.mysql.Driver</driver-class>
           <user-name>tom</user-name>
           <password>password</password>
           <metadata>
           <type-mapping>mySQL</type-mapping>
           </metadata>
           </local-tx-datasource>
          
          


          Did you get yours to work yet ?

          Tom