• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

How do I install JForum on Glassfish?

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There is no "webapps" directory on Glassfish and I can't find any other deploy options than EARs and WARs etc...

Marius
[originally posted on jforum.net by MariusW]
 
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
There is nothing "magical" about a war file. See this post on how to create one.

https://coderanch.com/t/577467 #16500
[originally posted on jforum.net by monroe]
 
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
Hi MariusW,

Here's the way i managed to deploy JForum in a Glassfish instance. My operating system is Ubuntu Linux 7.04 (Feisty Fawn). I expect a similar procedure - with minor adjustments - applies to other Linux distributions as well as to Windows.

1. Download the file at the following link: http://www.jforum.net/download-latest.jsp, and save it in your home directory.


2. Unzip the downloaded file:


3. Start Glassfish (as root):


4. Deploy the jforum-2.1.7-b3 directory in Glassfish (as root):


And you're done. To undeploy jforum-2.1.7-b3, enter (as root):


JForum's context root is: "/jforum-2.1.7-b3". So, for instance, in order to browse to JForum's main page, open a browser, and point it at the address: "http://localhost:8080/jforum-2.1.7-b3".
[originally posted on jforum.net by berliita]
 
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

monroe wrote:There is nothing "magical" about a war file. See this post on how to create one.

https://coderanch.com/t/577467 #16500



Thanks monroe, that did the trick.

But after installing I'm now trying to create a forum. I use PostgreSQL 8.2 and when I try to save the new forum, I get the error message

Returning autogenerated keys is not supported

I searched your forum and found a thread regarding this back in 2005, but it was never finished. You asked about a config setting, and I checked this:

database.support.autokeys=true

It was set to false so I changed it to true. I've also tried reinstalling and restarting, but I still get the autogenerated key error.

Marius
[originally posted on jforum.net by MariusW]
 
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
Hi berliita

Thanks for helping! I tried the war-approach first, but thanks a lot anyway!

Regards
Marius
[originally posted on jforum.net by MariusW]
 
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
For postgresql, database.support.autokeys should be "false". Double check it in your postgresql.properties and jforum-custom.conf (if you have it)

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

Rafael Steil wrote:For postgresql, database.support.autokeys should be "false". Double check it in your postgresql.properties and jforum-custom.conf (if you have it)

Rafael



Thanks Rafael. The error was that it was set to "true" in the jforum-custom.conf file.
[originally posted on jforum.net by MariusW]
 
Put a gun against his head, pulled my trigger, now he's dead, that tiny ad sure bled
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic