File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
Arduino in Action
this week in the
General Computing
forum!
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
JavaRanch
»
Java Forums
»
Java
»
JSF
Author
Help! JSF keeps barfing: Non-serializable attribute
Philippe Desrosiers
Ranch Hand
Joined: Mar 29, 2006
Posts: 138
posted
Jul 03, 2007 10:40:00
0
I keep getting the following exception whenever I try to hit a
JSF
page:
java.lang.IllegalArgumentException: setAttribute: Non-serializable attribute org.apache.catalina.session.StandardSession.setAttribute(StandardSession.java:1255) org.apache.catalina.session.StandardSession.setAttribute(StandardSession.java:1233) org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessionFacade.java:129) com.sun.faces.context.SessionMap.put(ExternalContextImpl.java:556) com.sun.faces.application.StateManagerImpl.saveSerializedView(StateManagerImpl.java:138) com.sun.faces.taglib.jsf_core.ViewTag.doAfterBody(ViewTag.java:169) org.apache.jsp.mp.index_jsp._jspx_meth_f_view_0(index_jsp.java:113) org.apache.jsp.mp.index_jsp._jspService(index_jsp.java:61) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322) com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130) com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87) com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200) com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117) javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
The code of my JSF page is pretty simple:
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %> <f:loadBundle basename="messages" var="msg"/> <f:view>Hi there!</f:view>
What the hell could I possibly be doing wrong?
Mark Spritzler
ranger
Sheriff
Joined: Feb 05, 2001
Posts: 17243
1
I like...
posted
Jul 03, 2007 14:56:00
0
Maybe it can't find your messages.properties file?
Anyway is this the same or different than in your other post about Login?
It seems to be the same.
Mark
Perfect World Programming, LLC
-
Two Laptop Bag
-
Tube Organizer
How to Ask Questions the Smart Way FAQ
Philippe Desrosiers
Ranch Hand
Joined: Mar 29, 2006
Posts: 138
posted
Jul 03, 2007 19:15:00
0
Nope. Different. It turns out that if you have a <distributable/> tag in your web.xml, JSF barfs. Apparantly this is a
Tomcat
thing, not a JSF thing.
I agree. Here's the link:
http://zeroturnaround.com/jrebel
- it saves me about five hours per week
subject: Help! JSF keeps barfing: Non-serializable attribute
Similar Threads
Try to open JSF page in MyEclipse/JBoss
JSF not working in Jboss
NullPointerException in included JSF
Problems in JSF running with MyEclipse
Help! Using Container-managed authentication with JSF
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter