Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7994143
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T14:03:30+00:00 2026-06-04T14:03:30+00:00

This situation arose when I tried to upgrade Spring from version 2.1 to Spring

  • 0

This situation arose when I tried to upgrade Spring from version 2.1 to Spring 3.0.x in my web application. Spring 3.0.x doesn’t support struts-tiles 1.3, it requires Apache Tiles 2.x. So, I also have to upgrade Struts-Tiles 1.3 to Apache Tiles 2.x. Apache tiles has this migration guide that helped me with this effort. However, I seem to have hit a wall on this which is not mentioned in the migration guide.Here are the details:

This is the tilesConfigurer we were using,

<bean id="tilesConfigurer" class="org.springframework.web.servlet.view.tiles.TilesConfigurer">
        <property name="factoryClass">
            <value>org.apache.struts.tiles.xmlDefinition.I18nFactorySet</value>
        </property>
        <property name="definitions">
            <list>
                <value>/WEB-INF/tiles-defs.xml</value>
            </list>
        </property>
</bean>

Since, the class tiles.TilesConfigurer is deprecated in Spring 3.0.x, I changed it to use org.springframework.web.servlet.view.tiles2.TilesConfigurer

The tiles2.TilesConfigurer does not have a setFactoryClass(..) method unlike tiles.TilesConfigurer which is now deprecated. And hence my bean initialization fails.

I have looked up the tiles2.TilesConfigurer api, which now has the methods, setDefinitionsFactoryClass(..) and setPreparerFactoryClass(..). Not only I am unable to decide which one is relevant here, I can’t find an equivalent class for org.apache.struts.tiles.xmlDefinition.I18nFactorySet. Is there something of this sort directly available in Tiles 2.2, or do I need to revisit some of my existing code with an equivalent that is available in Tiles 2.2?

Any pointer will be appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T14:03:32+00:00Added an answer on June 4, 2026 at 2:03 pm

    A gentleman from the Tiles Community gave the solution. You may find the thread in Apache Tiles user list May 2012 archive. Cross posting it here:

    The factoryClass org.apache.struts.tiles.xmlDefinition.I18nFactorySet is supported out of the box in Tiles 2.2. So, we don’t need to inject anything special to the new tiles2.TilesConfigurer class. The final XML element will look like this

    <bean id="tilesConfigurer" class="org.springframework.web.servlet.view.tiles2.TilesConfigurer">
            <property name="definitions">
                <list>
                    <value>/WEB-INF/tiles-defs.xml</value>
                </list>
            </property>
    </bean>
    

    So, removing the property does the trick.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This situation arises from someone wanting to create their own pages in their web
I have this situation where i have to start an activity from my mainActivity.
I'm facing this situation where I have an ID which comes from a database
In this situation I am trying to perform a data import from an XML
G'day, Edit: While this question covers a situation that can arise in programming a
In this situation I have two models, Comment and Score. The relationship is defined
I have this situation: { float foo[10]; for (int i = 0; i <
I have this situation where I want to display a list of Administration objects
We have this situation: Window Keyboard ^ ^ | / ApplicationWindow so class Window
I ran into this situation today. I have an object which I'm testing for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.