2 Replies Latest reply on Jan 5, 2003 5:27 PM by Mathias

    FirebirdManager problem: No Attribute found with name: Serve

    Mathias Newbie

      I'm having a problem with the FirebirdManager configuration in firebird-service.xml.
      I'm using JBoss3.0.4, Firebird1.0 and deployed the current JCA-JDBC driver 1.0 Beta1. Using the "default" server configuration.
      I configured standardjaws.xml and standardjbosscmp-jdbc.xml to FirebirdDS and deployed the configured firebird-service.xml (from the examples).
      Deployment order of firebirdsql.rar and firebird-service.xml is correct.


      I get the following error message in my log file:

      ------------------- server.log -----------------
      [...]
      2003-01-05 00:59:36,890 INFO [org.jboss.deployment.MainDeployer] Deployment of package: file:/C:/jboss3.0.4/server/default/deploy/10firebirdsql.rar is waiting for an appropriate deployer.
      2003-01-05 00:59:36,900 INFO [org.jboss.deployment.MainDeployer] Starting deployment of package: file:/C:/jboss3.0.4/server/default/deploy/20firebird-service.xml
      2003-01-05 00:59:36,930 INFO [org.jboss.system.ServiceConfigurator] Problem configuring service jboss.jca:service=FirebirdManager
      org.jboss.deployment.DeploymentException: No Attribute found with name: Server
      at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:345)
      at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:188)
      at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:130)
      [...]


      and


      [...]
      2003-01-05 00:59:42,358 INFO [org.jboss.deployment.MainDeployer] Starting deployment of package: file:/C:/jboss3.0.4/server/default/deploy/10firebirdsql.rar
      2003-01-05 00:59:42,448 WARN [org.jboss.system.ServiceController] jboss.jca:service=RARDeployment,name=Firebird Database Connector does not implement any Service methods
      2003-01-05 00:59:42,458 WARN [org.jboss.system.ServiceController] jboss.jca:service=XaTxDS,name=FirebirdDS does not implement any Service methods
      2003-01-05 00:59:42,458 INFO [org.jboss.resource.connectionmanager.XATxConnectionManager] Creating
      2003-01-05 00:59:42,498 INFO [org.jboss.resource.connectionmanager.XATxConnectionManager] Created
      2003-01-05 00:59:42,528 INFO [org.jboss.resource.connectionmanager.XATxConnectionManager] Starting
      2003-01-05 00:59:42,548 INFO [org.jboss.security.plugins.JaasSecurityManagerService] Created securityMgr=org.jboss.security.plugins.JaasSecurityManager@12922f6
      2003-01-05 00:59:42,548 INFO [org.jboss.security.plugins.JaasSecurityManagerService] setCachePolicy, c=org.jboss.util.TimedCachePolicy@1b66b06
      2003-01-05 00:59:42,548 INFO [org.jboss.security.plugins.JaasSecurityManagerService] Added FirebirdDBRealm, org.jboss.security.plugins.SecurityDomainContext@12c9557 to map
      2003-01-05 00:59:42,648 WARN [org.jboss.resource.connectionmanager.RARDeployment] The class 'class org.firebirdsql.jca.FBManagedConnectionFactory' has no setter for config property 'TransactionIsolationName'
      2003-01-05 00:59:42,648 ERROR [org.jboss.resource.connectionmanager.XATxConnectionManager] Starting failed
      java.lang.IllegalArgumentException: The class 'class org.firebirdsql.jca.FBManagedConnectionFactory' has no setter for config property 'TransactionIsolationName'
      at org.jboss.resource.connectionmanager.RARDeployment.setManagedConnectionFactoryAttribute(RARDeployment.java:658)
      at org.jboss.resource.connectionmanager.RARDeployment.setMcfProperties(RARDeployment.java:786)
      at org.jboss.resource.connectionmanager.RARDeployment.startManagedConnectionFactory(RARDeployment.java:555)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [...]



      But my firebird-service.xml file contains the "Server" attribute tag and the config-property tag "TransactionIsolationName". I cannot figure out what's wrong.

      --------------- 20firebird-service.xml ----------------
      <?xml version="1.0" encoding="UTF-8"?>

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



      <!--FBManager can be used to create and drop databases.
      Drop is especially useful during testing, since it
      assures a clean start next time. -->

      localhost/3050:c:/test/test.gdb
      localhost
      3050
      sysdba
      masterkey
      true
      false




      <depends optional-attribute-name="ManagedConnectionFactoryName">

      <!--more hack-->
      <depends optional-attribute-name="OldRarDeployment">jboss.jca:service=RARDeployment,name=Firebird Database Connector


      <config-property name="Database" type="java.lang.String">localhost/3050:c:/test/test.gdb</config-property>
      <config-property name="TransactionIsolationName" type="java.lang.String">TRANSACTION_REPEATABLE_READ</config-property> <config-property name="Encoding" type="java.lang.String">UNICODE_FSS</config-property>
      <config-property name="BlobBufferLength" type="int">4096</config-property>

      <!-- These default values for user/pw are not necessary if you are using
      container managed security or application managed security
      (i.e. you ask for connections with a user/pw) -->
      <config-property name="UserName" type="java.lang.String">Sysdba</config-property>
      <config-property name="Password" type="java.lang.String">masterkey</config-property>


      FirebirdDS



      <depends optional-attribute-name="ManagedConnectionPool">


      0
      50
      5000
      15
      ByContainer


      <depends optional-attribute-name="CachedConnectionManager">jboss.jca:service=CachedConnectionManager
      <!-- Include a login module configuration named FirebirdDBRealm.
      Update your login-conf.xml, here is an example for a
      ConfiguredIdentityLoginModule:

      <application-policy name = "FirebirdDBRealm">

      <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>

      </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.
      -->
      <!--comment out this line if you want component managed security or want
      to use the default values in the ManagedConnectionFactoryProperties -->
      FirebirdDBRealm

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

      java:/TransactionManager

      <!--make the rar deploy - A BIG HACK till xslt based deployment is written-->
      jboss.jca:service=RARDeployer