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 54158 - Moved project with separate sources and project directories can't be opened
Summary: Moved project with separate sources and project directories can't be opened
Status: CLOSED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Web Project (show other bugs)
Version: 4.x
Hardware: All All
: P2 blocker (vote)
Assignee: Andrei Badea
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-28 13:52 UTC by zikmund
Modified: 2006-03-24 12:48 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
NPE (4.25 KB, text/plain)
2005-01-28 13:53 UTC, zikmund
Details

Note You need to log in before you can comment on or make changes to this bug.
Description zikmund 2005-01-28 13:52:58 UTC
Build 200501271900

1) Have a Web project with existing sources - its
project folder is separated from sources (in
different directory)
2) Move the project on disk
3) Open it in NB
4) ERROR:
An error dialog appears with text 'Cannot find Web
Pages folder, ... set web.docbase.dir property in
project.properties file ...'

Note: I'd expect 'Resolve reference problem'
dialog instead.

5) Explore project's node
6) NPE is thrown -- see attachment.
Comment 1 zikmund 2005-01-28 13:53:16 UTC
Created attachment 20043 [details]
NPE
Comment 2 zikmund 2005-01-28 13:55:32 UTC
BTW: Java project with existing sources works fine.
Comment 3 Andrei Badea 2005-02-15 15:51:41 UTC
Left the 'Cannot find Web Pages' dialog there, but added an
instruction for the user to set the web dir in the customizer.

Resolve references problem dialog works.

NPE removed by the fix of issue #53749.
Comment 4 Andrei Badea 2005-02-15 15:52:51 UTC
Fixed.

Checking in WebProjectWebServicesSupport.java;
/cvs/web/project/src/org/netbeans/modules/web/project/WebProjectWebServicesSupport.java,v
 <--  WebProjectWebServicesSupport.java
new revision: 1.20; previous revision: 1.19
done
Checking in classpath/JspSourcePathImplementation.java;
/cvs/web/project/src/org/netbeans/modules/web/project/classpath/JspSourcePathImplementation.java,v
 <--  JspSourcePathImplementation.java
new revision: 1.2; previous revision: 1.1
done
Checking in ui/WebViews.java;
/cvs/web/project/src/org/netbeans/modules/web/project/ui/WebViews.java,v
 <--  WebViews.java
new revision: 1.25; previous revision: 1.24
done
Checking in ui/customizer/CustomizerProviderImpl.java;
/cvs/web/project/src/org/netbeans/modules/web/project/ui/customizer/CustomizerProviderImpl.java,v
 <--  CustomizerProviderImpl.java
new revision: 1.5; previous revision: 1.4
done
Comment 5 zikmund 2005-02-24 17:20:01 UTC
Still not ideal, but main problems are fixed.
Verified in 200502231900.