6 Replies Latest reply on Jun 10, 2016 8:29 AM by Siva P

    RF 4.5.13 default images are not loading,could not load the image error?

    Siva P Master

      Hello,

       

      Why this below error is occurring.?? RF is not loading the default images from richfaces resource section. None of the images are loaded.All are showing the same error.

      Image:

      Default_Images.png

        • 1. Re: RF 4.5.13 default images are not loading,could not load the image error?
          Michal Petrov Master

          Have you tried clearing your cache? Or packed resources?

          • 2. Re: RF 4.5.13 default images are not loading,could not load the image error?
            Siva P Master

            Yes.I have tried clearing my Browser cache and Jboss EAP 6.4 server cache under standalone folder.

            But still the error remains same.Its not loading the default images from Richfaces 4.5.13.???

             

            web.xml:

            <context-param>

                    <param-name>org.richfaces.skin</param-name>

                    <param-value>blueSky</param-value>

                </context-param>

            • 3. Re: RF 4.5.13 default images are not loading,could not load the image error?
              Michal Petrov Master

              It's probably some configuration issue, check what filters you're using (web.xml) and try disabling them.

              • 4. Re: RF 4.5.13 default images are not loading,could not load the image error?
                Siva P Master

                Hi Petrov,

                 

                I am sharing my web.xml file for your reference,

                 

                WEB.XML:

                <?xml version="1.0" encoding="UTF-8"?>

                <web-app id="WebApp_ID" version="3.0"

                    xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

                    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">

                    <display-name>SimpleReporting</display-name>   

                    <context-param>

                        <param-name>facelets.DEVELOPMENT</param-name>

                        <param-value>true</param-value>

                    </context-param>

                    <context-param>

                        <param-name>facelets.REFRESH_PERIOD</param-name>

                        <param-value>-1</param-value>

                    </context-param>

                    <context-param>

                        <param-name>javax.faces.DEFAULT_SUFFIX</param-name>

                        <param-value>.xhtml</param-value>

                    </context-param>   

                   

                    <context-param>

                        <param-name>com.sun.faces.responseBufferSize</param-name>

                        <param-value>100000</param-value>

                    </context-param>

                 

                    <context-param>

                        <param-name>facelets.BUFFER_SIZE</param-name>   

                        <param-value>100000</param-value>

                    </context-param>

                 

                    <context-param>

                        <param-name>com.sun.faces.externalizeJavaScript</param-name>

                        <param-value>true</param-value>

                    </context-param>

                 

                      <context-param>

                        <param-name>org.richfaces.enableControlSkinning</param-name>

                        <param-value>true</param-value>

                    </context-param>

                 

                    <context-param>

                        <param-name>org.richfaces.enableControlSkinningClasses</param-name>

                        <param-value>false</param-value>

                    </context-param>

                   

                    <!-- Plugging the "Blue Sky" skin into the project -->

                    <context-param>

                        <param-name>org.richfaces.skin</param-name>

                        <param-value>blueSky</param-value>

                    </context-param>

                   

                    <!-- Output text children needs for display tooltip with core jsf tags -->

                    <context-param>

                        <param-name>com.sun.faces.allowTextChildren</param-name>

                        <param-value>true</param-value>

                    </context-param>

                   

                   

                    <filter>

                        <filter-name>Seam Filter</filter-name>

                        <filter-class>org.jboss.seam.servlet.SeamFilter</filter-class>

                    </filter>

                    <filter-mapping>

                        <filter-name>Seam Filter</filter-name>

                        <url-pattern>/*</url-pattern>

                    </filter-mapping>

                    <listener>

                        <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>

                    </listener>

                    <servlet>

                        <servlet-name>Faces Servlet</servlet-name>

                        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>

                        <load-on-startup>1</load-on-startup>

                    </servlet>

                    <servlet>

                        <servlet-name>Seam Resource Servlet</servlet-name>

                        <servlet-class>org.jboss.seam.servlet.SeamResourceServlet</servlet-class>

                    </servlet>

                    <servlet>

                        <servlet-name>Document Store Servlet</servlet-name>

                        <servlet-class>org.jboss.seam.document.DocumentStoreServlet</servlet-class>

                    </servlet>

                    <servlet-mapping>

                        <servlet-name>Faces Servlet</servlet-name>

                        <url-pattern>*.seam</url-pattern>

                    </servlet-mapping>

                    <servlet-mapping>

                        <servlet-name>Seam Resource Servlet</servlet-name>

                        <url-pattern>/seam/resource/*</url-pattern>

                    </servlet-mapping>

                    <servlet-mapping>

                        <servlet-name>Document Store Servlet</servlet-name>

                        <url-pattern>*.csv</url-pattern>

                    </servlet-mapping>

                    <servlet-mapping>

                        <servlet-name>Document Store Servlet</servlet-name>

                        <url-pattern>*.xls</url-pattern>

                    </servlet-mapping>   

                    <welcome-file-list>

                        <welcome-file>index.html</welcome-file>

                        <welcome-file>index.htm</welcome-file>

                        <welcome-file>index.jsp</welcome-file>

                        <welcome-file>default.html</welcome-file>

                        <welcome-file>default.htm</welcome-file>

                        <welcome-file>default.jsp</welcome-file>

                        <welcome-file>reporting.xhtml</welcome-file>

                    </welcome-file-list>

                    <security-constraint>

                        <display-name>Restrict raw XHTML Documents</display-name>

                        <web-resource-collection>

                            <web-resource-name>XHTML</web-resource-name>

                            <url-pattern>*.xhtml</url-pattern>

                        </web-resource-collection>

                        <auth-constraint />

                    </security-constraint>

                    <mime-mapping>

                            <extension>ecss</extension>

                            <mime-type>text/css</mime-type>

                        </mime-mapping>

                        <mime-mapping>

                            <extension>xcss</extension>

                            <mime-type>text/css</mime-type>

                        </mime-mapping>

                </web-app>

                 

                Attached latest image:.....

                For Calender icon i have added manually...from my local path.

                Image Loading Issue.png

                jarfiles.png

                 

                Is this is an issue in RF?

                Thank you.

                • 5. Re: RF 4.5.13 default images are not loading,could not load the image error?
                  Michal Petrov Master

                  Have you tried disabling the Seam Filter? RichFaces expects the resource at that URL, if it's not found Seam is probably redirecting the request somewhere else.

                  • 6. Re: RF 4.5.13 default images are not loading,could not load the image error?
                    Siva P Master

                    By Adding the below code in web.xml solve my problem.

                    <!-- This is applicable only for the production version and quality version of the application. -->

                         <context-param>

                            <param-name>org.richfaces.resourceOptimization.enabled</param-name>

                            <param-value>true</param-value>

                        </context-param>

                    <context-param>

                            <param-name>org.richfaces.enableControlSkinning</param-name>

                            <param-value>false</param-value>

                        </context-param>

                     

                        <context-param>

                            <param-name>org.richfaces.enableControlSkinningClasses</param-name>

                            <param-value>false</param-value>

                        </context-param>

                    Also now images are loaded,

                    short_Hand.png