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 52212 - sun-application.xml visual editor doesn't show module mappings
Summary: sun-application.xml visual editor doesn't show module mappings
Status: CLOSED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 8 (show other bugs)
Version: 4.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: Rajeshwar Patil
URL:
Keywords:
: 52928 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-12-08 15:45 UTC by Petr Blaha
Modified: 2006-03-24 12:52 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
diffs for the fix (6.10 KB, text/plain)
2005-04-12 17:21 UTC, Rajeshwar Patil
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Blaha 2004-12-08 15:45:17 UTC
[Build 20041207]
I created J2EE Application with EJB module and Web
module and then open visual editor for
sun-application.xml. In panel representing J2EE
application should be listed Web module mappings.
Like this:
Module Mapping:
|    Web URI        |     Context Root     |
--------------------------------------------
|  library.war      |     /library         |

This table represents entry:
 <web>
      <web-uri>library.war</web-uri>
      <context-root>/default</context-root>
    </web>
in application.xml or sun-application.xml.
Element in Sun's DD overrides the corresponding
element in the application.xml file.
Comment 1 Petr Blaha 2005-01-05 07:11:25 UTC
*** Issue 52928 has been marked as a duplicate of this issue. ***
Comment 2 Vince Kraemer 2005-01-05 08:05:45 UTC
The data displayed in this table should only come from the
sun-applicatio.xml file, because that is the data that will be changed.
Comment 3 Rajeshwar Patil 2005-02-18 00:00:08 UTC
Need to read context root entries for all the web modules in an
application from application.xml and list them in this table.
Enteries are not shown in the editor, even on adding entries to
sun-application.xml by hand.
Comment 4 pcmreddy 2005-04-06 17:45:31 UTC
This bug fix is requested by JSE team. Exceptions needs to be handled properly.
Marking this bug as 
Comment 5 pcmreddy 2005-04-06 17:50:26 UTC
This functionality is needed for coming JSE.
Comment 6 _ ludo 2005-04-06 17:55:01 UTC
There is not exception in this bug.

There are 2 ways to enter this moudle mapping information (xm editor, and prop
panel for each node in the sun-applicatio UI editor.

 So this is not a P1, according to the guidelines.
Moving back to P3. Will mot fix for 4.1, unless there is an official escalation
about why the 2 proposed solutions are not acceptable.
Comment 7 _ ludo 2005-04-06 18:11:13 UTC
Ho, the 3rd way for a solution is to do nothing whne a module is added to a j2ee
project: these values are anyway always set by default when you add a new module
to a J2EE app, so my mistake: not 2 workaround, but 3.

Of course the ui is bad, but the goal of nb4.1 is to have zero config
capabilitites so that most of the time, you don't even need to know this ui at all.
Comment 8 Petr Jiricka 2005-04-07 08:28:36 UTC
Reopening, RESOLVED/LATER is not a valid resolution. Let's not use RESOLVED/LATER.
Comment 9 Rajeshwar Patil 2005-04-08 20:08:39 UTC
Files Modified:
org/netbeans/modules/j2ee/sun/share/configBean/customizers/other/AppRootCustomizer.form
new revision: 1.3; previous revision: 1.2

org/netbeans/modules/j2ee/sun/share/configBean/customizers/other/AppRootCustomizer.java
new revision: 1.5; previous revision: 1.4


Removed the URI mappings table.  It was redundant and incosistent with the way
all other customizers are implemented for sun ejb jar. We hava a separte
DConfigBean(separate node in the UI) that represents URI mapping. Customizer for
this DConfigbean is responsible for handling(read/write) URI mapping  and not
the Customizer for the  Root Element.
Comment 10 Petr Jiricka 2005-04-11 18:08:54 UTC
Not fixed completely, need to change the documentation as well.
Comment 11 Petr Jiricka 2005-04-12 11:28:22 UTC
This bugfix was requested by Studio. Rajeshwar, can I please ask you to follow
the high resistance integration process and also fix in the 4.1 branch, once
this is verified and reviewed? Thanks.
Comment 12 Petr Blaha 2005-04-12 13:28:01 UTC
URI table was removed. I verified that in trunk build 20050411. Can commit
changes to netbeans41 branch.
Comment 13 Geertjan Wielenga 2005-04-12 14:25:23 UTC
Not fixed completely, need to change the documentation as well.

Please tell Ken which help topics should be changed, and exactly what should be
changed in thos help topics.
Comment 14 Rajeshwar Patil 2005-04-12 17:10:18 UTC
Topic for sun-application Visual Editor(help id -- AS_CFG_Application) need to
be updated. *Module Mappings* section need to be removed all together.

Comment 15 Rajeshwar Patil 2005-04-12 17:21:59 UTC
Created attachment 21581 [details]
diffs for the fix
Comment 16 Kenneth Ganfield 2005-04-12 17:27:58 UTC
fixed docs in release 4.1 branch
Comment 17 _ ludo 2005-04-12 19:37:41 UTC
diff is OK

Ludo
Comment 18 _ ludo 2005-04-12 22:29:02 UTC
in 41 branch
Comment 19 Rajeshwar Patil 2005-04-13 01:54:40 UTC
Verified the fix in release41 branch. I can also see the modified new help page.
Comment 20 _ rkubacki 2005-04-13 08:19:04 UTC
please use unified format for diffs. It is better readable.
Comment 21 Petr Blaha 2005-04-14 08:28:22 UTC
[Build 20050413]
Comment 22 Vince Kraemer 2005-07-21 00:01:26 UTC
*** Issue 52928 has been marked as a duplicate of this issue. ***