Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tiles 2 - Tomcat Errors etc

 
Tim Kernan
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
(I ment to post to Struts forum)
I have just installed Tiles 2 for use in my Struts 1 application. Tiles version 2.2.2

It seems that attributes defined in the tiles-def.xml file are not "carring over" into the JSP pages. I get the following error:



Browser displays the message:






I have configured a Tiles 2 listener (not a server or filter) in web.xml:






Snippet from tiles-defs.xml:



I am getting the following messages in the Tomcat logs



I have not added tiles-portlet.jar to the classpath.When I did, I got compile failures so I backed off.

Thanks for your help.
TIm
 
Jesus Mireles
Ranch Hand
Posts: 122
IntelliJ IDE Java Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The configuration and code you have provided is correct and I can't see anything wrong. The only thing I can think of at this point is things you havent shown us ... for example, I know you upgraded this from Tiles 1 to Tiles 2. So did you update the DTD for the tiles-def? I'm not sure that things like that can cause this particular issue but I know I ran into something similar when I forgot to update that DTD location.

 
Tim Kernan
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, I did change the DTD in tiles-def.xml

I reverted back to struts-tiles (tiles 1) and have started a separate test project to use Tiles 2. Perhaps a simpler project will flesh out the problem.

Could you explain, or point me to some place that will, the difference between a tiles server, listener and filter. Apparently, just one of these need to run but I have not found an explaination as to how to determine which one best fits the application.


Thanks for your help.
Tim
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic