Does the following code produce work for you?
<cfscript>
inetAddress = createObject("java", "java.net.InetAddress");
localhost = inetAddress.getLocalHost();
localhostAddress = localhost.getHostAddress();
</cfscript>
<cfoutput>#localhostAddress#</cfoutput>
When running the command ifconfig as root, do you get a result block for
each interface including lo (loopback or localhost) ?
Here's what I get:
[EMAIL PROTECTED] ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:09:6B:E1:80:98
inet addr:10.60.84.59 <http://10.60.84.59>
Bcast:10.60.84.255<http://10.60.84.255>Mask:
255.255.255.0 <http://255.255.255.0>
inet6 addr: fe80::209:6bff:fee1:8098/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1188345 errors:0 dropped:0 overruns:0 frame:0
TX packets:527366 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:333068657 (317.6 MiB) TX bytes:132946475 (126.7 MiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 <http://127.0.0.1> Mask:255.0.0.0 <http://255.0.0.0>
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1228189 errors:0 dropped:0 overruns:0 frame:0
TX packets:1228189 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:82237946 (78.4 MiB) TX bytes:82237946 (78.4 MiB)
If you don't see lo here, then you should check the loopback address config
file to be sure its configured to start on boot (ONBOOT=yes):
[EMAIL PROTECTED] /]# cd /etc/sysconfig/network-scripts
[EMAIL PROTECTED] network-scripts]# cat ifcfg-lo
DEVICE=lo
IPADDR=127.0.0.1 <http://127.0.0.1>
NETMASK=255.0.0.0 <http://255.0.0.0>
NETWORK=127.0.0.0 <http://127.0.0.0>
# If you're having problems with gated making
127.0.0.0/8<http://127.0.0.0/8>a martian,
# you can change this to something else
(255.255.255.255<http://255.255.255.255>,
for example)
BROADCAST=127.255.255.255 <http://127.255.255.255>
ONBOOT=yes
NAME=loopback
[EMAIL PROTECTED] network-scripts]#
Then restart the network with 'service network restart' or maybe just 'ifup
lo'.
-Steven Erat
On 11/8/05, Stewart Harrison <[EMAIL PROTECTED]> wrote:
>
> After doing the 7.0.1 updater on a CFMX 7 multiserver install that is on
> a RHEL3 server, I go to Enterprise Manager -> Instance Manager, and I
> get the following error message at the bottom of the page. Any ideas?
> I had to copy the CFIDE dir to my /var/www/html dir to get into CF
> Administrator. Thanks.
>
> The following information is meant for the website developer for
> debugging purposes.
> Error Occurred While Processing Request
>
>
> Variable GETLOCALHOST is undefined.
>
>
>
> The error occurred in
>
> *C:\blackstone_updates\cfusion\wwwroot\CFIDE\administrator\entman\serverlist.cfm:
> line 259*
> *Called from*
>
> C:\blackstone_updates\cfusion\wwwroot\CFIDE\administrator\entman\serverlist.cfm:
> line 238
> *Called from*
>
> C:\blackstone_updates\cfusion\wwwroot\CFIDE\administrator\entman\serverlist.cfm:
> line 187
> *Called from*
>
> C:\blackstone_updates\cfusion\wwwroot\CFIDE\administrator\entman\serverlist.cfm:
> line 176
> *Called from*
>
> C:\blackstone_updates\cfusion\wwwroot\CFIDE\administrator\entman\serverlist.cfm:
> line 41
> *Called from*
>
> C:\blackstone_updates\cfusion\wwwroot\CFIDE\administrator\entman\serverlist.cfm:
> line 1
> *Called from*
>
> C:\blackstone_updates\cfusion\wwwroot\CFIDE\administrator\entman\index.cfm:
> line 191
> *Called from*
>
> C:\blackstone_updates\cfusion\wwwroot\CFIDE\administrator\entman\index.cfm:
> line 1
>
> -1 : Unable to display error's location in a CFML template.
>
>
> ------------------------------------------------------------------------
> Resources:
>
> * Check the ColdFusion documentation
> <http://www.macromedia.com/go/proddoc_getdoc> to verify that you
> are using the correct syntax.
> * Search the Knowledge Base
> <http://www.macromedia.com/support/coldfusion/> to find a solution
> to your problem.
>
> --
> Stewart Harrison
> IT Professional Specialist
> Office of Institutional Research, UGA
> 706-425-3183 Phone
> [EMAIL PROTECTED]
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49
Message: http://www.houseoffusion.com/lists.cfm/link=i:14:4073
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/14
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:14
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.14
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54