ip地址直接映射web模块
1、在deploy/jbossweb-tomcat55.sar下的server.xml的</Host>前面加上<Context path ="/" docBase ="D:/jboss-4.0.5/server/default/deploy/vipwang.war" debug ="1" reloadable ="true" override ="true" crossContext ="true" /> docBase为部署路径
2、在web.xml文件中添加
<welcome-file-list>
<welcome-file>jsp/main/index.jsp</welcome-file>
</welcome-file-list>
3、删除C:/jboss-4.0.5.GA/server/default/deploy/jbossweb-tomcat55.sar/ROOT.war文件夹