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 148435 - Unable to add JAXB bindings to JavaFX Project
Summary: Unable to add JAXB bindings to JavaFX Project
Status: NEW
Alias: None
Product: xml
Classification: Unclassified
Component: JAXB (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: _ gmpatil
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-25 23:20 UTC by esmithbss
Modified: 2009-02-19 23:31 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description esmithbss 2008-09-25 23:20:47 UTC
When you attempt to add a JAXB Binding to a JavaFX project (any type), the system fails with

'Target "jaxb-code-generation" does not exist in the project "{project}"

error.

At present, it appears that the only way to get JAXB processing into a JavaFX application is via a project dependency.

Steps to reproduce:

1) Create a JavaFX project

2) Create an XML Schema Document within the project

3) Add the required libraries, including JAXB library to the project.

4) Create a new JAXB Binding for the project, set the schema to the schema you created in step 2.

5) Click "Finish" on the JAXB Wizard.
Comment 1 Andrey Yamkovoy 2008-10-24 12:48:31 UTC
Supporting jaxb in the JavaFX Projects should be implemented on jaxb side.
At least including "org-netbeans-modules-javafx-project" filesystem node into the Projects folder (in the layer.xml).
Comment 2 mbien 2008-10-30 21:59:12 UTC
I think this is a general issue of NetBeans that many features are unnecessary restricted to only one project type. For
example JavaFX projects support pack200 compression for webstart, SE projects not - despite that fact that its actually
an old SE feature. Same for JAXB which is only available for SE projects not for NB modules etc...
maybe it would be possible to move as many features to the SE project and implement some kind of hierarchy (e.g JavaFX
inherits pack200 from SE...)
Comment 3 _ gmpatil 2008-11-01 06:35:13 UTC
JAXB needs project type to have implemented Node Factory API[1] and ANT extension API[2] to plug-ins to particular type
of projects. I might be forgetting something, may be LookupProvider and merger.

[1]
http://bits.netbeans.org/dev/javadoc/org-netbeans-modules-projectuiapi/org/netbeans/spi/project/ui/support/NodeFactory.html
[2] http://www.netbeans.org/issues/show_bug.cgi?id=101716