【问题标题】:Struts 2.1.6 Upgradation with Websphere 7 Server使用 Websphere 7 服务器升级 Struts 2.1.6
【发布时间】:2014-04-27 21:49:51
【问题描述】:

我正在尝试在 Websphere 7.0.27 服务器上部署 Struts - 2.1.6 应用程序。我已启用 LDAP 身份验证的安全性。当我尝试运行应用程序时,我收到以下错误消息:

[3/20/14 12:51:21:086 MDT] 00000017 SystemOut O 2014-03-20 12:51:21,086 警告 com.opensymphony.xwork2.config.providers.InterceptorBuilder - 无法加载配置类组织.apache.struts2.interceptor.validation.AnnotationValidationInterceptor 在拦截器** - wsjar:file:/C:/IBM/WebSphere/AppServer/profiles/AppSrvHSCS/installedApps/IBM-7eee9b3778eNode02Cell/acys-hscs.ear/acys-hscs-web .war/WEB-INF/lib/struts2-core-2.1.6.jar!/struts-default.xml:146:127 可能是由于缺少 jar,如果您从不打算使用验证拦截器,这可能没问题 [3/20/14 12:51:21:093 MDT] 00000017 SystemOut O 2014-03-20 12:51:21,089 错误 com.opensymphony.xwork2.config.providers.InterceptorBuilder - **实际异常 注册拦截器类 org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor - 拦截器 - wsjar:file:/C:/IBM/WebSphere/AppServer/profiles/AppSrvHSCS/installedApps/IBM-7eee9b3778eNode02Cell/acys-hscs.ear/ 时捕获异常acys-hscs-web.war/WEB-INF/lib/struts2-core-2.1.6.jar!/struts-default.xml:146:127

【问题讨论】:

  • 由于安全问题,请至少使用 Struts 2.3.16

标签: struts2 websphere


【解决方案1】:

检查以确保验证 xml 文件中的 DTD 声明准确(来自here)。

【讨论】:

  • 我在我的 validation.xml 文件中使用了以下 DTD 声明 ttp://struts.apache.org/dtds/xwork-validator-1.0.2.dtd" rel="nofollow" target="_blank">struts.apache.org/dtds/xwork-validator-1.0.2.dtd">跨度>
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2022-11-10
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2020-12-13
  • 2016-05-04
  • 1970-01-01
相关资源
最近更新 更多