Hi David.

Tried both of your suggestions, and several variations.

As I will eventually be creating/dropping databases with some of the applications that 
are going to be getting used, I would very much like to have the FBManager running.

Attached is the last attempt I made to get this to work.  I think I must be having a 
Low-IQ day today, because I am still getting errors.

Your help is appreciated.  Next time I am in the Toronto Area, I owe you a lunch or 
dinner (you are in Toronto, right?).
Steve

13:39:43,285 ERROR [URLDeploymentScanner] 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=XaTxCM,name=FirebirdDS
  state: CONFIGURED
  I Depend On:   jboss.jca:service=RARDeployer
   jboss.jca:service=XaTxDS,name=FirebirdDS
   jboss.jca:service=XaTxPool,name=FirebirdDS
   jboss.jca:service=CachedConnectionManager
   jboss.security:service=JaasSecurityManager

  Depends On Me: , ObjectName: jboss.jca:service=XaTxDS,name=FirebirdDS
  state: CONFIGURED
  I Depend On:   jboss.jca:service=RARDeployment,name=Firebird Database Connector

  Depends On Me:   jboss.jca:service=XaTxCM,name=FirebirdDS
]
13:39:43,290 INFO  [URLDeploymentScanner] Started
13:39:43,291 INFO  [MainDeployer] Deployed package: 
file:/home/jboss/jboss-all/build/output/jboss-3.0.1RC1/server/default/conf/jboss-service.xml
13:39:43,296 ERROR [Server] start failed
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=XaTxCM,name=FirebirdDS
  state: CONFIGURED
  I Depend On:   jboss.jca:service=RARDeployer
   jboss.jca:service=XaTxDS,name=FirebirdDS
   jboss.jca:service=XaTxPool,name=FirebirdDS
   jboss.jca:service=CachedConnectionManager
   jboss.security:service=JaasSecurityManager

  Depends On Me: , ObjectName: jboss.jca:service=XaTxDS,name=FirebirdDS
  state: CONFIGURED
  I Depend On:   jboss.jca:service=RARDeployment,name=Firebird Database Connector

  Depends On Me:   jboss.jca:service=XaTxCM,name=FirebirdDS
]
         at 
org.jboss.deployment.MainDeployer.checkIncompleteDeployments(MainDeployer.java:1091)
         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:583)
         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:565)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
         at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:319)
         at org.jboss.system.server.ServerImpl.start(ServerImpl.java:216)
         at org.jboss.Main.boot(Main.java:142)
         at org.jboss.Main$1.run(Main.java:375)
         at java.lang.Thread.run(Thread.java:536)
13:39:43,313 ERROR [STDERR] 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=XaTxCM,name=FirebirdDS
  state: CONFIGURED
  I Depend On:   jboss.jca:service=RARDeployer
   jboss.jca:service=XaTxDS,name=FirebirdDS
   jboss.jca:service=XaTxPool,name=FirebirdDS
   jboss.jca:service=CachedConnectionManager
   jboss.security:service=JaasSecurityManager

  Depends On Me: , ObjectName: jboss.jca:service=XaTxDS,name=FirebirdDS
  state: CONFIGURED
  I Depend On:   jboss.jca:service=RARDeployment,name=Firebird Database Connector

  Depends On Me:   jboss.jca:service=XaTxCM,name=FirebirdDS
]
13:39:43,314 ERROR [STDERR]     at 
org.jboss.deployment.MainDeployer.checkIncompleteDeployments(MainDeployer.java:1091)
13:39:43,314 ERROR [STDERR]     at 
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:583)
13:39:43,314 ERROR [STDERR]     at 
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:565)
13:39:43,314 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native 
Method)
13:39:43,314 ERROR [STDERR]     at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
13:39:43,314 ERROR [STDERR]     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
13:39:43,315 ERROR [STDERR]     at java.lang.reflect.Method.invoke(Method.java:324)
13:39:43,315 ERROR [STDERR]     at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
13:39:43,315 ERROR [STDERR]     at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
13:39:43,315 ERROR [STDERR]     at 
org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:319)
13:39:43,315 ERROR [STDERR]     at 
org.jboss.system.server.ServerImpl.start(ServerImpl.java:216)
13:39:43,315 ERROR [STDERR]     at org.jboss.Main.boot(Main.java:142)
13:39:43,357 ERROR [STDERR]     at org.jboss.Main$1.run(Main.java:375)
13:39:43,358 ERROR [STDERR]     at java.lang.Thread.run(Thread.java:536)


David Jencks wrote:

> What you attached won't work because you have 2 mbeans with the same name. 
> Either comment out the FBManaged mbean entirely or leave it with its unique
> object name and give it server and port attributes.  Without the
> interference, the ConnectionManager mbean looks ok to me.
> 
> david jencks
> 
> On 2002.07.29 21:54:50 -0400 Stephen Davidson wrote:
> 
>>Hi David.
>>
>>Have you checked in an updated sample yet?
>>
>>The attached sample, which I believe has your suggested changes, still
>>does not work for me.
>>I get an "Incomplete Deployment" error, using the rar file supplied by
>>the Firebird project.
>>
>>Thanks,
>>Steve
>>

