• 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
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

How to deploy modified JForum using the existing MySQL database

 
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 need to modify JForum according to our company's internal need recently. Therefore, I build modified versions of JForum. This bring the problem up to me that how can I deploy a new version of modified JForum using an existing database?

The output is built as a war file. I deploy it by placing it under Tomcat's directory. I took manual installation.

However, when I access the forum with the browser, I was still redirected to a blank page.

It seems there is a tricky modification or configuring I should be aware of but not.

Can anyone help me out?

Thanks in advance!
Michael Wu


[originally posted on jforum.net by michaelwu]
 
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
Hm.. no, there isn't any need for modifications on the database.

If you're getting a blank page, much probably there are some error being thrown. Take a look on Tomcat's logs.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
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 finally figured it out. Well, it is because the default index.htm which directs the browser to the Install module is included every time I built the modified version.

To use the existing database, I can simply modify the content of the index.htm so that the browser is brought to the home page of the JForum. (Besides, the install directive in the moduleMapping.properties file should be commented out.)

Michael Wu
[originally posted on jforum.net by michaelwu]
 
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
In short, after the first successful installation, make sure you modify the moduleMapping.properties to comment out the "Install=..." mapping. Besides, modify the index.htm to redirect the browser to the forums/list.page page. There is a file __index.redirect alongside. You may use it to replace the index.htm file as an alternative.
[originally posted on jforum.net by michaelwu]
 
What? What, what, what? What what tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic