File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JBoss/WildFly and the fly likes Issue caused by distributable tag on web.xml on JBOSS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Issue caused by distributable tag on web.xml on JBOSS" Watch "Issue caused by distributable tag on web.xml on JBOSS" New topic

Issue caused by distributable tag on web.xml on JBOSS

skm mishra

Joined: Sep 04, 2010
Posts: 2

I am trying to implement the HttpSession replication in one of the app. For this i entered <distributable/> on web.xml. After this, app is throwing following error. Removing <distributable/> tag from web.xml, works fine for the app. I searched the jboss forum, but couldn't get the solution.

The exception while loading the login page. All values set in the session already implemented the Serializable interface

I need to get rid from this ASAP !!

Jboss : EnterprisePlatform-4.3.0.GA

framework : Struts


java.lang.IllegalArgumentException: setAttribute: Non-serializable attribute at org.apache.catalina.session.StandardSession.setAttribute( at org.apache.catalina.session.StandardSession.setAttribute( at org.apache.catalina.session.StandardSessionFacade.setAttribute( at org.mwolff.struts.back.BackRequestProcessor.processActionPerform( at org.apache.struts.action.RequestProcessor.process( at org.apache.struts.action.ActionServlet.process( at org.apache.struts.action.ActionServlet.doGet( at javax.servlet.http.HttpServlet.service( at javax.servlet.http.HttpServlet.service( at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( at org.apache.catalina.core.ApplicationFilterChain.doFilter( org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( at org.apache.catalina.core.ApplicationFilterChain.doFilter( at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter( at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( at org.apache.catalina.core.ApplicationFilterChain.doFilter( at org.apache.catalina.core.StandardWrapperValve.invoke( at org.apache.catalina.core.StandardContextValve.invoke( at at at org.apache.catalina.core.StandardHostValve.invoke( at org.apache.catalina.valves.ErrorReportValve.invoke( at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke( at org.apache.catalina.core.StandardEngineValve.invoke( at org.apache.catalina.connector.CoyoteAdapter.service( at org.apache.coyote.http11.Http11Processor.process( at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process( at$ at
ravikanth reddy
Ranch Hand

Joined: Aug 18, 2009
Posts: 46
Is your servers are running in clustered mode? How you have created your instance by using default or all configuration.

Ravikanth Malyala
skm mishra

Joined: Sep 04, 2010
Posts: 2
Yes, the environment, web app deployed is clustered one. I tried to deploy default. all and prod settings.
I agree. Here's the link:
subject: Issue caused by distributable tag on web.xml on JBOSS
jQuery in Action, 3rd edition