您的位置:首页 > 编程语言 > Java开发

eclipse web.xml for weblogic 11g

2016-02-11 14:26 435 查看
在eclipse中export  WAR到weblogic 前,得修改下web.xml内容,注意红字前得 ‘/’ 符号,

否则如果只输入http://localhost:7001/MyWebJSP/ , weblogic找不到这些html 和jsp文件。

 

<?xml version="1.0" encoding="UTF-8"?>

<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">

  <display-name>MyWebJSP</display-name>

  <welcome-file-list>

    <welcome-file>/default.html</welcome-file>

    <welcome-file>/default.htm</welcome-file>

    <welcome-file>/default.jsp</welcome-file>

     <welcome-file>/GetServerProperty.jsp</welcome-file>

  </welcome-file-list>

</web-app>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: