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.
1. Register WebLogic (latest build) 2. Create a web project with WebLogic target 3. Expand the project node in the Projects tab => the REST Resources Configuration dialog pops up.
I'm pretty sure this is not related to J2EE target server. REST resources dialog could appear without explicit invocation : special property is set for project when REST services is added into it. If this property is absent ( was deleted f.e. ) and REST services model is requested ( it happens when REST nodes are initialized ) then dialog will be shown. Normal lifecycle ( REST creation via NB ) for project excludes such behavior . It could happen *only* if there were some external project modifications. Now back to the issue : I saw such behavior actually but don't have exact scenario of reproduction. It *sometimes* happens with the following scenario : 1) Create some web project. 2) Create REST service there . 3) Delete project. ( make sure project is absent on local fs ) 4) Create the web project once again with *THE SAME NAME*. *Sometimes* REST Resources Configuration dialog pops up. I'm pretty sure this is your case. Could you please try the same scenario you wrote with some unique project name ( never used before ) ? I believe you will not get this issue as result. So the problem is not in JAX-RS NB support but somewhere in general fs support in NB. It seems this is some caching problem. But I don't have exact steps to reproduce it with 100% sure.
I agree it's a random issue, does not happen always. And you may be right that it's not WebLogic-specific. But when I use WebLogic, I can reproduce more reliably than with GlassFish. Can you please try with WebLogic? > I'm pretty sure this is your case. No. > Could you please try the same scenario you wrote with some unique project name ( never used before ) ? That's what I am doing. I can create a screencast if that would help. Or, if you can not reproduce, you can add some debug logging to the code, and I can then try with this debug build - I can reproduce this very often.
OK , thank you for information. It's useful. I need to investigate the code deeply. I have one idea why it could happen.
I think I've found the problem. It's in binary classpath. It can contain REST services. Any REST services presence in the project lead to check of project rest configuration. In case its absence the configuration dialog is shown. One need to check if REST service is in the compile classpath or source.
web-main#d4bb5691447e
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/d4bb5691447e User: Denis Anisimov <ads@netbeans.org> Log: Fix for BZ#201039 - REST configuration dialog appears after expanding a web project with WebLogic target