简体   繁体   中英

RichFaces 3 FileUpload on Jboss EAP 7 and JSF 1.2

We are migrating from Jboss EAP 6 to Jboss EAP 7 a JSF 1.2, Richfaces 3.3 and Prettyfaces application.

Everything seems to work nice but the RichFaces FileUpload. When I upload a file it seems to perform well but the org.ajax4jsf.request.MultipartRequest gets an empty InputStream from io.undertow.servlet.spec.ServletInputStreamImpl. This new version of Jboss has moved to undertow as web server so I don't know if it has to do with it or with Java EE 7.

Doing the same action with Jboss EAP 6 y get my bytes.

What could be the cause of not getting the file bytes?

We cannot migrate to JSF 2.x right now.

Thanks!

I got it working by excluding jsf subsystem.

To keep compatibility with previous version, I have this in jboss-deployment-structure.xml

<jboss-deployment-structure>
<deployment>
    <resources>
        <resource-root path="WEB-INF/lib/bcprov-jdk16-1.46.jar"
            use-physical-code-source="true" />
    </resources>
    <exclude-subsystems>
        <subsystem name="webservices" />
        <subsystem name="jsf" />
    </exclude-subsystems>
</deployment>

The <subsystem name="jsf" /> did the trick.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM