File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JForum and the fly likes Smilies not on localhost Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » JForum
Bookmark "Smilies not on localhost" Watch "Smilies not on localhost" New topic
Author

Smilies not on localhost

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Where do I go to change the code so that the smilies are not trying to pull from localhost but rather an IP address.

For instance, I want to change the localhost in this address to a specific IP address

http://localhost:8080/jForum//images/smilies/3b63d1616c5dfcf29f8a7a031aaa7cad.gif

BTW: Im using the following
OS: Windows Server 2003 Standard SP2
Servlet: Tomcat 6
DB: MySql 5.0
[originally posted on jforum.net by confused2gether]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
either systemglobals.properties
or jforum-custom.conf (which overwrites the values in the properties file)

have a look at the forum.link or homepage.link URL .. those should point to localhost. Change those so that they point to the IP address
[originally posted on jforum.net by Sid]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Checked both of those and I had already changed them from localhost to my IP address. Smilies are still trying to connect to localhost.

Where is the #CONTEXT# being grabbed from to define it? I think that is where I need to go to change the localhost setting but I cant seem to find it.
[originally posted on jforum.net by confused2gether]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
#CONTEXT# is retrieved from request.getContextPath() when JForum is loading.

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

Joined: Apr 22, 2012
Posts: 17424
What file contains that request so that I can make that change or is there any other place that I need to be looking for to change from localhost to my IP address that I want.
[originally posted on jforum.net by confused2gether]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
hmmm ok kinda weird but they are showing up now.......i didnt make any recent changes either. oh well as long as it works i guess

Thanks guys.
[originally posted on jforum.net by confused2gether]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
*smirks* that's because they are loaded from the conf/properties file ...

... yet it seems that your cache showed still the old values. You can clear cached informations via administratin panel too, aswell as within the browser.
[originally posted on jforum.net by Sid]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
I remember clearing my browser cache out numerous times thinking it was that along with tomcat restarts but I didnt look closely enough at the admin console to see the cache section.

Thanks for the help!
[originally posted on jforum.net by confused2gether]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
My smilies are not showing.. same error as confused2gether.. I already change the values in the systemglobal and jforum-custom and cleared cache but still im getting the same path for the smilies.

Sample:
http://localhost/jForum//images/smilies/3b63d...616c5dfcf29f8a7a031aaa7cad.gif

Please help!

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

Joined: Apr 22, 2012
Posts: 17424
Hey
check your sysglobal.properties

forum.link=http://localhost:8080/XXXXXXXX

Check that there is no space at the end.
[originally posted on jforum.net by gregjhonson]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
its working now.. thanks guys!
[originally posted on jforum.net by rothnix]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
thanks
[originally posted on jforum.net by Shnder1]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Smilies not on localhost
 
Similar Threads
ip addresses
Problem with Connecting to mysql using java
testCode runs GREAT on Local comp, fails on network comp. using mySQL
how to express Database url properly??
how to connect to my web application from another computer