6 Replies Latest reply on Feb 19, 2012 10:15 AM by Robin Young

    Stalled deployment; Deploying Seam 2.2.2 EAR to JBoss AS 7.1 "thunder"

    Robin Young Newbie

      I'm trying to port my Seam 2 application to JBoss AS 7.1.

       

      I am using

      Seam 2.2.2.Final

      Richfaces 3.3.3.Final

      Jsf 1.2_15 - provided by AS7.1

      Hibernate core 3.6.0.Final  - provided by 7.1 as a module using the "Sharing the Hibernate 3.5 or greater JPA persistence provider between multiple applications" instructions here https://docs.jboss.org/author/display/AS71/JPA+Reference+Guide

       

      When using 7.1.0.CR1b Flux Capacitor my ear deploys ok and runs fine.

      However when I switch to 7.1.0.Final Thunder my ear deployment stalls.

       

      My module definition is

       

      <?xml version="1.0" encoding="UTF-8"?>

       

       

      <module xmlns="urn:jboss:module:1.1" name="org.hibernate" slot="3">

          <resources>

              <resource-root path="hibernate-core-3.6.0.Final.jar"/>

              <resource-root path="hibernate-commons-annotations-3.2.0.Final.jar"/>

              <resource-root path="hibernate-entitymanager-3.6.0.Final.jar"/>

              <resource-root path="hibernate-search-3.4.1.Final.jar"/>

              <resource-root path="hibernate-validator-3.1.0.GA.jar"/>

              <resource-root path="lucene-core-3.1.0.jar"/>

              <resource-root path="javassist-3.12.0.GA.jar"/>

              <resource-root path="antlr-2.7.6.jar"/>

              <resource-root path="commons-collections-3.1.jar"/> 

              <resource-root path="dom4j-1.6.1.jar"/> 

          </resources>

       

       

          <dependencies>

              <module name="org.jboss.as.jpa.hibernate" slot="3"/>

              <module name="asm.asm"/>

              <module name="javax.api"/>

              <module name="javax.persistence.api"/>

              <module name="javax.transaction.api"/>

              <module name="javax.validation.api"/>

              <module name="org.apache.ant"/>

              <module name="org.infinispan"/>

              <module name="org.slf4j"/>

              <module name="org.javassist"/>

          </dependencies>

      </module>

       

      The stack trace on "thunder" with TRACE on for org.jboss.as.jpa and org.jboss.jpa is as follows:

       

      00:48:29,783 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876: Starting deployment of "canopynet.ear"

      00:48:30,066 WARN  [org.jboss.metadata.parser.jboss.JBossAppMetaDataParser] (MSC service thread 1-5) loader-repository element in jboss-app.xml is deprecated and has been ignored

      00:48:35,230 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-5) Class Path entry jaxb-api.jar in "/content/canopynet.ear/lib/jaxb-impl-2.2.jar"  does not point to a valid jar for a Class-Path reference.

      00:48:35,231 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-5) Class Path entry activation.jar in "/content/canopynet.ear/lib/jaxb-impl-2.2.jar"  does not point to a valid jar for a Class-Path reference.

      00:48:35,232 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-5) Class Path entry jsr173_1.0_api.jar in "/content/canopynet.ear/lib/jaxb-impl-2.2.jar"  does not point to a valid jar for a Class-Path reference.

      00:48:35,233 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-5) Class Path entry jaxb1-impl.jar in "/content/canopynet.ear/lib/jaxb-impl-2.2.jar"  does not point to a valid jar for a Class-Path reference.

      00:48:35,234 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-5) Class Path entry iText-toolbox.jar in "/content/canopynet.ear/lib/itext-2.1.2.jar"  does not point to a valid jar for a Class-Path reference.

      00:48:35,235 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-5) Class Path entry iText-toolbox-2.1.2.jar in "/content/canopynet.ear/lib/itext-2.1.2.jar"  does not point to a valid jar for a Class-Path reference.

      00:48:35,238 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-10) JBAS015876: Starting deployment of "jboss-seam.jar"

      00:48:35,238 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015876: Starting deployment of "osservice.jar"

      00:48:35,238 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-9) JBAS015876: Starting deployment of "os.war"

      00:48:35,262 TRACE [org.jboss.as.jpa] (MSC service thread 1-6) parsed persistence unit definitions for ear canopynet.ear

      00:48:35,263 TRACE [org.jboss.as.jpa] (MSC service thread 1-6) incrementing PU count for canopynet.ear by 0

      00:48:35,278 TRACE [org.jboss.as.jpa] (MSC service thread 1-3) parsed persistence unit definitions for war os.war

      00:48:35,278 TRACE [org.jboss.as.jpa] (MSC service thread 1-3) incrementing PU count for canopynet.ear by 0

      00:48:35,283 TRACE [org.jboss.as.jpa] (MSC service thread 1-10) parsed persistence unit definitions for jar jboss-seam.jar

      00:48:35,284 TRACE [org.jboss.as.jpa] (MSC service thread 1-10) incrementing PU count for canopynet.ear by 0

      00:48:35,298 TRACE [org.jboss.as.jpa] (MSC service thread 1-4) parse persistence.xml: attribute value(0) = osservice

      00:48:35,299 TRACE [org.jboss.as.jpa] (MSC service thread 1-4) parse persistence.xml: element=provider

      00:48:35,299 TRACE [org.jboss.as.jpa] (MSC service thread 1-4) parse persistence.xml: element=jta-data-source

      00:48:35,300 TRACE [org.jboss.as.jpa] (MSC service thread 1-4) parse persistence.xml: element=properties

      00:48:35,301 TRACE [org.jboss.as.jpa] (MSC service thread 1-4) parse persistence.xml: reached ending persistence-unit tag

      00:48:35,301 INFO  [org.jboss.as.jpa] (MSC service thread 1-4) JBAS011401: Read persistence.xml for osservice

      00:48:35,302 TRACE [org.jboss.as.jpa] (MSC service thread 1-4) PersistenceUnitMetadataImpl(version=1.0) [

              name: osservice

              jtaDataSource: java:jboss/datasources/TigerDS

              nonJtaDataSource: null

              transactionType: JTA

              provider: org.hibernate.ejb.HibernatePersistence

              classes[

              ]

              packages[

              ]

              mappingFiles[

              ]

              jarFiles[

              ]

              validation-mode: AUTO

              shared-cache-mode: UNSPECIFIED

              properties[

                      hibernate.search.default.directory_provider: org.hibernate.search.store.FSDirectoryProvider

                      query.factory_class: org.hibernate.hql.ast.ASTQueryTranslatorFactory

                      hibernate.search.default.indexBase: ./osindexes

                      hibernate.ejb.event.post-collection-remove: com.canopyasp.canopynet.os.service.FullTextIndexerEventListener

                      hibernate.ejb.event.post-insert: com.canopyasp.canopynet.os.service.FullTextIndexerEventListener

                      hibernate.connection.autocommit: true

                      hibernate.ejb.event.post-collection-recreate: com.canopyasp.canopynet.os.service.FullTextIndexerEventListener

                      hibernate.default_catalog: tiger

                      hibernate.show_sql: false

                      hibernate.search.indexer: com.canopyasp.canopynet.os.entity.UserAmmendmentIssue,com.canopyasp.canopynet.os.entity.SubstituteProductIssue,com.canopyasp.canopynet.os.entity.CancelOrderIssue,com.canopyasp.canopynet.os.entity.ProductEnquiry,com.canopyasp.canopynet.os.entity.Account,com.canopyasp.canopynet.os.entity.Action,com.canopyasp.canopynet.os.entity.Activity,com.canopyasp.canopynet.os.entity.Attachment,com.canopyasp.canopynet.os.entity.BaseEntity,com.canopyasp.canopynet.os.entity.Basket,com.canopyasp.canopynet.os.entity.Consignment,com.canopyasp.canopynet.os.entity.CostCentre,com.canopyasp.canopynet.os.entity.Customer,com.canopyasp.canopynet.os.entity.Invoice,com.canopyasp.canopynet.os.entity.FulfilmentIssue,com.canopyasp.canopynet.os.entity.ForgottenPassword,com.canopyasp.canopynet.os.entity.MonitorOrder,com.canopyasp.canopynet.os.entity.Location,com.canopyasp.canopynet.os.entity.Manifest,com.canopyasp.canopynet.os.entity.OrderLine,com.canopyasp.canopynet.os.entity.Product,com.canopyasp.canopynet.os.entity.ProductCategory,com.canopyasp.canopynet.os.entity.ProductDetail,com.canopyasp.canopynet.os.entity.ProductProductCategory,com.canopyasp.canopynet.os.entity.SecurityName,com.canopyasp.canopynet.os.entity.SecurityUser,com.canopyasp.canopynet.os.entity.Site,com.canopyasp.canopynet.os.entity.SupplierProduct,com.canopyasp.canopynet.os.entity.User,com.canopyasp.canopynet.os.entity.UserCostCentre,com.canopyasp.canopynet.os.entity.UserDeliveryLocation,com.canopyasp.canopynet.os.entity.UserInvoiceLocation,com.canopyasp.canopynet.os.entity.SalesAction,com.canopyasp.canopynet.os.entity.Contact,com.canopyasp.canopynet.os.entity.Chat,com.canopyasp.canopynet.os.entity.Opportunity,com.canopyasp.canopynet.os.entity.OpportunityContact

                      hibernate.ejb.event.post-update: com.canopyasp.canopynet.os.service.FullTextIndexerEventListener

                      hibernate.transaction.manager_lookup_class: org.jboss.as.jpa.hibernate3.JBossAppServerJtaPlatform

                      hibernate.search.indexing_strategy: manual

                      hibernate.hbm2ddl.auto: update

                      hibernate.ejb.event.post-collection-update: com.canopyasp.canopynet.os.service.FullTextIndexerEventListener

                      jboss.as.jpa.providerModule: org.hibernate:3

                      hibernate.connection.release_mode: on_close

                      hibernate.format_sql: false

                      transaction.flush_before_completion: true

                      jboss.as.jpa.adapterModule: org.jboss.as.jpa.hibernate:3

                      hibernate.use_sql_comments: false

                      jboss.entity.manager.factory.jndi.name: java:jboss/osEntityManagerFactory

                      hibernate.ejb.event.post-delete: com.canopyasp.canopynet.os.service.FullTextIndexerEventListener

                      jboss.as.jpa.adapterClass: org.jboss.as.jpa.hibernate3.HibernatePersistenceProviderAdaptor

                      hibernate.dialect: org.hibernate.dialect.MySQL5Dialect

              ]]

      00:48:35,310 TRACE [org.jboss.as.jpa] (MSC service thread 1-4) parsed persistence unit definitions for jar osservice.jar

      00:48:35,310 TRACE [org.jboss.as.jpa] (MSC service thread 1-4) incrementing PU count for canopynet.ear by 1

      00:48:35,318 DEBUG [org.jboss.as.jpa] (MSC service thread 1-2) added javax.persistence.api, javaee.api, org.jboss.as.jpa, org.javassist dependencies to canopynet.ear

      00:48:35,319 DEBUG [org.jboss.as.jpa] (MSC service thread 1-2) osservice is configured to use adapter module 'org.jboss.as.jpa.hibernate:3'

      00:48:35,320 DEBUG [org.jboss.as.jpa] (MSC service thread 1-2) osservice is configured to use provider module 'org.hibernate:3'

      00:48:35,321 DEBUG [org.jboss.as.jpa] (MSC service thread 1-2) added org.jboss.as.jpa.hibernate:3 dependency to application deployment

      00:48:35,321 DEBUG [org.jboss.as.jpa] (MSC service thread 1-2) added org.hibernate:3 dependency to application deployment

      00:48:35,324 DEBUG [org.jboss.as.jpa] (MSC service thread 1-4) added javax.persistence.api, javaee.api, org.jboss.as.jpa, org.javassist dependencies to osservice.jar

      00:48:35,324 DEBUG [org.jboss.as.jpa] (MSC service thread 1-1) added javax.persistence.api, javaee.api, org.jboss.as.jpa, org.javassist dependencies to jboss-seam.jar

      00:48:35,324 DEBUG [org.jboss.as.jpa] (MSC service thread 1-13) added javax.persistence.api, javaee.api, org.jboss.as.jpa, org.javassist dependencies to os.war

      00:48:35,325 DEBUG [org.jboss.as.jpa] (MSC service thread 1-1) osservice is configured to use adapter module 'org.jboss.as.jpa.hibernate:3'

      00:48:35,324 DEBUG [org.jboss.as.jpa] (MSC service thread 1-4) osservice is configured to use adapter module 'org.jboss.as.jpa.hibernate:3'

      00:48:35,325 DEBUG [org.jboss.as.jpa] (MSC service thread 1-1) osservice is configured to use provider module 'org.hibernate:3'

      00:48:35,325 DEBUG [org.jboss.as.jpa] (MSC service thread 1-13) osservice is configured to use adapter module 'org.jboss.as.jpa.hibernate:3'

      00:48:35,326 DEBUG [org.jboss.as.jpa] (MSC service thread 1-1) added org.jboss.as.jpa.hibernate:3 dependency to application deployment

      00:48:35,326 DEBUG [org.jboss.as.jpa] (MSC service thread 1-4) osservice is configured to use provider module 'org.hibernate:3'

      00:48:35,327 DEBUG [org.jboss.as.jpa] (MSC service thread 1-1) added org.hibernate:3 dependency to application deployment

      00:48:35,326 DEBUG [org.jboss.as.jpa] (MSC service thread 1-13) osservice is configured to use provider module 'org.hibernate:3'

      00:48:35,327 DEBUG [org.jboss.as.jpa] (MSC service thread 1-4) added org.jboss.as.jpa.hibernate:3 dependency to application deployment

      00:48:35,328 DEBUG [org.jboss.as.jpa] (MSC service thread 1-13) added org.jboss.as.jpa.hibernate:3 dependency to application deployment

      00:48:35,328 DEBUG [org.jboss.as.jpa] (MSC service thread 1-4) added org.hibernate:3 dependency to application deployment

      00:48:35,329 DEBUG [org.jboss.as.jpa] (MSC service thread 1-13) added org.hibernate:3 dependency to application deployment

      00:48:35,478 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-12) JBAS018567: Deployment "deployment.canopynet.ear.osservice.jar" is using a private module ("com.sun.jsf-impl:1.2") which may be changed or removed in future versions without notice.

      00:48:35,479 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-12) JBAS018567: Deployment "deployment.canopynet.ear.osservice.jar" is using a private module ("com.sun.jsf-impl:1.2") which may be changed or removed in future versions without notice.

      00:48:35,482 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-2) JBAS018567: Deployment "deployment.canopynet.ear.os.war" is using a private module ("com.sun.jsf-impl:1.2") which may be changed or removed in future versions without notice.

      00:48:35,484 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-2) JBAS018567: Deployment "deployment.canopynet.ear.os.war" is using a private module ("com.sun.jsf-impl:1.2") which may be changed or removed in future versions without notice.

      00:48:35,484 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-4) JBAS018567: Deployment "deployment.canopynet.ear" is using a private module ("org.apache.log4j:main") which may be changed or removed in future versions without notice.

      00:48:35,485 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-4) JBAS018567: Deployment "deployment.canopynet.ear" is using a private module ("org.apache.log4j:main") which may be changed or removed in future versions without notice.

      00:48:35,489 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-4) JBAS018567: Deployment "deployment.canopynet.ear" is using a private module ("org.apache.commons.collections:main") which may be changed or removed in future versions without notice.

      00:48:35,490 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-4) JBAS018567: Deployment "deployment.canopynet.ear" is using a private module ("org.apache.commons.collections:main") which may be changed or removed in future versions without notice.

      00:48:35,491 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-4) JBAS018567: Deployment "deployment.canopynet.ear" is using a private module ("com.sun.jsf-impl:1.2") which may be changed or removed in future versions without notice.

      00:48:35,491 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-4) JBAS018567: Deployment "deployment.canopynet.ear" is using a private module ("com.sun.jsf-impl:1.2") which may be changed or removed in future versions without notice.

      00:48:35,574 TRACE [org.jboss.as.jpa] (MSC service thread 1-2) install persistence unit definitions for ear canopynet.ear

      00:48:35,575 TRACE [org.jboss.as.jpa] (MSC service thread 1-2) install persistence unit definitions for ear richfaces-api-3.3.3.Final.jar

      00:48:35,575 TRACE [org.jboss.as.jpa] (MSC service thread 1-2) install persistence unit definitions for ear jboss-seam-pdf-2.2.2.Final.jar

      00:48:35,576 TRACE [org.jboss.as.jpa] (MSC service thread 1-2) install persistence unit definitions for ear bcprov-jdk14-138.jar

      00:48:35,576 TRACE [org.jboss.as.jpa] (MSC service thread 1-2) install persistence unit definitions for ear richfaces-impl-3.3.3.Final.jar

      00:48:35,576 TRACE [org.jboss.as.jpa] (MSC service thread 1-2) install persistence unit definitions for ear richfaces-ui-3.3.3.Final.jar

      00:48:35,577 TRACE [org.jboss.as.jpa] (MSC service thread 1-2) install persistence unit definitions for ear poi-ooxml-3.7.jar

      00:48:35,577 TRACE [org.jboss.as.jpa] (MSC service thread 1-2) install persistence unit definitions for ear xmlbeans-2.3.0.jar

      00:48:35,578 TRACE [org.jboss.as.jpa] (MSC service thread 1-2) install persistence unit definitions for ear svnkit-1.3.1.jar

      00:48:35,578 TRACE [org.jboss.as.jpa] (MSC service thread 1-2) install persistence unit definitions for ear activation-1.1.jar

      00:48:35,578 TRACE [org.jboss.as.jpa] (MSC service thread 1-2) install persistence unit definitions for ear commons-beanutils-1.8.0.jar

      00:48:35,579 TRACE [org.jboss.as.jpa] (MSC service thread 1-2) install persistence unit definitions for ear bcmail-jdk14-138.jar

      00:48:35,579 TRACE [org.jboss.as.jpa] (MSC service thread 1-2) install persistence unit definitions for ear jaxb-api-2.2.jar

      00:48:35,579 TRACE [org.jboss.as.jpa] (MSC service thread 1-2) install persistence unit definitions for ear pjl-comp-filter-1.7.jar

      00:48:35,580 TRACE [org.jboss.as.jpa] (MSC service thread 1-2) install persistence unit definitions for ear jboss-seam-mail-2.2.2.Final.jar

      00:48:35,580 TRACE [org.jboss.as.jpa] (MSC service thread 1-2) install persistence unit definitions for ear jaxb-impl-2.2.jar

      00:48:35,581 TRACE [org.jboss.as.jpa] (MSC service thread 1-2) install persistence unit definitions for ear commons-io-1.3.1.jar

      00:48:35,581 TRACE [org.jboss.as.jpa] (MSC service thread 1-2) install persistence unit definitions for ear commons-logging-1.1.1.jar

      00:48:35,581 TRACE [org.jboss.as.jpa] (MSC service thread 1-2) install persistence unit definitions for ear itext-rtf-2.1.2.jar

      00:48:35,582 TRACE [org.jboss.as.jpa] (MSC service thread 1-2) install persistence unit definitions for ear geronimo-stax-api_1.0_spec-1.0.jar

      00:48:35,582 TRACE [org.jboss.as.jpa] (MSC service thread 1-2) install persistence unit definitions for ear jboss-seam-debug-2.2.2.Final.jar

      00:48:35,582 TRACE [org.jboss.as.jpa] (MSC service thread 1-2) install persistence unit definitions for ear commons-digester-1.8.1.jar

      00:48:35,583 TRACE [org.jboss.as.jpa] (MSC service thread 1-2) install persistence unit definitions for ear jboss-el-1.0_02.CR5.jar

      00:48:35,583 TRACE [org.jboss.as.jpa] (MSC service thread 1-2) install persistence unit definitions for ear gwt-servlet-2.4.0.jar

      00:48:35,584 TRACE [org.jboss.as.jpa] (MSC service thread 1-2) install persistence unit definitions for ear jboss-seam-ui-2.2.2.Final.jar

      00:48:35,584 TRACE [org.jboss.as.jpa] (MSC service thread 1-2) install persistence unit definitions for ear jboss-seam-ioc-2.2.2.Final.jar

      00:48:35,584 TRACE [org.jboss.as.jpa] (MSC service thread 1-2) install persistence unit definitions for ear jsf-facelets-1.1.15.B1.jar

      00:48:35,585 TRACE [org.jboss.as.jpa] (MSC service thread 1-2) install persistence unit definitions for ear poi-3.7.jar

      00:48:35,585 TRACE [org.jboss.as.jpa] (MSC service thread 1-2) install persistence unit definitions for ear jboss-seam-remoting-2.2.2.Final.jar

      00:48:35,585 TRACE [org.jboss.as.jpa] (MSC service thread 1-2) install persistence unit definitions for ear itext-2.1.2.jar

      00:48:35,586 TRACE [org.jboss.as.jpa] (MSC service thread 1-2) install persistence unit definitions for ear poi-ooxml-schemas-3.7.jar

      00:48:35,586 TRACE [org.jboss.as.jpa] (MSC service thread 1-2) install persistence unit definitions for ear UserAgentUtils-1.2.4.jar

      00:48:35,589 TRACE [org.jboss.as.jpa] (MSC service thread 1-8) registering session bean interceptors for component 'EjbSynchronizations' in 'jboss-seam.jar'

      00:48:35,590 TRACE [org.jboss.as.jpa] (MSC service thread 1-3) install persistence unit definition for jar osservice.jar

      00:48:35,591 TRACE [org.jboss.as.jpa] (MSC service thread 1-8) registering session bean interceptors for component 'TimerServiceDispatcher' in 'jboss-seam.jar'

      00:48:35,591 TRACE [org.jboss.as.jpa] (MSC service thread 1-3) adding 'vfs:/content/canopynet.ear/osservice.jar/' to annotation index map

      00:48:35,592 TRACE [org.jboss.as.jpa] (MSC service thread 1-3) adding 'vfs:/content/canopynet.ear/lib/richfaces-api-3.3.3.Final.jar/' to annotation index map

      00:48:35,592 TRACE [org.jboss.as.jpa] (MSC service thread 1-3) adding 'vfs:/content/canopynet.ear/lib/jboss-seam-pdf-2.2.2.Final.jar/' to annotation index map

      00:48:35,593 TRACE [org.jboss.as.jpa] (MSC service thread 1-1) install persistence unit definitions for war os.war

      00:48:35,593 TRACE [org.jboss.as.jpa] (MSC service thread 1-3) adding 'vfs:/content/canopynet.ear/lib/bcprov-jdk14-138.jar/' to annotation index map

      00:48:35,594 TRACE [org.jboss.as.jpa] (MSC service thread 1-3) adding 'vfs:/content/canopynet.ear/lib/richfaces-impl-3.3.3.Final.jar/' to annotation index map

      00:48:35,594 TRACE [org.jboss.as.jpa] (MSC service thread 1-3) adding 'vfs:/content/canopynet.ear/lib/richfaces-ui-3.3.3.Final.jar/' to annotation index map

      00:48:35,595 TRACE [org.jboss.as.jpa] (MSC service thread 1-3) adding 'vfs:/content/canopynet.ear/lib/poi-ooxml-3.7.jar/' to annotation index map

      00:48:35,596 TRACE [org.jboss.as.jpa] (MSC service thread 1-3) adding 'vfs:/content/canopynet.ear/lib/xmlbeans-2.3.0.jar/' to annotation index map

      00:48:35,596 TRACE [org.jboss.as.jpa] (MSC service thread 1-3) adding 'vfs:/content/canopynet.ear/lib/svnkit-1.3.1.jar/' to annotation index map

      00:48:35,597 TRACE [org.jboss.as.jpa] (MSC service thread 1-3) adding 'vfs:/content/canopynet.ear/lib/activation-1.1.jar/' to annotation index map

      00:48:35,598 TRACE [org.jboss.as.jpa] (MSC service thread 1-3) adding 'vfs:/content/canopynet.ear/lib/commons-beanutils-1.8.0.jar/' to annotation index map

      00:48:35,598 TRACE [org.jboss.as.jpa] (MSC service thread 1-3) adding 'vfs:/content/canopynet.ear/lib/bcmail-jdk14-138.jar/' to annotation index map

      00:48:35,599 TRACE [org.jboss.as.jpa] (MSC service thread 1-3) adding 'vfs:/content/canopynet.ear/lib/jaxb-api-2.2.jar/' to annotation index map

      00:48:35,599 TRACE [org.jboss.as.jpa] (MSC service thread 1-3) adding 'vfs:/content/canopynet.ear/lib/pjl-comp-filter-1.7.jar/' to annotation index map

      00:48:35,600 TRACE [org.jboss.as.jpa] (MSC service thread 1-3) adding 'vfs:/content/canopynet.ear/lib/jboss-seam-mail-2.2.2.Final.jar/' to annotation index map

      00:48:35,600 TRACE [org.jboss.as.jpa] (MSC service thread 1-3) adding 'vfs:/content/canopynet.ear/lib/jaxb-impl-2.2.jar/' to annotation index map

      00:48:35,601 TRACE [org.jboss.as.jpa] (MSC service thread 1-3) adding 'vfs:/content/canopynet.ear/lib/commons-io-1.3.1.jar/' to annotation index map

      00:48:35,602 TRACE [org.jboss.as.jpa] (MSC service thread 1-3) adding 'vfs:/content/canopynet.ear/lib/commons-logging-1.1.1.jar/' to annotation index map

      00:48:35,602 TRACE [org.jboss.as.jpa] (MSC service thread 1-3) adding 'vfs:/content/canopynet.ear/lib/itext-rtf-2.1.2.jar/' to annotation index map

      00:48:35,605 TRACE [org.jboss.as.jpa] (MSC service thread 1-3) adding 'vfs:/content/canopynet.ear/lib/geronimo-stax-api_1.0_spec-1.0.jar/' to annotation index map

      00:48:35,606 TRACE [org.jboss.as.jpa] (MSC service thread 1-3) adding 'vfs:/content/canopynet.ear/lib/jboss-seam-debug-2.2.2.Final.jar/' to annotation index map

      00:48:35,606 TRACE [org.jboss.as.jpa] (MSC service thread 1-3) adding 'vfs:/content/canopynet.ear/lib/commons-digester-1.8.1.jar/' to annotation index map

      00:48:35,607 TRACE [org.jboss.as.jpa] (MSC service thread 1-3) adding 'vfs:/content/canopynet.ear/lib/jboss-el-1.0_02.CR5.jar/' to annotation index map

      00:48:35,607 TRACE [org.jboss.as.jpa] (MSC service thread 1-3) adding 'vfs:/content/canopynet.ear/lib/gwt-servlet-2.4.0.jar/' to annotation index map

      00:48:35,608 TRACE [org.jboss.as.jpa] (MSC service thread 1-3) adding 'vfs:/content/canopynet.ear/lib/jboss-seam-ui-2.2.2.Final.jar/' to annotation index map

      00:48:35,608 TRACE [org.jboss.as.jpa] (MSC service thread 1-3) adding 'vfs:/content/canopynet.ear/lib/jboss-seam-ioc-2.2.2.Final.jar/' to annotation index map

      00:48:35,609 TRACE [org.jboss.as.jpa] (MSC service thread 1-3) adding 'vfs:/content/canopynet.ear/lib/jsf-facelets-1.1.15.B1.jar/' to annotation index map

      00:48:35,609 TRACE [org.jboss.as.jpa] (MSC service thread 1-3) adding 'vfs:/content/canopynet.ear/lib/poi-3.7.jar/' to annotation index map

      00:48:35,610 TRACE [org.jboss.as.jpa] (MSC service thread 1-3) adding 'vfs:/content/canopynet.ear/lib/jboss-seam-remoting-2.2.2.Final.jar/' to annotation index map

      00:48:35,610 TRACE [org.jboss.as.jpa] (MSC service thread 1-3) adding 'vfs:/content/canopynet.ear/lib/itext-2.1.2.jar/' to annotation index map

      00:48:35,611 TRACE [org.jboss.as.jpa] (MSC service thread 1-3) adding 'vfs:/content/canopynet.ear/lib/poi-ooxml-schemas-3.7.jar/' to annotation index map

      00:48:35,611 TRACE [org.jboss.as.jpa] (MSC service thread 1-3) adding 'vfs:/content/canopynet.ear/lib/UserAgentUtils-1.2.4.jar/' to annotation index map

      00:48:35,612 TRACE [org.jboss.as.jpa] (MSC service thread 1-3) adding 'vfs:/content/canopynet.ear/osservice.jar/' to annotation index map

      00:48:35,612 TRACE [org.jboss.as.jpa] (MSC service thread 1-3) adding 'vfs:/content/canopynet.ear/jboss-seam.jar/' to annotation index map

      00:48:35,624 DEBUG [org.jboss.as.jpa] (MSC service thread 1-3) loaded persistence provider adapter org.jboss.as.jpa.hibernate:3

       

      There are no more messages in the log.

       

      My jboss-deployment-structure.xml is

       

      <jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.0">

                <deployment>

                    <exclusions>

                                    <module name="javax.faces.api" slot="main" />

                                    <module name="com.sun.jsf-impl" slot="main" />

                                    <module name="javassist" slot="main" />

                                    <module name="org.hibernate" slot="main" />

                                    <module name="org.hibernate.validator" slot="main" />

                          </exclusions>

                          <dependencies>

                                    <module name="org.apache.log4j" export="true" />

                                    <module name="org.dom4j" export="true" />

                                    <module name="org.apache.commons.logging" export="true" />

                                    <module name="org.apache.commons.collections" export="true" />

                                    <module name="org.slf4j" export="true" />

                                    <module name="org.osgi.core" export="true" />

                                    <module name="javax.faces.api" slot="1.2" export="true" />

                                    <module name="com.sun.jsf-impl" slot="1.2" export="true" />

                                    <module name="org.apache.xerces" export="true" />

                                    <module name="org.hibernate" slot="3" export="true" />

                          </dependencies>

                </deployment>

       

       

                <sub-deployment name="osservice.jar">

                          <dependencies>

                                    <module name="javax.faces.api" slot="1.2" />

                                    <module name="com.sun.jsf-impl" slot="1.2" />

                                    <module name="org.hibernate" slot="3" />

                          </dependencies>

                          <exclusions>

                                    <module name="javax.faces.api" slot="main" />

                                    <module name="com.sun.jsf-impl" slot="main" />

                                    <module name="javassist" slot="main" />

                                    <module name="org.hibernate" slot="main" />

                                    <module name="org.hibernate.validator" slot="main" />

                          </exclusions>

                </sub-deployment>

       

       

                <sub-deployment name="os.war">

                          <dependencies>

                                    <module name="javax.faces.api" slot="1.2" />

                                    <module name="com.sun.jsf-impl" slot="1.2" />

                                    <module name="org.hibernate" slot="3" />

                          </dependencies>

                          <exclusions>

                                    <module name="javax.faces.api" slot="main" />

                                    <module name="com.sun.jsf-impl" slot="main" />

                                    <module name="javassist" slot="main" />

                                    <module name="org.hibernate" slot="main" />

                                    <module name="org.hibernate.validator" slot="main" />

                          </exclusions>

                </sub-deployment>

       

       

      </jboss-deployment-structure>

        • 1. Re: Stalled deployment; Deploying Seam 2.2.2 EAR to JBoss AS 7.1 "thunder"
          Scott Marlow Master

          Could you try the following steps to gather more information and attach the output here.

           

          1.  A few seconds after you see the deployment stall, could you gather thread dumps of the AS7 process. 

          From a command shell, use the "jps -l" command to get the process id of the AS7 server (you can do this before deploying the app while the AS7 server is running of course).

           

          jps -l

           

          jps -l

          6676 com.intellij.idea.Main

          6866 org.jetbrains.idea.maven.server.RemoteMavenServer

          12378 sun.tools.jps.Jps

          12170 /home/smarlow/work/as7/build/target/jboss-as-7.1.1.Final-SNAPSHOT/jboss-modules.jar

           

           

          For me, the AS7 process id is 12170 (because that is the process running the jboss-modules.jar).  Deploy the application (deleting the as7/standalone/deployments/canopynet.ear.failed file should start the deployment).  A few second after it stalls during deployment, take the process id noted from the output of the "jps -l" command and do a "jstack ThatAS7ProcessID" redirected to a file.

           

           

          jstack 12170 > stalledAS7ThreadDumps.txt

           

          And attach the stalledAS7ThreadDumps.txt file here.

           

          2.  Run the jconsole program and connect to the jboss-modules process (the same process id as used above).  Click on the "mbeans" tab.  Click on "jboss.msc", then "container", then "jboss-as", then "Operations", then "dumpServicesToString".  Click on the "dumpServiceToString" button on the right side of the screen and select all of the text in the dialog box that opens up.  Paste the list of MSC services and their state here (or attach them via a new text file).

           

          I'm curious what the MSC service states will be and where the thread dump will show that the deployment process is stalled.

           

          Scott

          • 2. Re: Stalled deployment; Deploying Seam 2.2.2 EAR to JBoss AS 7.1 "thunder"
            Robin Young Newbie

            Scott,

             

            Thread dumps attached.

             

            I am currently unable to run jconsole (remote server with non-graphical access) at the moment - i'll try and work a way round it (vnc) and post the list of MSC services and their states at a later date.

             

            Robin

            • 3. Re: Stalled deployment; Deploying Seam 2.2.2 EAR to JBoss AS 7.1 "thunder"
              Scott Marlow Master

              The thread dump looks interesting, could you try enabling TRACE for everything in standalone.xml and attaching the server.log.  I'd like to see if there are any clues in it (will see what comes after the line containing "loaded persistence provider adapter org.jboss.as.jpa.hibernate:3").  Setting the root-logger and console-handler to TRACE as follows should do it.

               

                <profile>

                    <subsystem xmlns="urn:jboss:domain:logging:1.1">

                        <console-handler name="CONSOLE">

                            <level name="TRACE"/>

                            <formatter>

                                <pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>

                            </formatter>

                        </console-handler>

                 .

                 .

                 .

                        <root-logger>

                            <level name="TRACE"/>

                            <handlers>

                                <handler name="CONSOLE"/>

                                <handler name="FILE"/>

                            </handlers>

                        </root-logger>

                    </subsystem>

               

              The interesting thread was this one:

               

               

              Thread t@35: (state = BLOCKED)

              - java.lang.Object.wait(long) @bci=0 (Interpreted frame)

              - java.lang.Object.wait() @bci=2, line=485 (Interpreted frame)

              - org.jboss.modules.Module.getPaths(boolean) @bci=56, line=1141 (Interpreted frame)

              - org.jboss.modules.Module.getPathsUnchecked(boolean) @bci=2, line=1164 (Compiled frame)

              - org.jboss.modules.Module.loadModuleClass(java.lang.String, boolean, boolean) @bci=64, line=512 (Compiled frame)

              - org.jboss.modules.ModuleClassLoader.findClass(java.lang.String, boolean, boolean) @bci=53, line=182 (Compiled frame)

              - org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(java.lang.String, boolean, boolean) @bci=35, line=468 (Compiled frame)

              - org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(java.lang.String, boolean, boolean) @bci=233, line=456 (Compiled frame)

              - org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(java.lang.String, boolean, boolean) @bci=42, line=423 (Compiled frame)

              - org.jboss.modules.ConcurrentClassLoader.performLoadClass(java.lang.String, boolean, boolean) @bci=82, line=398 (Compiled frame)

              - org.jboss.modules.ConcurrentClassLoader.loadClass(java.lang.String) @bci=4, line=120 (Compiled frame)

              - java.lang.ClassLoader.defineClass1(java.lang.String, byte[], int, int, java.security.ProtectionDomain, java.lang.String, boolean) @bci=0 (Interpreted frame)

              - java.lang.ClassLoader.defineClassCond(java.lang.String, byte[], int, int, java.security.ProtectionDomain, boolean) @bci=32, line=632 (Interpreted frame)

              - java.lang.ClassLoader.defineClass(java.lang.String, byte[], int, int, java.security.ProtectionDomain) @bci=9, line=616 (Interpreted frame)

              - java.security.SecureClassLoader.defineClass(java.lang.String, byte[], int, int, java.security.CodeSource) @bci=27, line=141 (Interpreted frame)

              - org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(java.lang.String, byte[], int, int, java.security.CodeSource) @bci=8, line=327 (Interpreted frame)

              - org.jboss.modules.ModuleClassLoader.defineClass(java.lang.String, org.jboss.modules.ClassSpec, org.jboss.modules.ResourceLoader) @bci=262, line=391 (Interpreted frame)

              - org.jboss.modules.ModuleClassLoader.loadClassLocal(java.lang.String, boolean) @bci=219, line=243 (Compiled frame)

              - org.jboss.modules.ModuleClassLoader$1.loadClassLocal(java.lang.String, boolean) @bci=6, line=73 (Compiled frame)

              - org.jboss.modules.Module.loadModuleClass(java.lang.String, boolean, boolean) @bci=123, line=517 (Compiled frame)

              - org.jboss.modules.ModuleClassLoader.findClass(java.lang.String, boolean, boolean) @bci=53, line=182 (Compiled frame)

              - org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(java.lang.String, boolean, boolean) @bci=35, line=468 (Compiled frame)

              - org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(java.lang.String, boolean, boolean) @bci=233, line=456 (Compiled frame)

              - org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(java.lang.String, boolean, boolean) @bci=42, line=423 (Compiled frame)

              - org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(java.lang.String, boolean, boolean) @bci=42, line=423 (Compiled frame)

              - org.jboss.modules.ConcurrentClassLoader.performLoadClass(java.lang.String, boolean, boolean) @bci=82, line=398 (Compiled frame)

              - org.jboss.modules.ConcurrentClassLoader.loadClass(java.lang.String) @bci=4, line=120 (Compiled frame)

              - java.lang.ClassLoader.defineClass1(java.lang.String, byte[], int, int, java.security.ProtectionDomain, java.lang.String, boolean) @bci=0 (Interpreted frame)

              - java.lang.ClassLoader.defineClassCond(java.lang.String, byte[], int, int, java.security.ProtectionDomain, boolean) @bci=32, line=632 (Interpreted frame)

              - java.lang.ClassLoader.defineClass(java.lang.String, byte[], int, int, java.security.ProtectionDomain) @bci=9, line=616 (Interpreted frame)

              - java.security.SecureClassLoader.defineClass(java.lang.String, byte[], int, int, java.security.CodeSource) @bci=27, line=141 (Interpreted frame)

              - org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(java.lang.String, byte[], int, int, java.security.CodeSource) @bci=8, line=327 (Interpreted frame)

              - org.jboss.modules.ModuleClassLoader.defineClass(java.lang.String, org.jboss.modules.ClassSpec, org.jboss.modules.ResourceLoader) @bci=262, line=391 (Interpreted frame)

              - org.jboss.modules.ModuleClassLoader.loadClassLocal(java.lang.String, boolean) @bci=219, line=243 (Compiled frame)

              - org.jboss.modules.ModuleClassLoader$1.loadClassLocal(java.lang.String, boolean) @bci=6, line=73 (Compiled frame)

              - org.jboss.modules.Module.loadModuleClass(java.lang.String, boolean, boolean) @bci=123, line=517 (Compiled frame)

              - org.jboss.modules.ModuleClassLoader.findClass(java.lang.String, boolean, boolean) @bci=53, line=182 (Compiled frame)

              - org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(java.lang.String, boolean, boolean) @bci=35, line=468 (Compiled frame)

              - org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(java.lang.String, boolean, boolean) @bci=233, line=456 (Compiled frame)

              - org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(java.lang.String, boolean, boolean) @bci=42, line=423 (Compiled frame)

              - org.jboss.modules.ConcurrentClassLoader.performLoadClass(java.lang.String, boolean, boolean) @bci=82, line=398 (Compiled frame)

              - org.jboss.modules.ConcurrentClassLoader.loadClass(java.lang.String) @bci=4, line=120 (Compiled frame)

              - org.jboss.as.jpa.hibernate3.HibernatePersistenceProviderAdaptor.injectJtaManager(org.jboss.as.jpa.spi.JtaManager) @bci=1, line=56 (Interpreted frame)

              - org.jboss.as.jpa.processor.PersistenceProviderAdaptorLoader.loadPersistenceAdapterModule(java.lang.String) @bci=105, line=111 (Interpreted frame)

              - org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.getPersistenceProviderAdaptor(org.jboss.as.jpa.spi.PersistenceUnitMetadata, org.jboss.as.jpa.config.PersistenceProviderDeploymentHolder, org.jboss.as.server.deployment.DeploymentUnit) @bci=79, line=458 (Interpreted frame)

              - org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.addPuService(org.jboss.as.server.deployment.DeploymentPhaseContext, java.util.ArrayList) @bci=255, line=262 (Interpreted frame)

              - org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.handleJarDeployment(org.jboss.as.server.deployment.DeploymentPhaseContext) @bci=110, line=145 (Interpreted frame)

              - org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.deploy(org.jboss.as.server.deployment.DeploymentPhaseContext) @bci=12, line=120 (Interpreted frame)

              - org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(org.jboss.msc.service.StartContext) @bci=314, line=113 (Interpreted frame)

              - org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(org.jboss.msc.service.Service, org.jboss.msc.service.StartContext) @bci=13, line=1811 (Interpreted frame)

              - org.jboss.msc.service.ServiceControllerImpl$StartTask.run() @bci=95, line=1746 (Interpreted frame)

              - java.util.concurrent.ThreadPoolExecutor$Worker.runTask(java.lang.Runnable) @bci=59, line=886 (Interpreted frame)

              - java.util.concurrent.ThreadPoolExecutor$Worker.run() @bci=28, line=908 (Interpreted frame)

              - java.lang.Thread.run() @bci=11, line=662 (Interpreted frame)

              • 5. Re: Stalled deployment; Deploying Seam 2.2.2 EAR to JBoss AS 7.1 "thunder"
                Scott Marlow Master

                Robin,

                 

                It looks like the last log output line from the stalled thread contains (other threads not included):

                 

                08:47:19,576 TRACE [org.jboss.modules] (MSC service thread 1-7) Attempting to define class org.hibernate.transaction.JNDITransactionManagerLookup in Module "org.hibernate:3" from local module loader @50c4fe76 (roots: /usr/local/jboss7/modules)

                08:47:19,580 TRACE [org.jboss.modules] (MSC service thread 1-7) Attempting to define package org.hibernate.transaction in Module "org.hibernate:3" from local module loader @50c4fe76 (roots: /usr/local/jboss7/modules)

                08:47:19,584 TRACE [org.jboss.modules] (MSC service thread 1-7) Defined package org.hibernate.transaction in Module "org.hibernate:3" from local module loader @50c4fe76 (roots: /usr/local/jboss7/modules)

                08:47:19,588 TRACE [org.jboss.modules] (MSC service thread 1-7) Finding class org.hibernate.transaction.TransactionManagerLookup from Module "org.hibernate:3" from local module loader @50c4fe76 (roots: /usr/local/jboss7/modules)

                 

                It just occured to me that "org.apache.ant" is no longer included with the AS7 distribution (if someone wants to run the Hibernate ant tasks, they can use their own copy of the ant jar).  Could you try removing that from your hibernate:3 module.xml (I just removed it from the JPA doc).  It will be interesting if that helps.  In the trace output, I can see "org.apache.ant" mentioned once:

                 

                08:47:18,514 TRACE [org.jboss.modules] (MSC service thread 1-9) Locally loading module org.apache.ant:main from local module loader @50c4fe76 (roots: /usr/local/jboss7/modules)

                 

                But no further mention is made of "org.apache.ant", so its never defined by the classloader.  I think that is a big hint here.

                 

                Scott 

                • 6. Re: Stalled deployment; Deploying Seam 2.2.2 EAR to JBoss AS 7.1 "thunder"
                  Robin Young Newbie

                  Scott,

                   

                  Thanks, that was it!

                   

                  All I have to do now is test is works now its deployed...

                   

                  Robin