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 201039 - REST configuration dialog appears after expanding a web project with WebLogic target
Summary: REST configuration dialog appears after expanding a web project with WebLogic...
Status: RESOLVED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: REST (show other bugs)
Version: 7.1
Hardware: Macintosh (x86) Mac OS X
: P2 normal (vote)
Assignee: Denis Anisimov
URL:
Keywords: RANDOM
Depends on:
Blocks: 206274
  Show dependency tree
 
Reported: 2011-08-17 13:45 UTC by Petr Jiricka
Modified: 2011-12-12 15:02 UTC (History)
0 users

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 Petr Jiricka 2011-08-17 13:45:54 UTC
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.
Comment 1 Denis Anisimov 2011-08-17 17:37:48 UTC
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.
Comment 2 Petr Jiricka 2011-08-18 07:38:18 UTC
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.
Comment 3 Denis Anisimov 2011-08-18 09:10:28 UTC
OK , thank you for information.
It's useful.

I need to investigate the code deeply. I have one idea why it could happen.
Comment 4 Denis Anisimov 2011-08-18 18:05:53 UTC
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.
Comment 5 Denis Anisimov 2011-09-01 05:17:56 UTC
web-main#d4bb5691447e
Comment 6 Quality Engineering 2011-09-01 14:22:40 UTC
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