-- 
Java Developer
Looking for a new job opportunity
214-724-7741

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

<!-- ===================================================================== -->
<!--                                                                       -->
<!--  JBoss Server Configuration                                           -->
<!--                                                                       -->
<!-- ===================================================================== -->
  <!-- ==================================================================== -->
  <!-- New ConnectionManager setup for firebird dbs using jca-jdbc xa driver-->
  <!-- Build jmx-api (build/build.sh all) and view for config documentation -->
  <!-- ==================================================================== -->

<service>

  <!--FBManager can be used to create and drop databases.  
    Drop is especially useful during testing, since it 
    assures a clean start next time. -->
    <!--SPDBUG?  This will need to be used, sooner rather than later.  Worry
    about it when we need it.
  <mbean code="org.firebirdsql.management.FBManager" name="jboss.jca:service=FirebirdManager">
  -->
    <!--SPDBUG?
  <mbean code="org.firebirdsql.management.FBManager" name="jboss.jca:service=XaTxCM,name=FirebirdDS">
    <attribute name="FileName">test1/3050:/home/firebird/mawkercoffee/coffee.gdb</attribute>
    <attribute name="UserName">sysdba</attribute>
    <attribute name="Password">maucher</attribute>
    <attribute name="CreateOnStart">true</attribute>
    <attribute name="DropOnStop">false</attribute>
  </mbean>
  -->

    <!-- Include a login module configuration named FirebirdDBRealm.
         Update your login-conf.xml, here is an example for a 
         ConfiguredIdentityLoginModule:

    <application-policy name = "FirebirdDBRealm">
       <authentication>
          <login-module code = "org.jboss.resource.security.ConfiguredIdentityLoginModule" flag = "required">
             <module-option name = "principal">sysdba</module-option>
             <module-option name = "userName">sysdba</module-option>
             <module-option name = "password">masterkey</module-option>
             <module-option name = "managedConnectionFactoryName">jboss.jca:service=XaTxCM,name=FirebirdDS</module-option>
          </login-module>
       </authentication>
    </application-policy>

    NOTE: the application-policy name attribute must match SecurityDomainJndiName, and the 
      module-option name = "managedConnectionFactoryName"
    must match the object name of the ConnectionManager you are configuring here.
    -->
    
  <mbean code="org.jboss.resource.connectionmanager.XATxConnectionManager" name="jboss.jca:service=XaTxCM,name=FirebirdDS">
    <!--make the rar deploy - A BIG HACK till xslt based deployment is written-->
    <depends>jboss.jca:service=RARDeployer</depends>

    <depends optional-attribute-name="ManagedConnectionFactoryName">
      <mbean code="org.jboss.resource.connectionmanager.RARDeployment" name="jboss.jca:service=XaTxDS,name=FirebirdDS">
        <!--more hack-->
        <depends optional-attribute-name="OldRarDeployment">jboss.jca:service=RARDeployment,name=Firebird Database Connector</depends>
        <attribute name="ManagedConnectionFactoryProperties">
          <properties>
            <config-property>
              <config-property-name>Database</config-property-name>
              <config-property-type>java.lang.String</config-property-type>
              <config-property-value>test1/3050:/home/firebird/mawkercoffee/coffee.gdb</config-property-value>
            </config-property>
            <config-property>
              <config-property-name>UserName</config-property-name>
              <config-property-type>java.lang.String</config-property-type>
              <config-property-value></config-property-value>
            </config-property>
            <config-property>
              <config-property-name>Password</config-property-name>
              <config-property-type>java.lang.String</config-property-type>
              <config-property-value></config-property-value>
            </config-property>
          </properties>
        </attribute>
        <!--
        <attribute name="JndiName">DefaultDS</attribute>
        -->
        <attribute name="JndiName">jdbc/CatalogDB</attribute>
      </mbean>

    </depends>
    <depends optional-attribute-name="ManagedConnectionPool">
      <mbean code="org.jboss.resource.connectionmanager.JBossManagedConnectionPool" name="jboss.jca:service=XaTxPool,name=FirebirdDS">

        <attribute name="MinSize">0</attribute>
        <attribute name="MaxSize">50</attribute>
        <attribute name="BlockingTimeoutMillis">5000</attribute>
        <attribute name="IdleTimeoutMinutes">15</attribute>
        <!--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)-->
        <attribute name="Criteria">ByContainer</attribute>
      </mbean>
    </depends>
    <depends optional-attribute-name="CachedConnectionManager">jboss.jca:service=CachedConnectionManager</depends>

    <!--comment out this line if you want component managed security or want
        to use the default values in the ManagedConnectionFactoryProperties -->
    <attribute name="SecurityDomainJndiName">FirebirdDBRealm</attribute>

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

    <attribute name="TransactionManager">java:/TransactionManager</attribute>
  </mbean>

</service>

Reply via email to