8 Replies Latest reply on Dec 22, 2009 4:57 AM by hirowla

    Setting up classloaders to override JSF version in JBoss AS.

    hirowla

      Hi, I was wondering if I can override the version of Java Service Faces for a particular application that I run inside JBoss AS. I don't want to override all versions as I have multiple applications, some of which use the old version.

      I have done this successfully in WebSphere, and I did it in the following way:


      Set the classloader to use the classes/libraries in the EAR file in preference to those in the application server main path.
      * Set the classloader to use the classes/libraries in the WAR file in preference to the EAR and the application server main class path.
      * Put my implementation of JSF into the WEB-INF/lib directory of my application.


      Would this work in JBoss? How can I set up the classloaders to do this, as I believe this isn't the default behaviour?

      Thanks,

      Ian