0 Replies Latest reply on Dec 10, 2012 8:04 AM by Joerg Maurer

    RAR deployment hangs when depending on my module

    Joerg Maurer Newbie

      Hi,

       

      I want to have a common set of libraries of a Tuxedo Adapter RAR, which will be used both by the RAR adapter and by some EAR application using that RAR adapter. So i refactored those libs into a JBoss 7 module.

       

      <module xmlns="urn:jboss:module:1.0" name="com.oracle.tuxedo-adapter">

        <resources>

          <resource-root path="com.oracle.tuxedo.adapter_1.1.0.0.jar"/>

          <resource-root path="com.bea.core.jatmi_1.3.1.0.jar"/>

          <resource-root path="com.bea.core.i18n_1.4.0.0.jar"/>

              <!-- Insert resources here -->

        </resources>

        <dependencies>

          <module name="javax.api"/>

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

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

        </dependencies>

      </module>

       

      Inside the RAR i put a jboss-deployment-structure.xml under META-INF:

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

      <jboss-deployment-structure> 

      <deployment> 

      <dependencies> 

      <module name="com.oracle.tuxedo-adapter" /> 

      </dependencies>

      </deployment> 

      </jboss-deployment-structure>

       

      The log says as follows and then the deployment "hangs" - that is the deployment call NEVER returns back, neither does it say anything on or above level DEBUG. I am starting JBoss 7 via org.jboss.as.embedded.EmbeddedServerFactory and using method deploy on the org.jboss.as.embedded.StandaloneServer interface.

       

      Thanks for any hints if and how this should be possible.

      ...

      13:59:08,258 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876: Starting deployment of "ta2mig-batch-container-tuxedo-adapter.rar"

      13:59:08,360 DEBUG [org.jboss.as.server.deployment] (MSC service thread 1-2) Creating moduledeployment.ta2mig-batch-container-tuxedo-adapter.rar:main

      13:59:08,360 DEBUG [org.jboss.as.server.deployment] (MSC service thread 1-2) Adding resource "/D:/Playground/workspaces/jboss/JBossEmbedded/content/ta2mig-batch-container-tuxedo-adapter.rar" to module deployment.ta2mig-batch-container-tuxedo-adapter.rar:main

      13:59:08,366 DEBUG [org.jboss.as.server.deployment] (MSC service thread 1-2) Adding dependency ModuleDependency [identifier=javax.resource.api:main, moduleLoader=local module loader @7d46817d (roots: D:\Playground\workspaces\jboss\JBossEmbedded\target\servers\jboss-home\modules), export=false, optional=false, importServices=false] to module deployment.ta2mig-batch-container-tuxedo-adapter.rar:main

      13:59:08,367 DEBUG [org.jboss.as.server.deployment] (MSC service thread 1-2) Adding dependency ModuleDependency [identifier=javax.jms.api:main, moduleLoader=local module loader @7d46817d (roots: D:\Playground\workspaces\jboss\JBossEmbedded\target\servers\jboss-home\modules), export=false, optional=false, importServices=false] to module deployment.ta2mig-batch-container-tuxedo-adapter.rar:main

      13:59:08,367 DEBUG [org.jboss.as.server.deployment] (MSC service thread 1-2) Adding dependency ModuleDependency [identifier=javax.validation.api:main, moduleLoader=local module loader @7d46817d (roots: D:\Playground\workspaces\jboss\JBossEmbedded\target\servers\jboss-home\modules), export=false, optional=false, importServices=false] to module deployment.ta2mig-batch-container-tuxedo-adapter.rar:main

      13:59:08,367 DEBUG [org.jboss.as.server.deployment] (MSC service thread 1-2) Adding dependency ModuleDependency [identifier=org.jboss.ironjacamar.api:main, moduleLoader=local module loader @7d46817d (roots: D:\Playground\workspaces\jboss\JBossEmbedded\target\servers\jboss-home\modules), export=false, optional=false, importServices=false] to module deployment.ta2mig-batch-container-tuxedo-adapter.rar:main

      13:59:08,367 DEBUG [org.jboss.as.server.deployment] (MSC service thread 1-2) Adding dependency ModuleDependency [identifier=org.jboss.ironjacamar.impl:main, moduleLoader=local module loader @7d46817d (roots: D:\Playground\workspaces\jboss\JBossEmbedded\target\servers\jboss-home\modules), export=true, optional=false, importServices=false] to module deployment.ta2mig-batch-container-tuxedo-adapter.rar:main

      13:59:08,367 DEBUG [org.jboss.as.server.deployment] (MSC service thread 1-2) Adding dependency ModuleDependency [identifier=org.hibernate.validator:main, moduleLoader=local module loader @7d46817d (roots: D:\Playground\workspaces\jboss\JBossEmbedded\target\servers\jboss-home\modules), export=false, optional=false, importServices=true] to module deployment.ta2mig-batch-container-tuxedo-adapter.rar:main

      13:59:08,368 DEBUG [org.jboss.as.server.deployment] (MSC service thread 1-2) Adding dependency ModuleDependency [identifier=org.picketbox:main, moduleLoader=local module loader @7d46817d (roots: D:\Playground\workspaces\jboss\JBossEmbedded\target\servers\jboss-home\modules), export=false, optional=false, importServices=false] to module deployment.ta2mig-batch-container-tuxedo-adapter.rar:main

      13:59:08,368 DEBUG [org.jboss.as.server.deployment] (MSC service thread 1-2) Adding dependency ModuleDependency [identifier=org.jboss.as.security:main, moduleLoader=local module loader @7d46817d (roots: D:\Playground\workspaces\jboss\JBossEmbedded\target\servers\jboss-home\modules), export=false, optional=false, importServices=false] to module deployment.ta2mig-batch-container-tuxedo-adapter.rar:main

      13:59:08,368 DEBUG [org.jboss.as.server.deployment] (MSC service thread 1-2) Adding dependency ModuleDependency [identifier=sun.jdk:main, moduleLoader=local module loader @7d46817d (roots: D:\Playground\workspaces\jboss\JBossEmbedded\target\servers\jboss-home\modules), export=false, optional=false, importServices=true] to module deployment.ta2mig-batch-container-tuxedo-adapter.rar:main

      13:59:08,368 DEBUG [org.jboss.as.server.deployment] (MSC service thread 1-2) Adding dependency ModuleDependency [identifier=javax.api:main, moduleLoader=local module loader @7d46817d (roots: D:\Playground\workspaces\jboss\JBossEmbedded\target\servers\jboss-home\modules), export=false, optional=false, importServices=false] to module deployment.ta2mig-batch-container-tuxedo-adapter.rar:main

      13:59:08,368 DEBUG [org.jboss.as.server.deployment] (MSC service thread 1-2) Adding dependency ModuleDependency [identifier=org.jboss.logging:main, moduleLoader=local module loader @7d46817d (roots: D:\Playground\workspaces\jboss\JBossEmbedded\target\servers\jboss-home\modules), export=false, optional=false, importServices=false] to module deployment.ta2mig-batch-container-tuxedo-adapter.rar:main

      13:59:08,368 DEBUG [org.jboss.as.server.deployment] (MSC service thread 1-2) Adding dependency ModuleDependency [identifier=org.jboss.vfs:main, moduleLoader=local module loader @7d46817d (roots: D:\Playground\workspaces\jboss\JBossEmbedded\target\servers\jboss-home\modules), export=false, optional=false, importServices=false] to module deployment.ta2mig-batch-container-tuxedo-adapter.rar:main

      13:59:08,369 DEBUG [org.jboss.as.server.deployment] (MSC service thread 1-2) Adding dependency ModuleDependency [identifier=org.apache.commons.logging:main, moduleLoader=local module loader @7d46817d (roots: D:\Playground\workspaces\jboss\JBossEmbedded\target\servers\jboss-home\modules), export=false, optional=false, importServices=false] to module deployment.ta2mig-batch-container-tuxedo-adapter.rar:main

      13:59:08,369 DEBUG [org.jboss.as.server.deployment] (MSC service thread 1-2) Adding dependency ModuleDependency [identifier=org.apache.log4j:main, moduleLoader=local module loader @7d46817d (roots: D:\Playground\workspaces\jboss\JBossEmbedded\target\servers\jboss-home\modules), export=false, optional=false, importServices=false] to module deployment.ta2mig-batch-container-tuxedo-adapter.rar:main

      13:59:08,369 DEBUG [org.jboss.as.server.deployment] (MSC service thread 1-2) Adding dependency ModuleDependency [identifier=org.slf4j:main, moduleLoader=local module loader @7d46817d (roots: D:\Playground\workspaces\jboss\JBossEmbedded\target\servers\jboss-home\modules), export=false, optional=false, importServices=false] to module deployment.ta2mig-batch-container-tuxedo-adapter.rar:main

      13:59:08,369 DEBUG [org.jboss.as.server.deployment] (MSC service thread 1-2) Adding dependency ModuleDependency [identifier=org.jboss.logging.jul-to-slf4j-stub:main, moduleLoader=local module loader @7d46817d (roots: D:\Playground\workspaces\jboss\JBossEmbedded\target\servers\jboss-home\modules), export=false, optional=false, importServices=false] to module deployment.ta2mig-batch-container-tuxedo-adapter.rar:main

      13:59:08,369 DEBUG [org.jboss.as.server.deployment] (MSC service thread 1-2) Adding dependency ModuleDependency [identifier=com.oracle.tuxedo-adapter:main, moduleLoader=Service Module Loader, export=false, optional=false, importServices=false] to module deployment.ta2mig-batch-container-tuxedo-adapter.rar:main

      13:59:08,369 DEBUG [org.jboss.as.server.deployment] (MSC service thread 1-2) Adding dependency ModuleDependency [identifier=com.oracle.tuxedo-adapter:main, moduleLoader=Service Module Loader, export=false, optional=false, importServices=false] to module deployment.ta2mig-batch-container-tuxedo-adapter.rar:main

      13:59:08,379 DEBUG [org.jboss.modules] (MSC service thread 1-8) Module deployment.ta2mig-batch-container-tuxedo-adapter.rar:main defined by Service Module Loader

      13:59:08,382 DEBUG [org.jboss.modules] (MSC service thread 1-8) Module org.apache.log4j:main defined by local module loader @7d46817d (roots: D:\Playground\workspaces\jboss\JBossEmbedded\target\servers\jboss-home\modules)

      13:59:08,384 DEBUG [org.jboss.modules] (MSC service thread 1-8) Module org.jboss.logging.jul-to-slf4j-stub:main defined by local module loader @7d46817d (roots: D:\Playground\workspaces\jboss\JBossEmbedded\target\servers\jboss-home\modules)

      13:59:08,388 DEBUG [org.jboss.modules] (MSC service thread 1-8) Module com.oracle.tuxedo-adapter:main defined by local module loader @7d46817d (roots: D:\Playground\workspaces\jboss\JBossEmbedded\target\servers\jboss-home\modules)

      13:59:08,485 DEBUG [org.jboss.as.connector] (MSC service thread 1-4) starting Inactive:InactiveResourceAdapterDeployment{module=Module "deployment.ta2mig-batch-container-tuxedo-adapter.rar:main" from Service Module Loader, connectorXmlDescriptor=org.jboss.as.connector.metadata.xmldescriptors.ConnectorXmlDescriptor@f516f91, deployment='ta2mig-batch-container-tuxedo-adapter', deploymentUnitName='ta2mig-batch-container-tuxedo-adapter.rar', registration=org.jboss.as.controller.registry.ConcreteResourceRegistration@2b73a072}

      13:59:08,485 DEBUG [org.jboss.as.deployment.connector] (MSC service thread 1-6) DEPLOYMENT name = ta2mig-batch-container-tuxedo-adapter

      13:59:08,501 DEBUG [org.jboss.as.connector.deployers.RADeployer] (MSC service thread 1-6) No activation: com.oracle.tuxedo.adapter.spi.TuxedoManagedConnectionFactory

      13:59:08,503 DEBUG [org.jboss.as.deployment.connector] (MSC service thread 1-6) Registering ResourceAdapter ta2mig-batch-container-tuxedo-adapter

      13:59:08,503 DEBUG [org.jboss.as.connector.deployers.RADeployer] (MSC service thread 1-6) Activated: file:/D:/Playground/workspaces/jboss/JBossEmbedded/target/servers/jboss-home/mystandalone/tmp/vfs/temp629a7ab8734022cf/content-51fa298398b374e2/contents/

      ...