-
1. Re: abnormal behavior of firebirdsql.rar and JBoss 3.0.1
davidjencks Aug 10, 2002 10:07 AM (in response to tsangcn)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 Aug 12, 2002 8:40 AM (in response to tsangcn)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 Aug 12, 2002 8:45 AM (in response to tsangcn)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
davidjencks Aug 12, 2002 10:46 AM (in response to tsangcn)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 Aug 13, 2002 1:20 AM (in response to tsangcn)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