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 160739 - maven web app is marked as broken after opening it with fresh userdir
Summary: maven web app is marked as broken after opening it with fresh userdir
Status: VERIFIED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 6.x
Hardware: Sun All
: P3 blocker (vote)
Assignee: Milos Kleint
URL:
Keywords:
: 163014 164090 (view as bug list)
Depends on: 203220
Blocks:
  Show dependency tree
 
Reported: 2009-03-20 15:29 UTC by Jindrich Sedek
Modified: 2011-12-05 14:17 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
The project creates in first userdir (6.26 KB, image/png)
2009-03-24 14:20 UTC, Jaroslav Tulach
Details
The previous project opened in fresh ergo usedir (6.01 KB, image/png)
2009-03-24 14:21 UTC, Jaroslav Tulach
Details
my maven web app after opening with fresh userdir (17.29 KB, image/png)
2009-03-25 08:58 UTC, Jindrich Sedek
Details
requested logging (37.05 KB, application/x-gzip)
2009-03-30 15:17 UTC, Jindrich Sedek
Details
started modules (3.17 KB, text/plain)
2009-03-30 19:01 UTC, Jindrich Sedek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jindrich Sedek 2009-03-20 15:29:16 UTC
download netbeans java edition
create new maven web application -> activate J2EE ...
close netbeans
restart them with fresh userdir - like as a different user
open the previously created project - it's marked with exclamation

Right click project node, select Show & Resolve problem -> you are asked to "install" J2EE support, but J2EE support is 
installed and also activated

if you open second project it works well, restart IDE also helps
this might be related to already fixed issue #159306
Comment 1 Milos Kleint 2009-03-20 18:32:50 UTC
egonomics related I guess
Comment 2 Jaroslav Tulach 2009-03-24 14:20:45 UTC
Created attachment 78748 [details]
The project creates in first userdir
Comment 3 Jaroslav Tulach 2009-03-24 14:21:46 UTC
Created attachment 78749 [details]
The previous project opened in fresh ergo usedir
Comment 4 Jaroslav Tulach 2009-03-24 14:23:57 UTC
I cannot reproduce the problem in build from Mar 19, 2009:

changeset:   122565:a606457c54ac
tag:         golden
parent:      122534:efbb661f2603
parent:      122564:af1cdf5b8149
user:        ffjre@netbeans.org
date:        Thu Mar 19 11:37:20 2009 +0100
summary:     Automated merge
Comment 5 Jindrich Sedek 2009-03-25 08:57:32 UTC
I'm sory, but the problem still appears
NetBeans IDE Dev (Build 200903241535)
Comment 6 Jindrich Sedek 2009-03-25 08:58:47 UTC
Created attachment 78803 [details]
my maven web app after opening with fresh userdir
Comment 7 Jaroslav Tulach 2009-03-27 07:04:18 UTC
Try to donate logs when running with -J-Dorg.netbeans.modules.ide.ergonomics.level=100
Comment 8 Jindrich Sedek 2009-03-30 15:17:35 UTC
Created attachment 79061 [details]
requested logging
Comment 9 Jindrich Sedek 2009-03-30 15:19:59 UTC
reopenning - requested logging is attached 
Comment 10 Jaroslav Tulach 2009-03-30 17:25:57 UTC
*** Issue 161451 has been marked as a duplicate of this issue. ***
Comment 11 Jindrich Sedek 2009-03-30 19:00:20 UTC
I'm trying to reproduce the problem without ergonomics and it seems to be also reproducible.

I've installed netbeans java SE IDE, then I downloaded Web Applications using plugin manager and after restart I 
disabled Web Applications plugin. I was requested to restart again and I did so.

Then I opened maven web app -> warning appeared about missing J2ee support which is correct, since I've disabled it in 
previous steps. To fix the problem, I opened Tools/Plugins and activated Web Applications.
Some modules were started - I'll attache the list, but the warning at the maven pluggin still appears and it should 
not. It doesn't appear after next IDE restart.

It seems the problem is not in ergonomics, but in maven modules that are not started correctly - reassigning to maven.
Comment 12 Jindrich Sedek 2009-03-30 19:01:36 UTC
Created attachment 79079 [details]
started modules
Comment 13 Milos Kleint 2009-03-31 06:48:21 UTC
the message is not automatically reloaded when you activate the j2ee modules. The "broken" modules don't listen on
changes. You can try either reloading the project (from projects popup) or building it. The badge should disappear.

If it disappears, it's just a minor visual annoyance. -> P4, if not please raise back to P3
Comment 14 Jindrich Sedek 2009-03-31 08:13:35 UTC
Reloading project or building it helps, but the root scenario - while maven modules are started by ergonomics is quite
often, visible, confusing and most of users will face it.

I also noticed, that after the j2ee modules are started "Web Pages" node appears - it seems that some changes are done
to project node... I believe it will be easy to fix this and preserve our users from this annoyance ;-)
Comment 15 Milos Kleint 2009-03-31 08:24:40 UTC
THE annoyance and root of all evil is ergonomics.
Comment 16 Milos Kleint 2009-04-20 08:00:32 UTC
*** Issue 163014 has been marked as a duplicate of this issue. ***
Comment 17 Jaroslav Tulach 2009-05-04 12:44:19 UTC
*** Issue 164090 has been marked as a duplicate of this issue. ***
Comment 18 Milos Kleint 2009-05-12 13:43:53 UTC
http://hg.netbeans.org/main/rev/dab74895e41f
Comment 19 Jindrich Sedek 2009-05-20 11:01:55 UTC
verified.
NetBeans IDE Dev (Build 200905200201)