Win a copy of TensorFlow 2.0 in Action this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

Error Spring + tiles 2.2

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone:

I'm trying to make a easy program in spring which is not been as easy as I thought. I'm trying a simple "Hello world" in spring using tiles 2.2. This is my code:


<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="" xmlns="" xmlns:web="" xsi:schemaLocation="" id="WebApp_ID" version="2.5">

<display-name>Archetype Created Web Application</display-name>




<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns=""

<context:component-scan base-package="com.spring.ejercicio15.web"/>
<mvc:resources location="/resources/" mapping="/resources/**"/>

<bean class="org.springframework.js.ajax.AjaxUrlBasedViewResolver" id="tilesViewResolver">
<property name="viewClass" value="org.springframework.web.servlet.view.tiles2.TilesView"/>
<bean class="org.springframework.web.servlet.view.tiles2.TilesConfigurer" id="tilesConfigurer">
<property name="definitions">


package com.spring.ejercicio15.web;

import java.util.Map;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

public class Ejer15Controller {

@RequestMapping (value="/step")
public String step1 (Map<String, Object> model){
return "step1";

<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="tiles" uri="" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Ejercicio 15</title>
<tiles:insertAttribute name="body"/>

views.xml of base.jsp:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE tiles-definitions PUBLIC
"-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN"

<definition name="base" template="/WEB-INF/views/plantillas/base.jsp">

<h1>This is the exercise 15 </h1>
<p>Thank you</p>

view.xml of step1.jsp
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE tiles-definitions PUBLIC
"-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN"

<definition name="step1" extends="base">
<put-attribute name="body" value="/WEB-INF/views/ejercicio15/step1.jsp"/>

When I access to the url "/step" I get this error message:
27-ene-2012 9:17:19 org.apache.catalina.core.StandardWrapperValve invoke
CRITICAL: Servlet.service() for servlet ejercicio15 throws exception
org.apache.jasper.JasperException: /WEB-INF/views/plantillas/base.jsp(2,67) can't read TLD "META-INF/tld/tiles-jsp.tld" from jar file "file:/C:/Users/aferrere/Master/Ejercicios/Tema%202/Ejercicio%2015%20-%20Spring%20MVC%20avanzado/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/ejercicio15/WEB-INF/lib/tiles-jsp-2.2.0.jar": org.apache.jasper.JasperException: can't load the class TagExtraInfo: org.apache.tiles.jsp.taglib.UseAttributeTag$Tei (I translated my logg error from spanish... Sorry if the message is not clear at all)

Does someone know where my mistake could be?

Thank you everyone in advance for you attention
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic