Target Unreachable, identifier resolved to null - JSF

Problem similar to: Target Unreachable, identifier resolved to null JSF 2.2 How to reference JSF managed beans which are provided in a JAR file? Identifying and solving javax.el.PropertyNotFoundException: Target Unreachable Java EE 6: Target Unreachable, identifier 'helloBean' resolved to null

But none of resolutions helped me. When I click command button (on page, please see xhtml file) I got:

An Error Occurred:
javax.el.PropertyNotFoundException: /navigate.xhtml @15,90 action="#{navigator.choosePage}": Target Unreachable, identifier 'navigator' resolved to null

I can get why. Why this bean is not visible in jsf?

Using java8, j2ee 7, tomcat 6.0.44

My pom.xml:

    <!-- JSF deps -->
    <!-- others -->

My web.xml:

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns=""







<?xml version='1.0' encoding='UTF-8'?>
<faces-config version="2.2" xmlns=""

Simple class:

package pl.sarseth.jsf;
import javax.faces.bean.ManagedBean;

@ManagedBean(name = "navigator")
public class Navigator {

    public String choosePage(){
        if(Math.random() > 0.5){
            return "result-page-1";
        } else {
            return "result-page-2";

And xhtml file:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<html xmlns=""
    <title>My JSF page</title>
    <h1>Navigate via Java</h1>
        <legend>Use Java to Navigate to Results Page</legend>
            Press button to get one of two possible results pages.<br/>
            <h:commandButton value="Go to Random Page" action="#{navigator.choosePage}"/>

Project structure is this:



As @BalusC said in comment. Problem was in tomcat 6. Had to upgrade to newer version of tomcat - 8. Many kudos.

Need Your Help

Comparing two sets of cells within a row and highlighting same-row duplicates in Excel

excel vba duplicate-data

I've got a somewhat specific task I'm trying to accomplish in Excel that appears to be beyond my depth. I've got a dataset with two five-word lists per each row/observation, like this example:

How do I specify a global HttpWebRequest timeout?

c# winforms httpwebrequest tweetinvi

I'm using a twitter library that uses HttpWebRequest internally to make requests to the twitter API. For some odd reason, the requests sometimes take a lot of time to complete (~10 minutes).