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 142392

Summary: run file doesn't work on servlet
Product: javaee Reporter: Jindrich Sedek <jsedek>
Component: Web ProjectAssignee: Vince Kraemer <vkraemer>
Status: VERIFIED FIXED    
Severity: blocker CC: phejl, pjiricka
Priority: P1    
Version: 6.x   
Hardware: Sun   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: app output
servel log output

Description Jindrich Sedek 2008-07-31 12:07:47 UTC
Create new WebApplication on Glassfish V2
invoke run project ...
index page is shown in browser
start new file wizard, select Servlet, press Next >
set some package, press Finish
right click generated Servlet java file, invoke Run file from popup menu ->

"Deployment error: " is printed into output and no page is shown in browser
Comment 1 Jindrich Sedek 2008-07-31 12:09:08 UTC
Created attachment 66158 [details]
app output
Comment 2 Jindrich Sedek 2008-07-31 12:09:34 UTC
Created attachment 66159 [details]
servel log output
Comment 3 Jan Horvath 2008-07-31 14:26:22 UTC
This should be fixed for beta - raising priority to P1.
BTW. it is reproducible on Glassfish only
Comment 4 Petr Jiricka 2008-07-31 17:28:59 UTC
This is a problem in Deploy on Save - the web.xml file under the build dir has 0 length.
Comment 5 Petr Jiricka 2008-08-01 16:53:51 UTC
Petre H, can you please look at this as the first thing on Monday? Thanks.
Comment 6 Vince Kraemer 2008-08-01 21:06:02 UTC
Petr J asked me to look at this.  He thought that it might be a bug in the GF plugin.
Comment 7 Vince Kraemer 2008-08-01 21:09:26 UTC
http://hg.netbeans.org/main/rev/14d20781ddb0
Comment 8 Vince Kraemer 2008-08-01 21:50:56 UTC
corrected the tm
Comment 9 Vince Kraemer 2008-08-02 01:21:51 UTC
*** Issue 142034 has been marked as a duplicate of this issue. ***
Comment 10 Quality Engineering 2008-08-02 15:57:34 UTC
Integrated into 'main-golden', available in build *200808021401* on http://bits.netbeans.org/dev/nightly/
Changeset: http://hg.netbeans.org/main/rev/14d20781ddb0
User: Vince Kraemer <vkraemer@netbeans.org>
Log: #142392 : file writes over self, sets length to 0 in deploy directory... booo.
Comment 11 Jindrich Sedek 2008-08-04 17:32:16 UTC
verified.
NetBeans IDE Dev (Build 200808040201)