aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Missing IDE support for JAXB binding when used within NetBeans modules Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Missing IDE support for JAXB binding when used within NetBeans modules" Watch "Missing IDE support for JAXB binding when used within NetBeans modules" New topic
Author

Missing IDE support for JAXB binding when used within NetBeans modules

Marco Ehrentreich
best scout
Bartender

Joined: Mar 07, 2007
Posts: 1280

Hi rangers,

I'm facing a weird problem for which I don't have a clue...

I'm trying to develop a NetBeans 6.1 rich client application and I want to use JAXB for Java-XML-Binding in one module of this project.

What I've already done so far is the basic structure of the rich client application and an ordinary Java project with JAXB. Both projects work fine!

The problem now is, that I created the simple Java application with JAXB just for testing purposes, and I want to integrate this functionality in a separate NetBeans module in order to use it in the rich client application. I've already created a module for this purpose and added the necessary dependencies for the JAXB libraries (which are included in the current NetBeans platform). I have access to all the classes from the JAXB libraries in this module now.

What I am missing is the context menu entry if I right-click the module project and choose "New -> ...". For "normal" Java projects I've got an option here to add a "JAXB Binding", but for my NetBeans module project I don't have this option. Of course I could try to add and edit the necessary build files etc. which I've got in my ordinary Java project, but I think this isn't a real solution. It would be very helpful to have the full IDE support to auto-generate the JAXB Java classes and so on. And as I said the NetBeans IDE has this support for plain Java projects, so it'd be a waste of time to do this by hand.

Anyone similar experiences? Unfortunately the usage of JAXB isn't probably too widespread, so I guess I'm out of luck in this case. But perhaps someone has made such experiences with other IDE features that are missing when developing a NetBeans module in contrast to a normal Java application.

Thanks for any help!

Marco
Marco Ehrentreich
best scout
Bartender

Joined: Mar 07, 2007
Posts: 1280

In the meantime I found out, that my problem is simply due to restrictions of the JAXB wizard in NetBeans 6.x! The wizard only works for Java SE, Web or EJB projects. So it has nothing to do with unsatisfied dependencies or missing libraries.

I guess then the only workaround will be to create a Java SE project and use a library wrapper module to integrate it into the rich client application. Any comments?

Marco
Ladislav Jech
Greenhorn

Joined: Dec 08, 2012
Posts: 1
Even in Netbeans 7.3 Beta 2 this is still not supported. I will approach proposed way, ex. integrate it into Netbeans Platform Application using wrapper over JavaSE project.
Ladislav
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Missing IDE support for JAXB binding when used within NetBeans modules