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 175929 - IDE provides obsolete Java EE endorsed library.
Summary: IDE provides obsolete Java EE endorsed library.
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Web Project (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: _ ludo
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-02 13:05 UTC by Milan Kuchtiak
Modified: 2009-11-05 08:19 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 Milan Kuchtiak 2009-11-02 13:05:56 UTC
The endorsed classes included in netbeans_home/enterprise6/modules/ext/javaee-endorsed-api-6.0-SNAPSHOT.jar are
different than classes in GlassFishV3/modules/endorsed directory.
This makes JAX-WS generated classes uncompilable.

See for example class javax.xml.ws.Service.
Comment 1 Milan Kuchtiak 2009-11-02 13:17:45 UTC
See evan when I add the correct endorsed library for JAX-WS, the project can not be built:

endorsed.classpath=\
    ${libs.javaee-endorsed-api-6.0.classpath}:\
    ${libs.JAX-WS-ENDORSED.classpath}
Comment 2 Petr Jiricka 2009-11-03 14:01:46 UTC
I see that NetBeans bundled the latest version that is available in the Maven repository:
http://download.java.net/maven/2/javax/javaee-endorsed-api/6.0-SNAPSHOT/

This snapshot is quite recent (Oct 27), however, the version inside GlassFish v3 (b70) is older - the classes are from
Sep 14. Which version is "correct"? Does it mean that the classes in GF build need to be updated? If so, we need a P1
against GlassFish.
Comment 3 David Konecny 2009-11-03 21:46:23 UTC
Milan, file issue for GlassFish please. NetBeans is up to date.
Comment 4 Milan Kuchtiak 2009-11-04 08:25:10 UTC
JAX-WS API classes in 
javaee-endorsed-api-6.0-SNAPSHOT.jar correspond to  2.1 (old) while JAX-WS bundled with GlassFish V3 (e.g. version 68)
to JAX-WS 2.2.

I don't know from where you have taken classes to javaee-endorsed-api-6.0-SNAPSHOT.jar, but we need this library
corresponding to GlassFish V3 jars.

So report a bug to whoever you want. I am pretty sure that javaee-endorsed-api-6.0-SNAPSHOT.jar needs to be changed.
Comment 5 Milan Kuchtiak 2009-11-04 08:27:11 UTC
Martin. Is GlassFish V3 going back to JAX-WS 2.1? I am almost sure you want to have JAX-WS 2.2 there.
Comment 6 David Konecny 2009-11-04 08:32:59 UTC
Ludo, can you comment please? You are the owner of javaee-endorsed-api-6.0-SNAPSHOT.jar. Thx.
Comment 7 _ ludo 2009-11-04 22:34:58 UTC
Fixed.
My test:
ludo$ javap -bootclasspath /Users/ludo/Documents/downloads/javaee-endorsed-api.jar  javax.xml.ws.Service
Compiled from "Service.java"
public class javax.xml.ws.Service extends java.lang.Object{
    protected javax.xml.ws.Service(java.net.URL, javax.xml.namespace.QName);
    protected javax.xml.ws.Service(java.net.URL, javax.xml.namespace.QName, javax.xml.ws.WebServiceFeature[]);
    public java.lang.Object getPort(javax.xml.namespace.QName, java.lang.Class);
    public java.lang.Object getPort(javax.xml.namespace.QName, java.lang.Class, javax.xml.ws.WebServiceFeature[]);
    public java.lang.Object getPort(java.lang.Class);

Wait for the new jars to show up in http://download.java.net/maven/2/javax/javaee-endorsed-api/6.0-SNAPSHOT/

takes an hour or so
Comment 8 David Konecny 2009-11-04 23:50:12 UTC
Does this issue impact 68Beta users Milan?
Comment 9 David Konecny 2009-11-04 23:58:58 UTC
Pushed to web-main as 9dc28237934e.
Comment 10 Milan Kuchtiak 2009-11-05 08:19:09 UTC
> Does this issue impact 68Beta users Milan?
Depends if javaee-endorsed-api-6.0 is added to "endorsed" classpath in 68Beta. AFAIK, not.