aspose file tools*
The moose likes JForum and the fly likes JForum forgets database settings Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » JForum
Bookmark "JForum forgets database settings" Watch "JForum forgets database settings" New topic
Author

JForum forgets database settings

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Hello!

I installed and configured JForum in a JBoss container. All works fine until I restart the server. After that, it tries to access the database with some default values (root@localhost).

Where does JForum store its settings and why do they disappear after a restart of JBoss?

I also have a patch for a known bug in JForum, but the bugtracker seems down. Can someone confirm this?

- Stephan
[originally posted on jforum.net by windy]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
I have one possible suggestion for this behaviour:

You've deployed the jforum as a war archive. Then you "installed" it. The settings you did all were done in the jforum_custom.conf file which is being added automatically if it didnt exist. It holds the actual (current) config.

When you reboot it may be that he redeploys the war file again, and therefore deletes the config file ...

There's two ways how to solve the above:
- add the jforum custom config file to the war archive ... OR
- remove the war archive after installation

Though I have to admit, I only worked with jforum on tomcat yet, and not with a war file - and it worked just great
[originally posted on jforum.net by Sid]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Sid wrote:You've deployed the jforum as a war archive. Then you "installed" it. The settings you did all were done in the jforum_custom.conf file which is being added automatically if it didnt exist. It holds the actual (current) config.

That seems correct.


There's two ways how to solve the above:
- add the jforum custom config file to the war archive ... OR


Are you sure that it is this file? I thought the SystemGlobals.properties should be the right place.


- remove the war archive after installation

When I do this, the whole application does not work anymore.
[originally posted on jforum.net by windy]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
The systemglobal.properties is the default settings, which are globally the same for every computer world wide. Any differences are then being sotred in the jforum_custom.conf file.

When reading the config, first the app looks in the custom file, if the key is not found there, it will take the value from the systemglobal....

So the custom file is ar equirement, unless you store correct config values within the system globals file. This however may make updating kind of hard then
[originally posted on jforum.net by Sid]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JForum forgets database settings