voyent
Error In log: <OutputStyleRenderer> <encodeEnd> Error in OutputStyleRenderer  XML
Forum Index -> Components
Author Message
zeeshan.rb

Joined: 23/Jun/2012 00:17:20
Messages: 63
Offline


<ExternalContextImpl> <getMimeType> JSF1091: No mime type could be found for file listen.icepush.xml. To resolve this, add a mime-type mapping to the applications web.xml.
<OutputStyleRenderer> <encodeEnd> Error in OutputStyleRenderer
java.lang.RuntimeException: OutputStyle file attribute must end in .css. Current Value is [/STRApp/faces/javax.faces.resource/template.css?ln=css]
at com.icesoft.faces.component.style.OutputStyleRenderer.encodeEnd(OutputStyleRenderer.java:119)
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:883)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1659)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1655)
at org.icefaces.impl.context.DOMPartialViewContext.processPartial(DOMPartialViewContext.java:142)
at javax.faces.component.UIViewRoot.encodeChildren(UIViewRoot.java:974)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1652)
at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:388)
at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:121)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:313)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
dsinotte

Joined: 14/Nov/2006 00:00:00
Messages: 33
Offline


The logged item is likely a known issue with recent versions of WebLogic as outlined in this recent case:

http://jira.icesoft.org/browse/ICE-8951

The workaround is simple. Just add the following to your web.xml:

Code:
     <mime-mapping> 
         <extension>xml</extension> 
         <mime-type>application/xml</mime-type> 
     </mime-mapping>
 


For the second issue (the .css value), does your markup use the resource EL syntax?

Code:
#{resource['css:styles.css']}


It seems similar to this forum user's problem:

http://www.icesoft.org/JForum/posts/list/21306.page

Looking at it again, it seems that using the #{resource} EL results in the library automatically being added to the href attribute and the OutputStyleRenderer is doing a brute force check of the attribute to make sure it ends with .css.

For the time being, you probably won't be able to use the #{resource} syntax but I'll create a JIRA ticket.
dsinotte

Joined: 14/Nov/2006 00:00:00
Messages: 33
Offline


I've opened up the following JIRA for this problem:

http://jira.icesoft.org/browse/ICE-8996

Thanks for letting us know.
 
Forum Index -> Components
Go to:   
Powered by JForum 2.1.7ice © JForum Team