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 44117

Summary: Refresh parent FileObject of newly created catalina basedir
Product: serverplugins Reporter: L Martinek <lmartinek>
Component: TomcatAssignee: Martin Grebac <mgrebac>
Status: CLOSED FIXED    
Severity: blocker Keywords: T9Y
Priority: P2    
Version: 4.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Attachments: Exception
Proposed patch

Description L Martinek 2004-06-01 18:33:28 UTC
One of my automated tests does nothing that opens
web project and runs it. I always got exception
during starting of Tomcat. It happened because
FileObject of newly created catalina basedir was
always null. I found out that parent FileObject of
newly created catalina basedir has to be
refreshed. Strange is that the problem never
occurred when I did it manually. 

I am attaching proposed patch.
Comment 1 L Martinek 2004-06-01 18:33:57 UTC
Created attachment 15401 [details]
Exception
Comment 2 L Martinek 2004-06-01 18:34:35 UTC
Created attachment 15402 [details]
Proposed patch
Comment 3 L Martinek 2004-06-02 10:15:51 UTC
Now I was able to reproduce it also manually. Please fix it ASAP. It
blocks my development of automated tests.
Comment 4 Martin Grebac 2004-06-02 12:07:21 UTC
I think the patch looks ok, I'll apply it.
Comment 6 Petr Blaha 2004-07-09 09:16:39 UTC
Verified