• 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
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

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]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic