jsp-config元素不允许在web.xml || weblogic server中多次出现



我的weblogic服务器出现以下错误。

<Error> <HTTP> <BEA-101064> <[WebAppModule(*******Application:/)] Error parsing 
    descriptor in Web appplication "********************webAppWebContent"
    weblogic.descriptor.DescriptorValidateException: The following failures occurred:
    -- Multiple occurrences of jsp-config element are not allowed in web.xml

在web.xml中添加以下行后。

<?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>

@Kevin Seifert是正确的:

servlet 2.3 web.xml版本没有:jsp-config, message-destination, message-destination-ref和service-ref

最新更新