aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
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
Author

Issue caused by distributable tag on web.xml on JBOSS

skm mishra
Greenhorn

Joined: Sep 04, 2010
Posts: 2
Hi,

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


Error:

java.lang.IllegalArgumentException: setAttribute: Non-serializable attribute at org.apache.catalina.session.StandardSession.setAttribute(StandardSession.java:1293) at org.apache.catalina.session.StandardSession.setAttribute(StandardSession.java:1254) at org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessionFacade.java:130) at org.mwolff.struts.back.BackRequestProcessor.processActionPerform(BackRequestProcessor.java:120) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:619)
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
Greenhorn

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: http://aspose.com/file-tools
 
subject: Issue caused by distributable tag on web.xml on JBOSS