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.
Created attachment 91142 [details] Screenshot of error blocking wizard progress If you are creating a RESTful WS from Database, in the Database Tables page, I got an error message saying that "Current Project has no Persistence Unit. Please use New Persistence Unit wizard to create one." However, I got this message right after I added tables to the entity classes. I cannot use the New Persistence Unit wizard because that wizard is not available until I get to the Entity Classes page in the RESTful WS from Database wizard. However, the error blocks me from continuing to the next page! Can work around it by launching New Persistence Unit wizard from New > Persistence. But if this is on purpose, could the RESTful WS from Database wizard at least say to cancel the wizard and launch the New Persistence Unit wizard from New > Persistence? If this is on purpose and not a bug, it certainly looks like a bug to anyone used to the Entity Classes from Database wizard.
Yes, RESTful WS from Database requires existence of persistence unit. The wizard should allow to create it. You're right the table selection has no sense when persistence unit is missing. I'd qualify that as bug too.
It's too late to fix this to 6.8.
Please consider fix it for 68-patch1. Ugly bug, moreover mentioned at: http://netbeans.org/kb/docs/websvc/rest.html
There is a create PU button in the wizard but user doesn't see it anymore because of a fix for issue #150378. The fix for this would mean reverting http://hg.netbeans.org/main-silver/rev/1598cba016d8 and properly fixing the case mentioned in issue #150378 - which is regular P3, so maybe this wouldn't be needed... Opinions?
A correct fix for the issue #150378 sounds like good solution ;) Milane can you please evaluate?
OK, I'll try to fix that.
this was fixed in trunk by Sergey in: http://hg.netbeans.org/main-silver?cmd=changeset;node=e168bc7e578d http://hg.netbeans.org/main-silver?cmd=changeset;node=dfff9d9801a8 http://hg.netbeans.org/main-silver?cmd=changeset;node=405ea76dc345 http://hg.netbeans.org/main-silver?cmd=changeset;node=12ced11687c0 http://hg.netbeans.org/main-silver?cmd=changeset;node=533fe89d37e1 http://hg.netbeans.org/main-silver?cmd=changeset;node=26e4ac80f107 http://hg.netbeans.org/main-silver?cmd=changeset;node=4278e4394185 (some of these changesets are just cleanups)
v.