Bug 800311

Summary: Richfaces BOM provides invalid version definition for com.sun.faces:jsf-impl and jsf-api
Product: [Retired] JBoss Enterprise WFK Platform 2 Reporter: Karel Piwko <kpiwko>
Component: RichFacesAssignee: Marek Novotny <mnovotny>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: medium    
Version: 2.0.0.ER2   
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:48:26 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-06 09:41:09 UTC
Description of problem:



Version-Release number of selected component (if applicable):


How reproducible:

Always.

Steps to Reproduce:
1. Import RF bom into dependency management of your project
2. Include a dependency 

            <dependency>
                <groupId>com.sun.faces</groupId>
                <artifactId>jsf-api</artifactId>
            </dependency>

  
Actual results:

[ERROR]   The project org.jboss.wfk.examples:spring-3-ws-2-airline-hibernate4:2.0-SNAPSHOT (/home/kpiwko/devel/wfk/wfk-qa/spring/module-ws-2/airline-hibernate-4/pom.xml) has 1 error
[ERROR]     'dependencies.dependency.version' for javax.servlet.jsp:jsp-api:jar is missing. @ line 57, column 21
[ERROR]
[ERROR]   The project org.springframework.webflow.samples:spring-3-booking-faces-jsf2:2.0.0-SNAPSHOT (/home/kpiwko/devel/wfk/wfk-qa/spring/module-webflow-3/booking-faces-jsf2/pom.xml) has 1 error
[ERROR]     'dependencies.dependency.version' for com.sun.faces:jsf-api:jar must be a valid version but is '${version.com.sun.faces.jsf-api}'. @ line 52, column 21
[ERROR]
[ERROR]   The project spring-3-jsf-2:spring-3-jsf-2:2.0-SNAPSHOT (/home/kpiwko/devel/wfk/wfk-qa/spring/module-security-3/jsf2featuresspring/pom.xml) has 1 error
[ERROR]     'dependencies.dependency.version' for com.sun.faces:jsf-api:jar must be a valid version but is '${version.com.sun.faces.jsf-api}'. @ line 86, column 21
[

Expected results:

Version is managed by BOM

Additional info:


<version.com.sun.faces>[2.1.5,2.1.5-redhat-1]</version.com.sun.faces>

is the correct property name in components-master parent at the moment.

Comment 1 Karel Piwko 2012-03-06 09:46:39 UTC
Same holds for jsf-api

Comment 2 Marek Novotny 2012-03-09 17:55:00 UTC
1 - instead of javax.servlet.jsp:jsp-api:jar use org.jboss.spec.javax.servlet.jsp:jboss-jsp-api_2.2_spec

2 - com.sun.faces:jsf-api:jar version definition is fixed.

Comment 3 Karel Piwko 2012-03-12 11:55:35 UTC
Verified in WFK 2.0.0.ER3

Comment 4 Karel Piwko 2012-04-05 13:48:26 UTC
Verified in WFK 2.0.0.ER3 (a.k.a. 2.0.0.Beta1).