2
votes

we are using IceFaces 3. This has been a problem since IceFaces 2.1, we just are slowing down to the point where i can start to work on it. In our log files, we are getting thousands of these errors

May 14, 2011 9:29:43 AM com.sun.faces.application.resource.ResourceHandlerImpl logMissingResource
WARNING: JSF1064: Unable to find or serve resource, rime.css, from library, org.icefaces.component.skins.

ignore the date, currently the server's time is backdated for testing.

what exactly am i missing here? i can't find anything on google about this file missing and im not sure where to start.

3

3 Answers

1
votes

try this in h:head
<link rel="stylesheet" type="text/css" href="./xmlhttp/css/rime/rime.css"/> and this in h:body

<h:body styleClass="ice-skin-rime">

Update: (http://jforum.icesoft.org/JForum/posts/list/20667.page): "With ICEfaces 3 you no longer need to have a reference to the CSS files in the head tag. This is now controlled with the context-param". like this:

<context-param>
    <param-name>org.icefaces.ace.theme</param-name>
    <param-value>rime</param-value>
</context-param> 

Also, download the posted test case and see if the style gets loaded. And ice Documentation:http://www.icesoft.org/projects/ICEfaces/documentation.jsf

0
votes

I have had similar kind of issue, use

<link rel="stylesheet" type="text/css" href="/xmlhttp/css/rime/rime.css"/>

instead of

<link rel="stylesheet" type="text/css" href="./xmlhttp/css/rime/rime.css"/>

make sure you are removing . in your href, now your rime.css file should be referenced, also make sure you have rime.css file in icefaces jars, you can see inside those jars using java decompiler

0
votes

Converting from icefaces 1.8 to icefaces 3, I have faced the same problem and solved it as below.

Refer to Icefaces-3.0.1-bin samples:

web.xml

<servlet>
    <servlet-name>Resource Servlet</servlet-name>
    <servlet-class>com.icesoft.faces.webapp.CompatResourceServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
    <servlet-name>Resource Servlet</servlet-name>
    <url-pattern>/xmlhttp/*</url-pattern>
</servlet-mapping>

That is all.