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 221836 - Eliminate dependency on JavaEE
Summary: Eliminate dependency on JavaEE
Status: RESOLVED FIXED
Alias: None
Product: javame
Classification: Unclassified
Component: Build System (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Jiri Rechtacek
URL:
Keywords:
Depends on: 187678 203649 215682
Blocks: 190749 200785
  Show dependency tree
 
Reported: 2012-11-09 14:58 UTC by Jiri Rechtacek
Modified: 2012-12-09 03:09 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
a proposed patch (16.54 KB, patch)
2012-11-28 15:35 UTC, Jiri Rechtacek
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Rechtacek 2012-11-09 14:58:46 UTC
The file type 'Java ME Client to Web Application' in the J2ME project, requires whole Java EE be installed. Consider make this filetype to available in the J2ME project if and only if Java EE is installed/active, otherwise hide it.
Comment 1 BorisUlasevich 2012-11-12 07:27:37 UTC
Thank you for filing the issue.

Here, in JavaME department, we do not understand how can JavaME installation depend on JavaEE. From bug #203649 we see that jsr172 (WebServices/XML) is involved somehow, but it still gives us no clue.

Our customers wants minimal NetBeans installation and this dependency is rather painful for us.
Comment 2 Stepan Zebra 2012-11-12 10:22:11 UTC
Note that there are two file templates, which requires JavaEE:
Java ME Client to Web Application
Java ME Web Service Client
Comment 3 Jiri Rechtacek 2012-11-25 17:55:21 UTC
Impl. for the present on branch meee_221836 in the repository - http://hg.netbeans.org/releases/
Comment 4 Jiri Rechtacek 2012-11-28 15:35:59 UTC
Created attachment 128523 [details]
a proposed patch

The patch adds a new module into enterprise cluster - web.mobilitybridge, it's module which owns just a layer, no dependencies on other module and web.kit depends on that. Petr, David, please look on it. I'm going to integrate it tomorrow if no objections.
Comment 5 Petr Jiricka 2012-11-28 16:16:51 UTC
Looks good to me, assuming there are no user-visible UI elements in case the Java ME functionality is not installed or enabled.
Comment 6 David Konecny 2012-11-28 23:33:35 UTC
This will work but it does not look like a right solution IMO. Module web.mobilitybridge should not be part of EE cluster but should be in ME cluster and should be a type of module which gets loaded automatically when EE functionality is presented. Looking at NetBeans Module documentation the mobilitybridge module is "eager" module which gets enabled when web.kit and me.kit are both enabled.
Comment 7 Jiri Rechtacek 2012-12-06 10:55:18 UTC
(In reply to comment #6)
> This will work but it does not look like a right solution IMO. Module
> web.mobilitybridge should not be part of EE cluster but should be in ME cluster
> and should be a type of module which gets loaded automatically when EE
> functionality is presented. Looking at NetBeans Module documentation the
> mobilitybridge module is "eager" module which gets enabled when web.kit and
> me.kit are both enabled.

Okay, we chose another solution which doesn't require any changes on J2EE side.

http://hg.netbeans.org/core-main/rev/b3998d0360ed
Comment 8 Petr Somol 2012-12-06 12:28:27 UTC
Just to provide more details about what is the behavior now after the fix. Now the 'Java ME Client to Web Application' and 'Java ME Web Service Client' file types are made available in J2ME Project only if EE is installed and enabled at the same time. Otherwise they are hidden. This is not only the most correct solution technically, it also makes sense for the following usability reason - if we enabled the aforementioned file types in J2ME Project without having installed and enabled EE, the user would actually end up in dead end in the instantiating dialogs, because both of the file types require existing Web or EE projects to which they can refer.
Comment 9 Quality Engineering 2012-12-08 02:56:38 UTC
Integrated into 'main-golden', will be available in build *201212080001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/b3998d0360ed
User: Jiri Rechtacek <jrechtacek@netbeans.org>
Log: #221836: Eliminate dependency on JavaEE
Comment 10 Quality Engineering 2012-12-09 03:09:38 UTC
Integrated into 'main-golden', will be available in build *201212090001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/78d73d447d62
User: Jiri Rechtacek <jrechtacek@netbeans.org>
Log: again #221836: Eliminate dependency on JavaEE