Bug 157280 - JBoss plugin does not add JSF API
JBoss plugin does not add JSF API
Status: NEW
Product: serverplugins
Classification: Unclassified
Component: JBoss
6.x
All All
: P2 (vote)
: TBD
Assigned To: issues@serverplugins
issues@serverplugins
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-01-21 22:32 UTC by danpfe
Modified: 2009-03-27 22:30 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description danpfe 2009-01-21 22:32:50 UTC
The latest version of the pre-release JBoss plugin (the one which is scheduled for Netbeans 6.5 patch 2) does not add
the JSF API located in {conf.dir}/deploy/jbossweb.sar/jsf-libs to the server library's classpath. Since JBoss 5 is a
fully JEE5-compliant server I believe the plugin should do that.
Comment 1 danpfe 2009-01-21 22:35:54 UTC
I forgot to add: This is definitely not a show-stopper, it just feels like something is "missing". A temporary
workaround is to add the JSF APIs manually to the project's classpath.
Comment 2 gimbal 2009-03-27 22:30:16 UTC
actually it is not only JSF, but also JPA cannot be used. The following jars should at least be added to the classpath
for JBoss 5:

common/lib/ejb3-persistence.jar
common/lib/hibernate-annotations.jar
common/lib/hibernate-commons-annotations.jar
common/lib/hibernate-core.jar
common/lib/hibernate-entitymanager.jar
<server>/deploy/jbossweb.sar/jsf-libs/jsf-api.jar
<server>/deploy/jbossweb.sar/jsf-libs/jsf-impl.jar

(probably more are needed, but these will make compilation of JPA code work).


Workaround for the current plugin:

copy all these jars to the <server>/lib directory. This will make the netbeans JBoss plugin add the jars to the server
runtime library so they are available at compile time. If you copy to a server that is already part of your project,
close and restart netbeans to make it update the project classpath.

The only thing I am not able to make a workaround for yet is a client application: you are only allowed to choose J2EE
1.4 and not J2EE 5 :( Strangely the ejb and war projects are J2EE 5 projects, just not any client project I create :s


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo