-
1. Re: JBoss does not start properly
toomtooms Jan 23, 2011 12:50 PM (in response to adin_mamr)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 Jan 23, 2011 1:01 PM (in response to toomtooms)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 Jan 23, 2011 1:09 PM (in response to adin_mamr)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 Jan 23, 2011 1:12 PM (in response to plamarque)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 Jan 23, 2011 1:22 PM (in response to adin_mamr)OK, sorry.
Maybe try to set some double backslhashed pathes in your configuration.properties
-
6. JBoss does not start properly
adin_mamr Jan 23, 2011 1:26 PM (in response to plamarque)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 Jan 23, 2011 2:35 PM (in response to adin_mamr)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 Jan 23, 2011 2:40 PM (in response to toomtooms)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 Jan 23, 2011 2:42 PM (in response to 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 Jan 23, 2011 4:53 PM (in response to adin_mamr)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 Jan 23, 2011 9:56 PM (in response to toomtooms)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.
-
bootNserver2.zip 871.1 KB
-
-
12. Re: JBoss does not start properly
toomtooms Jan 24, 2011 1:43 AM (in response to adin_mamr)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 Jan 24, 2011 2:55 AM (in response to toomtooms)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 Jan 24, 2011 3:12 AM (in response to adin_mamr)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