3 Replies Latest reply on Jun 10, 2009 8:51 AM by Nick Belaevski

    Problem loading rich:calendar icon

    Steven De Groote Newbie

      We are experiencing strange problems with richfaces running on a Sun webserver 9 (glassfish). For some reason, sometimes the automatically generated icons that accompany a rich:calendar component are not visible.

      Here is a fragment of the log:

      [09/Jun/2009:18:22:35] failure ( 1549): for host 172.17.65.211 trying to GET /DLAG/a4j/g/3_2_2.GAorg.richfaces.renderkit.html.iconimages.CalendarSeparator/DATB/eAH7!!8!AAX9Av4_.jsf, service-j2ee reports: StandardWrapperValve[Faces Servlet]: PWC1406: Servlet.service() for servlet Faces Servlet threw exception
      java.lang.NoClassDefFoundError
       at java.lang.Class.forName0(Native Method)
       at java.lang.Class.forName(Class.java:164)
       at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:68)
       at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1141)
       at org.ajax4jsf.resource.Java2Dresource.getImage(Java2Dresource.java:115)
       at org.ajax4jsf.resource.Java2Dresource.send(Java2Dresource.java:89)
       at org.ajax4jsf.resource.ResourceLifecycle.sendResource(ResourceLifecycle.java:221)
       at org.ajax4jsf.resource.ResourceLifecycle.send(ResourceLifecycle.java:157)
       at org.ajax4jsf.resource.InternetResourceService.load(InternetResourceService.java:335)
       at org.ajax4jsf.cache.LRUMapCache.load(LRUMapCache.java:116)
       at org.ajax4jsf.cache.LRUMapCache.get(LRUMapCache.java:87)
       at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:195)
       at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:141)
       at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:500)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:217)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
       at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:217)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
       at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:255)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
       at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
       at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:556)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:187)
       at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
       at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:556)
       at com.sun.webserver.connector.nsapi.NSAPIProcessor.service(NSAPIProcessor.java:160)
      
      [09/Jun/2009:18:22:35] failure ( 1549): for host 172.17.65.211 trying to GET /DLAG/a4j/g/3_2_2.GAorg.richfaces.renderkit.html.iconimages.CalendarSeparator/DATB/eAH7!!8!AAX9Av4_.jsf, service-j2ee reports: ApplicationDispatcher[/DLAG] PWC1231: Servlet.service() for servlet jsp threw exception
      java.lang.RuntimeException: Cannot find FacesContext
       at javax.faces.webapp.UIComponentClassicTagBase.getFacesContext(UIComponentClassicTagBase.java:1811)
       at javax.faces.webapp.UIComponentClassicTagBase.setJspId(UIComponentClassicTagBase.java:1628)
       at org.apache.jsp.includes.header_jsp._jspx_meth_f_subview_0(Unknown Source)
       at org.apache.jsp.includes.header_jsp._jspService(Unknown Source)
       at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:80)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:917)
       at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
       at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:457)
       at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:351)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:917)
       at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:398)
       at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:792)
       at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:630)
       at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:548)
       at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:984)
       at org.apache.jsp.error_jsp._jspService(Unknown Source)
       at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:80)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:917)
       at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
       at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:457)
       at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:351)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:917)
       at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:398)
       at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:792)
       at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:474)
       at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:353)
       at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:498)
       at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:387)
       at org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:326)
       at org.apache.catalina.core.StandardHostValve.postInvoke(StandardHostValve.java:205)
       at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:587)
       at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:556)
       at com.sun.webserver.connector.nsapi.NSAPIProcessor.service(NSAPIProcessor.java:160)
      

      This happens after stoppig the app, changing some settings (independent of richfaces) and starting the app again. Sometimes it works, sometimes it doesn't.

      Any ideas on why this could be happening?

      Thank you,
      Steven