web.xml | | weblogic server中不允许多次出现jsp配置元素
我的weblogic服务器出现以下错误web.xml | | weblogic server中不允许多次出现jsp配置元素,jsp,weblogic,Jsp,Weblogic,我的weblogic服务器出现以下错误 <Error> <HTTP> <BEA-101064> <[WebAppModule(*******Application:/)] Error parsing descriptor in Web appplication "********************webApp\WebContent" weblogic.descriptor.DescriptorValidateException:
<Error> <HTTP> <BEA-101064> <[WebAppModule(*******Application:/)] Error parsing
descriptor in Web appplication "********************webApp\WebContent"
weblogic.descriptor.DescriptorValidateException: The following failures occurred:
-- Multiple occurrences of jsp-config element are not allowed in web.xml
凯文·塞弗特是正确的:
servlet 2.3 web.xml版本没有:jsp config、message destination、message destination ref和service ref它们是web.ml中多次出现的
jsp config
元素吗?我在weblogic中看到了同样的情况。我认为这是一个错误消息,可能与web.xml版本2.3不支持该功能有关?
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
---------------------------------------------
<jsp-config>
<jsp-property-group>
<url-pattern>*.jsp</url-pattern>
<trim-directive-whitespaces>true</trim-directive-whitespaces>
</jsp-property-group>
</jsp-config>