-
1. Re: how to connect firebird bd with jboss 4.2
wdfink Dec 14, 2010 2:13 AM (in response to pulver)How do you start your Boss? You should use the option -b<ip-address> otherwise the server bind only to the localhost interface.
What you mean by lodint-dev-ds.xml and jcr-lod-ds.xml, I suppose that are individual datasource configurations.
-
2. Re: how to connect firebird bd with jboss 4.2
pulver Dec 14, 2010 2:48 AM (in response to wdfink)in jboss 5.1.0 i put jboss_init_redhat.sh in /etc/init.d/, make it executable. In lodint-dev-ds.xml there is:
<xa-datasources-property name="Database">localhost/3050:/opt/db/lod.fdb</xa-datasources-property>
-
3. Re: how to connect firebird bd with jboss 4.2
pulver Dec 14, 2010 3:01 AM (in response to pulver)Ok, sorry for the stupid questions
-
4. Re: how to connect firebird bd with jboss 4.2
wdfink Dec 14, 2010 9:33 AM (in response to pulver)You should first check that the JBoss will run with a manual start by using run.sh to avoid confusion if etc/init or other is wrong ... ;-)
I'm often start with a clean JBoss installation if I have problems.
-
5. Re: how to connect firebird bd with jboss 4.2
pulver Dec 15, 2010 2:23 AM (in response to wdfink)Thanks a lot Wolf-Dieter Fink!
Please tell me, i run application java on jboss and there is server.log. I do not understand the description of errors. Can you help me?
-
6. Re: how to connect firebird bd with jboss 4.2
wdfink Dec 15, 2010 1:05 PM (in response to pulver)Hi,
to see better what happen please attach the logfile instead of screenshots.
This is a Stacktrace redirected from STDOUT to the logfile, but I'm not able to see the reason because it is not the full information ...
You should have a short look whether your application is within the stack, maybe it helps, otherwise attach the relevant part of server.log
-
7. Re: how to connect firebird bd with jboss 4.2
pulver Dec 16, 2010 6:47 AM (in response to wdfink)Thanks a lot!
I attach log_file
-
server.log.zip 42.0 KB
-
-
8. Re: how to connect firebird bd with jboss 4.2
wdfink Dec 16, 2010 8:01 AM (in response to pulver)The warnings and the error message points to DB connection problems.
-----
2010-12-16 14:31:55,629 WARN [org.jboss.ejb3.interceptors.aop.InterceptorsFactory] (http-0.0.0.0-8080-1) EJBTHREE-1246: Do not use InterceptorsFactory with a ManagedObjectAdvisor, InterceptorRegistry should be used via the bean container
-----
2010-12-16 14:32:27,055 WARN [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] (http-0.0.0.0-8080-6) Throwable while attempting to get a new connection: null
org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (java.lang.IllegalStateException: Cannot execute desired operation because pooled connection has invalid state.)-----
There is something like sharkdb or firebird databases, the 'Do not use' might be also a hint.
But I'm not familar here with the database configuration stuff, do you use it or is it something used by a framework ...?
-
9. Re: how to connect firebird bd with jboss 4.2
pulver Dec 16, 2010 8:16 AM (in response to wdfink)I installed firebird 2.5, i filled aliases.conf
db = /ppt/jboss
And in config file jboss add a lines
<xa-datasource-property name="Database">127.0.0.1/3050:db</xa-datasource-property>
<xa-datasource-property name="UserName">SYSDBA</xa-datasource-property>
<xa-datasource-property name="Password">masterkey</xa-datasource-property>