• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JForum forgets database settings

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic