This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JForum and the fly likes How do I install JForum on Glassfish? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » JForum
Bookmark "How do I install JForum on Glassfish?" Watch "How do I install JForum on Glassfish?" New topic
Author

How do I install JForum on Glassfish?

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
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

Joined: Apr 22, 2012
Posts: 17424
There is nothing "magical" about a war file. See this post on how to create one.

http://www.coderanch.com/t/577467 #16500
[originally posted on jforum.net by monroe]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
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

Joined: Apr 22, 2012
Posts: 17424
monroe wrote:There is nothing "magical" about a war file. See this post on how to create one.

http://www.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

Joined: Apr 22, 2012
Posts: 17424
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

Joined: Apr 22, 2012
Posts: 17424
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

Joined: Apr 22, 2012
Posts: 17424
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]
 
Consider Paul's rocket mass heater.
 
subject: How do I install JForum on Glassfish?
 
Similar Threads
Passed SCBCD5 Upgrade 88%
WA #1.....word association
How i lookup for EJB3 in different server
Ruby - App Server
JPA not working with EJB3