0 Replies Latest reply on Mar 20, 2014 5:59 AM by Zoran Trifunovski

    deployment errors when migrating from JBoss 5.1.0 GA to jbeap 5.2.0

    Zoran Trifunovski Newbie

      I needed to go to a version where a security flaw was fixed, so to avoid the hastle of going to a next major release, I wanted to go to a minor version upgrade. However, I'm getting deployment errors when I try to deploy my app:

       

        [java] 09:47:42,727 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
       
      [java] DEPLOYMENTS MISSING DEPENDENCIES:
       
      [java]  Deployment "jboss.web.deployment:war=/myapp" is missing the following dependencies:
       
      [java]  Dependency "persistence.unit:unitName=#persistence_default" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'persistence.unit:unitName=#persistence_default' **")
       
      [java] DEPLOYMENTS IN ERROR:
       
      [java]  Deployment "persistence.unit:unitName=#persistence_default" is in error due to the following reason(s): ** NOT FOUND Depends on 'persistence.unit:unitName=#persistence_default' **

       

      The persistence.xml and the postgres-ds.xml files are the same as the JBoss 5.1.0 GA (where this was working):

       

      <?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="persistence_default" transaction-type="JTA">
              <provider>org.hibernate.ejb.HibernatePersistence</provider>
              <jta-data-source>java:/my_database_managed</jta-data-source>
              <properties>
                  <property name="hibernate.cache.provider_class" value="net.sf.ehcache.hibernate.SingletonEhCacheProvider" />
                  <property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.JBossTransactionManagerLookup"/>
                    <property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect"/>
                    <property name="jboss.entity.manager.factory.jndi.name" value="java:/persistence_default"/>
              </properties>  
          </persistence-unit>
      </persistence>
      
      

       

      postgres-ds.xml

       

      <datasources>
        <no-tx-datasource>
              <jndi-name>my_database</jndi-name>
              <connection-url>jdbc:postgresql://localhost/MY_DB</connection-url>
              <driver-class>org.postgresql.Driver</driver-class>
              <user-name>(hidden)</user-name>
              <password>(hidden)</password>
              <min-pool-size>5</min-pool-size>
              <max-pool-size>80</max-pool-size>
              <idle-timeout-minutes>5</idle-timeout-minutes>
              <track-statements>nowarn</track-statements>
              <blocking-timeout-millis>60000</blocking-timeout-millis>
              <new-connection-sql>select 1</new-connection-sql>
              <check-valid-connection-sql>select 1</check-valid-connection-sql>
            <metadata>
               <type-mapping>PostgreSQL</type-mapping>
            </metadata>
        </no-tx-datasource>
        <local-tx-datasource>
              <jndi-name>my_database_managed</jndi-name>
              <connection-url>jdbc:postgresql://localhost/MY_DB</connection-url>
              <driver-class>org.postgresql.Driver</driver-class>
              <user-name>(hidden)</user-name>
              <password>(hidden)</password>
              <min-pool-size>5</min-pool-size>
              <max-pool-size>80</max-pool-size>
              <idle-timeout-minutes>5</idle-timeout-minutes>
              <track-statements>nowarn</track-statements>
              <blocking-timeout-millis>60000</blocking-timeout-millis>
              <new-connection-sql>select 1</new-connection-sql>
              <check-valid-connection-sql>select 1</check-valid-connection-sql>
            <metadata>
               <type-mapping>PostgreSQL</type-mapping>
            </metadata>
        </local-tx-datasource>
        <local-tx-datasource>
              <jndi-name>DefaultDS</jndi-name>
              <connection-url>jdbc:postgresql://localhost/MY_DB</connection-url>
              <driver-class>org.postgresql.Driver</driver-class>
              <user-name>(hidden)</user-name>
              <password>(hidden)</password>
              <min-pool-size>5</min-pool-size>
              <max-pool-size>80</max-pool-size>
              <idle-timeout-minutes>5</idle-timeout-minutes>
              <track-statements>nowarn</track-statements>
              <blocking-timeout-millis>60000</blocking-timeout-millis>
              <new-connection-sql>select 1</new-connection-sql>
              <check-valid-connection-sql>select 1</check-valid-connection-sql>
            <metadata>
               <type-mapping>PostgreSQL</type-mapping>
            </metadata>
        </local-tx-datasource>
      </datasources>
      
      

      Can someone help me bypass this problem?