6 Replies Latest reply on Nov 7, 2007 3:47 AM by Paulo Assunção

    ajax4jsf ResourceNotFoundException

    first last Newbie

      I am getting the following exception after upgrading to seam 2 CR1:

      org.ajax4jsf.resource.ResourceNotFoundException: Resource not registered : org.richfaces.renderkit.html.images.TreeLineLastImage
       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)
      
      


      The xhtml page that is giving this error contains rich:tree which is displayed alright and works but I do not like the exception. I did not use to get this exception with the ajax4jsf & richfaces version with seam1.2.1. Any idea how to fix this? I also do not understand why it is looking for TreeLineLastImage, in my rich:tree I have set showConnectingLines="false" (i am guessing these are related).



        • 2. Re: ajax4jsf ResourceNotFoundException
          first last Newbie


          Thanks! that did it.

          • 3. Re: ajax4jsf ResourceNotFoundException
            Stateless Bean Novice

            I get this error too, how can I fix this? CTRL + F5 did not helped.

            I use Seam 2.0. CR with rich faces

            • 4. Re: ajax4jsf ResourceNotFoundException
              Paulo Assunção Newbie

              Hi all,

              I am with a similar problem. I am using a panelMenu and when I try this code:

              <f:view>
              <rich:panelMenu event="onmouseover" mode="none" expandSingle="true" width="180px">
              <rich:panelMenuGroup label="Grupo 1" name="group1" expandMode="none">
              <rich:panelMenuGroup label="Item 1.1" expandMode="none">
              <rich:panelMenuItem mode="none" onclick="document.location.href='http://labs.jboss.com/jbossrichfaces/">
              <h:outputLink value="http://labs.jboss.com/jbossrichfaces/">
              <h:outputText value="RichFaces Home Page"></h:outputText>
              </h:outputLink>
              </rich:panelMenuItem>
              </rich:panelMenuGroup>
              <rich:panelMenuItem label="Item 1.2">
              </rich:panelMenuItem>
              <rich:panelMenuItem label="Item 1.3">
              </rich:panelMenuItem>
              </rich:panelMenuGroup>
              <rich:panelMenuGroup label="Grupo 2" name="group2" expandMode="none">
              <rich:panelMenuItem label="Item 2.1">
              </rich:panelMenuItem>
              <rich:panelMenuItem label="Item 2.2">
              </rich:panelMenuItem>
              <rich:panelMenuItem label="Item 2.3">
              </rich:panelMenuItem>
              </rich:panelMenuGroup>
              <rich:panelMenuGroup label="Grupo 3" name="group3" expandMode="none">
              <rich:panelMenuItem label="Item 3.1">
              </rich:panelMenuItem>
              <rich:panelMenuItem label="Item 3.2">
              </rich:panelMenuItem>
              <rich:panelMenuItem label="Item 3.3">
              </rich:panelMenuItem>
              </rich:panelMenuGroup>
              </rich:panelMenu>
              </f:view>

              I get:

              exception

              javax.servlet.ServletException: Static resource not found for path org.richfaces.renderkit.html.iconimages.PanelMenuIconSpacer
              javax.faces.webapp.FacesServlet.service(FacesServlet.java:249)
              org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
              org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
              org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

              root cause

              org.ajax4jsf.resource.ResourceNotFoundException: Static resource not found for path org.richfaces.renderkit.html.iconimages.PanelMenuIconSpacer
              org.ajax4jsf.resource.ResourceBuilderImpl.createStaticResource(ResourceBuilderImpl.java:450)
              org.ajax4jsf.resource.ResourceBuilderImpl.createResource(ResourceBuilderImpl.java:255)
              org.ajax4jsf.renderkit.RendererBase.getResource(RendererBase.java:152)
              org.richfaces.renderkit.PanelMenuRendererBase.getIconByType(PanelMenuRendererBase.java:115)
              org.richfaces.renderkit.PanelMenuRendererBase.insertSpacerImages(PanelMenuRendererBase.java:64)
              org.richfaces.renderkit.html.HtmlPanelMenuGroupRenderer.doEncodeBegin(HtmlPanelMenuGroupRenderer.java:116)
              org.richfaces.renderkit.html.HtmlPanelMenuGroupRenderer.doEncodeBegin(HtmlPanelMenuGroupRenderer.java:86)
              org.ajax4jsf.renderkit.RendererBase.encodeBegin(RendererBase.java:101)
              javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:788)
              org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:280)
              org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:262)
              org.richfaces.renderkit.html.HtmlPanelMenuRenderer.doEncodeChildren(HtmlPanelMenuRenderer.java:210)
              org.richfaces.renderkit.html.HtmlPanelMenuRenderer.doEncodeChildren(HtmlPanelMenuRenderer.java:205)
              org.ajax4jsf.renderkit.RendererBase.encodeChildren(RendererBase.java:121)
              javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812)
              javax.faces.component.UIComponent.encodeAll(UIComponent.java:886)
              javax.faces.component.UIComponent.encodeAll(UIComponent.java:892)
              com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:245)
              com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:176)
              org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
              org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:216)
              com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
              com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
              com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
              javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
              org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
              org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
              org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


              Someone knows what is happening? My environment is JBoss AS 4.2.1 with richfaces 3.1.1. Same code run on Tomcat 5.5 without problems.

              Thanks!

              • 5. Re: ajax4jsf ResourceNotFoundException
                Sergey Smirnov Master

                This is different exception that is mentioned at the top of the thread.
                Most likely, this is a problem with class loaded as soon as the same code works ok on tomcat.

                • 6. Re: ajax4jsf ResourceNotFoundException
                  Paulo Assunção Newbie

                  Sergei,

                  Thanks for your answer, but the root cause is the same.

                  I tested on tomcat 5.5 (jdk 1.6) + win2000 and worked fine. But when I tried on jboss 4.2.1 (jdk 1.5) + linux ubuntu I got error.

                  The link below

                  http://jira.jboss.com/jira/browse/RF-1020

                  is related with this issue? What can I try?

                  My resources-config.xml:

                  <?xml version="1.0" encoding="UTF-8"?>
                  <resource-config>

                  org.ajax4jsf.javascript.AjaxScript

                  org.ajax4jsf.javascript.PrototypeScript

                  org.ajax4jsf.javascript.DnDScript

                  org/richfaces/renderkit/html/css/dragIndicator.xcss
                  org/richfaces/renderkit/html/css/dragIndicator.xcss

                  scripts/drag-indicator.js
                  org/richfaces/renderkit/html/scripts/drag-indicator.js

                  org/richfaces/renderkit/html/scripts/dnd/dnd-common.js
                  org/richfaces/renderkit/html/scripts/dnd/dnd-common.js

                  org/richfaces/renderkit/html/scripts/json/json-dom.js
                  org/richfaces/renderkit/html/scripts/json/json-dom.js

                  org/richfaces/renderkit/html/scripts/utils.js
                  org/richfaces/renderkit/html/scripts/utils.js

                  scripts/scriptaculous/effects.js
                  org/richfaces/renderkit/html/scripts/scriptaculous/effects.js

                  org/richfaces/renderkit/html/script/processEffect.js
                  org/richfaces/renderkit/html/script/processEffect.js

                  css/panel.xcss
                  org/richfaces/renderkit/html/css/panel.xcss

                  org/richfaces/renderkit/html/scripts/browser_info.js
                  org/richfaces/renderkit/html/scripts/browser_info.js

                  css/panelbar.xcss
                  org/richfaces/renderkit/html/css/panelbar.xcss

                  scripts/panelbar.js
                  org/richfaces/renderkit/html/scripts/panelbar.js

                  org.richfaces.renderkit.html.images.SliderArrowImage

                  scripts/scriptaculous-js-1.6.5/src/slider.js
                  org/richfaces/renderkit/html/scripts/scriptaculous-js-1.6.5/src/slider.js

                  css/dataFilterSlider.xcss
                  org/richfaces/renderkit/html/css/dataFilterSlider.xcss

                  css/gmap.xcss
                  org/richfaces/renderkit/html/css/gmap.xcss

                  script/gmap.js
                  org/richfaces/renderkit/html/script/gmap.js

                  script/virtualEarth.js
                  org/richfaces/renderkit/html/script/virtualEarth.js

                  css/virtualEarth.xcss
                  org/richfaces/renderkit/html/css/virtualEarth.xcss

                  css/spacer.xcss
                  org/richfaces/renderkit/html/css/spacer.xcss

                  images/spacer.gif
                  org/richfaces/renderkit/html/images/spacer.gif

                  scripts/togglePanel.js
                  org/richfaces/renderkit/html/scripts/togglePanel.js

                  css/toggleControl.xcss
                  org/richfaces/renderkit/html/css/toggleControl.xcss

                  org.richfaces.renderkit.images.TabStripeImage

                  org.richfaces.renderkit.images.TabGradientA

                  org.richfaces.renderkit.images.TabGradientB

                  org.ajax4jsf.javascript.ImageCacheScript

                  org/ajax4jsf/javascript/scripts/form.js
                  org/ajax4jsf/javascript/scripts/form.js

                  scripts/tabPanel.js
                  org/richfaces/renderkit/html/scripts/tabPanel.js

                  css/tabPanel.xcss
                  org/richfaces/renderkit/html/css/tabPanel.xcss

                  scripts/simpleTogglePanel.js
                  org/richfaces/renderkit/html/scripts/simpleTogglePanel.js

                  css/simpleTogglePanel.xcss
                  org/richfaces/renderkit/html/css/simpleTogglePanel.xcss

                  css/toolBar.xcss
                  org/richfaces/renderkit/html/css/toolBar.xcss

                  org.richfaces.renderkit.html.images.SliderFieldGradient

                  org.richfaces.renderkit.html.images.SliderTrackGradient

                  org.richfaces.renderkit.html.images.SliderArrowSelectedImage

                  org/richfaces/renderkit/html/images/spacer.gif
                  org/richfaces/renderkit/html/images/spacer.gif

                  script/SliderScript.js
                  org/richfaces/renderkit/html/script/SliderScript.js

                  org/richfaces/renderkit/html/scripts/events.js
                  org/richfaces/renderkit/html/scripts/events.js

                  css/slider.xcss
                  org/richfaces/renderkit/html/css/slider.xcss

                  org.richfaces.renderkit.html.images.buttons.SpinnerButtonUp

                  org.richfaces.renderkit.html.images.buttons.SpinnerButtonDown

                  css/spinner.xcss
                  org/richfaces/renderkit/html/css/spinner.xcss

                  script/SpinnerScript.js
                  org/richfaces/renderkit/html/script/SpinnerScript.js

                  org.richfaces.renderkit.html.images.TreeLineCollapsedImage

                  org.richfaces.renderkit.html.images.TreeLineExpandedImage

                  org.richfaces.renderkit.html.images.TreeLineImage

                  org.richfaces.renderkit.html.images.TreeLineLastImage

                  org.richfaces.renderkit.html.images.TreeLineNodeImage

                  org.richfaces.renderkit.html.images.TreeMinusImage

                  org.richfaces.renderkit.html.images.TreePlusImage

                  org/richfaces/renderkit/html/scripts/tree-item-dnd.js
                  org/richfaces/renderkit/html/scripts/tree-item-dnd.js

                  org/richfaces/renderkit/html/scripts/dnd/dnd-draggable.js
                  org/richfaces/renderkit/html/scripts/dnd/dnd-draggable.js

                  org/richfaces/renderkit/html/scripts/json/json-mini.js
                  org/richfaces/renderkit/html/scripts/json/json-mini.js

                  org/richfaces/renderkit/html/scripts/form.js
                  org/richfaces/renderkit/html/scripts/form.js

                  org/richfaces/renderkit/html/scripts/tree-item.js
                  org/richfaces/renderkit/html/scripts/tree-item.js

                  images/iconFolder.gif
                  org/richfaces/renderkit/html/images/iconFolder.gif

                  images/iconLeaf.gif
                  org/richfaces/renderkit/html/images/iconLeaf.gif

                  css/tree.xcss
                  org/richfaces/renderkit/html/css/tree.xcss

                  org/richfaces/renderkit/html/scripts/tree-selection.js
                  org/richfaces/renderkit/html/scripts/tree-selection.js

                  org/richfaces/renderkit/html/scripts/drag-indicator.js
                  org/richfaces/renderkit/html/scripts/drag-indicator.js

                  org/richfaces/renderkit/html/scripts/tree.js
                  org/richfaces/renderkit/html/scripts/tree.js

                  org/richfaces/renderkit/html/scripts/dnd/dnd-dropzone.js
                  org/richfaces/renderkit/html/scripts/dnd/dnd-dropzone.js

                  css/table.xcss
                  org/richfaces/renderkit/html/css/table.xcss

                  org/richfaces/renderkit/html/scripts/modalPanelBorders.js
                  org/richfaces/renderkit/html/scripts/modalPanelBorders.js

                  org/richfaces/renderkit/html/css/modalPanel.xcss
                  org/richfaces/renderkit/html/css/modalPanel.xcss

                  org/richfaces/renderkit/html/scripts/modalPanel.js
                  org/richfaces/renderkit/html/scripts/modalPanel.js

                  css/datascroller.xcss
                  org/richfaces/renderkit/html/css/datascroller.xcss

                  css/menucomponents.xcss
                  org/richfaces/renderkit/html/css/menucomponents.xcss

                  org.richfaces.renderkit.html.images.background.MenuListBackground

                  css/dropdownmenu.xcss
                  org/richfaces/renderkit/html/css/dropdownmenu.xcss

                  scripts/menu.js
                  org/richfaces/renderkit/html/scripts/menu.js

                  org/richfaces/renderkit/html/css/tooltip.xcss
                  org/richfaces/renderkit/html/css/tooltip.xcss

                  org/richfaces/renderkit/html/scripts/tooltip.js
                  org/richfaces/renderkit/html/scripts/tooltip.js

                  org/richfaces/renderkit/html/scripts/panelMenu.js
                  org/richfaces/renderkit/html/scripts/panelMenu.js

                  org/richfaces/renderkit/html/css/panelMenu.xcss
                  org/richfaces/renderkit/html/css/panelMenu.xcss

                  org.richfaces.renderkit.html.iconimages.CalendarIcon

                  org.richfaces.renderkit.html.iconimages.DisabledCalendarIcon

                  org/richfaces/renderkit/html/css/calendar.xcss
                  org/richfaces/renderkit/html/css/calendar.xcss

                  org/richfaces/renderkit/html/scripts/scriptaculous/effects.js
                  org/richfaces/renderkit/html/scripts/scriptaculous/effects.js

                  org/richfaces/renderkit/html/scripts/calendar.js
                  org/richfaces/renderkit/html/scripts/calendar.js

                  org.richfaces.renderkit.html.iconimages.ScrollableDataTableIconSortAsc

                  org.richfaces.renderkit.html.iconimages.ScrollableDataTableIconSortDesc

                  org.richfaces.renderkit.html.iconimages.ScrollableDataTableIconSplit

                  org/richfaces/renderkit/html/scripts/scrollable-data-table.js
                  org/richfaces/renderkit/html/scripts/scrollable-data-table.js

                  org/richfaces/renderkit/html/css/scrollable-data-table.xcss
                  org/richfaces/renderkit/html/css/scrollable-data-table.xcss

                  org/richfaces/renderkit/html/scripts/extend/extend.js
                  org/richfaces/renderkit/html/scripts/extend/extend.js

                  css/highlight.css
                  org/richfaces/ui/renderkit/html/css/highlight.css

                  </resource-config>

                  Best regards!