I've done some debugging and I can see Struts dispatcher consuming InputStream, by the time CXF tries to read it it;s already been consumed.
It is possible to configure Struts2 to avoid preprocessing multipart/form-data payloads ? Cheers, Sergey On Sun, May 1, 2011 at 5:52 PM, Sergey Beryozkin <[email protected]> wrote: > Thanks, I'll have a look, > cheers, Sergey > > On Sun, May 1, 2011 at 12:13 PM, Shashank Rachamalla > <[email protected]> wrote: >> On Fri, Apr 29, 2011 at 3:32 PM, Sergey Beryozkin >> <[email protected]>wrote: >> >>> HI >>> >>> >> >>> >> Do you have it working with a non-CXF server ? >>> >> >>> > >>> > We are using apache tomcat. >>> > >>> OK, I thought you were referring to some other framework facilitating >>> the processing of multiparts... >>> >>> > >>> >> A similar issue was reported recently and I also could not reproduce >>> >> it, as far as I recall Struts was involved. >>> >> >>> > >>> > very true. i have tried disabling struts2 dispatcher and everything works >>> > fine. any pointers in this direction ? >>> > >>> >>> I've no idea why Struts2 dispatcher may be affecting it. It could be a >>> bug in Struts2 or it could be that CXF is confused with what Struts2 >>> does about preprocessing/wrapping the HTTP request. >>> >>> I'm interested in investigating this issue further, but I need some >>> help in setting the project up. >>> Can you attach a sample war (without CXF libs) to JIRA ? Ot better >>> yet, a Maven-based project ? >>> >> >> I have created a bug and attached a maven web app to it. >> https://issues.apache.org/jira/browse/CXF-3481 >> please let me know if you need further help. >> >> >>> There's definitely some issue there with combining Struts2 & CXF re >>> dealing with multiparts, so it would be good if we could fix it >>> >> >>> thanks, Sergey >>> > >>> >> >> >> >> -- >> Regards, >> Shashank Rachamalla >> > -- Sergey Beryozkin Application Integration Division of Talend http://sberyozkin.blogspot.com
