9 Replies Latest reply on Dec 16, 2010 8:16 AM by pulver

    how to connect firebird bd with jboss 4.2

    pulver

      Hi all!

      There is a problem, i'm newbie.

      1. install jboss on centos, stop/start/restart is working. when i try <ip>:8080, then nothing to do. iptables stop. In jboss 5.1.0 were files, lodint-dev-ds.xml and jcr-lod-ds.xml. I think i have the same. Can you help me?

      Sorry, bad english.

        • 1. Re: how to connect firebird bd with jboss 4.2
          wdfink

          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

            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

              Ok, sorry for the stupid questions

              • 4. Re: how to connect firebird bd with jboss 4.2
                wdfink

                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

                  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?

                  server.jpg

                  • 6. Re: how to connect firebird bd with jboss 4.2
                    wdfink

                    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

                      Thanks a  lot!

                      I attach log_file

                      • 8. Re: how to connect firebird bd with jboss 4.2
                        wdfink

                        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

                          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>