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 192614 - [70cat][xml] JAXB-ENDORSED library missing components.
Summary: [70cat][xml] JAXB-ENDORSED library missing components.
Status: RESOLVED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: JAXB (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-29 06:26 UTC by esmithbss
Modified: 2011-11-16 15:46 UTC (History)
1 user (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 esmithbss 2010-11-29 06:26:04 UTC
Product Version = NetBeans IDE Dev (Build 201011280001)
Operating System = Windows XP version 5.1 running on x86
Java; VM; Vendor = 1.6.0_20
Runtime = Java HotSpot(TM) Client VM 16.3-b01

When I open my JAXB projects created under 201011250001, the project cannot be built or tested properly due to missing references within JAXB-ENDORSED library.

Based on the contents of the library within the Library Manager, the library has a hard reference to the 201011250001 JAXB files instead of a relative reference to the JAXB libraries provided by NetBeans.
Comment 1 Svata Dedic 2011-11-14 13:43:28 UTC
Changeset: d3c10b87b374
Author:    Svata Dedic <sdedic@netbeans.org>
Date:      2011-11-14 14:43
Message:   #192614: Library defined in a layer, rather than programmatically. nbist: URL used.
Issue #192614 - [70cat][xml] JAXB-ENDORSED library missing components.: fixed
Comment 2 Jesse Glick 2011-11-15 14:56:35 UTC
Did you really want to use "JAXB-ENDORSED" as the display name? Looks ugly to me.

BTW bundlevalue="org/netbeans/modules/xml/jaxb/Bundle#JAXB-ENDORSED" should be bundlevalue="org.netbeans.modules.xml.jaxb.Bundle#JAXB-ENDORSED".
Comment 3 Jesse Glick 2011-11-15 14:59:46 UTC
Also: in 5cde338c31ce ("Avoiding bug in ergonomics" - which bug? filed?), you probably meant to use nbres protocol, not nbresloc: the contents of the library descriptor would not normally be localized by creating e.g. org/netbeans/modules/xml/jaxb/jaxb-endorsed_ja.xml. (The display name can already be localized due to use of bundlevalue, and anyone wanting to customize the library in a branded app can already do so using a branding layer.)
Comment 4 Svata Dedic 2011-11-15 15:29:31 UTC
Re. display name - I didn't want to change the appearance to the user; a library using this dispname was automatically created if the user used JAXB wizard && the library did not exist yet in 6.9-7.0x

If you feel like "JAXB API" or "JAXB runtime" would be more appropriate, I'll change it.
Comment 5 Jesse Glick 2011-11-16 01:47:31 UTC
You know the use case, it just looked like a mistake from reviewing layers.txt changes.
Comment 6 Quality Engineering 2011-11-16 15:46:00 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/d3c10b87b374
User: Svata Dedic <sdedic@netbeans.org>
Log: #192614: Library defined in a layer, rather than programmatically. nbist: URL used.
Issue #192614 - [70cat][xml] JAXB-ENDORSED library missing components.: fixed