Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-1801

hibernate-service not deployed in exploded har inside exploded ear

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • JBossAS-4.0.3 Final
    • JBossAS-4.0.2 Final
    • Deployers
    • None
    • Compatibility/Configuration

      works in 4.0.1 sp1, but not in 4.0.2.

      THis is the way I replicate the issue. Create exploded directories as follows (see test.ear.zip attached). And put the exploded test.ear directory in the server deploy directory.

      • test.ear
          • meta-inf
              • application.xml
              • jboss-app.xml
        • test.har
          • meta-inf
              • hibernate-service.xml

      I didn't include hibernate classes/mappings to simplify the case.
      In 4.0.1sp1, hibernate-service.xml is deployed because java:/hibernate/SessionFactory is bound in jmx-console. In 4.0.2 version, sessionfactory jndi is not bound - and I suspect hibernate-service.xml is not deployed.

      ======================================

      <application>
      <display-name>My Application</display-name>
      </application>

      <mbean code="org.jboss.hibernate.jmx.Hibernate"
      name="jboss.har:service=Hibernate">
      <attribute name="DatasourceName">java:/DefaultDS</attribute>
      <attribute name="Dialect">org.hibernate.dialect.HSQLDialect</attribute>
      <attribute name="SessionFactoryName">java:/hibernate/SessionFactory</attribute>
      </mbean>

      <jboss-app>
      <module>
      <har>test.har</har>
      </module>
      </jboss-app>

        1. test.ear.zip
          1 kB
        2. test.har
          0.8 kB

              starksm64 Scott Stark (Inactive)
              mf915 M F (Inactive)
              Votes:
              3 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: