I'm having the same problem.
I'm trying to deploy a portlet that was built using a modified version of the myfaces libraries. These modified myfaces libraries are bundled into the portlet and JBoss has a diff version in JBoss/jbossweb-tomcat55.sar/jsf-libs.
I read something about deployment based scoping but this doesn't seem to work for the files that are in the JBoss/jbossweb-tomcat55.sar/jsf-libs directory.
Is there someway to configure a portlet app so that it will use the myfaces libraries from the portlet war file instead of the ones in JBoss/jbossweb-tomcat55.sar/jsf-libs ?
The JBoss docs say to delete the JBoss/jbossweb-tomcat55.sar/jsf-libs directory from JBoss, but I can't do that because then the JBoss-Portal doesn't work.
me again. I managed to get the guess-numbers sample portlet deployed to JBoss. What did I do :
1) changed the portlet.xml to use myfaces libraries
2) added the myfaces listener to web.xml
2) removed the JSF Sun RI libs from the jar.
so basically changed the sample to use Myfaces libs instead of Sun RI.
I still have an app that is Sun RI based that I want to deploy to JBoss. Toms question is very relevant. The solution on the JBoss site ( remove the JSF libs ) does not work as there are portlets in the JBoss portal that use these libs.
from the wiki
To use the JSF Reference Implementation instead of the bundled MyFaces implementation, simply delete the jbossweb-tomcat55.sar/jsf-lib directory. Then, package the RI in your WEB-INF/lib directory as usual.
this does NOT work.
JBoss itself uses these jars so when removed you cannot access the portal homepage.
If you remove the JSF libs from jsf-libs then you need to embed them into the portal webapp since the portlet manager is using JSF.
how does one go about this ? i.e. embedding the jars in the JBoss Portal webapp
i tried moving them the the server/default/lib dir but no joy. have to run so will look at it again tomorrow.
if you have any suggestions it would be great.
Paul, did you ever find a solution for this?
Did not find a solution or spend very long trying to. Switched to using the Jetspeed 2 Portal.
so after following several blogs I came to the solution that using JBoss Portal together with Sun Java Studio Creator 2 will only work by droping the Sun Faces RI and replace them with the MyFaces, is this correct?
Or is there meanwhile a new status?
@Roy: You started to do the necessary steps for integrate Sun Faces RI. Some new results?
THX & BR,
I also want to display a small JSF application as a portlet using JBoss porlat. My application uses the SUN RI libraries... Is there really no possibility to perform that? It's very important for me to know that ...