setAttribute: Non-serializable attribute error

I have an application that was developed using netbeans 5 IDE and was working up until today. Now it generates the following error:

SEVERE: java.lang.IllegalArgumentException: setAttribute: Non-serializable attribute

javax.faces.el.EvaluationException: java.lang.IllegalArgumentException: setAttribute: Non-serializable attribute

The JSP code which causes the error is:

<h:outputText value="#{msgs.NotLoggedIn}"

rendered="#{! Login.loggedIn}"/>

The Java code being called is:

private boolean loggedIn = false;

public boolean isLoggedIn( ) {

System.err.println( "JsfLogin.getLoggedIn called" );

return loggedIn;

}

The application still works when built under netbeans 4.1.

What does this error mean and what could be causing it?

[818 byte] By [reichewa] at [2007-10-3 8:47:28]
# 1

Does your bean that has the loggedIn attribute implement java.io.Serializable?

Judging from this http://bill.dudney.net/roller/page/bill?entry=stocktracker_sample_application_posted it seems that Tomcat 5.5 started enforcing the requirement that everything put into session should be serializable.

evnafetsa at 2007-7-15 3:56:28 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
The bean does not implement anything, unless by some default that I am not aware of.I recreated the project with netbeans 5.5 (the one with the problem was ported from 4.1) and now the code works okay. I still don't know what is wrong with the 4.1 project.
reichewa at 2007-7-15 3:56:28 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...