Tuesday July 29, 2008
NetBeans 6.1: Fixing the insertion of JSR-311 files in to the JSF/Web Application project randomly.
Howdy Folks, just thought I would share an FYI for you all...
Recently I faced this issue with my project: http://forums.java.net/jive/thread.jspa?threadID=40113
I experienced this issue myself recently; NetBeans 6.1. GlassFish v2ur2
The particulars:
Product Version: NetBeans IDE 6.1 (Build 200804211638)
Java: 1.6.0_05; Java HotSpot(TM) 64-Bit Server VM 1.6.0_05-b13-52
System: Mac OS X version 10.5.3 running on x86_64; MacRoman; en_US (nb)
I have since updated my NetBeans install and updated the recent Jersey plugin to 0.8. On a NetBeans 6.1 restart, I then saw all of these Jersey API's loaded as part of my project and a few lines added to my build-impl.xml which in turn seems to add all of these API's to my project, for example the new build sub-file being imported in to my project <import file="rest-build.xml"/>. I'm not using REST in my Project so I didn't want to add all of those unnecessary libraries.
So to sumarise, make sure you remove all entries to REST in your project, in my case this meant that I needed to remove the import rest instructions as well.
I hope this helps others facing a similar issue.
Posted at 04:38PM Jul 29, 2008 by Chris Fleischmann in GlassFish | Comments[0]