Differences between revisions 2 and 3
Revision 2 as of 2004-10-08 14:46:54
Size: 1188
Editor: sdrc
Revision 3 as of 2009-09-20 23:46:34
Size: 1188
Editor: localhost
Comment: converted to 1.6 markup
No differences found!

Author: Xavier Lawrence

I tried to "portletize" the simple struts-blank (struts-blank) example that comes with Struts. To do so, I took the struts-config.xml file of the example and modified it use the struts portal bridge of Jetspeed (see the Struts Portlet MailReader Demo for more information).

I also changed the web.xml file getting all the inspiration from the Struts Portlet MailReader Demo web.xml file.

After correctly deploying the application onto Jetspeed, and creating a proper psml page for my custom portlet, Tomcat started to print out some ClassCastExceptions when I was trying to access the portlet:


  • at org.apache.struts.tiles.TilesRequestProcessor.initDefinitionsMapping(TilesRequestProcessor.java:86)

After searching a bit to find out if other users had encountered the same problem, I found someone who had solved the problem. The solution was simply not to use the struts-config.xml file as a starter for a custom application (Don't ask me why...). So actually, I simply took another struts-config.xml file and customized it and it worked fine.

Jetspeed2/ClassCastExceptionWithStruts (last edited 2009-09-20 23:46:34 by localhost)