Hide Forgot
Description of problem: There is a couple of messages visible in Chrome Console when visiting a page with JSF2+RF4 Hello World Portlet: http://127.0.0.1:8180/portal/org.richfaces.images/inputBackgroundImage.png Failed to load resource: the server responded with a status of 404 (Not Found) http://127.0.0.1:8180/portal/org.richfaces.images/autocompleteButtonGradient.png Failed to load resource: the server responded with a status of 404 (Not Found) http://127.0.0.1:8180/portal/org.richfaces.images/comboDownButton.png Failed to load resource: the server responded with a status of 404 (Not Found) http://127.0.0.1:8180/portal/classic/org.richfaces.images/inputBackgroundImage.png Failed to load resource: the server responded with a status of 404 (Not Found) http://127.0.0.1:8180/portal/classic/org.richfaces.images/buttonBackgroundImage.png Failed to load resource: the server responded with a status of 404 (Not Found) http://127.0.0.1:8180/org.richfaces.images/combo_list_shadow.png Version-Release number of selected component (if applicable): JBoss Portal 6.1.1.DR1 and JSF2+RF4 Hello World Portlet distributed with JBoss Portal 6.1.1.DR1 How reproducible: Always Steps to Reproduce: 1. Get the Portal and quickstarts from http://torii.gva.redhat.com/gatein-prod/jboss-portal-6.1.1.DR1-prod.zip http://torii.gva.redhat.com/gatein-prod/jboss-portal-6.1.1.DR1-quickstarts.zip 2. Build and deploy the quickstart 3. Add the quickstart portlet to a page, visit the page. Actual results: The background images used in RF components are not accessible. Expected results: The background images used in RF components should be displayed.
The same quickstart behaves the same on JPP 6.1.
Resolved by PBR 3.3.1.Final
Can't reproduce on PBR 3.3.1.Final
Tested on JPP DR02 + DR02 QS. Chrome console output: Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:8080/portal/g/:platform:administrators/administration/registry/org.richfaces.images/buttonBackgroundImage.png Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:8080/portal/g/:platform:administrators/administration/org.richfaces.images/inputBackgroundImage.png Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:8080/portal/g/:platform:administrators/administration/org.richfaces.images/autocompleteButtonGradient.png Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:8080/portal/g/:platform:administrators/administration/org.richfaces.images/comboDownButton.png Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:8080/portal/g/:platform:administrators/administration/registry/org.richfaces.images/inputBackgroundImage.png event.returnValue is deprecated. Please use the standard event.preventDefault() instead. jquery-min.js:75
Filip, Did you add the portlet onto the administration page? If not, those are some unusual urls.
Hmm, yes I added it on administration page, but same errors on classic pages. I tested it on Firefox and Chrome on Ubuntu - same errors on both browsers, QS were build using this repo: http://jboss-developer.github.io/temp-maven-repo/
Updated instructions for building the quickstart: git clone https://github.com/jboss-developer/jboss-portal-quickstarts.git cd jboss-portal-quickstarts git checkout 6.1.x-develop cd jsf2-rf4-hello-world-portlet mvn clean install -s ../src/build/settings-for-contributors.xml I hope I have not forgot anything important.
And here is the newest JBoss Portal 6.1.1.DR2 http://torii.gva.redhat.com/gatein-prod/jboss-portal-6.1.1.DR2-prod.zip
Ok, I was able to reproduce the error building the quickstart with the above information. The reason the images are not being loaded is because the portletbridge-extension-richfaces jar, though specified as a dependency, is not present within WEB-INF/lib of the built WAR. Manually adding that jar to the WAR enables the images to appear.
Thanks for your assistance, Ken! Yes, this can be fixed through removing provided scope from portletbridge-extension-richfaces in BOM. https://github.com/jboss-developer/jboss-portal-boms/commit/c05c24381014670735baaa97baddbf9d1a6b0c65
I cannot change the requires_doc_text to +
Cannot reproduce with 6.1.1.CR1. All images are accounted for, I only see HTTP 200 responses. Tested with jsf2-hello-world-portlet, jsf2-rf4hello-world-portlet.
yes thank for this thread post! I used JSF2 RF4.5 and RESTEasy with the following configurations web.xml: --------------- <servlet> <servlet-name>Resteasy</servlet-name> <servlet-class>org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher</servlet-class> </servlet> <servlet-mapping> <servlet-name>Resteasy</servlet-name> <url-pattern>/*</url-pattern> </servlet-mapping> <servlet> <servlet-name>Faces Servlet</servlet-name> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>Faces Servlet</servlet-name> <url-pattern>*.faces</url-pattern> </servlet-mapping> ----------- My bug is the icon calendar did not display properly. My fix are two steps: 1. Add more jar library portletbridge-extension-richfaces in Web-inf lib folder (after this step, the icon showed, but css is not working well) 2. change the url-pattern of Resteasy mapping in web.xml <servlet-mapping> <servlet-name>Resteasy</servlet-name> <url-pattern>/resteasy/*</url-pattern> </servlet-mapping> Remember add more prefix for: <context-param> <param-name>resteasy.servlet.mapping.prefix</param-name> <param-value>/resteasy</param-value> </context-param> Again thanks contributed this link https://bugzilla.redhat.com/show_bug.cgi?id=1039007