当前位置: 技术问答>java相关
初级问题:),有关叶面显示
来源: 互联网 发布时间:2015-11-03
本文导语: 我使用jbuilder 编译后 ” 在ie输入“http://127.0.0.1:8080/TestJsp1.jsp”可以正常显示叶面 但是在ie输入“http://localhost:8080/TestJsp1.jsp 就说叶面找不到 “當嘗試傳回下面的網址(URL)時: http://localhost:8080/TestJsp1.jsp 發生了下...
我使用jbuilder
编译后
”
在ie输入“http://127.0.0.1:8080/TestJsp1.jsp”可以正常显示叶面
但是在ie输入“http://localhost:8080/TestJsp1.jsp
就说叶面找不到
“當嘗試傳回下面的網址(URL)時: http://localhost:8080/TestJsp1.jsp
發生了下列的錯誤:
無法將您輸入的網站主機位置轉譯成正確的 IP 位置: localhost
領域名稱伺服器回應下列錯誤訊息:
Name Error: The domain name does not exist.
”
请问哪位dx可以告知我么
编译后
”
在ie输入“http://127.0.0.1:8080/TestJsp1.jsp”可以正常显示叶面
但是在ie输入“http://localhost:8080/TestJsp1.jsp
就说叶面找不到
“當嘗試傳回下面的網址(URL)時: http://localhost:8080/TestJsp1.jsp
發生了下列的錯誤:
無法將您輸入的網站主機位置轉譯成正確的 IP 位置: localhost
領域名稱伺服器回應下列錯誤訊息:
Name Error: The domain name does not exist.
”
请问哪位dx可以告知我么
|
就是你的WEB服务器无法正确做IP转换.
|
修改你TOMCAT的server.xml.(根据你的情况,在JBUILDER目录下,确定使用的是哪一个)
然后找到Host元素,将他的NAME属性改为localhost
注意保持Engine元素指向localhost
然后找到Host元素,将他的NAME属性改为localhost
注意保持Engine元素指向localhost
|
那说明TM没问题
你看看你WINDOWS的SYSTEM目录下有没有一个hosts文件?要保证你的hosts文件(无后缀名)的有如下内容.
127.0.0.1 localhost
例如,以下是一个HOSTS文件的全部内容
# Copyright (c) 1993-1999 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
127.0.0.1 localhost
再试试
你看看你WINDOWS的SYSTEM目录下有没有一个hosts文件?要保证你的hosts文件(无后缀名)的有如下内容.
127.0.0.1 localhost
例如,以下是一个HOSTS文件的全部内容
# Copyright (c) 1993-1999 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
127.0.0.1 localhost
再试试
|
那就应该可以了.
你试试看单独的TM或者其他WEB服务器能不能解析localhost.
你试试看单独的TM或者其他WEB服务器能不能解析localhost.