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 159467 - openning up enterprise project
Summary: openning up enterprise project
Status: RESOLVED DUPLICATE of bug 163378
Alias: None
Product: ide
Classification: Unclassified
Component: Features On Demand (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-02 21:52 UTC by shche123
Modified: 2009-06-21 13:43 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
project requestor on first open (after clean install) (36.19 KB, image/png)
2009-04-07 13:46 UTC, gholmer
Details
project requestor on subsequent opens (35.92 KB, image/png)
2009-04-07 13:47 UTC, gholmer
Details
messages.log with -J-Dorg.netbeans.modules.ide.ergonomics.level=FINEST (170.54 KB, text/plain)
2009-04-22 14:22 UTC, gholmer
Details
thread dump created with jvisualvm (30.02 KB, text/plain)
2009-04-22 14:23 UTC, gholmer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description shche123 2009-03-02 21:52:13 UTC
openning up enterprise project for the first time, does not open required projects when ee modules get enabled for the 
first time.
Has to close and open the ee project for the second time.
Comment 1 Jaroslav Tulach 2009-03-09 18:11:34 UTC
You can right click on the project and choose "Open Required Projects", I guess.
Comment 2 gholmer 2009-04-07 13:45:28 UTC
I am also seeing this (on a fresh install of 200904051400, with fresh userdir); I would also note that the project icon
in the requestor isn't correct until after the project has been opened the first time.  See attached screenshots;
"phoenix" is an enterprise app (should have triangle icon); "slm3-gf" is a standard web app (no EJBs, should have globe
icon).

After first open, everything works OK.
Comment 3 gholmer 2009-04-07 13:46:29 UTC
Created attachment 79628 [details]
project requestor on first open (after clean install)
Comment 4 gholmer 2009-04-07 13:47:14 UTC
Created attachment 79629 [details]
project requestor on subsequent opens
Comment 5 Jaroslav Tulach 2009-04-07 14:40:11 UTC
to gholmer: The behaviour with icons is correct. Until you activate Java EE functionality, the NetBeans only know that 
this is a project, but not what is its type.
Comment 6 shche123 2009-04-07 14:42:48 UTC
Should not the EE functionality be enabled before it loads the EE project? Feels like a bug...
Comment 7 Vince Kraemer 2009-04-07 19:16:59 UTC
I think this needs to be a p3...

I did the following steps...

started a fresh recent pull with a new userdir
attempted to open an enterprise application
  the subproject list was not populated  so I canceled the open.

I enabled the Java plugin (which also enabled the Ant plugin)

I attempted to open the same ent app
  the subproject list was not populated  so I canceled the open.

The ant project system should have been 'complete' at this point. I think the IDE should have been able to detect that
the ent app had a dependency on two other projects and populated the Subproject list without having the Java EE features
enabled.

Please reconsider this as a p3.
Comment 8 Jaroslav Tulach 2009-04-08 16:46:30 UTC
Do following steps:
started a fresh recent pull with a new userdir
attempted to open an enterprise application
open it.
right click on project and choose "Open Required Projects"
Comment 9 gholmer 2009-04-20 13:57:04 UTC
I just installed 200904171401, and couldn't open an enterprise app at all.
1) download "Java" version (second from left on download page)
2) begin install to fresh userdir and install dir, deselect Java ME and GlassFishes (Tomcat also deselected)
3) import userdir settings from 6.5 on first run
4) open project, enterprise app appears with plain folder icon which just expands to subdirectory

If I deselect Features on Demand at install time, I can open the enterprise app normally.
Comment 10 Petr Jiricka 2009-04-20 15:13:07 UTC
This sounds like a P2 to me, not P4.
Comment 11 Jaroslav Tulach 2009-04-22 07:39:39 UTC
It would be even P1 if I could reproduce the problem. But I cannot. I installed 
trunk/daily/2009-04-17_14-01-10/bundles/netbeans-trunk-nightly-200904171401-java-linux.sh
and nothing existing J2EE projects open up normally.

gholmes please provide more information. It would be good to have your messages.log file. Preferably 
with -J-Dorg.netbeans.modules.ide.ergonomics.level=FINEST logging enabled. 

Another important thing is my ability to reproduce your problem on my computer. For that I need relatively detailed 
steps for reproduction. Saying "import userdir settings from 6.5 on first run" is not going to help me, as I am sure 
that my 6.5 userdir is quite different to yours. 

Maybe the log file will be enough, but if not, I really need as simple reproducible steps as possible. Thanks.
Comment 12 shche123 2009-04-22 13:57:02 UTC
You need a computer that does not have NetBeans installed to reproduce this issue ...
Comment 13 gholmer 2009-04-22 14:20:52 UTC
With 0421 build, it worked fine (with FoD enabled).
With 0422 build and clean userdir, it works fine.
With 0422 build and imported userdir, NetBeans hangs at "Activating EJB and EAR" (I waited about ten minutes).
See attachments.
Comment 14 gholmer 2009-04-22 14:22:12 UTC
Created attachment 80700 [details]
messages.log with -J-Dorg.netbeans.modules.ide.ergonomics.level=FINEST
Comment 15 gholmer 2009-04-22 14:23:56 UTC
Created attachment 80701 [details]
thread dump created with jvisualvm
Comment 16 gholmer 2009-04-22 14:38:44 UTC
With 0422 and Features on Demand disabled at install time, also no problem.

I have also heap dump and tarball of my 6.5 userdir, but they are apparently too large to upload (40M, 14M).
Comment 17 Jaroslav Tulach 2009-04-23 08:14:06 UTC
The last thread dump
http://www.netbeans.org/nonav/issues/showattachment.cgi/80701/netbeans-0422.tdump
is duplicate of issue 163378

*** This issue has been marked as a duplicate of 163378 ***