-
1. Re: Setting up classloaders to override JSF version in JBoss
wolfgangknauf Dec 8, 2009 9:15 AM (in response to hirowla)Hi Ian,
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
Wolfgang -
2. Re: Setting up classloaders to override JSF version in JBoss
hirowla Dec 8, 2009 9:14 PM (in response to hirowla)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.
Thanks,
Ian -
4. Re: Setting up classloaders to override JSF version in JBoss
hirowla Dec 9, 2009 7:22 AM (in response to hirowla)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.
-
5. Re: Setting up classloaders to override JSF version in JBoss
hirowla Dec 18, 2009 6:51 PM (in response to hirowla)Are those posts relevant to JBoss 5 and 6 still, given the age of those posts? -
6. Re: Setting up classloaders to override JSF version in JBoss
jaikiran Dec 19, 2009 2:25 AM (in response to hirowla)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.
-
7. Re: Setting up classloaders to override JSF version in JBoss
raj09 Dec 19, 2009 10:40 AM (in response to hirowla)Ian,
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.
<jboss-app>
<loader-repository>
com.example:loader=exampleEAR.ear
<loader-repository-config>
java2ParentDelegation=false
</loader-repository-config>
</loader-repository>
</jboss-app>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.
Thanks!!!
-
8. Re: Setting up classloaders to override JSF version in JBoss
hirowla Dec 22, 2009 4:57 AM (in response to raj09)No solution as yet.
Maybe you could try putting the Faces libraries in the lib/ directory of the EAR. Tell us how that goes.