67,513
社区成员
发帖
与我相关
我的任务
分享
Struts Problem Report
Struts has detected an unhandled exception:
Messages:
Cannot convert value of type [org.springframework.security.web.DefaultSecurityFilterChain] to required type [java.lang.String] for property 'fieldErrors[org.springframework.security.filterChains][0]': no matching editors or conversion strategy found
Failed to convert property value of type 'java.util.LinkedHashMap' to required type 'java.util.Map' for property 'fieldErrors'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [org.springframework.security.web.DefaultSecurityFilterChain] to required type [java.lang.String] for property 'fieldErrors[org.springframework.security.filterChains][0]': no matching editors or conversion strategy found
Unable to instantiate Action, com.sayablog.createEngine.action.CreateAtion, defined for 'create' in namespace '/'Failed to convert property value of type 'java.util.LinkedHashMap' to required type 'java.util.Map' for property 'fieldErrors'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [org.springframework.security.web.DefaultSecurityFilterChain] to required type [java.lang.String] for property 'fieldErrors[org.springframework.security.filterChains][0]': no matching editors or conversion strategy found
File: jar:file:/C:/Tomcat%206.0/webapps/frameWork/WEB-INF/lib/org.springframework.beans-sources-3.0.4.RELEASE.jar!/org/springframework/beans/TypeConverterDelegate.java
Line number: 231
else {
msg.append(": no matching editors or conversion strategy found");
throw new IllegalStateException(msg.toString());
}
}
<package name="default" namespace="/" extends="struts-default">
<action name="create" method="execute" class="com.sayablog.createEngine.action.CreateAtion">
<result name="success">/jsp/a.jsp</result>
</action>
</package>
<!-- Spring -->
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
classpath:applicationContext.xml,
classpath:applicationContext-security.xml
</param-value>
</context-param>
<!-- spring filter -->
<filter>
<filter-name>springSecurityFilterChain</filter-name>
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
</filter>
<filter-mapping>
<filter-name>springSecurityFilterChain</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<!-- Struts2 -->
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<listener>
<listener-class>
org.springframework.security.web.session.HttpSessionEventPublisher</listener-class>
</listener>