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 175243 - [68cat] Issue using XMLBeans (RCP)
Summary: [68cat] Issue using XMLBeans (RCP)
Status: RESOLVED INCOMPLETE
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: rmichalsky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-22 22:41 UTC by javydreamercsw
Modified: 2009-11-11 02:56 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Java Application code (working) (3.09 KB, application/octet-stream)
2009-10-22 22:43 UTC, javydreamercsw
Details
one of the .nbm files of a test RCP application (3.84 KB, application/octet-stream)
2009-10-22 22:53 UTC, javydreamercsw
Details
one of the .nbm files of a test RCP application (359.90 KB, application/octet-stream)
2009-10-22 22:53 UTC, javydreamercsw
Details

Note You need to log in before you can comment on or make changes to this bug.
Description javydreamercsw 2009-10-22 22:41:51 UTC
Build 200910170201

Using a generated jar file using XMLBeans fails if added as a library to RCP module. It complains about a missing 
library that is in the related Library module.

The same exact code works perfectly in a plain java project. Looks to be related to the way RCP loads libraries.
Comment 1 javydreamercsw 2009-10-22 22:43:06 UTC
Created attachment 89936 [details]
Java Application code (working)
Comment 2 javydreamercsw 2009-10-22 22:53:09 UTC
Created attachment 89938 [details]
one of the .nbm files of a test RCP application
Comment 3 javydreamercsw 2009-10-22 22:53:56 UTC
Created attachment 89939 [details]
one of the .nbm files of a test RCP application
Comment 4 javydreamercsw 2009-10-22 22:55:26 UTC
There's another module needed but is too big to be attached but basically contains all the libraries in the lib folder 
of XMLBeans distribution.

The RCP is set up to have an action in the Tools tool bar.
Comment 5 rmichalsky 2009-11-10 08:35:13 UTC
> Using a generated jar file using XMLBeans fails if added as a library to RCP
> module. It complains about a missing 
> library that is in the related Library module.
> 
> The same exact code works perfectly in a plain java project. Looks to be
> related to the way RCP loads libraries.

Correct, you have to add dependency on XMLBeans to the library wrapper, not to the module that uses the wrapper.
Comment 6 javydreamercsw 2009-11-10 21:14:59 UTC
What I meant is a library wrapper.
Comment 7 rmichalsky 2009-11-11 02:56:20 UTC
(In reply to comment #6)
> What I meant is a library wrapper.

I didn't decipher your setup then, I'd really need some sample projects (ie. source code, not binary and complete with all involved libraries) showing your setup. 

But basically what I thought you have:

- module "test" which uses classes from DrugConfigurationXMLBeans.jar

- module "com.bbraun.pceis.bean" which is a wrapper for DrugConfigurationXMLBeans.jar, which in turn uses classes from XMLBeans

- module "xmlbeans" which is a wrapper for all XMLBeans JARs.

Then wrapper "com.bbraun.pceis.bean" must declare (runtime) dependency on "xmlbeans", not the "test" module as in your attached NBMs. If both "test" and "com.bbraun.pceis.bean" use XMLBeans classes, both of them must declare the dependency.