File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Struts Commons File Upload Clustered environment Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts Commons File Upload Clustered environment" Watch "Struts Commons File Upload Clustered environment" New topic

Struts Commons File Upload Clustered environment

Sumanth Tarigopula

Joined: Feb 21, 2002
Posts: 15
We are running Weblogic 7.0 in a clustered environment and keep getting session replicate errors during file upload. We are using Struts Commons file upload package and the logs indicate some objects might not be serialized. Has anyone run into this issue? Looking into the struts source, an object FormFile within struts does not implement serializable. Is this the reason we are running into issues? Is there a work around for this problem?
Thanks and regards,
[ December 18, 2003: Message edited by: starigopula ]
Rick Hightower
Ranch Hand

Joined: Feb 20, 2002
Posts: 350
Change the Action mapping to use the ActionForm from Request scope. Then it would never try to replicate the form. (Session scope gets shared not Request scope.)

Rick Hightower is CTO of Mammatus which focuses on Cloud Computing, EC2, etc. Rick is invovled in Java CDI and Java EE as well. linkedin,twitter,blog
I agree. Here's the link:
subject: Struts Commons File Upload Clustered environment
jQuery in Action, 3rd edition