title: Using Mojarra 2.2 with WebSphere 9
body: <p>I'm trying to configure WebSphere 9 to use Mojarra 2.2 and this is what I've done so far:</p>
  
  <p><strong>1 - Created a Shared Library named Faces pointing to Mojarra files:</strong>
  <a href="https://i.stack.imgur.com/ojMKf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ojMKf.png" alt="Shared Library"></a></p>
  
  <p><strong>2 - Changed the JSF implementation for the application to use Mojarra:</strong>
  <a href="https://i.stack.imgur.com/bi6y6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bi6y6.png" alt="JSF Implementation"></a></p>
  
  <p><strong>3 - Changed classloading settings:</strong>
  <a href="https://i.stack.imgur.com/64m6F.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/64m6F.png" alt="Classloading settings"></a></p>
  
  <p><strong>4 - Included the newly created library in the Shared Libraries References:</strong>
  <a href="https://i.stack.imgur.com/XqkfH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XqkfH.png" alt="Shared Libraries References"></a></p>
  
  <p>However, when I start the server, I see the following message on SystemOut.log:</p>
  
  <pre><code>[07-06-2016 10:43:44:467 BST] 0000005e application   E   Unable to obtain com.sun.faces.flow.FlowDiscoveryCDIExtension from CDI implementation.  Flows described with javax.faces.flow.builder.FlowDefinition are unavailable.
  </code></pre>
  
  <p>And the following on SystemErr.log:</p>
  
  <pre><code>[07-06-2016 10:14:44:905 BST] 0000005e SystemErr     R java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.application.ApplicationFactory. Attempting to find backup.
  [07-06-2016 10:14:44:906 BST] 0000005e SystemErr     R   at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:270)
  </code></pre>
  
  <p>What am I missing? Isn't Mojarra 2.2 compatible with WebSphere 9?
  I've already tried dozens of different combinations (MyFaces 2.2, MyFaces 2.0, parent first for classloader, parent last for classloader, isolated classloader for the library, etc), but they all failed.
  Needless to say that all my CDI beans are causing the following error:</p>
  
  <pre><code>Target unreachable, identifier 'whatever' resolved to null
  </code></pre>