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 102180 - J2SE project can't depend on J2EE
Summary: J2SE project can't depend on J2EE
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Andrei Badea
URL:
Keywords:
Depends on: 106851
Blocks:
  Show dependency tree
 
Reported: 2007-04-23 16:05 UTC by luky
Modified: 2007-06-21 10:22 UTC (History)
3 users (show)

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 luky 2007-04-23 16:05:24 UTC
Trying to unselect j2ee in module manager results in uninstalling of j2se 
project module a therefore broking functionality of netBeans. This is 
absolutly unacceptable. J2SE projects can't depend on J2EE
Comment 1 Andrei Badea 2007-04-24 09:47:31 UTC
What exactly is "trying to unselect *j2ee*"? Did you e.g. try to unselect all
modules in the Java EE category, or something else?
Comment 2 luky 2007-04-24 09:51:41 UTC
What I did was to unselect J2ee node in module manager, hence automatically 
unselecting all modules belonging to j2ee category
Comment 3 Andrei Badea 2007-04-24 10:12:59 UTC
Ah sorry, my fault, I thought this was for 6.0, which doesn't have a J2EE node.
We need to make sure that no modules outside the enterprise cluster are in the
"Java EE" category.
Comment 4 Petr Jiricka 2007-04-24 13:13:22 UTC
Not a showstopper for the preview release, lowering to P2 for now. 

Not sure what the expected behavior is in NetBeans 6, since as Andrei points
out, there is no simple way to disable the whole category. Is there a spec
available for how this will work in 6.0 FCS? 

Also, I assume the current list of categories is provisional and the categories
will be redefined - this should be coordinated across all teams. Moreover, I
expect the "Installed" tab in the Plugins dialog will not be the primary way to
turn on or off the Java EE features - for NB 6 FCS, UI from the installer which
lists the high level components should be available in the Plugins dialog.
Comment 5 luky 2007-05-30 10:33:45 UTC
Still present in 6.0, and I believe is P1
Comment 6 Martin Adamek 2007-06-05 14:00:53 UTC
This is not a P1 (according to Bug priority guidelines).
J2SE project is probably selected because of dependencies on APIs like JPA,
which in fact IS J2EE technology. Anyway, as Petr mentioned we can move it if
there will be some spec for that.
Comment 7 luky 2007-06-05 21:36:58 UTC
J2SE is selected because of dependency on j2ee.metadata
And how come suddenly j2se project is dependent on j2ee when j2ee wan until 
recently just an optional package? There is no way that j2se is dependent on 
j2ee. And it must be fixed asap
Comment 8 luky 2007-06-18 12:50:23 UTC
I am sorry. I don't understand how this issue depends on "Web and Java EE" does not appear under the Installed tab 
(issue 106851). Can you please elaborate?
Comment 9 martin_adamek 2007-06-18 13:02:03 UTC
Just that if it's not in 'Installed' tab I cannot uninstall it to test the behavior mentioned in this issue. Anyway I am
having some other problems with Plugin dialog in latest build (not able to switch from NBM to Plugin view), so will have
to solve this first.
Comment 10 Pavel Buzek 2007-06-20 07:24:01 UTC
Issue 106851 is not a blocker. just go to settings and switch from Plugins to NetBeans modules and you will see all
modules with categories. Modules in java1 cluster should not be listed in Java EE category.
Comment 11 martin_adamek 2007-06-20 07:24:36 UTC
I don't know if the plugin manager changed its way of handling clusters vs. plugins, but in fresh build if I deselect
'Web and Java EE' plugin, IDE is suggesting deactivation of EJB Refactoring, NetBeans Profiler (J2EE Projects) and Web
Refactoring. Those are obviously ok, so I am closing this. 
Comment 12 luky 2007-06-20 10:39:49 UTC
And doesn't it by the way deselect as well J2SE project?
Comment 13 martin_adamek 2007-06-20 10:45:14 UTC
No.
Comment 14 Marian Petras 2007-06-20 16:29:34 UTC
In the current build of NB 6.0 (updated less that 3 hours ago):

In the Plugin Manager, I have a view that individual modules are displayed (Settings tab - radio button "NetBeans
Modules (NBM)" selected). In the "Installed" tab, I right-click on a row with module "Java EE Metadata" (from category
"Java EE" and select "Deactivate Category 'Java EE'" from the pop-up menu. I get a window displaying the following
information:

    The following plugins were scheduled to deactivate:

        Java EE Metadata Model Support
        Java EE Metadata
        Java Persistence API Support API
    
    The following plugins have to be added to the deactivation,
    because one or more plugins you are about to deactivate depend on them.

        Java SE Projects
Comment 15 luky 2007-06-20 19:48:59 UTC
yes indeed it is the case. And I am afraid there can be more modules which are affected (like Java Persistance API 
support). Java SE Projects is dependent on JavaEE Metadata Model Suport and JavaEE Metadata.
Anyway, please clean this mess.
Comment 16 Andrei Badea 2007-06-21 10:10:39 UTC
Those are my modules, taking over.
Comment 17 Andrei Badea 2007-06-21 10:22:54 UTC
Fixed.

Checking in j2ee/metadata/src/org/netbeans/modules/j2ee/metadata/Bundle.properties;
/cvs/j2ee/metadata/src/org/netbeans/modules/j2ee/metadata/Bundle.properties,v  <--  Bundle.properties
new revision: 1.5; previous revision: 1.4
done
Checking in j2ee/metadata/support/src/org/netbeans/modules/j2ee/metadata/model/support/resources/Bundle.properties;
/cvs/j2ee/metadata/support/src/org/netbeans/modules/j2ee/metadata/model/support/resources/Bundle.properties,v  <-- 
Bundle.properties
new revision: 1.3; previous revision: 1.2
done
Checking in j2ee/persistenceapi/src/org/netbeans/modules/j2ee/persistenceapi/resources/Bundle.properties;
/cvs/j2ee/persistenceapi/src/org/netbeans/modules/j2ee/persistenceapi/resources/Bundle.properties,v  <--  Bundle.properties
new revision: 1.3; previous revision: 1.2
done
Checking in j2ee/toplinklib/src/org/netbeans/modules/j2ee/toplinklib/Bundle.properties;
/cvs/j2ee/toplinklib/src/org/netbeans/modules/j2ee/toplinklib/Bundle.properties,v  <--  Bundle.properties
new revision: 1.3; previous revision: 1.2
done