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

Jforum + GWT

 
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 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

http://somewhere:8080/myApp

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

http://somewhere:8080/myApp/forum

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
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
http://localhost:8080/myApp/jforum
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
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
http://localhost:8080/myApp/forums/list.page
Everything is working now, but i would like to know if it's possible to change the path to
http://localhost:8080/myApp/jforum/forums/list.page
In jforum-custom.conf I added

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

Thanks!

[originally posted on jforum.net by throttle]
 
reply
    Bookmark Topic Watch Topic
  • New Topic