1. 程式人生 > >resin用MyEclipse自動生成的web專案部署後無法訪問

resin用MyEclipse自動生成的web專案部署後無法訪問

web.xml檔案內容如下

異常:


[10:15:49.296] Server[] starting
[10:15:49.296]
[10:15:49.296] Windows XP 5.1 x86
[10:15:49.296] Java 1.6.0-b105, 32, mixed mode, sharing, GBK, zh, Sun Microsystems Inc.
[10:15:49.296] resin.home = C:/resin-3.0.27
[10:15:49.296] server.root = null
[10:15:49.296]
[10:15:49.390] Host[] starting
[10:15:49.546] WebApp[http://localhost:8088] starting
[10:15:50.109] WebApp[http://localhost:8088/resin-doc] starting
[10:15:50.171] com.caucho.config.LineConfigException: WEB-INF/web.xml:6: <web-app xmlns="

http://java.sun.com/xml/ns/javaee"> is an unexpected top-level tag.
[10:15:50.171]
[10:15:50.171] <web-app xmlns="http://caucho.com/ns/resin">,
[10:15:50.171] <web-app xmlns="http://java.sun.com/xml/ns/j2ee"> or
[10:15:50.171] <web-app xmlns=""> are expected.
[10:15:50.171]
[10:15:50.171] Syntax: (<web-app> | <web-app> | <web-app>)
[10:15:50.312] WebApp[http://localhost:8088/resin-admin] starting
[10:15:50.359] http listening to *:8088
[10:15:50.375] hmux listening to localhost:6802
[10:15:50.375] Resin started in 1547ms

解決方法: