Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

changing URL

 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i installed JForum under: http://test/jforum. Now i want to change the URL to: http://test/testforum. What do i need to change to do this?
[originally posted on jforum.net by balakiran]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are you using as a servlet container? Tomcat, Resin, etc....
[originally posted on jforum.net by Taboo]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should change the context mapping name. If you are using Tomcat, this is specified by the attribute "path" of tha tag <Context>, like



Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i'm using JRun4. i changed the following:

web.xml:
<!-- <servlet-name>jforum</servlet-name> -->
<servlet-name>forums</servlet-name>
<servlet-mapping>
<!-- <servlet-name>jforum</servlet-name> -->
<servlet-name>forums</servlet-name>

jrun-web.xml:
<!-- <context-root>/jforum</context-root> -->
<context-root>/forums</context-root>

Then, recycled the server. If I access http://mysite/forums, it says "Not Found

The requested URL /forums was not found on this server."

if i access the old URL, http://mysite/jforum, it shows JRUN default 404 page.

What could be wrong here?

[originally posted on jforum.net by Anonymous]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the above post was from me
[originally posted on jforum.net by balakiran]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hehe.. I removed jrun two or three days ago from my machine. I'm not sure, but if you change the *directory* name, it will not work as expected? (considering that hot deploy will register the webapp as the name of the directory)

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My current Jforum directory is here: /opt/jrun4/servers/news/JForum-2.1.4/

In my jrun-web.xml file, I have context root set to: /jforum (when i installed it). i changed it to: /forum, pointing the base to: /opt/jrun4/servers/news/JForum-2.1.4/

ANy help is appreciated.


[originally posted on jforum.net by balakiran]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
do i have to reinstall everything? why its not working when i change the contextroot?
[originally posted on jforum.net by balakiran]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry for not helping on this issue. I simple don't know how JRun works.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Rafael, can I get your MSN/yahoo messenger id?
[originally posted on jforum.net by balakiran]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try in the profile page
[originally posted on jforum.net by GreenEyed]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic