3 Replies Latest reply on Oct 19, 2007 7:03 AM by Alan Tucker

    Images missing in headless environment

    Alan Tucker Newbie

      RichFaces components that use dynamically generated images do not display correctly when an application is deployed to Weblogic 8.1.4 on Solaris SunOS 5.8

      RichFaces 3.0.1
      java version "1.4.2_13"
      java.awt.headless=true is set.


      The dynamically generated images are not generated - e.g. missing image placeholders appear where dividers in the toolbar should be rendered. The underlying error is below.


      java.lang.NoClassDefFoundError
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:141)
      at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
      at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1041)
      at org.ajax4jsf.framework.resource.Java2Dresource.getImage(Java2Dresource.java:114)
      at org.ajax4jsf.framework.resource.Java2Dresource.send(Java2Dresource.java:88)
      at org.ajax4jsf.framework.resource.ResourceLifecycle.send(ResourceLifecycle.java:86)
      at org.ajax4jsf.framework.resource.InternetResourceService.load(InternetResourceService.java:366)
      at org.ajax4jsf.cache.LRUMapCache.load(LRUMapCache.java:116)
      at org.ajax4jsf.cache.LRUMapCache.get(LRUMapCache.java:87)
      at org.ajax4jsf.framework.resource.InternetResourceService.serviceResource(InternetResourceService.java:192)
      at org.ajax4jsf.framework.resource.InternetResourceService.serviceResource(InternetResourceService.java:141)
      at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:261)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
      at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:174)
      at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:7053)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
      at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3902)
      at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2773)
      at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
      at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)