Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JSF
Search Coderanch
Advance search
Google search
Register / Login
Win a copy of
Communication Patterns: A Guide for Developers and Architects
this week in the
Design and Architecture
forum!
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Ron McLeod
Paul Clapham
Devaka Cooray
Liutauras Vilda
Sheriffs:
Jeanne Boyarsky
paul wheaton
Henry Wong
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Tim Moores
Carey Brown
Mikalai Zaikin
Bartenders:
Lou Hamers
Piet Souris
Frits Walraven
Forum:
JSF
Help! JSF keeps barfing: Non-serializable attribute
Philippe Desrosiers
Ranch Hand
Posts: 138
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
Posts: 17347
11
I like...
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
-
iOS Apps
How to Ask Questions the Smart Way FAQ
Philippe Desrosiers
Ranch Hand
Posts: 138
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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 like you because you always keep good, crunchy cereal in your pantry. This tiny ad agrees:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Problems in JSF running with MyEclipse
Try to open JSF page in MyEclipse/JBoss
Help! Using Container-managed authentication with JSF
JSF not working in Jboss
NullPointerException in included JSF
More...