| Summary: | HTTP 404 for RF background images in JSF2+RF4 Hello World Portlet | ||
|---|---|---|---|
| Product: | [JBoss] JBoss Enterprise Portal Platform 6 | Reporter: | Peter Palaga <ppalaga> |
| Component: | Quickstarts | Assignee: | Peter Palaga <ppalaga> |
| Status: | VERIFIED --- | QA Contact: | Tomas Kyjovsky <tkyjovsk> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.1.1 | CC: | tkyjovsk, typhaminfo |
| Target Milestone: | ER01 | ||
| Target Release: | 6.1.1 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: |
The portletbridge-extension-richfaces-*.jar was missing in the RichFaces quickstart's WAR file, despite the artifact being listed in dependencies. This caused the background images used in RichFaces components to be inaccessible. The Fix removes the provided scope from portletbridge-extension-richfaces in the portal Bill of Materials (BOM). The background images used in RichFaces components are now shown as expected.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | Type: | Bug | |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Peter Palaga
2013-12-06 10:45:22 UTC
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
|