• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Tiles 2 - Tomcat Errors etc

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 122
Mac IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic