Manorrock.com / Online / Wiki Login

Jonas5x

Edit

Introduction

Unfortunately JSF 2.0 does not work out of the box. However you can run it in degraded mode.

  1. Make sure the web.xml refers to version 2.5
  2. Make sure the you create a faces-config.xml with version 2.0.
  3. Tweak your class loader. See below.
          <jonas-web-app xmlns="http://www.objectweb.org/jonas/ns"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://www.objectweb.org/jonas/ns
                http://www.objectweb.org/jonas/ns/jonas-web-app_4_0.xsd" >
             <java2-delegation-model>false</java2-delegation-model>
          </jonas-web-app>
  4. Ship the JSF 2.0 JAR inside WEB-INF/lib directory.

MainPage

Copyright © 2002-2014 Manorrock.com. All Rights Reserved.