This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Tiles 2 - Tomcat Errors etc Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Tiles 2 - Tomcat Errors etc" Watch "Tiles 2 - Tomcat Errors etc" New topic
Author

Tiles 2 - Tomcat Errors etc

Tim Kernan
Greenhorn

Joined: Aug 25, 2010
Posts: 16
(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

Joined: Mar 10, 2010
Posts: 122

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

Joined: Aug 25, 2010
Posts: 16
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
 
wood burning stoves
 
subject: Tiles 2 - Tomcat Errors etc
 
Similar Threads
Please help me ..
HibernateException: Wrong column type: datedebut, expected: date
Struts1 - tiles -cascading tiles:insert
Cannot find bean under name org.apache.struts.taglib.html.BEAN
Please help me ..