• 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

Configuration is resetting to default on restart...

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all -

Each time I restart my application server, or the instance... JForum resets it's configuration to the default. Everything on the configuration page moves to the default, "Forum URL", "Website URL", "Forum Name", etc...

Why is this happening?

-Tom

[originally posted on jforum.net by tlester]
 
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
Oh... and I'm running on Sun's Java App Server, and MySQL 5.1. Other than the config resetting to defaults, the forum runs like a charm.

-Tom

[originally posted on jforum.net by tlester]
 
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
Are you sure that WEB-INF/config/jforum-custom.conf can be written by the user that is running your app server? I've had problems with this in the past because, depending on the virtual host, different users own the directories but everything runs in the app server as the same O/S user.
[originally posted on jforum.net by stdunbar]
 
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

stdunbar wrote:Are you sure that WEB-INF/config/jforum-custom.conf can be written by the user that is running your app server? I've had problems with this in the past because, depending on the virtual host, different users own the directories but everything runs in the app server as the same O/S user.



jforum-custom.conf doesn't even exist in the config directory. Right now, the app server is running as root and the config directory is owned by root and group it root. Perms are 755 on config.

Do I need to manually create the file?

-Tom

[originally posted on jforum.net by tlester]
 
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

tlester wrote:jforum-custom.conf doesn't even exist in the config directory. Right now, the app server is running as root and the config directory is owned by root and group it root. Perms are 755 on config.



That means that you haven't customized anything as far as JForum is concerned. jforum-custom.conf isn't written until you override a default. All of the defaults come from SystemGlobals.properties in the same directory.

There shouldn't be a permission problem (and JForum would tell you if there was) so I'm at a bit of a loss. It really sounds like something is not allowing jforum-custom.conf to be saved or written. Let me look a little bit at the code to see if there is something else.


[originally posted on jforum.net by stdunbar]
 
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
Thanks.... I'll keep digging, too. I'm not seeing any errors in the server logs.

-Tom

[originally posted on jforum.net by tlester]
 
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
Another idea.... Can someone just send me a conf file that's populated? I don't have any problem with editing one by hand. Of course, I'm assuming that it's able to read the file as well.

let me know.

-Tom

[originally posted on jforum.net by tlester]
 
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
Sure - this is a slightly modified version of what I use in my Java forum. I use PostgreSQL so things like the driver might have to change. See the attached.


[originally posted on jforum.net by stdunbar]
reply
    Bookmark Topic Watch Topic
  • New Topic