gpt4 book ai didi

java - WebLogic 12.2.1 中的最大帖子大小

转载 作者:行者123 更新时间:2023-11-30 02:40:34 32 4
gpt4 key购买 nike

我在使用 WebLogic 12.2.1 时遇到问题,从版本 10.3.2 迁移到版本 12.2.1 后,我意识到我可以使用大于 4096 的帖子进行身份验证(这是 WLO 12.1.2 中的新约束) ,引用:https://docs.oracle.com/middleware/1212/wls/WLUPG/compat.htm#WLUPG473)解决方案是在 weblogic.xml 中放置一个显式值,但这不受支持,而且我没有看到任何区别。

weblogic.xml:

<!DOCTYPE weblogic-web-app PUBLIC "-//BEA Systems, Inc.//DTD Web Application 8.1//EN" "weblogic810-web-jar.dtd">
<weblogic-web-app>
<security-role-assignment>
<role-name>MYAPPAll</role-name>
<principal-name>ENT_MYAPP_Users</principal-name>
</security-role-assignment>
<reference-descriptor>
<resource-description>
<res-ref-name>DBAppDDXA</res-ref-name>
<jndi-name>
jdbc/DBAppDDXA
</jndi-name>
</resource-description>
<resource-description>
<res-ref-name>DBAppDD</res-ref-name>
<jndi-name>
jdbc/DBAppDD
</jndi-name>
</resource-description>
</reference-descriptor>
<session-descriptor>
<session-param>
<param-name>max-save-post-size</param-name>
<param-value>10240</param-value>
</session-param>
<session-param>
<param-name>timeout-secs</param-name>
<param-value>3600</param-value>
</session-param>
</session-descriptor>
<jsp-descriptor>
<jsp-param>
<param-name>pageCheckSeconds</param-name>
<param-value>0</param-value>
</jsp-param>
<jsp-param>
<param-name>precompile</param-name>
<param-value>false</param-value>
</jsp-param>
<jsp-param>
<param-name>workingDir</param-name>
<param-value>./jsp_precompile_dir/myAppVer2</param-value>
</jsp-param>
<jsp-param>
<param-name>encoding</param-name>
<param-value>ISO-8859-1</param-value>
</jsp-param>
<jsp-param>
<param-name>keepgenerated</param-name>
<param-value>true</param-value>
</jsp-param>
</jsp-descriptor>
<container-descriptor>
<servlet-reload-check-secs>-1</servlet-reload-check-secs>
<prefer-web-inf-classes>false</prefer-web-inf-classes>
</container-descriptor>
<context-root>/myApp</context-root>
</weblogic-web-app>

我得到同样的错误:

<26 janv. 2017 12 h 18 WET> <[ServletContext@227245410[app:src module:src path:null spec-version:3.1]] Servlet failed with an IOException. weblogic.servlet.internal.MaxPostSizeExceededException: MaxSavePostSize [4096] exceeded ! at weblogic.servlet.security.internal.FormSecurityModule.raiseException(FormSecurityModule.java:564) at weblogic.servlet.security.internal.FormSecurityModule.stuffSession(FormSecurityModule.java:544) at weblogic.servlet.security.internal.FormSecurityModule.sendLoginPage(FormSecurityModule.java:494) at weblogic.servlet.security.internal.FormSecurityModule.checkUserPerm(FormSecurityModule.java:213) at weblogic.servlet.security.internal.FormSecurityModule.checkAccess(FormSecurityModule.java:96) Truncated. see log file for complete stacktrace >

感谢您的帮助

最佳答案

编辑

max-save-post-size 不得定义为 session-param,而是按以下方式定义:

<session-descriptor>
<max-save-post-size>10240</max-save-post-size>
</session-descriptor>

关于java - WebLogic 12.2.1 中的最大帖子大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41873417/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com