File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes NullPointerException on tiles Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "NullPointerException on tiles" Watch "NullPointerException on tiles" New topic

NullPointerException on tiles

Songezo Nkukwana
Ranch Hand

Joined: Nov 27, 2008
Posts: 51
Hello good forumites ... First time here & glad to end up here .. I'm pretty new in almost everything on Java but not doing too bad... I have a small app using tiles with struts on JSP

Here's my tile definition ...

and my JSP

Please note that i've commented all insertions of tiles, but still get the Exception, so problem is not likely to be on my JSP

stack trace

Please help!
Songezo Nkukwana
Ranch Hand

Joined: Nov 27, 2008
Posts: 51
Could a missing struts-tiles.jar be causing this perhaps? I've added struts-tiles.jar but get a ClassNotFoundError for TilesPlugin. I think because TilesPlugin appears in both struts.jar & struts-tiles-1.3.5.jar ... This is my second day still stuck on the same problem
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

We might find better answers in the more appropriate Struts forum. So I will move this there for ya.

Good Luck, and make sure you don't go over board with tiles definitions and its inheritance. I once worked on a project where tiles definitions went 6 levels deep in heirarchy, and things like level 2 and 5 added absolutely nothing.


Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
I agree. Here's the link:
subject: NullPointerException on tiles
It's not a secret anymore!