Skip navigation
4938 Views 8 Replies Latest reply: Jun 1, 2009 1:54 PM by solipsism RSS
solipsism Bronze 12 posts since
May 28, 2009
Currently Being Moderated

May 28, 2009 11:56 AM

unilateral changes to openfire.xml

I'm currently working on a project integrating the Openfire server with a custom webapp's database and using a custom authentication provider.  Then today I began getting errors and when looking to try and see what was offending in my conf/openfire.xml I found that openfire had unilaterally edited the file and stripped out almost all of my customizations, all of which had been working perfectly less than 24 hours previously.

 

Is there a way to prevent unprompted changes to conf/openfire.xml, or to have Openfire first create a backup copy (openfire.xml.bakXXXX, etc) when doing so?

 

Specifically, the error that led to this happening was

 

"Unable to load JDBC driver: Null
java.lang.NullPointerException"

 

although various other errors that I have encountered trying to find the root issue have also led to this behavior.

 

Additionally, as long as I'm mentioning the configuration file, I don't suppose there's some way to force the configuration values to take precedence over those stored in SQL.

  • sixthring KeyContributor 3,797 posts since
    Apr 2, 2007
    Currently Being Moderated
    May 28, 2009 1:03 PM (in response to solipsism)
    Re: unilateral changes to openfire.xml

    all the settings are stored in the database and can be managed via the admin site.  This has been the case since version 3.6.0.

  • mccotter Bronze 3 posts since
    Feb 3, 2009
    Currently Being Moderated
    May 28, 2009 7:05 PM (in response to solipsism)
    Re: unilateral changes to openfire.xml

    Hi,

     

    I ran into the same problem - openfire stripping data from openfire.xml.  I got OpenFire 3.6.4 up and running by completely ignoring openfire.xml and running sql commands against ofProperty while the service was stopped.  I'm not sure if others do this also (maybe someone can respond) but it seems to be working fine for me.

     

    I created a thread with my steps here:

     

    http://www.igniterealtime.org/community/thread/38646

     

    --Marc

    • sixthring KeyContributor 3,797 posts since
      Apr 2, 2007
      Currently Being Moderated
      Jun 1, 2009 8:50 AM (in response to solipsism)
      Re: unilateral changes to openfire.xml

      Again.....

       

      The settings are being moved to the database.  They are not being deleted.  The xml file is only used in a limited fashion since openfire 3.6.0.  This is how it works now.  You need to make cahnges via the admin website.  Go to the system properties and edit the settings there.

        • sixthring KeyContributor 3,797 posts since
          Apr 2, 2007
          Currently Being Moderated
          Jun 1, 2009 1:19 PM (in response to solipsism)
          Re: unilateral changes to openfire.xml

          the settings are moved for security reasons, and to make the settings editable via the admin panel.  You do not need to edit the database directly.  If you are authenticating against an external database that is still manageble via the standard settings method of the admin interface.  If your third party module relies on another programs file for its settings i would say it is the third party module that has a problem not openfire.  There change was asked for and voted on to be made and thus commited at version 3.6.0 (4 revisions ago).

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points