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 154158 - Creating and Consuming RESTful Web Service jMaki Components Tutorial fails
Summary: Creating and Consuming RESTful Web Service jMaki Components Tutorial fails
Status: RESOLVED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: REST (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Ayub Khan
URL:
Keywords:
Depends on: 154282
Blocks:
  Show dependency tree
 
Reported: 2008-11-29 21:36 UTC by romulusx
Modified: 2008-12-09 18:26 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 romulusx 2008-11-29 21:36:11 UTC
It looks like this tutorial (Creating and Consuming RESTful Web Service jMaki Components) fails under NetBeans 6.5,
although 6.5 is listed as supported (using all components downloaded under All distribution).

No errors until "Testing the jMaki Client Stubs" section.
Running TestResourcesTable.jsp produces a web page with the following error: 
  Unable to find widget constructor for jmaki.widjets.dojo.rest.customerstable.Widget

Looks like pre-existing error: http://forums.java.net/jive/thread.jspa?messageID=260926
If correct, perhaps the tutorial should mention limitations.

My environment:
Windows XP SP 3
Firefox 3.0.4
Netbeans IDE 6.5 (Build 200811100001)
Java 1.60_04; Java Hotspot Client VM 10.0-b19
Comment 1 Jeffrey Rubinoff 2008-11-29 23:59:59 UTC
What version of jMaki plugin are you using? 
This tutorial was tested repeatedly on NetBeans 6.5 and worked correctly, however I see that there is a new version of
the jMaki plugin.
Comment 2 Jeffrey Rubinoff 2008-11-30 00:49:30 UTC
I just tried it on almost the same system, but running Java 1.6.0_07.

I also get an error, but a different one! I get "Error reading data store, please check URL ..." However, when I check
the URL, the XML file is there.

Am adding Lukas Jungmann to this bug. Lukas, are you the right person to check this?
Comment 3 _ ludo 2008-11-30 05:09:32 UTC
Latest  jmaki plugin does not include the 'old' dojo 0.4.3 library...
You can still dowload is via
https://ajax.dev.java.net/source/browse/*checkout*/ajax/ws/lib/dojo/jmaki-dojo-1.8.0.zip?rev=1.8

Put the zip somewhere, and then install this lib to NetBeans via Tools | Palette| Add jMaki library and navigate to this
zip file and install it. Restart the IDE to complete the lib installation.

I'll see if we can add it by default or if the gen code could rely on a more modern dojo lib (dijit)
Comment 5 Ayub Khan 2008-12-01 07:24:40 UTC
NB 6.5 RESTful client stub testing was done against 1.8.0 version released on 08/14. The latest release of jMaki 1.8.1
which came after NB6.5 has dojo 0.4.3 removed. I think short term solution is to get jMaki updated with dojo 0.4.3 back to
where it used to be. Long term upgrade the RESTful widget to dojo 1.0.x. 

I have filed an issue against jMaki, see below
https://ajax.dev.java.net/issues/show_bug.cgi?id=375
Comment 6 Ayub Khan 2008-12-09 18:26:51 UTC
Closing this as fixed, since the dependent issue 154282 is fixed.