struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pierre TEMPLIER (JIRA)" <>
Subject [jira] [Created] (WW-3843) overriding default typeconverters in struts.xml does not work
Date Wed, 20 Jun 2012 14:02:42 GMT
Pierre TEMPLIER created WW-3843:

             Summary: overriding default typeconverters in struts.xml does not work
                 Key: WW-3843
             Project: Struts 2
          Issue Type: Bug
          Components: XML Configuration
    Affects Versions: 2.3.4
            Reporter: Pierre TEMPLIER

according to the docs one can override default
typeconverters (cf:

== Quote from the docs
As from version 2.3.2 you can override default converters by
implementting TypeConverter interface and specifying beans in
struts.xml as follow: <bean
name="collection" class="com.application.MyCollectionConverter"

I tried with that approach by creating a new TypeConverter (roughly
copied from com.opensymphony.xwork2.conversion.impl.NumberConverter)
adding the following line in struts.xml right after the <struts> tag
<bean type="com.opensymphony.xwork2.conversion.TypeConverter"
name="number" class=""

but the webapp failed to start with the following error.

Caused by: Bean type interface
com.opensymphony.xwork2.conversion.TypeConverter with the name number
has already been loaded by [unknown location] - bean -
       at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message