Non-serializable attribute

  • Robert

    Robert - 2007-07-13

    Hi, I'm trying to use the Tutorial.
    I only want to pass a new param to the
    The jsp looks like the original from the Tutorial, I added the lines:

    <%@ page language="java" import="*, java.util.*," session="true" %>
    <% String foo = new String("bar"); %>
    <cewolf:producer id="pageViews">
    <cewolf:param name="faktor" value="<%=(Serializable)foo %>"></cewolf:param>

    The PageViewCountData Class does nothing with "foo" but everytime i call the JSP, i get the error:

    09:54:55,366 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
    java.lang.IllegalArgumentException: setAttribute: Non-serializable attribute

    I am using JBoss and Struts

    Can anybody help me please?

    • Robert

      Robert - 2007-07-13

      it seems to be an error at JBoss or Struts or anything else.
      With Tomcat all works fine.

    • Robert

      Robert - 2007-07-13

      I've got it!
      The path to overlib.js in the web.xml-file was wrong.


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks