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.
In a Java EE Maven project, when the RESTful JavaScript Client wizard is used, the JavaScript libraries are created in a 'libs' folder in the root of the Java EE Maven project. And the HTML file that is created can't find them when you deploy the application. This is quite a serious bug, since HTML5 support in Java EE is one of our main features in NB 7.4. Steps to reproduce: http://www.youtube.com/watch?v=gIEBo2AUDkA
Milan, can you please investigate?
Yes, when the "Add Backbone.js to project sources" option is used, the JavaScript files are put under project root folder, which is not included into war file, so the libraries are not available during runtime. This is the same in ant projects. The wizard was originally developped for HTML5 applications, then decided to re-use in ant/maven web projects.
The issue is fixable for 7.4.
Fixed in trunk: http://hg.netbeans.org/web-main/rev/479ac9934a7d The issue is quite serious, since JavaScript libraries, not located under document root, are unusable. I am qualifying the issue as a stopper. Jirka, could you please verify the fix ?
I guess this should be verified by Stepan, cc'ing.
One more correction in if statement: http://hg.netbeans.org/web-main/rev/b73d274a34ff
479ac9934a7d+b73d274a34ff looks ok to me.
Integrated into 'main-silver', will be available in build *201309180002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/479ac9934a7d User: Milan Kuchtiak <mkuchtiak@netbeans.org> Log: #236011 fix target directory for JavaScript files and HTML file in RESTful JavaScript client wizard
Verified in NetBeans IDE Dev (Build 201309190428). Generated JavaScript files are under Web Pages node.
Thanks for the review. Fixed in release74 branch: Changesets: 3f02dbb7217b 306b5251afd9
*** Bug 236027 has been marked as a duplicate of this bug. ***