Hi

sure, will try it out. Another way is to exclude apache cxf uri from struts2
dispatcher as follows:

*change*

    <filter>
        <filter-name>struts2</filter-name>
        <filter-class>
            org.apache.struts2.dispatcher.FilterDispatcher
        </filter-class>
    </filter>

    <filter-mapping>
        <filter-name>struts2</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>

  *to*

     <filter>
        <filter-name>struts2</filter-name>
        <filter-class>
            org.apache.struts2.dispatcher.FilterDispatcher
        </filter-class>
    </filter>

    <filter-mapping>
        <filter-name>struts2</filter-name>
        <url-pattern>*.action</url-pattern>
    </filter-mapping>

    <filter-mapping>
        <filter-name>struts2</filter-name>
        <url-pattern>*.jsp</url-pattern>
    </filter-mapping>


On Mon, May 2, 2011 at 11:20 PM, Sergey Beryozkin <[email protected]>wrote:

> from
>
> http://struts.apache.org/2.0.11/docs/strutsproperties.html
>
> it looks like you just need to make sure
>
> 'struts.multipart.parser' is disabled
>
> Can you try it ?
>
> Cheers, Sergey
>
> On Mon, May 2, 2011 at 6:48 PM, Sergey Beryozkin <[email protected]>
> wrote:
> > 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
> >
>
>
>
> --
> Sergey Beryozkin
>
> Application Integration Division of Talend
> http://sberyozkin.blogspot.com
>



-- 
Regards,
Shashank Rachamalla

Reply via email to