Search code examples
webspheretridiontridion-2011tridion-content-delivery

Tridion CWA 2011 Binaries Return 404 Until Refreshed


My client is having an issue after upgrading from CWA 1.5 to CWA 2011 running on WebSphere. The issue is that any binary resources requested return a 404. When the request is resubmitted (i.e. the page is refreshed/reloaded), then they load.

I have no access to their environment and have to get all the config files via third party. I was wondering if anyone has any ideas off the top of their heads on what could be causing these 404s on binaries?


Solution

  • For WebSphere 7, the default servlet is known as the FileServlet, and so the following should work:

    <servlet>
    <servlet-name>FileServlet</servlet-name>
    <servlet-class>
    com.ibm.ws.webcontainer.servlet.SimpleFileServlet 
    </servlet-class>
    </servlet>
    
    
    <servlet-mapping>
      <servlet-name>FileServlet</servlet-name>
      <url-pattern>*.css</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
      <servlet-name>FileServlet</servlet-name>
      <url-pattern>*.jpg</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
      <servlet-name>FileServlet</servlet-name>
      <url-pattern>*.js</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
      <servlet-name>FileServlet</servlet-name>
      <url-pattern>*.gif</url-pattern>
    </servlet-mapping>