5 Replies Latest reply on Aug 13, 2002 1:20 AM by tsangcn

    abnormal behavior of firebirdsql.rar and JBoss 3.0.1

    tsangcn Newbie

      I got firebirdsql.rar and JBoss 3.0.0 working OK.

      But when I upgraded to JBoss 3.0.1. I observed there are some abnormal behavior. I have already made changes to firebird-service.xml as follows:

      change jboss.security:name=JaasSecurityManager
      to jboss.security:service=JaasSecurityManager

      Everytime I started JBoss 3.0.1, I got error messages saying that

      org.jboss.deployment.DeploymentException: SampleDS not bound

      Then I do so dummy changes in firebird-service.xml and save the file. JBoss then redeploy the file and this time it is OK.

      So everytime I restart JBoss 3.0.1, I have to do dummy edit of firebird-service.xml or move it to another directory then move back to deploy directory, so that JBoss will redeploy it and bind my connection pool.

      But this does not happen in JBoss 3.0.0

      The JBoss 3.0.1 I use is [3.0.1 Date:200208062340]

      I suspect there may be a bug somewhere?

      Please help to solve the problem.
      Thanks.

        • 1. Re: abnormal behavior of firebirdsql.rar and JBoss 3.0.1
          David Jencks Master

          Are you sure about what is/isn't deploying? I would expect the "SampleDS not bound" message to be from deploying a bean that used SampleDS before SampleDS was bound. You can fix this by using an .ear and including firebird-service.xml in it, referenced from a jboss-app.xml. If this is not the problem please include more info such as relevant parts of the server.log showing deployment of firebirdsql.rar, firebird-service.xml and where the exception occurs.

          • 2. Re: abnormal behavior of firebirdsql.rar and JBoss 3.0.1
            tsangcn Newbie

            I found the following messages in server.log

            DEBUG [org.jboss.system.ServiceCreator] About to create bean: jboss.jca:service=FirebirdManager
            DEBUG [org.jboss.system.ServiceCreator] code: org.firebirdsql.management.FBManager
            DEBUG [org.jboss.system.ServiceCreator] Class not found for mbean: jboss.jca:service=FirebirdManager

            So I comment out the mbean for FirebirdManager in firebird-service.xml and deployment is OK now.

            But I have checked that org.firebirdsql.managerment.FBManager do exist in firebirdsql.rar.
            ** Do you know why the class is not found? Or the message is misleading?

            ** Since it works after I comment out FirebirdManager, what is the function for mbean FirebirdManager?

            I have tried to package the firebird-service.xml with my .EAR

            my jboss-app.xml is as follows:

            <jboss-app>

            firebird-service.xml

            </jboss-app>

            and I have put firebird-service.xml and jboss-app.xml in META-INF (with application.xml).
            But it fails, and the server.log shows the following message

            org.jboss.deployment.DeploymentException: Failed to find module file: firebird-service.xml

            ** How to correctly package the firebird-service.xml and jboss-app.xml?


            Thanks
            CN

            • 3. Re: abnormal behavior of firebirdsql.rar and JBoss 3.0.1
              tsangcn Newbie

              I found the following messages in server.log

              DEBUG [org.jboss.system.ServiceCreator] About to create bean: jboss.jca:service=FirebirdManager
              DEBUG [org.jboss.system.ServiceCreator] code: org.firebirdsql.management.FBManager
              DEBUG [org.jboss.system.ServiceCreator] Class not found for mbean: jboss.jca:service=FirebirdManager

              So I comment out the mbean for FirebirdManager in firebird-service.xml and deployment is OK now.

              But I have checked that org.firebirdsql.managerment.FBManager do exist in firebirdsql.rar.
              ** Do you know why the class is not found? Or the message is misleading?

              ** Since it works after I comment out FirebirdManager, what is the function for mbean FirebirdManager?

              I have tried to package the firebird-service.xml with my .EAR

              my jboss-app.xml is as follows:

              <jboss-app>

              firebird-service.xml

              </jboss-app>

              and I have put firebird-service.xml and jboss-app.xml in META-INF (with application.xml).
              But it fails, and the server.log shows the following message

              org.jboss.deployment.DeploymentException: Failed to find module file: firebird-service.xml

              ** How to correctly package the firebird-service.xml and jboss-app.xml?


              Thanks
              CN

              • 4. Re: abnormal behavior of firebirdsql.rar and JBoss 3.0.1
                David Jencks Master

                1. class not found. This is probably because the firebird-service.xml is deployed before the firebirdsql.rar. The datasource deployment has a depends element that makes it wait for the rar deployment, but the FBManager doesn't. There's some code that is supposed to take care of this missing class problem, but it is currently broken and I am working on fixing it.

                2. FBManager is an attempt to start a java management interface for Firebird. Right now all it can do is create and drop databases. I've found this very handy for development.

                3. firebird-service.xml is a jboss-specific module, so it should go with the other modules in the root of the .ear. If you need to keep it in META-INF you need to say it is there

                META-INF/firebird-service.xml

                Glad its working!

                • 5. Re: abnormal behavior of firebirdsql.rar and JBoss 3.0.1
                  tsangcn Newbie

                  Hello

                  I have try using
                  META-INF/firebird-service.xml
                  and put firebird-service.xml in META-INF in the .ear file
                  but it still fails

                  I also have try using
                  firebird-service.xml
                  and put firebird-service.xml in root of .ear file, it also fails

                  The message I got was

                  jboss.deployment.DeploymentException: Failed to find module file: firebird-service.xml
                  at org.jboss.deployment.EARDeployer.init(EARDeployer.java:230)
                  at org.jboss.deployment.MainDeployer.init(MainDeployer.java:662)
                  at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:604)
                  at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:580)

                  Is there anything I missed? Or I have to apply patch?

                  The JBoss I am using is [3.0.1 Date:200208062340]

                  Thanks
                  CN