2 Replies Latest reply on May 24, 2006 10:05 PM by sbnall

    Problem in deploying hibernate SAR file in 4.0.2

    sbnall

      Hello,

      I am having trouble in starting the 4.0.2 server in default with sar file in the deploy folder. Even though It binds the datasource, It does not somehow recognizes the datasource when deploying the sar file.

      However, I don't have problem in hot deploying the sar file. It readily recognizes the binded datasource. FYI, please look at my datasource config and also jboss-service.xml

      Thanks for your help.

      Satish


      Datasource


      <local-tx-datasource>
      <jndi-name>OptitDS</jndi-name>
      <connection-url>jdbc:postgresql://localhost:5432/optitdb</connection-url>
      <driver-class>org.postgresql.Driver</driver-class>
      <user-name>optitdbuser</user-name>
      opt1t
      <valid-connection-sql>select count (*) from state</valid-connection-sql>
      </local-tx-datasource>




      jboss-service.xml





      jboss.jca:service=LocalTxCM,name=OptitDS
      jboss.jca:service=RARDeployer

      java:/hibernate/HibernateFactory
      java:OptitDS
      org.hibernate.dialect.PostgreSQLDialect

      <!-- Transaction integration -->
      org.hibernate.transaction.JTATransactionFactory
      org.hibernate.transaction.JBossTransactionManagerLookup
      true
      true

      <!-- Fetching options -->
      5

      <!-- Second-level caching -->
      true
      org.hibernate.cache.EhCacheProvider
      true

      <!-- Logging -->
      true


      com/optit/subscriber/hibernate/UserRequest.hbm.xml,
      com/optit/subscriber/hibernate/XactionalMessage.hbm.xml,
      com/optit/subscriber/hibernate/XactionalMessageSubscriber.hbm.xml



        • 1. Re: Problem in deploying hibernate SAR file in 4.0.2
          sbnall

          Hello,

          jboss-service file.




          jboss.jca:service=LocalTxCM,name=OptitDS

          jboss.jca:service=RARDeployer

          java:/hibernate/HibernateFactory
          java:OptitDS
          org.hibernate.dialect.PostgreSQLDialect

          <!-- Transaction integration -->
          org.hibernate.transaction.JTATransactionFactory
          org.hibernate.transaction.JBossTransactionManagerLookup
          true
          true

          <!-- Fetching options -->
          5

          <!-- Second-level caching -->
          true
          org.hibernate.cache.EhCacheProvider
          true

          <!-- Logging -->
          true


          com/optit/subscriber/hibernate/UserRequest.hbm.xml,
          com/optit/subscriber/hibernate/XactionalMessage.hbm.xml,
          com/optit/subscriber/hibernate/XactionalMessageSubscriber.hbm.xml



          • 2. Re: Problem in deploying hibernate SAR file in 4.0.2
            sbnall

            Jboss service file



            jboss.jca:service=LocalTxCM,name=OptitDS
            jboss.jca:service=RARDeployer
            java:/hibernate/HibernateFactory
            java:OptitDS
            org.hibernate.dialect.PostgreSQLDialect
            <!-- Transaction integration -->
            org.hibernate.transaction.JTATransactionFactory
            org.hibernate.transaction.JBossTransactionManagerLookup
            true
            true
            <!-- Fetching options -->
            5
            <!-- Second-level caching -->
            true
            org.hibernate.cache.EhCacheProvider
            true
            <!-- Logging -->
            true

            com/optit/hibernate/Address.hbm.xml,
            com/optit/hibernate/Country.hbm.xml,
            com/optit/hibernate/Person.hbm.xml,
            com/optit/hibernate/State.hbm.xml,