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 38777 - Web module DD source code inconsistency
Summary: Web module DD source code inconsistency
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P4 blocker (vote)
Assignee: vsh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-14 18:35 UTC by zikmund
Modified: 2004-09-08 17:03 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
patch (709 bytes, patch)
2004-02-03 08:21 UTC, vsh
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description zikmund 2004-01-14 18:35:53 UTC
There are probably two different templates for web
module Deployment Descriptor -- depends on
creation from Wizard or Convert FS.

Two web modules creation:
[WIZARD:]
W) Invoke Wizard for web module and create it
by 
[CONVERT:]
C) Empty mounted Filesystem Convert to web module
(right click -> Tools -> Convert Filesystem into
Web Module)

DIFFERENCES of DD:
1) indentation size 2 spaces (case W) vs. 4 spaces
(case C)
2) bad indentation in (W) -- probably caused by
using parts of case C and their different
indentation size
   - web-app tag attributes
   - values:
      session-timeout
      welcome-file 
   - end tags:
      </session-timeout>
      </welcome-file>
Comment 1 vsh 2004-01-30 15:43:20 UTC
Can not reproduce on current trunk
Comment 2 Ana.von Klopp 2004-01-30 17:25:16 UTC
If it works, please report that to Zikmund and the original 
responsible engineer allow either of them to close it. 
Comment 3 zikmund 2004-02-02 12:02:40 UTC
OK, now it appears only in case, that you create a new Servlet in a
web module. Then the source code indentation differs from the one web
module's DD without servlet.

How to reproduce:
1) Have mounted empty local directory
2) Create a new web module (using wizard or convert -- doesn't matter)
3) See DD = web.xml file (good indentation)
4) Create a new servlet in a web module
5) Again see DD
6) ERROR: bad indentation.
Comment 4 vsh 2004-02-03 08:21:03 UTC
We must reindent source with 4 spaces.
Comment 5 vsh 2004-02-03 08:21:58 UTC
Created attachment 13208 [details]
patch
Comment 6 zikmund 2004-09-08 17:03:29 UTC
Fixed - there is no 'Convert into Web Module' action in 4.0
Comment 7 zikmund 2004-09-08 17:03:43 UTC
Verified.