1 2 3 Previous Next 39 Replies Latest reply on Mar 7, 2011 2:48 AM by jayn123

    JBoss does not start properly

    adin_mamr

      Hi,

       

      I have this problem, for GateIn portal while starting JBoss server. The portal is not properly displayed and seems a lot of files are missing. It is weird since it is running fine on my Win 7 machine, yet troublesome on the Win Server 2003 machine.

       

      Need your help. Thanks a lot.

       

      Attached are the server and boot log fyr.

        • 1. Re: JBoss does not start properly
          toomtooms

          I can see this error :

           

          Caused by: javax.jcr.RepositoryException: fail to create index dir D:\Program Files\GateIn-3.1.0-GA\server\default\data/gatein/jcr/lucene/system_portal_system
              at org.exoplatform.services.jcr.impl.core.query.lucene.SearchIndex.doInit(SearchIndex.java:494)
              at org.exoplatform.services.jcr.impl.core.query.AbstractQueryHandler.init(AbstractQueryHandler.java:106)
              at org.exoplatform.services.jcr.impl.core.query.DefaultChangesFilter.<init>(DefaultChangesFilter.java:68)
              ... 106 more
          
          

           

          maybe a problem of right. Are you sure your user can write in this directory ?

          • 2. JBoss does not start properly
            adin_mamr

            Hi Thomas,

             

            That was my first concern as well. I made the folder readable and writable, but the same problem still there.

            • 3. JBoss does not start properly
              plamarque

              try to move gatein do a directory without spaces in the name. To see if that helps.

              • 4. JBoss does not start properly
                adin_mamr

                Hi Patrice,

                 

                The current directory also doesn't have any spaces. The dir is "C:\Program1\GateIn-3.1.0-GA".

                • 5. Re: JBoss does not start properly
                  plamarque

                  OK, sorry.

                   

                  Maybe try to set some double backslhashed pathes in your configuration.properties

                  • 6. JBoss does not start properly
                    adin_mamr

                    Patrice, I appreciate your reply and no one need to be sorry here.

                     

                    Anyways, can you help me to locate where this configuration.properties is? Which directory is it stored?

                     

                    P/s: I copied a fresh gatein portal folder, and it is properly started. But since it is fresh, it is empty and if I am going to use that copy, I will need to redo my custom portal all over again. Does this give any of you any hints or pointers? Appreciate it a lot.

                    • 7. Re: JBoss does not start properly
                      toomtooms

                      configuration.properties is located in server/default/conf/gatein.

                       

                      Something I don't understand : the log says that GateIn tries to write in D:\Program Files\GateIn-3.1.0-GA\... but you said that the current dir is C:\Program1\GateIn-3.1.0-GA.  Did I miss something ?

                       

                      What is the value of your "gatein.data.dir" property in configuration.properties ?

                      • 8. JBoss does not start properly
                        adin_mamr

                        Hi Thomas,

                         

                        You found the flaw! Thank you very much. Hopefully this will solve the issue. Anyways, where is this gatein.data.dir is located? Really need your help.

                        • 9. JBoss does not start properly
                          adin_mamr

                          the value of gatein.data.dir is "gatein.data.dir=${jboss.server.data.dir}/gatein". should i modify this?

                          • 10. Re: JBoss does not start properly
                            toomtooms

                            At the first startup, the location of the Lucene index and of the JCR data is read from the gatein configuration files and store in the database (table JCR_CONFIG). During the next startups, GateIn reads this location from the database, not from the configuration files.

                             

                            In your case (if I understand well), you started GateIn the first time on your local machine, so GateIn stored your local path (C:\Program1\GateIn-3.1.0-GA\...) in the database. Then you copied the GateIn folder on the server machine. At startup, GateIn read the Lucene index and JCR data paths in the database and found your local path, so it tried to read/write at this location and failed of course.

                             

                            The best solution to sove your problem is to remove the JCR_CONFIG table from the database. GateIn will recreate it and load the right locations.

                            • 11. Re: JBoss does not start properly
                              adin_mamr

                              Hi Thomas,

                               

                              Thanks for your reply.

                               

                              Please enlighten me a bit, as I am very new to this JBoss and GateIn.

                               

                              I did not recall setting up any database. Is there any default database that the JBoss created to run? Or are the tables stored in the config files somewhere?

                               

                              Attached is the latest log from the newest machine I prepared. The same Win 7, but still got the same error. The running directory does make sense. Hope we can solve it.

                              • 12. Re: JBoss does not start properly
                                toomtooms

                                GateIn needs a database to run. By default, it is configured to use a HSQL database (in memory database). So no need to install a database by yourself. HSQL database files are located at server/default/data/gatein/db. You can edit them using an HSQL DB editor.

                                 

                                But HSQL DB in only advised in development environment. If you intend to install a test or a production environment, it is advised to use another database (MySQL, PostgreSQL, ...). Please refer to this documentation for more details on how to configure database in GateIn.

                                • 13. Re: JBoss does not start properly
                                  adin_mamr

                                  Hi Thomas,

                                   

                                  I get the HSQL editor already, but how do we connect to the gatein database? e.g username? password? ports? I am really stuck on this.

                                   

                                  I tried another workaround where i backed up and remove all the files in /server/defau;t/data/gatein/db/data, the server managed to start, but after login it returns the portal is unavailable. Again need your help.

                                   

                                  Thanks a lot in advance.

                                  • 14. Re: JBoss does not start properly
                                    ndkhoiits

                                    I think you should try to connect to another DMBS such as MySQL or SQLServer, if it works well, maybe the problem by your HSQL DB.

                                    FYI, you can follow this document for help http://docs.jboss.com/gatein/portal/3.1.0-FINAL/reference-guide/en-US/html_single/index.html#sect-Reference_Guide-Database_Configuration

                                    1 2 3 Previous Next