The main purpose of doing this migration is that my application uses JBoss Portlet Container to show some Portlets (Seam 2.2.2 + Richfaces 3.3.3) and I'm facing a ClassCastException when my Portlet try to render some Richfaces tag.

The only solution that I've found on JBoss 4.2.3.GA was to share the classloaders between Portal and Portlets, but it wasn't very practical.

Reading about JBoss 7 module classloader I thought that I would be abble to turn richfaces into a module and then share it between Portal and portlet but until now I wasn't abble to to it so.

As I said on the first post, I've an issue running my portal application along with portlets developed with seam, richfaces and portlet bridge. Going deep I've figure it out that my problem was that the portal was loaded by a different classloader than the portlet, so as the classcastexception.

That's why I've tried to turn richfaces into a module so both application and portlet could use from there instead packing then with it.