1 Reply Latest reply on Feb 1, 2004 1:36 PM by Adrian Brock

    JCA deployement dependencies problem

    Richard De Falco Newbie

       

      "rdefalco" wrote:
      Hello,

      I'm trying to deploy a jca adaptor on jboss 3.2.2. The rar is part of an ear and is referenced in application.xml by the module tag.

      When I deploy I get :

      11:14:08,156 INFO [EARDeployer] Started J2EE application: file:/C:/jboss-3.2.2_jetty-4.2.11/server/default/deploy/openserver.ear
      11:14:08,156 INFO [MainDeployer] Deployed package: file:/C:/jboss-3.2.2_jetty-4.2.11/server/default/deploy/openserver.ear
      11:14:08,171 ERROR [URLDeploymentScanner] MBeanException: Exception in MBean operation 'checkIncompleteDeployments()'
      Cause: Incomplete Deployment listing:
      Packages waiting for a deployer:
      <none>
      Incompletely deployed packages:
      <none>
      MBeans waiting for classes:
      <none>
      MBeans waiting for other MBeans:
      [ObjectName: jboss.jca:service=NoTxCM,name=ldapadapter
      state: CONFIGURED
      I Depend On: jboss.jca:service=ManagedConnectionPool,name=ldapadapter
      jboss.jca:service=CachedConnectionManager

      Depends On Me: , ObjectName: jboss.jca:service=ManagedConnectionPool,name=ldapadapter
      state: CONFIGURED
      I Depend On: jboss.jca:service=ManagedConnectionFactory,name=ldapadapter

      Depends On Me: jboss.jca:service=NoTxCM,name=ldapadapter
      , ObjectName: jboss.jca:service=ManagedConnectionFactory,name=ldapadapter
      state: CONFIGURED
      I Depend On: jboss.jca:service=RARDeployment,name=Openserver LDAP Adapter

      Depends On Me: jboss.jca:service=ManagedConnectionPool,name=ldapadapter
      ]
      11:14:08,265 INFO [URLDeploymentScanner] Started jboss.deployment:type=DeploymentScanner,flavor=URL
      11:14:08,453 INFO [MainDeployer] Deployed package: file:/C:/jboss-3.2.2_jetty-4.2.11/server/default/conf/jboss-service.xml
      11:14:08,453 INFO [Server] JBoss (MX MicroKernel) [3.2.2 (build: CVSTag=JBoss_3_2_2 date=200310182216)] Started in 1m:37s:578ms

      Any Ideas ? Must I use the depends tag on ldapadapter-ds.xml and how ? I've bought the 3.0 docs but obvisously some things have changed... attached is the descriptors I use, as well as some debug output,

      Richard

      ----------------------------------------------------------------------------------------------------------------------------
      Here is the META-INF/ldapadapter-ds.xml that is part of the ldapadapter.rar :

      <?xml version="1.0" encoding="UTF-8" ?>
      <!-- The non-transaction ldapadapter resource adaptor service configuration
      -->
      <connection-factories>
      <no-tx-connection-factory>
      <jndi-name>ldapadapter</jndi-name>
      <adapter-display-name>Openserver LDAP Adapter</adapter-display-name>
      <min-pool-size>1</min-pool-size>
      <max-pool-size>10</max-pool-size>
      <blocking-timeout-millis>5000</blocking-timeout-millis>
      <idle-timeout-milis>50000</idle-timeout-milis>
      </no-tx-connection-factory>
      </connection-factories>


      --------------------------------------------------------------
      the ra.xml :

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

      <!DOCTYPE connector PUBLIC '-//Sun Microsystems, Inc.//DTD Connector 1.0//EN' 'http://java.sun.com/dtd/connector_1_0.dtd'>
      <connector>
      <display-name>LDAPAdapter</display-name>
      <vendor-name>Icominfo</vendor-name>
      <spec-version>1.0</spec-version>
      <eis-type>LDAP</eis-type>
      <version>1.0</version>
      <resourceadapter>
      <managedconnectionfactory-class>com.icominfo.openserver.server.ldapadapter.LDAPManagedConnectionFactory</managedconnectionfactory-class>
      <connectionfactory-interface>com.icominfo.openserver.server.ldapadapter.ConnectionFactory</connectionfactory-interface>
      <connectionfactory-impl-class>com.icominfo.openserver.server.ldapadapter.LDAPConnectionFactory</connectionfactory-impl-class>
      <connection-interface>com.icominfo.openserver.server.ldapadapter.Connection</connection-interface>
      <connection-impl-class>com.icominfo.openserver.server.ldapadapter.DummyLDAPConnection</connection-impl-class>
      <transaction-support>NoTransaction</transaction-support>
      <config-property>
      <config-property-name>Host</config-property-name>
      <config-property-type>java.lang.String</config-property-type>
      <config-property-value>klif2003.dklif.klif</config-property-value>
      </config-property>
      <authentication-mechanism>
      <authentication-mechanism-type>BasicPassword</authentication-mechanism-type>
      <credential-interface>javax.resource.security.PasswordCredential</credential-interface>
      </authentication-mechanism>
      <reauthentication-support>false</reauthentication-support>
      </resourceadapter>
      </connector>

      -----------------------------------------------------------------------------------------
      Debug Output at the rar deployment :

      11:13:21,750 INFO [EARDeployer] Init J2EE application: file:/C:/jboss-3.2.2_jetty-4.2.11/server/default/deploy/openserver.ear
      11:13:26,031 DEBUG [RARMetaData] methodName = 'setDisplayName'
      11:13:26,031 DEBUG [RARMetaData] methodName = 'setVendorName'
      11:13:26,031 DEBUG [RARMetaData] methodName = 'setSpecVersion'
      11:13:26,046 DEBUG [RARMetaData] methodName = 'setEisType'
      11:13:26,046 DEBUG [RARMetaData] methodName = 'setVersion'
      11:13:26,046 DEBUG [RARMetaData] methodName = 'setResourceadapter'
      11:13:26,046 DEBUG [RARMetaData] methodName = 'setManagedconnectionfactoryClass'
      11:13:26,046 DEBUG [RARMetaData] methodName = 'setConnectionfactoryInterface'
      11:13:26,062 DEBUG [RARMetaData] methodName = 'setConnectionfactoryImplClass'
      11:13:26,062 DEBUG [RARMetaData] methodName = 'setConnectionInterface'
      11:13:26,062 DEBUG [RARMetaData] methodName = 'setConnectionImplClass'
      11:13:26,062 DEBUG [RARMetaData] methodName = 'setTransactionSupport'
      11:13:26,078 DEBUG [RARMetaData] methodName = 'setConfigProperty'
      11:13:26,078 DEBUG [RARMetaData] methodName = 'setConfigProperty'
      11:13:26,078 DEBUG [RARMetaData] methodName = 'setConfigProperty'
      11:13:26,078 DEBUG [RARMetaData] methodName = 'setConfigProperty'
      11:13:26,078 DEBUG [RARMetaData] methodName = 'setConfigProperty'
      11:13:26,093 DEBUG [RARMetaData] methodName = 'setConfigProperty'
      11:13:26,093 DEBUG [RARMetaData] methodName = 'setConfigProperty'
      11:13:26,093 DEBUG [RARMetaData] methodName = 'setConfigProperty'
      11:13:26,109 DEBUG [RARMetaData] methodName = 'setConfigProperty'
      11:13:26,109 DEBUG [RARMetaData] methodName = 'setConfigProperty'
      11:13:26,109 DEBUG [RARMetaData] methodName = 'setAuthenticationMechanism'
      11:13:26,109 DEBUG [RARMetaData] methodName = 'setAuthenticationMechanismType'
      11:13:26,125 DEBUG [RARMetaData] methodName = 'setCredentialInterface'
      11:13:26,125 DEBUG [RARMetaData] methodName = 'setReauthenticationSupport'
      11:13:26,125 DEBUG [RARDeployer] looking for nested deployments in : file:/C:/jboss-3.2.2_jetty-4.2.11/server/default/tmp/deploy/tmp28996openserver.ear-contents/ldapadapter.rar
      11:13:26,187 INFO [RARDeployer] nested deployment: file:/C:/jboss-3.2.2_jetty-4.2.11/server/default/tmp/deploy/tmp28996openserver.ear-contents/ldapadapter.rar-contents/ldap.jar
      11:13:26,203 INFO [RARDeployer] nested deployment: file:/C:/jboss-3.2.2_jetty-4.2.11/server/default/tmp/deploy/tmp28996openserver.ear-contents/ldapadapter.rar-contents/ldapadapter.jar
      11:13:26,265 INFO [RARDeployer] nested deployment: file:/C:/jboss-3.2.2_jetty-4.2.11/server/default/tmp/deploy/tmp28996openserver.ear-contents/ldapadapter.rar-contents/log4j-1.2.8.jar
      11:13:26,296 INFO [RARDeployer] nested deployment: file:/C:/jboss-3.2.2_jetty-4.2.11/server/default/tmp/deploy/tmp28996openserver.ear-contents/ldapadapter.rar-contents/utils.jar
      11:13:26,328 INFO [RARDeployer] nested deployment: file:/C:/jboss-3.2.2_jetty-4.2.11/server/default/tmp/deploy/tmp28996openserver.ear-contents/ldapadapter.rar-contents/META-INF/ldapadapter-ds.xml
      11:13:36,843 DEBUG [RARDeployer] Attempting to deploy RAR at 'file:/C:/jboss-3.2.2_jetty-4.2.11/server/default/tmp/deploy/tmp28996openserver.ear-contents/ldapadapter.rar'
      11:13:40,125 INFO [EjbModule] Deploying CostStage