3 Replies Latest reply on Aug 25, 2002 6:44 PM by cake

    How can I configure 2 DS?

    cake


      I'm using JBoss3.0.1 with Jetty. I've followed the instructions to create 2 DS. However, I got the following error messages. Any idea? Thanks.

      06:06:25,336 INFO [MainDeployer] Starting deployment of package: file:/C:/JBoss
      /jboss-3.0.1/server/all/deploy/mysql-service2.xml
      06:06:25,396 INFO [MainDeployer] deployment waiting for deployer: file:/C:/JBos
      s/jboss-3.0.1/server/all/deploy/mysql-service2.xml
      06:06:25,406 INFO [MainDeployer] Deployment of package: file:/C:/JBoss/jboss-3.
      0.1/server/all/deploy/mysql-service2.xml is waiting for an appropriate deployer.

      06:06:25,446 ERROR [URLDeploymentScanner] MBeanException: Exception in MBean ope
      ration 'checkIncompleteDeployments()'
      Cause: Incomplete Deployment listing:
      Packages waiting for a deployer:
      [org.jboss.deployment.DeploymentInfo@545fc348 { url=file:/C:/JBoss/jboss-3.0.1/s
      erver/all/deploy/mysql-service2.xml }
      deployer: null
      status: null
      state: INIT_WAITING_DEPLOYER
      watch: file:/C:/JBoss/jboss-3.0.1/server/all/deploy/mysql-service2.xml
      lastDeployed: 1030107985406
      lastModified: 1030107985366
      mbeans:
      ]Incompletely deployed packages:
      [org.jboss.deployment.DeploymentInfo@545fc348 { url=file:/C:/JBoss/jboss-3.0.1/s
      erver/all/deploy/mysql-service2.xml }
      deployer: null
      status: null
      state: INIT_WAITING_DEPLOYER
      watch: file:/C:/JBoss/jboss-3.0.1/server/all/deploy/mysql-service2.xml
      lastDeployed: 1030107985406
      lastModified: 1030107985366
      mbeans:
      ]MBeans waiting for classes:

      MBeans waiting for other MBeans:


      06:06:25,616 INFO [URLDeploymentScanner] Started
      06:06:25,626 INFO [MainDeployer] Deployed package: file:/C:/JBoss/jboss-3.0.1/s
      erver/all/conf/jboss-service.xml
      06:06:25,646 INFO [Server] JBoss (MX MicroKernel) [3.0.1 Date:200208062340] Sta
      rted in 0m:52s:34ms

      This is my 2nd mysql-service2.xml:

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

      <!-- ===================================================================== -->
      <!-- -->
      <!-- JBoss Server Configuration -->
      <!-- -->
      <!-- ===================================================================== -->



      <!-- ==================================================================== -->
      <!-- New ConnectionManager setup for mysql using 2.0.11 driver -->
      <!-- Build jmx-api (build/build.sh all) and view for config documentation -->
      <!-- ==================================================================== -->



      <depends optional-attribute-name="ManagedConnectionFactoryName">
      <!--embedded mbean-->


      MySqlPKDS



      <config-property name="ConnectionURL" type="java.lang.String">jdbc:mysql://localhost/pk</config-property>
      <config-property name="DriverClass" type="java.lang.String">org.gjt.mm.mysql.Driver</config-property>
      <!--set these only if you want only default logins, not through JAAS -->
      <config-property name="UserName" type="java.lang.String">abcde</config-property>
      <config-property name="Password" type="java.lang.String">12345</config-property>




      <!--Below here are advanced properties -->
      <!--hack-->
      <depends optional-attribute-name="OldRarDeployment">jboss.jca:service=RARDeployment,name=JBoss LocalTransaction JDBC Wrapper




      <depends optional-attribute-name="ManagedConnectionPool">
      <!--embedded mbean-->


      0
      50
      5000
      15
      <!--criteria indicates if Subject (from security domain) or app supplied
      parameters (such as from getConnection(user, pw)) are used to distinguish
      connections in the pool. Choices are
      ByContainerAndApplication (use both),
      ByContainer (use Subject),
      ByApplication (use app supplied params only),
      ByNothing (all connections are equivalent, usually if adapter supports
      reauthentication)-->
      ByContainer



      <depends optional-attribute-name="CachedConnectionManager">jboss.jca:service=CachedConnectionManager

      <depends optional-attribute-name="JaasSecurityManagerService">jboss.security:service=JaasSecurityManager

      java:/TransactionManager
      <!--make the rar deploy! hack till better deployment-->
      jboss.jca:service=RARDeployer