0

I'm using WebsphereApplicationServer 8.5.5.9

https://www.ibm.com/support/knowledgecenter/SSAW57_8.5.5/com.ibm.websphere.nd.multiplatform.doc/ae/rovr_specs.html

Java version is 1.7 But JSF is 2.0 CDI 1.0 (but this is an open question)

So I have to use OminiFaces 1.8.3 ?

Change are not possible:

I use Omnifaces in a lot of case but...

I have to write some Async Servlet

  • simple example: here

  • more complex example here

but i had

SRVE8010E: The current request does not support asynchronous servlet processing. Explanation One of the servlets or filters in the request does not support asynchronous servlets. Action Do not use asynchronous servlets or enable asynchronous processing for all the servlets and filters in the chain by adding the async-supported element to the component definitions.

Looking at the various filter; I had mine and the CacheControlFilter but removin one by one them I obtain the above error only with CacheControlFilter so I think that this filter can't be used.

    <filter>
        <filter-name>noCache</filter-name>
        <filter-class>org.omnifaces.filter.CacheControlFilter</filter-class>
    </filter>
    <filter>
        <filter-name>cache10seconds</filter-name>
        <filter-class>org.omnifaces.filter.CacheControlFilter</filter-class>
        <init-param>
            <param-name>expires</param-name>
            <param-value>10s</param-value>
        </init-param>
    </filter>
    <filter>
        <filter-name>cache6hours</filter-name>
        <filter-class>org.omnifaces.filter.CacheControlFilter</filter-class>
        <init-param>
            <param-name>expires</param-name>
            <param-value>6h</param-value>
        </init-param>
    </filter>
    <filter>
        <filter-name>cache1days</filter-name>
        <filter-class>org.omnifaces.filter.CacheControlFilter</filter-class>
        <init-param>
            <param-name>expires</param-name>
            <param-value>1d</param-value>
        </init-param>
    </filter>

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

    <filter-mapping>
        <filter-name>cache6hours</filter-name>
        <url-pattern>*.js</url-pattern>
        <url-pattern>*.css</url-pattern>
    </filter-mapping>
    <filter-mapping>
        <filter-name>cache1days</filter-name>
        <url-pattern>*.png</url-pattern>
        <url-pattern>*.jpg</url-pattern>
    </filter-mapping>
user1594895
  • 587
  • 1
  • 10
  • 31
  • Ok so the question is.. Can I filter an AsyncServlet with a WebFilter? I think it is possible. Or is the WebFilter not compatible with Async Servlet I have discovered this in using filter in Omnifaces and I haven't read nothing about That so If is possible to filter an AsyncServlet it could be useful add an async webfilter . – user1594895 Nov 27 '17 at 16:41
  • Thanks Ok but the filter for async context shouldn't be built async https://blogs.oracle.com/enterprisetechtips/asynchronous-support-in-servlet-30 – user1594895 Nov 27 '17 at 17:38

0 Answers0