JSF navigation problem

My faces-config.xml is like that:

<managed-bean>

<managed-bean-name>manufacturer</managed-bean-name>

<managed-bean-class>controller.ManufacturerController</managed-bean-class>

<managed-bean-scope>session</managed-bean-scope>

</managed-bean>

<navigation-rule>

<navigation-case>

<from-outcome>list_manufacturer</from-outcome>

<to-view-id>faces/list.jsp</to-view-id>

</navigation-case>

<navigation-case>

<from-outcome>login_failure</from-outcome>

<to-view-id>faces/main.jsp</to-view-id>

</navigation-case>

</navigation-rule>

and my controller class is:

publicclass ManufacturerController{

private Manufacturer manufacturer;

public String list(){

this.manufacturer =new Manufacturer();

return"list_manufacturer";

}

}

in index.jsp, I call list method when Liste button is clicked:

<f:view>

<h:form>

<h1><h:commandButton value="Liste" action="#{manufacturer.list}"/> </h1>

</h:form>

</f:view>

But when I run the application I get this error:

HTTP Status 500 -

type Exception report

message

descriptionThe server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: javax.faces.component.UIViewRoot cannot be cast to com.sun.faces.application.StateManagerImpl$TreeNode

root cause

java.lang.ClassCastException: javax.faces.component.UIViewRoot cannot be cast to com.sun.faces.application.StateManagerImpl$TreeNode

note The full stack traces of the exception and its root causes are available in the Sun Java System Application Server 9.1 logs.

Sun Java System Application Server 9.1

What do you think about this?

[2403 byte] By [xyzta] at [2007-11-27 9:59:34]
# 1
You don't need the to include the path to the FacesServlet in your navigation rules.
rlubkea at 2007-7-13 0:30:37 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...