wood burning stoves
The moose likes JForum and the fly likes Jforum + GWT Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » JForum
Bookmark "Jforum + GWT" Watch "Jforum + GWT" New topic

Jforum + GWT

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Hi to everyone

Has anyone tried to integrate JForum with a GWT (Goolge Web Toolkit) application?
What i'd like to obtain is a single application (i.e. a single .war file) to deploy with an embedded forum.
To be more precise i'd like to have an application (running on Tomcat) with address


and i would like to be able to have a forum for that application at the address


I read the here the forum but it seems that i couldn't find anything clear about this... ops:
I tried uncompressing the .zip jForum file in the /webapp/myApp directory in Tomcat, merging the web.xml files. (In the web.xml files there are the mappings for my other servlets).
I configured the SystemGlobals.properties file to use a mysql database.

However the forum doesn't want to show up

I'm a bit confused about:
- what should i write in "forum.link" and "homepage.link" in SystemGlobals.properties?
- how should the web.xml file look like?

Thanks in advance.

[originally posted on jforum.net by throttle]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Haven't used GWT, so I can't comment on that.

I'd suggest installing jForum as it's own application first... just to get everything working and configured. THEN start comparing the stuff in "myApp" to the jForum app. E.g., the two web.xml files will have to be merged to support both set of servlets, the directory structures will have to be "overlaid" on each other, the jars in the lib directories will have to be resolved, and the like.

Note that jForum assumes that all it's files are in the web-app root directory, e.g. under the myApp directory (which contains the WEB-INF directory).
[originally posted on jforum.net by monroe]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
I already tried installing jForum as a standalone application, and everything worked flawlessly
Then i compared the structure of both application (mine one and jForum) and i tried to move jForum to my application's root accordingly.
I removed some libs 'cause i'm still using them but with a newer version number. The first problem i encountred was c3p0 complaining about being already running (i'm using pooled connections in my application) then i tried using a simple connection in SystemGlobals.properties just to be sure.
But if i try to go to
tomcat says

(yes, it doesn't even say what resource is missing...)
Would it be possible to see a sample web.xml? I only copied and pasted the content of jForum's web.xml into my web.xml, and i don't know if it's right (i'm not really a webservice guru :lol: )
Anyway thanks for your answer
[originally posted on jforum.net by throttle]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Big news
I managed to start jForum from my application!
After a little debugging i managed to understand that the path i was using was wrong: the path to starting page of the forum had to be
Everything is working now, but i would like to know if it's possible to change the path to
In jforum-custom.conf I added

but it doesn't seem to change anything...


[originally posted on jforum.net by throttle]
jQuery in Action, 3rd edition
subject: Jforum + GWT
It's not a secret anymore!