aspose file tools*
The moose likes Spring and the fly likes java.lang.ClassCastException: org.apache.tiles.jsp.taglib.InsertAttributeTag cannot be cast to javax Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "java.lang.ClassCastException: org.apache.tiles.jsp.taglib.InsertAttributeTag cannot be cast to javax" Watch "java.lang.ClassCastException: org.apache.tiles.jsp.taglib.InsertAttributeTag cannot be cast to javax" New topic
Author

java.lang.ClassCastException: org.apache.tiles.jsp.taglib.InsertAttributeTag cannot be cast to javax

Frank VanOor
Ranch Hand

Joined: Jun 18, 2004
Posts: 49
Using Tomcat 6.0.16 and spring 3.0.5. I'm using tiles for the layout.
Tomcat trows the folowing exception when trying to render a page



The pom.xml




Many thanks in advance
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

That isn't a Spring question, that is a Tiles/Java question. This is the Spring forum.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Frank VanOor
Ranch Hand

Joined: Jun 18, 2004
Posts: 49
This exception occurs after I've upgraded from Spring 2.5.6 to 3.0.5. So, somehow spring is involved, or I'm I wrong ?

Frank
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

Frank VanOor wrote:This exception occurs after I've upgraded from Spring 2.5.6 to 3.0.5. So, somehow spring is involved, or I'm I wrong ?

Frank


Possibly. I hate tiles myself, so I avoid using it. (Bad experience I had in the past) Anyway, since it was all Tiles classes and javax. classes makes me think it might not be Spring specific, but can't be 100% sure, if you are positive that the only thing you changed was the Spring jar files. It could be that the jar file dependencies changed, and I mean down a couple levels of dependencies. You know how one dependency could depend on another third party, which could depend on another third party and we are down four levels of pom files, and one of thise down deep is a wrong version of a third party jar file, and it needs to be excluded.

Stuff like that happens.

Wish I could help more.

Mark
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: java.lang.ClassCastException: org.apache.tiles.jsp.taglib.InsertAttributeTag cannot be cast to javax