os:rhel5.9
在weblogic9.2上部署应用helloworld.war时报如下错:
Unable to load descriptor web.xml of module The error is weblogic.descriptor
是由于helloworld.war/WEB-INF/web.xml中使用了2.5版本的写法,改成2.4版本的写法,就可以正常部署了。
web.xml 2.4 写法
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
web.xml 2.5 写法
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">