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 75840

Summary: Import project wizard wants WEB-INF to be simultaneously present and not present
Product: javaee Reporter: alanbur <alanbur>
Component: Web ProjectAssignee: Radko Najman <rnajman>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P3    
Version: 5.x   
Hardware: Sun   
OS: Solaris   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 89479    
Bug Blocks:    

Description alanbur 2006-05-03 14:06:53 UTC
I'm trying to create a new web application with existing sources, using the
Wizard.  My app already has a WEB-INF project.  The first screen of the wizard
('Add existing sources') reports an error at the bottom of the screen, saying
'Project Folder already contains "WEB-INF" folder'.  If I delete the folder (or
just it's contents) and try again I get past the first screen but then get an
error on the second screen saying 'WEB-INF directory cannot be found in ....'
Comment 1 Radko Najman 2006-05-03 14:51:00 UTC
I guess that the first error message is shown because you want to create the
project in the same location as your WEB-INF is placed which is not allowed. If
you delete it, the second error is shown because without WEB-INF directory the
project cannot be created correctly.
Try to specify different location for your project and it should work.
Comment 2 alanbur 2006-05-03 18:18:36 UTC
That makes no sense to me - you appear to be saying that the directory has to be
simultaneously present and absent.

This problem disappeared when I blew away my $HOME/.netbeans project - could the
problem be that if a project fails to create it leaves cruft under there that
causes breakage if another attempt is made to create the project?
Comment 3 Radko Najman 2006-05-04 08:50:23 UTC
I wanted to say that project folder cannot be on the same level as WEB-INF folder.
Comment 4 alanbur 2006-05-04 09:23:53 UTC
It isn't, the WEB-INF directory was a subdirectory of the project directory.
Comment 5 Radko Najman 2006-05-04 10:05:07 UTC
Could you describe your source structure or attach a simple application to
reproduce it with?
Comment 6 Radko Najman 2007-01-15 14:32:33 UTC
Probably could be solved by issue #89479.
Comment 7 Radko Najman 2007-04-25 14:34:51 UTC
Hopefully fixed by issue #64088.