This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 237772 - NetBeans builds wrong ClassPath in project.properties and puts older JSF 1.2 in front of JSF 2.1
Summary: NetBeans builds wrong ClassPath in project.properties and puts older JSF 1.2 ...
Status: NEW
Alias: None
Product: serverplugins
Classification: Unclassified
Component: JBoss (show other bugs)
Version: 7.3.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-29 18:02 UTC by kwrobel
Modified: 2013-10-29 18:06 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Project Properties when JBoss AS 7 is used (5.75 KB, text/plain)
2013-10-29 18:05 UTC, kwrobel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kwrobel 2013-10-29 18:02:42 UTC
JBoss AS 7.1.1 ships with two jars containing JSF implementations for 1.2 and 2.1. When creating a new Web Application targeting JBoss AS 7.1.1 Final (and possibly other versions), the classpath in project.properties seems to locate the jar for JSF 1.2 in front of the jar for JSF 2.1 causing some problems in my app which calls out FacesContext.getCurrentInstance().validationFailed() and FacesContext.getCurrentInstance().isValidationFailed(). These two methods don't exist in the older JSF implementation and so the project cannot be compiled.

A workaround is to edit the project.properties file and edit the line containing "j2ee.platform.classpath=". I move the two jar references around and the project compiles and the editor also picks up on the new situation.

This is a flaw, imo, in how NetBeans bootstraps a new project's classpath for JBoss. Any input is greatly appreciated. Not completely serious, but I must wonder what other jars are not in the right order. Or is JSF the only API that has multiple versions shipped with JBoss?

Any input from NetBeans devs is much appreciated.
Comment 1 kwrobel 2013-10-29 18:05:32 UTC
Created attachment 141653 [details]
Project Properties when JBoss AS 7 is used

Line 37 has the two JSF implementations in wrong order, preferring older JSF 1.2 implementation.
Comment 2 kwrobel 2013-10-29 18:06:13 UTC
PS: This is also happening in NetBeans 7.4. Have not yet tried trunk.