0 Replies Latest reply on Sep 10, 2007 5:57 PM by Joe Greene

    stylesheets not applied for RF component - exception thrown

    Joe Greene Novice

      Hello -
      I have a simple example JSF app using Seam, JSP (can't use facelets), and Richfaces in OC4J. Currently, I'm only trying to display a <rich:panel component. The page loads, but only the text portions of the panel are displayed (just the facet header text, and the content text). No styles are applied - in other words, you can't tell by looking at the browser window that I'm trying to display a <rich:panel component.

      The app works fine in tomcat! The OC4J application log displays this exception message once for each stylesheet that the richfaces framework automatically generates and writes to the page:

      07/09/10 16:14:28.367 aki_example: Servlet error
      java.lang.ClassCastException: java.io.PrintWriter
       at com.sun.faces.renderkit.html_basic.HtmlResponseWriter.endElement(HtmlResponseWriter.java:300)
       at org.ajax4jsf.renderkit.compiler.PlainElement.encodeEnd(PlainElement.java:96)
       at org.ajax4jsf.renderkit.compiler.ElementBase.encode(ElementBase.java:107)
       at org.ajax4jsf.renderkit.compiler.ElementBase.encode(ElementBase.java:105)
       at org.ajax4jsf.renderkit.compiler.ElementBase.encode(ElementBase.java:105)
       at org.ajax4jsf.renderkit.compiler.ElementBase.encode(ElementBase.java:105)
       at org.ajax4jsf.renderkit.compiler.RootElement.encode(RootElement.java:64)
       at org.ajax4jsf.renderkit.compiler.ElementBase.encode(ElementBase.java:73)
       at org.ajax4jsf.resource.TemplateCSSRenderer.send(TemplateCSSRenderer.java:81)
       at org.ajax4jsf.resource.InternetResourceBase.send(InternetResourceBase.java:373)
       at org.ajax4jsf.resource.ResourceLifecycle.send(ResourceLifecycle.java:89)
       at org.ajax4jsf.resource.InternetResourceService.load(InternetResourceService.java:336)
       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:198)
       at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:144)
       at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:265)
       at com.evermind[Oracle Containers for Java EE (11.1.1.0.0) Technology Preview].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:617)
       at com.evermind[Oracle Containers for Java EE (11.1.1.0.0) Technology Preview].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
       at com.evermind[Oracle Containers for Java EE (11.1.1.0.0) Technology Preview].server.http.HttpRequestHandler.doDispatchRequest(HttpRequestHandler.java:889)
       at com.evermind[Oracle Containers for Java EE (11.1.1.0.0) Technology Preview].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:797)
       at com.evermind[Oracle Containers for Java EE (11.1.1.0.0) Technology Preview].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:607)
       at com.evermind[Oracle Containers for Java EE (11.1.1.0.0) Technology Preview].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:376)
       at com.evermind[Oracle Containers for Java EE (11.1.1.0.0) Technology Preview].server.http.HttpRequestHandler.run(HttpRequestHandler.java:161)
       at com.evermind[Oracle Containers for Java EE (11.1.1.0.0) Technology Preview].server.http.HttpRequestHandler.run(HttpRequestHandler.java:142)
       at oracle.oc4j.network.ServerSocketReadHandler$ClientRunnable.run(ServerSocketReadHandler.java:275)
       at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
       at java.lang.Thread.run(Thread.java:595)
      


      Does anyone know of a configuration issue with OC4J that could be causing this? Thanks for any help.