This week's book giveaway is in the HTML Pages with CSS and JavaScript forum.
We're giving away four copies of Testing JavaScript Applications and have Lucas da Costa on-line!
See this thread for details.
Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

JForum forgets database settings

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
  • 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]
 
Hoo hoo hoo! Looks like we got a live one! Here, wave this tiny ad at it:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic