Spring 3 MVC and Apache Tiles 2 Integration Error

后端 未结 9 903
庸人自扰
庸人自扰 2021-01-04 06:15

I have been trying to integrate Spring (3.0.4 and 3.0.5) MVC with Apache Tiles (2.1.2,2.1.4 and 2.2.2) to no avail. In every case i get the following error:

java.lan

相关标签:
9条回答
  • 2021-01-04 06:42

    If you are using STS and you created your project using a spring template project (like the MVC one) then you don't add anything to the lib directory. Instead you modify the pom.xml maven config file.

    0 讨论(0)
  • 2021-01-04 06:44

    I was having same problem, using version 2.2.2 of tiles. I switched to version 2.2.1 and it started to work. Here are my dependencies:

    <dependency>
            <groupId>org.apache.tiles</groupId>
            <artifactId>tiles-jsp</artifactId>
            <version>2.2.1</version>
        </dependency>
        <dependency>
            <groupId>org.apache.tiles</groupId>
            <artifactId>tiles-core</artifactId>
            <version>2.2.1</version>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.tiles</groupId>
            <artifactId>tiles-api</artifactId>
            <version>2.2.1</version>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.tiles</groupId>
            <artifactId>tiles-servlet</artifactId>
            <version>2.2.1</version>
        </dependency>
        <dependency>
            <groupId>org.apache.tiles</groupId>
            <artifactId>tiles-template</artifactId>
            <version>2.2.1</version>
        </dependency>
    
    0 讨论(0)
  • 2021-01-04 06:46

    Check if the following jars are on the application class-path:

    1. commons-beanutils
    2. commons-digester
    3. log4j
    4. slf4j-api
    5. slf4j-log4j12
    6. tiles-api
    7. tiles-core
    8. tiles-jsp
    9. tiles-servlet
    10. tiles-template

    Version of tiles jars is depends on the version of Spring MVC. E.g. If Spring MVC 3.2.3 (org.springframework.web.servlet.view.tiles3.TilesConfigurer) is used then tile 3 jars are required.

    0 讨论(0)
提交回复
热议问题