• 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

installing jforum in a sub directory

 
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 want to install jforum as a sub directory

like
http://localhost/boards/
so urls will look like

http://localhost/boards/posts...
http://localhost/boards/forums...

I don't want it to be a separate webapp. What is a good way to do that?

paul


[originally posted on jforum.net by subpaul]
 
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
It won't work. JForum should be in the context's root. This can be improved in the future, but currently, there is no simple solution.

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 hate making the app think different.. but.. do you think i can do it by having the app writing a value for the contextPath that can be used in templates? Maybe a central place I can do that at..

do you see it possible?

paul

[originally posted on jforum.net by subpaul]
 
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
As of the refactoring I'm currently doing, much probably it will be possible to put the templates, images, upload tmp and other directories into a subdiretory (WEB-INF stuff should be in the root context).

I say "probably" because I didn't tested it yet.

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
What do you want actually?
Just to have forum links ike your said (http://localhost/boards/posts/ etc..) or to have site and forum in a signle webapp?

In first case, if you are using Apache+Tomcat, you can have 2 webbapps, and then use apache-tomcat connector and configure alias "/boards/" to the forum webapp

[originally posted on jforum.net by gst]
 
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
Hey Rafael

From what I'm reading, I think you are saying that JForum will not run as nested webapp.

Currently I have my web-site application running on one webapp with one port, and jforum in another webapp in another port.

I want to run nest Jforum within my web-site app. That means nesting web-apps. Can this be done?

Thanks. (BTW great job and thanks for sharing your work) I have jforum running on Oracle Container For J2EE (OC4J) and an oracle 9i database. I made a couple of small changes, and will post them as soon I can get jforum finalized. Thanks again!
[originally posted on jforum.net by Anonymous]
 
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
Well, you can put jforum in the same context of your application, but you will need to follow the directory structure - eg, the "templates" and "images" dir should be in the root directory, the "config" dir should be in the WEB-INF dir and so on.

Please share your oracle changes when possible . I want to release version 2.1.5 with 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
Hello there,

You could always use a different context but run it under the same Tomcat, in the same port. It would be just a question of modifying the Tomcat configuration to add a context for JForum.

I think that would be safer than mixing JForum with another application inside the same context, as depending on the libraries you use, you could ran into conflicts.

My 2ec,
D.
[originally posted on jforum.net by GreenEyed]
 
I'm still in control here. LOOK at this tiny ad!
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