5 Replies Latest reply on Dec 17, 2007 1:43 PM by Sergey Smirnov

    Resource not registered

    Carey Foushee Newbie

      I am constantly getting the following error even though the rich:scollableDataTable is actually working when loaded the first time. It gets this error when the page is refreshed or the return of the action on my apply button is "".

      09:42:13,687 ERROR [Engine] StandardWrapperValve[Faces Servlet]: Servlet.service() for servlet Faces Servlet threw exception
      org.ajax4jsf.resource.ResourceNotFoundException: Resource not registered : org.richfaces.renderkit.html.iconimages.ScrollableDataTableIconSplit
      at org.ajax4jsf.resource.ResourceBuilderImpl.getResource(ResourceBuilderImpl.java:393)
      at org.ajax4jsf.resource.ResourceBuilderImpl.getResourceForKey(ResourceBuilderImpl.java:337)
      at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:155)
      at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:144)
      at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:265)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:66)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:158)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
      at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
      at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
      at java.lang.Thread.run(Unknown Source)

        • 1. Re: Resource not registered
          Sergey Smirnov Master

          Does Ctrl-F5 help?

          • 2. Re: Resource not registered
            Carey Foushee Newbie

            I was wrong when I said it wasn't doing it the first time, it actually is doing it every time including the initial load. The columns are all rendering correctly however.

            I thought maybe it had something to do with the image I had in column one but thats not it.

            Here's my page:

            <f:subview id="devicelistSummaryView">

            <h:form>
            <rich:scrollableDataTable frozenColCount="1" height="400px"
            width="700px" id="deviceList_summary" rows="40" rowClasses="rowStyleEven, rowStyleOdd"
            value="#{deviceDb.deviceList}" var="device"
            sortMode="single">

            <rich:column id="name">
            <f:facet name="header"><h:outputText styleClass="headerText" value="Device Name" /></f:facet>
            <h:outputText value="#{device.name}" />
            </rich:column>

            <rich:column id="ip">
            <f:facet name="header"><h:outputText styleClass="headerText" value="IP" /></f:facet>
            <h:outputText value="#{device.ip}" />
            </rich:column>

            <rich:column id="id">
            <f:facet name="header"><h:outputText styleClass="headerText" value="Mac Address" /></f:facet>
            <h:outputText value="#{device.id}" />
            </rich:column>

            <rich:column id="type">
            <f:facet name="header"><h:outputText styleClass="headerText" value="Type" /></f:facet>
            <h:outputText value="#{device.type}" />
            </rich:column>

            <rich:column id="connected">
            <f:facet name="header"><h:outputText styleClass="headerText" value="Connected?" /></f:facet>
            <h:outputText value="#{device.connected}" />
            </rich:column>

            <rich:column id="Rules">
            <f:facet name="header"><h:outputText styleClass="headerText" value="Rules" /></f:facet>
            <h:dataTable value="#{device.customPortInfo}" var="cport">
            <h:column>
            <h:outputText value="#{cport.toString}" />
            </h:column>
            </h:dataTable>
            </rich:column>

            <rich:column id="upnp">
            <f:facet name="header">
            <f:facet name="title">
            <h:outputText styleClass="headerText" value="UPnP Enabled" />
            <h:selectBooleanCheckbox value=""/>
            </f:facet>
            </f:facet>
            <h:selectBooleanCheckbox value="#{device.upnp}"/>
            </rich:column>


            </rich:scrollableDataTable>

            <h:commandButton action="#{deviceDb.save}" value="Apply" />

            </h:form>

            </f:subview>

            • 3. Re: Resource not registered
              Sergey Smirnov Master

              So, what about Ctrl-F5?

              • 4. Re: Resource not registered
                Carey Foushee Newbie

                Yea, that fixed it. It doesn't do anymore.

                I'm not sure I understand why that was happening. I was doing complete restarts of the jboss server and it was doing it ever time, however after doing one ctrl-f5 it all went away, why is that?

                • 5. Re: Resource not registered
                  Sergey Smirnov Master

                  It is a browser cache, but not the server's one. The cache keys are changed with each new version, but not between the nightly SNAPSHOTs