This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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.
It is sorta covered in the JavaRanch Style Guide.
subject: Issue caused by distributable tag on web.xml on JBOSS
It's not a secret anymore!