here is an approach which works without changing the class loader: http://www.jboss.org/community/wiki/JBoss5AndMyFaces
This also works for the sun reference implementation of JSF.
Unfortunately, you might loose injection features.
Hope this helps
Unfortunately, losing the injection features is not an option. I am quite happy to configure the classloader on the application, but I am not sure how to do so.
Do any of these still apply for JBoss 5 and 6? Some of them are dated back to 2004 when I know the classloading was different. That's what makes it really hard to tell what to do.
Are those posts relevant to JBoss 5 and 6 still, given the age of those posts?
Yes they are relevant. Although JBoss AS-5 allows to configure classloading configuration in a different set of files (for which i don't have the complete set of examples except this http://community.jboss.org/wiki/JBoss5custommetadatafiles), the earlier ones still work.
I am facing the same issue with Jboss and JSF. i am getting a classcastexception and this is because Jboss comes with its own JSF implementation jars. I tried using jboss-app.xml to tell Jboss to use my jar files in web-inf/lib. But no luck. Here is my jboss-app.xml entry.
I also tried using jboss-web.xml to define the classloarder policy but it did not help either. Please let me know if you are able to fix the issue.
No solution as yet.
Maybe you could try putting the Faces libraries in the lib/ directory of the EAR. Tell us how that goes.