| Summary: | RichFaces resources ordering load is broken with misplaced jquery.js | ||
|---|---|---|---|
| Product: | [Retired] JBoss Enterprise WFK Platform 2 | Reporter: | Karel Piwko <kpiwko> |
| Component: | RichFaces | Assignee: | Marek Novotny <mnovotny> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 2.0.0.ER2 | CC: | mariusb, mnovotny, rnewton |
| Target Milestone: | --- | ||
| Target Release: | 2.0.0.ER3 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-04-05 13:49:22 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Karel Piwko
2012-03-07 20:35:33 UTC
Possible reason why that happens: While comparing ER1 and ER2 releases: /tmp/richfaces-components-ui-4.2.0.Final-redhat-1.jar.diffjars.Dfb/META-INF/richfaces/staticResourceMapping/Packed.properties contains line 117 javax.faces\:jsf.js=org.richfaces.staticResource/4.2.0.Final-redhat-1/Packed/packed/packed.js which load packed.js before jquery.js. Kudos to Lukas Fryc for discovering this issue. Likely caused by wrong classpath ordering in file https://github.com/richfaces/components/blob/develop/dist/static-resources/pom.xml The classpath ordering is influenced by scope of artifacts.
This concrete issue happened because /home/kpiwko/installations/wfk/2.0.0.ER2/jboss-wfk-2.0.0.ER2-maven-repository/org/richfaces/richfaces-root-parent/4.2.0.Final-redhat-1/richfaces-root-parent-4.2.0.Final-redhat-1.pom
<dependency>
<groupId>com.sun.faces</groupId>
<artifactId>jsf-impl</artifactId>
<!-- <scope>test</scope> -->
</dependency>
line 846 was switched from test to compile scope.
I have found where the origin intention for changing the scope was. Showcase hides jboss profile for variable dependency-scope for jsf-impl. After rebuild, the line with: javax.faces\:jsf.js disappeared, so I consider that as fixed. Referenced built jar in MEAD is here http://download.devel.redhat.com/brewroot/work/tasks/9529/4139529/org/richfaces/ui/richfaces-components-ui/4.2.0.Final-redhat-1/richfaces-components-ui-4.2.0.Final-redhat-1.jar Verified fix in WFK 2.0.0.ER3. Verified in WFK 2.0.0.ER3 (a.k.a. 2.0.0.Beta1). |