3 Replies Latest reply on Nov 17, 2008 1:27 PM by ops

    Isolating MyFaces-jars in a web application?

    ops

      everybody,

      I know that JBoss 4.2 ships with the ri implementation of JSF. It is also clear to me, that i have to set the WAR_BUNDLES_JSF_IMPL-Setting in my web.xml if I want to activate MyFaces.
      But - just to understand that - why is it impossible just to create a loader repository for the web application and to turn the java2ParentDelegation off? This should make jboss load only the included jars of the war-application instead of using those built into the server. But obviously this leads to exceptions saying that classes are missing (which are definitely bundled in my war!!!). Did I get anything wrong?

      Thanks for explanations,
      Oliver.

        • 1. Re: Isolating MyFaces-jars in a web application?
          asingh102

          try setting false

          in jboss-service.xml in <jboss-4.2.3.GA>server\default\deploy\jboss-web.deployer\META-INF

          • 2. Re: Isolating MyFaces-jars in a web application?
            asingh102

            set attribute name Java2ClassLoadingCompliance to false in in jboss-service.xml in <jboss-4.2.3.GA>server\default\deploy\jboss-web.deployer\META-INF

            • 3. Re: Isolating MyFaces-jars in a web application?
              ops

              Hi,

              sorry for the delay. I already set my Java2ClassLoadingCompliance to false.

               <!-- Get the flag indicating if the normal Java2 parent first class
               loading model should be used over the servlet 2.3 web container first
               model.
               -->
               <attribute name="Java2ClassLoadingCompliance">false</attribute>
              
              


              I found out that everything works fine when I change to the UseJBossWebLoader, but this doesn´t make sense to me. Why is the Java2ClassLoadingCompliance flag in jboss-service ignored? Am I really forced to use the unified class loader? Even if I set it in my jboss-web.xml, there is no effect:

              <jboss-web>
               <class-loading java2ClassLoadingCompliance="false"/> ...
              
              


              This is really confusing...

              Greets,
              Oliver