在%Jboss_Home%\server\default\deploy\jboss-web.deployer\ROOT.war目录下面,有一个index.html页面。将index.html文件中的内容替换为如下内容:
<?xml
version
=
"1.0"
encoding
=
"iso-8859-1"
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
>
<html
xmlns
=
"http://www.w3.org/1999/xhtml"
>
<head>
document.location.href
=
"http://localhost:8080/BPO_PACTERA1.0"
;
</script>
</head>
<body>
<
%
response.sendRedirect("http://localhost:8080/BPO_PACTERA1.0");
%
>
</body>
</html>
替换完成后,我们就可以通过IP地址:
http://localhost:8080
来访问我们的项目了。