GeeCON Prague 2014*
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


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts Commons File Upload Clustered environment" Watch "Struts Commons File Upload Clustered environment" New topic
Author

Struts Commons File Upload Clustered environment

Sumanth Tarigopula
Greenhorn

Joined: Feb 21, 2002
Posts: 15
Hello,
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,
Sumanth
[ December 18, 2003: Message edited by: starigopula ]
Rick Hightower
Author
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Struts Commons File Upload Clustered environment