1 Reply Latest reply on Dec 29, 2011 11:17 AM by Juan Leon

    Richfaces 4 and GAE

    Juan Leon Newbie

      Hi

       

      I tried to build a sample richfaces application to deploy on GAE with the maven archetype (http://anonsvn.jboss.org/repos/richfaces/trunk/archetypes/rf-gae-sample/src/main/resources/archetype-resources/), I'm totally new to maven and ran into some errors.  Luckily at some point I had an skelleton of the application (xmls, a view, a sample bean and libraries) which would not run itself, but gave me a fair idea of what to do, so I basically copied this structure on a new project.

       

      It partially works. I mean the ajax request and response are as expected, there are however 3 warnings that appear every time I reload the page:

       

      WARNING: Error creating resource org.richfaces.renderkit.html.images.ButtonBackgroundImage

      java.lang.NoClassDefFoundError: java.awt.image.IndexColorModel is a restricted class. Please see the Google  App Engine developer's guide for more details.

       

      WARNING: Error creating resource org.richfaces.renderkit.html.images.ButtonHoverBackgroundImage

      java.lang.NoClassDefFoundError: Could not initialize class org.richfaces.resource.ImageType

       

      WARNING: Error creating resource org.richfaces.renderkit.html.images.ButtonDisabledBackgroundImage

      java.lang.NoClassDefFoundError: Could not initialize class org.richfaces.resource.ImageType

       

      Sure this has to do with the restricted java api on GAE, but I have absolutely no idea of what I might still be missing.

       

      I found a post (http://community.jboss.org/thread/166429) where this problem is solved, however I don't know where to find the file “static-resource-mappings.properties” and I have found 3 different “resource-mappings.properties”, one on the examples that come with the distribution and two inside the richfaces jars, none of them worked.

       

      I'm not sure of what information (project structure, xml, included jars or resources) would be useful to solve this, so I'll post as you request it.

       

      Thanks

      Fuanka

        • 1. Re: Richfaces 4 and GAE
          Juan Leon Newbie

          Hi

           

          I mannaged to build the project from maven, if someone ever has the same issue the file you need has the name "static-resource-mappings.properties"

           

          this are its contents:

           

           

          ==============================

           

          org.richfaces\:inputNumberSpinner.js=org.richfaces/inputNumberSpinner.js

          org.richfaces\:close_act.gif=org.richfaces/close_act.gif

          org.richfaces\:jquery-dnd.js=org.richfaces/jquery-dnd.js

          org.richfaces\:popupPanelSizer.js=org.richfaces/popupPanelSizer.js

          org.richfaces\:reorderMarker.gif=org.richfaces/reorderMarker.gif

          org.richfaces\:boolean-converter.js=org.richfaces/boolean-converter.js

          org.richfaces\:extendedDataTable.js=org.richfaces/extendedDataTable.js

          org.richfaces\:mark_list.gif=org.richfaces/mark_list.gif

          org.richfaces.images\:chevronUpDisabled.png=%skin%/org.richfaces.images/chevronUpDisabled-4.0.0.Final.png

          org.richfaces.images\:spinnerArrowBottom.png=%skin%/org.richfaces.images/spinnerArrowBottom-4.0.0.Final.png

          org.richfaces.images\:standardButtonBgImage.png=%skin%/org.richfaces.images/standardButtonBgImage-4.0.0.Final.png

          org.richfaces\:popupList.js=org.richfaces/popupList.js

          org.richfaces.images\:comboDownButton.png=%skin%/org.richfaces.images/comboDownButton-4.0.0.Final.png

          org.richfaces\:combo_list_shadow.png=org.richfaces/combo_list_shadow.png

          org.richfaces\:regex-validator.js=org.richfaces/regex-validator.js

          org.richfaces\:extendedDataTable.ecss=%skin%/org.richfaces/extendedDataTable.css

          org.richfaces\:log.js=org.richfaces/log.js

          org.richfaces\:popupPanelBorders.js=org.richfaces/popupPanelBorders.js

          org.richfaces.images\:triangleUpDisabled.png=%skin%/org.richfaces.images/triangleUpDisabled-4.0.0.Final.png

          org.richfaces\:calendar-utils.js=org.richfaces/calendar-utils.js

          org.richfaces.images\:last.png=%skin%/org.richfaces.images/last-4.0.0.Final.png

          org.richfaces\:node_icon.gif=%skin%/org.richfaces/node_icon.gif

          org.richfaces\:fileupload.ecss=%skin%/org.richfaces/fileupload.css

          org.richfaces.images\:grid.png=%skin%/org.richfaces.images/grid-4.0.0.Final.png

          org.richfaces.images\:sliderDisabledArrowLeft.png=%skin%/org.richfaces.images/sliderDisabledArrowLeft-4.0.0.Final.png

          org.richfaces.images\:chevronDown.png=%skin%/org.richfaces.images/chevronDown-4.0.0.Final.png

          org.richfaces.images\:sliderSelectedArrowRight.png=%skin%/org.richfaces.images/sliderSelectedArrowRight-4.0.0.Final.png

          org.richfaces\:progressBar.ecss=%skin%/org.richfaces/progressBar.css

          org.richfaces\:JQuerySpinBtn.js=org.richfaces/JQuerySpinBtn.js

          org.richfaces.images\:actTabBottomBg.png=%skin%/org.richfaces.images/actTabBottomBg-4.0.0.Final.png

          org.richfaces.images\:gridSeparatorImage.gif=%skin%/org.richfaces.images/gridSeparatorImage-4.0.0.Final.gif

          org.richfaces\:popupPanel.ecss=%skin%/org.richfaces/popupPanel.css

          org.richfaces\:panelMenu.ecss=%skin%/org.richfaces/panelMenu.css

          org.richfaces\:togglePanel.js=org.richfaces/togglePanel.js

          org.richfaces\:tabPanel.js=org.richfaces/tabPanel.js

          org.richfaces\:accordion.ecss=%skin%/org.richfaces/accordion.css

          org.richfaces.images\:dsDigGrad.png=%skin%/org.richfaces.images/dsDigGrad-4.0.0.Final.png

          net.java.dev.atmosphere\:jquery-atmosphere.js=net.java.dev.atmosphere/jquery-atmosphere.js

          org.richfaces.images\:inputErrorIcon.png=%skin%/org.richfaces.images/inputErrorIcon.png-4.0.0.Final.gif

          org.richfaces.images\:sliderDisabledArrowRight.png=%skin%/org.richfaces.images/sliderDisabledArrowRight-4.0.0.Final.png

          org.richfaces\:calendar.ecss=%skin%/org.richfaces/calendar.css

          richfaces.js=richfaces.js

          org.richfaces\:status.js=org.richfaces/status.js

          org.richfaces.images\:inplaceBtnPressGrad.png=%skin%/org.richfaces.images/inplaceBtnPressGrad-4.0.0.Final.png

          org.richfaces\:datascroller.js=org.richfaces/datascroller.js

          org.richfaces\:fu-add-dis.gif=org.richfaces/fu-add-dis.gif

          org.richfaces.images\:pbAniBg.gif=%skin%/org.richfaces.images/pbAniBg-4.0.0.Final.gif

          org.richfaces\:fileupload.js=org.richfaces/fileupload.js

          org.richfaces\:dnd-draggable.js=org.richfaces/dnd-draggable.js

          richfaces-base-component.js=richfaces-base-component.js

          org.richfaces.images\:tabLineBg.png=%skin%/org.richfaces.images/tabLineBg-4.0.0.Final.png

          org.richfaces.images\:minus.png=%skin%/org.richfaces.images/minus-4.0.0.Final.png

          org.richfaces\:tooltip.js=org.richfaces/tooltip.js

          org.richfaces\:tree.ecss=%skin%/org.richfaces/tree.css

          org.richfaces.images\:disc.png=%skin%/org.richfaces.images/disc-4.0.0.Final.png

          org.richfaces\:log.ecss=%skin%/org.richfaces/log.css

          org.richfaces.images\:triangleUp.png=%skin%/org.richfaces.images/triangleUp-4.0.0.Final.png

          org.richfaces.images\:disabledCalendarIcon.png=%skin%/org.richfaces.images/disabledCalendarIcon-4.0.0.Final.png

          org.richfaces\:bg_shadow.png=org.richfaces/bg_shadow.png

          org.richfaces.images\:inputBackgroundImage.png=%skin%/org.richfaces.images/inputBackgroundImage-4.0.0.Final.png

          org.richfaces.images\:fuBtnDisGrad.png=%skin%/org.richfaces.images/fuBtnDisGrad-4.0.0.Final.png

          org.richfaces\:fu-add.gif=org.richfaces/fu-add.gif

          org.richfaces\:toolbar.js=org.richfaces/toolbar.js

          org.richfaces\:collapsible-subtable.js=org.richfaces/collapsible-subtable.js

          org.richfaces.images\:gridDisabled.png=%skin%/org.richfaces.images/gridDisabled-4.0.0.Final.png

          org.richfaces\:dnd-droppable.js=org.richfaces/dnd-droppable.js

          org.richfaces.images\:sliderArrowBottom.png=%skin%/org.richfaces.images/sliderArrowBottom-4.0.0.Final.png

          org.richfaces.images\:spinnerDisabledArrowTop.png=%skin%/org.richfaces.images/spinnerDisabledArrowTop-4.0.0.Final.png

          org.richfaces\:dnd-indicator.js=org.richfaces/dnd-indicator.js

          org.richfaces\:inputBase.js=org.richfaces/inputBase.js

          org.richfaces\:panelMenuGroup.js=org.richfaces/panelMenuGroup.js

          org.richfaces.images\:calendarButtonDown.png=%skin%/org.richfaces.images/calendarButtonDown-4.0.0.Final.png

          skinning_both.ecss=%skin%/skinning_both.css

          org.richfaces.images\:chevronDownDisabled.png=%skin%/org.richfaces.images/chevronDownDisabled-4.0.0.Final.png

          org.richfaces\:mark_changed.gif=org.richfaces/mark_changed.gif

          org.richfaces.images\:comboDisabledDownButton.png=%skin%/org.richfaces.images/comboDisabledDownButton-4.0.0.Final.png

          org.richfaces\:fu-clr.gif=org.richfaces/fu-clr.gif

          org.richfaces.images\:chevron.png=%skin%/org.richfaces.images/chevron-4.0.0.Final.png

          org.richfaces\:inputNumberSlider.ecss=%skin%/org.richfaces/inputNumberSlider.css

          org.richfaces\:datatable.ecss=%skin%/org.richfaces/datatable.css

          org.richfaces.images\:buttonBackgroundImage.png=%skin%/org.richfaces.images/buttonBackgroundImage-4.0.0.Final.png

          org.richfaces.images\:triangleLeft.png=%skin%/org.richfaces.images/triangleLeft-4.0.0.Final.png

          org.richfaces\:Autocomplete.js=org.richfaces/Autocomplete.js

          org.richfaces.images\:standardButtonPressedBgImage.png=%skin%/org.richfaces.images/standardButtonPressedBgImage-4.0.0.Final.png

          org.richfaces\:long-range-validator.js=org.richfaces/long-range-validator.js

          org.richfaces\:down_icon.gif=org.richfaces/down_icon.gif

          org.richfaces\:jquery.mousewheel.js=org.richfaces/jquery.mousewheel.js

          org.richfaces\:required-validator.js=org.richfaces/required-validator.js

          org.richfaces\:leaf_icon.gif=%skin%/org.richfaces/leaf_icon.gif

          org.richfaces\:error.png=org.richfaces/error.png

          org.richfaces\:json-dom.js=org.richfaces/json-dom.js

          org.richfaces\:menugroup.js=org.richfaces/menugroup.js

          org.richfaces\:push.js=org.richfaces/push.js

          org.richfaces\:panelMenuItem.js=org.richfaces/panelMenuItem.js

          org.richfaces.images\:autocompleteButtonGradient.png=%skin%/org.richfaces.images/autocompleteButtonGradient-4.0.0.Final.png

          org.richfaces.images\:autocompleteFieldGradient.png=%skin%/org.richfaces.images/autocompleteFieldGradient-4.0.0.Final.png

          org.richfaces\:progressBar.js=org.richfaces/progressBar.js

          org.richfaces.images\:sliderDisabledArrowBottom.png=%skin%/org.richfaces.images/sliderDisabledArrowBottom-4.0.0.Final.png

          org.richfaces.images\:sliderArrowLeft.png=%skin%/org.richfaces.images/sliderArrowLeft-4.0.0.Final.png

          org.richfaces\:collapsible-subtable-toggler.js=org.richfaces/collapsible-subtable-toggler.js

          org.richfaces\:AutocompleteBase.js=org.richfaces/AutocompleteBase.js

          org.richfaces\:msg.ecss=%skin%/org.richfaces/msg.css

          spacer.gif=spacer.gif

          org.richfaces\:tooltip.ecss=%skin%/org.richfaces/tooltip.css

          javax.faces\:jsf.js=javax.faces/jsf.js

          org.richfaces.images\:sliderSelectedArrowLeft.png=%skin%/org.richfaces.images/sliderSelectedArrowLeft-4.0.0.Final.png

          org.richfaces\:ico_ok.gif=org.richfaces/ico_ok.gif

          richfaces-selection.js=richfaces-selection.js

          org.richfaces\:inplaceInput.js=org.richfaces/inplaceInput.js

          org.richfaces.images\:dsBtnGrad.png=%skin%/org.richfaces.images/dsBtnGrad-4.0.0.Final.png

          org.richfaces.images\:triangleLeftDisabled.png=%skin%/org.richfaces.images/triangleLeftDisabled-4.0.0.Final.png

          org.richfaces.renderkit.html.BaseGradient=%skin%/org.richfaces/images/BaseGradient-4.0.0.Final.png

          org.richfaces\:icons.ecss=%skin%/org.richfaces/icons.css

          org.richfaces.images\:spinnerArrowTop.png=%skin%/org.richfaces.images/spinnerArrowTop-4.0.0.Final.png

          org.richfaces.images\:spinnerDisabledArrowBottom.png=%skin%/org.richfaces.images/spinnerDisabledArrowBottom-4.0.0.Final.png

          org.richfaces.images\:squareSeparatorImage.gif=%skin%/org.richfaces.images/squareSeparatorImage-4.0.0.Final.gif

          richfaces-event.js=richfaces-event.js

          org.richfaces.images\:buttonHoverBackgroundImage.png=%skin%/org.richfaces.images/buttonHoverBackgroundImage-4.0.0.Final.png

          org.richfaces.images\:lineSeparatorImage.gif=%skin%/org.richfaces.images/lineSeparatorImage-4.0.0.Final.gif

          org.richfaces\:list.ecss=%skin%/org.richfaces/list.css

          org.richfaces\:warning.png=org.richfaces/warning.png

          org.richfaces.images\:actRightTabBg.png=%skin%/org.richfaces.images/actRightTabBg-4.0.0.Final.png

          org.richfaces\:collapsiblePanel.js=org.richfaces/collapsiblePanel.js

          org.richfaces\:ico_cancel.gif=org.richfaces/ico_cancel.gif

          org.richfaces\:jquery.effects.highlight.js=org.richfaces/jquery.effects.highlight.js

          richfaces-jsf-log.js=richfaces-jsf-log.js

          org.richfaces\:up_icon.gif=org.richfaces/up_icon.gif

          org.richfaces\:collapsiblePanelItem.js=org.richfaces/collapsiblePanelItem.js

          org.richfaces\:ico.gif=org.richfaces/ico.gif

          org.richfaces.images\:sliderSelectedArrowBottom.png=%skin%/org.richfaces.images/sliderSelectedArrowBottom-4.0.0.Final.png

          org.richfaces.images\:chevronUp.png=%skin%/org.richfaces.images/chevronUp-4.0.0.Final.png

          org.richfaces\:menuKeyNavigation.js=org.richfaces/menuKeyNavigation.js

          org.richfaces\:ok.png=org.richfaces/ok.png

          org.richfaces\:inplaceBase.js=org.richfaces/inplaceBase.js

          org.richfaces\:tabPanel.ecss=%skin%/org.richfaces/tabPanel.css

          org.richfaces\:menuitem.js=org.richfaces/menuitem.js

          org.richfaces\:menu.js=org.richfaces/menu.js

          org.richfaces\:message.js=org.richfaces/message.js

          jquery.js=jquery.js

          org.richfaces.images\:tabBg.png=%skin%/org.richfaces.images/tabBg-4.0.0.Final.png

          org.richfaces\:inplaceInput.ecss=%skin%/org.richfaces/inplaceInput.css

          org.richfaces\:fatal.png=org.richfaces/fatal.png

          org.richfaces.images\:chevronDisabled.png=%skin%/org.richfaces.images/chevronDisabled-4.0.0.Final.png

          org.richfaces\:inplaceSelect.ecss=%skin%/org.richfaces/inplaceSelect.css

          org.richfaces\:close.gif=org.richfaces/close.gif

          org.richfaces\:datascroller.ecss=%skin%/org.richfaces/datascroller.css

          org.apache.myfaces\:oamSubmit.js=org.apache.myfaces/oamSubmit.js

          org.richfaces\:panel.ecss=%skin%/org.richfaces/panel.css

          org.richfaces.images\:calendarButtonUp.png=%skin%/org.richfaces.images/calendarButtonUp-4.0.0.Final.png

          org.richfaces.images\:inplaceBtnGrad.png=%skin%/org.richfaces.images/inplaceBtnGrad-4.0.0.Final.png

          org.richfaces\:poll.js=org.richfaces/poll.js

          org.richfaces\:jquery-ui-core.js=org.richfaces/jquery-ui-core.js

          org.richfaces.images\:chevronLeft.png=%skin%/org.richfaces.images/chevronLeft-4.0.0.Final.png

          org.richfaces\:fu-upl.gif=org.richfaces/fu-upl.gif

          org.richfaces.images\:menu_list_bg.gif=%skin%/org.richfaces.images/menu_list_bg.gif-4.0.0.Final.png

          org.richfaces\:info.png=org.richfaces/info.png

          org.richfaces\:length-validator.js=org.richfaces/length-validator.js

          org.richfaces\:inputNumberSpinner.ecss=%skin%/org.richfaces/inputNumberSpinner.css

          org.richfaces\:indicator.ecss=%skin%/org.richfaces/indicator.css

          org.richfaces\:toolbar.ecss=%skin%/org.richfaces/toolbar.css

          org.richfaces\:datatable.js=org.richfaces/datatable.js

          org.richfaces\:short-converter.js=org.richfaces/short-converter.js

          org.richfaces.images\:dotSeparatorImage.gif=%skin%/org.richfaces.images/dotSeparatorImage-4.0.0.Final.gif

          org.richfaces.images\:line.png=%skin%/org.richfaces.images/line-4.0.0.Final.png

          richfaces-utils.js=richfaces-utils.js

          org.richfaces\:accordion.js=org.richfaces/accordion.js

          org.richfaces\:accordionItem.js=org.richfaces/accordionItem.js

          jquery.position.js=jquery.position.js

          org.richfaces.images\:triangleDown.png=%skin%/org.richfaces.images/triangleDown-4.0.0.Final.png

          org.richfaces.images\:sliderArrowRight.png=%skin%/org.richfaces.images/sliderArrowRight-4.0.0.Final.png

          org.richfaces\:component-control.js=org.richfaces/component-control.js

          org.richfaces.images\:calendarSeparator.png=%skin%/org.richfaces.images/calendarSeparator-4.0.0.Final.png

          org.richfaces.images\:triangleDisabled.png=%skin%/org.richfaces.images/triangleDisabled-4.0.0.Final.png

          org.richfaces.images\:plus.png=%skin%/org.richfaces.images/plus-4.0.0.Final.png

          org.richfaces.images\:pmenu_bg_dis.png=%skin%/org.richfaces.images/pmenu_bg_dis-4.0.0.Final.png

          org.richfaces\:collapsiblePanel.ecss=%skin%/org.richfaces/collapsiblePanel.css

          org.richfaces\:popup.js=org.richfaces/popup.js

          org.richfaces.images\:buttonDisabledBackgroundImage.png=%skin%/org.richfaces.images/buttonDisabledBackgroundImage-4.0.0.Final.png

          org.richfaces\:collapsible-subtable.ecss=%skin%/org.richfaces/collapsible-subtable.css

          org.richfaces.images\:menuNodeImage.gif=%skin%/org.richfaces.images/menuNodeImage-4.0.0.Final.gif

          skinning.ecss=%skin%/skinning.css

          org.richfaces\:Autocomplete.ecss=%skin%/org.richfaces/Autocomplete.css

          org.richfaces\:select.ecss=%skin%/org.richfaces/select.css

          org.richfaces\:csv.js=org.richfaces/csv.js

          org.richfaces.images\:fuBtnGrad.png=%skin%/org.richfaces.images/fuBtnGrad-4.0.0.Final.png

          org.richfaces\:byte-converter.js=org.richfaces/byte-converter.js

          org.richfaces\:spacer.gif=org.richfaces/spacer.gif

          org.richfaces\:richfaces-csv.js=org.richfaces/richfaces-csv.js

          org.richfaces\:datagrid.ecss=%skin%/org.richfaces/datagrid.css

          org.richfaces.images\:triangle.png=%skin%/org.richfaces.images/triangle-4.0.0.Final.png

          org.richfaces.images\:actTabBg.png=%skin%/org.richfaces.images/actTabBg-4.0.0.Final.png

          org.richfaces.images\:menu_item_bg.gif=%skin%/org.richfaces.images/menu_item_bg.gif-4.0.0.Final.png

          org.richfaces.images\:actLeftTabBg.png=%skin%/org.richfaces.images/actLeftTabBg-4.0.0.Final.png

          org.richfaces.images\:calendarIcon.png=%skin%/org.richfaces.images/calendarIcon-4.0.0.Final.png

          org.richfaces\:popupPanel.js=org.richfaces/popupPanel.js

          org.richfaces\:double-range-validator.js=org.richfaces/double-range-validator.js

          org.richfaces.images\:dsBtnGradOver.png=%skin%/org.richfaces.images/dsBtnGradOver-4.0.0.Final.png

          org.richfaces\:tab.js=org.richfaces/tab.js

          org.richfaces\:tree.js=org.richfaces/tree.js

          org.richfaces\:inputNumberSlider.js=org.richfaces/inputNumberSlider.js

          org.richfaces\:jquery.component.js=org.richfaces/jquery.component.js

          org.richfaces\:menu-base.js=org.richfaces/menu-base.js

          skinning_classes.ecss=%skin%/skinning_classes.css

          org.richfaces\:select.js=org.richfaces/select.js

          org.richfaces\:calendar.js=org.richfaces/calendar.js

          org.richfaces.images\:discDisabled.png=%skin%/org.richfaces.images/discDisabled-4.0.0.Final.png

          org.richfaces.images\:colHdrGrad.png=%skin%/org.richfaces.images/colHdrGrad-4.0.0.Final.png

          org.richfaces\:jquery.effects.core.js=org.richfaces/jquery.effects.core.js

          org.richfaces.images\:chevronLeftDisabled.png=%skin%/org.richfaces.images/chevronLeftDisabled-4.0.0.Final.png

          org.richfaces\:number-converter.js=org.richfaces/number-converter.js

          org.richfaces.images\:pmenu_bg.png=%skin%/org.richfaces.images/pmenu_bg-4.0.0.Final.png

          org.richfaces\:panelMenu.js=org.richfaces/panelMenu.js

          org.richfaces.images\:insldrTrackGrad.png=%skin%/org.richfaces.images/insldrTrackGrad-4.0.0.Final.png

          org.richfaces\:togglePanelItem.js=org.richfaces/togglePanelItem.js

          org.richfaces\:inplaceSelect.js=org.richfaces/inplaceSelect.js

          richfaces-queue.js=richfaces-queue.js

          org.richfaces.images\:gradientA.png=%skin%/org.richfaces.images/gradientA-4.0.0.Final.png

          org.richfaces\:dropdownmenu.ecss=%skin%/org.richfaces/dropdownmenu.css

          org.richfaces.images\:triangleDownDisabled.png=%skin%/org.richfaces.images/triangleDownDisabled-4.0.0.Final.png

          1 of 1 people found this helpful