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 178510 - New project reports a missing javaee-endorsed-api-6.0 library
Summary: New project reports a missing javaee-endorsed-api-6.0 library
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Web Project (show other bugs)
Version: 6.x
Hardware: Macintosh (x86) Mac OS X
: P2 normal (vote)
Assignee: David Konecny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-11 13:37 UTC by driscoll
Modified: 2009-12-15 07:44 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description driscoll 2009-12-11 13:37:13 UTC
New install of NB 6.8 FCS, SE only version.  Upgrade via installing JSF dependencies.

Fresh install of GFv3 FCS.

Create a web project, choose JSF framework, choose included library.

Project successfully created, but reference problem is reported immediately on creation - a missing javaee-endorsed-api-6.0 library.

Unfortunately, I can't figure out how to clear this error.

Fortunately, I can still use the project without difficulty.
Comment 1 Vince Kraemer 2009-12-11 15:12:05 UTC
standard/freeform/maven?
Comment 2 evillive 2009-12-12 22:36:38 UTC
(In reply to comment #1)
> standard/freeform/maven?

Hi, I have same problem.

Product Version: NetBeans IDE 6.8 (Build 200912041610)
Java: 1.6.0_17; Java HotSpot(TM) Client VM 14.3-b01
System: Linux version 2.6.31-16-generic running on i386; UTF-8; ru_RU (nb)
Userdir: /home/evillive/.netbeans/6.8

Project: standart Web Application (Java EE 6), Glassfishv3.

I do not have javaee-endorsed-api-6.0.jar on my system, and I commented this lines in project.properties:
22:#endorsed.classpath=\
23:#    ${libs.javaee-endorsed-api-6.0.classpath}
55:#jaxbwiz.endorsed.dirs="${netbeans.home}/../ide12/modules/ext/jaxb/api"
and problem resolved.
Comment 3 David Konecny 2009-12-13 14:39:08 UTC
I cannot reproduce it. I've started NB68 with fresh userdir and created web project and everything is OK.

javaee-endorsed-api-6.0 is library which comes with the IDE - it provides newer versions of APIs available in JDK. Ignoring the library (or commenting it out in build script) is perfectly OK until you need to use the newer API.

Could you check couple of things please:
* in Tools -> Libraries you should be able to see "Java EE 6 Endorsed API" library with 3 jars
* in root of your IDE's userdir should be file "build.properties" which should contain apart form other things:
  libs.javaee-endorsed-api-6.0.classpath=/your/nb/instal/enterprise6/modules/ext/javaee6-endorsed/javax.annotation.jar:/your/nb/instal/enterprise6/modules/ext/javaee6-endorsed/jaxb-api-osgi.jar:/your/nb/instal/enterprise6/modules/ext/javaee6-endorsed/webservices-api-osgi.jar

My only explanation of your problem (so far) is that perhaps during upgrade of the IDE new library was not created properly?
Comment 4 evillive 2009-12-13 18:42:40 UTC
(In reply to comment #3)
> I cannot reproduce it. I've started NB68 with fresh userdir and created web
> project and everything is OK.
> 
> javaee-endorsed-api-6.0 is library which comes with the IDE - it provides newer
> versions of APIs available in JDK. Ignoring the library (or commenting it out
> in build script) is perfectly OK until you need to use the newer API.
> 
> Could you check couple of things please:
> * in Tools -> Libraries you should be able to see "Java EE 6 Endorsed API"
> library with 3 jars

I haven't it.

> * in root of your IDE's userdir should be file "build.properties" which should
> contain apart form other things:
>  
> libs.javaee-endorsed-api-6.0.classpath=/your/nb/instal/enterprise6/modules/ext/javaee6-endorsed/javax.annotation.jar:/your/nb/instal/enterprise6/modules/ext/javaee6-endorsed/jaxb-api-osgi.jar:/your/nb/instal/enterprise6/modules/ext/javaee6-endorsed/webservices-api-osgi.jar
> 
I have not this in my build.properties, but i have this:
libs.Java-EE-GlassFish-v3.classpath=/home/evillive/glassfishv3/glassfish/modules/endorsed/webservices-api-osgi.jar:/home/evillive/glassfishv3/glassfish/modules/endorsed/javax.annotation.jar:/home/evillive/glassfishv3/glassfish/modules/endorsed/jaxb-api-osgi.jar

> My only explanation of your problem (so far) is that perhaps during upgrade of
> the IDE new library was not created properly?

Yes, i think so too. I think this only happens if install NB Bundle with no "Java Web and EE"  technology support, like Java SE, Java FX Boundles, and then add "Java Web and EE" support via Tools | Plugins. Maybe, during installation "Java Web Applications" plugin, IDE must also download "Java EE 6 Endorsed API" library and for some reason it does not do this.
I have both netbeans-6.8-ml-javase and netbeans-trunk-nightly-200912121550-ml-javase installed and "Java Web Applications" support added via "Tools | Plugins", and both have not that "Java EE 6 Endorsed API" library.
Also note driscoll wrote:
> New install of NB 6.8 FCS, SE only version.  Upgrade via installing JSF 
> dependencies
Comment 5 David Konecny 2009-12-13 21:52:23 UTC
PetrJ, looks like AU configuration for "Java EE and Web" does not contain dependency on javaee.api module. Is it something configurable on AU site or does AU derive it from inter module dependencies and it is problem in Java EE cluster somewhere?
Comment 6 Petr Jiricka 2009-12-14 07:47:46 UTC
Hopefully fixed in trunk:
http://hg.netbeans.org/web-main/rev/7c8c35d0ffed

I agree that for 6.8, it would be good to have a specific dependency on the AU side. Specifically, we should have web.kit depending on javaee.api. I am cc'ing Robert Novak so he can comment on whether this is doable.

One other workaround is to download the "EJB and EAR" plugin from the update center.
Comment 7 driscoll 2009-12-14 11:09:11 UTC
I can confirm that the workaround fixes the issue for me.
Comment 8 Quality Engineering 2009-12-15 02:22:45 UTC
Integrated into 'main-golden', will be available in build *200912150200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/7c8c35d0ffed
User: pjiricka@netbeans.org
Log: #178510 - adding a dependency of web.kit on javaee.api.
Comment 9 Petr Jiricka 2009-12-15 07:44:29 UTC
I verified that this is now fixed with the latest bits on the update center.