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 52694 - can't create or use web projects with existing sources
Summary: can't create or use web projects with existing sources
Status: CLOSED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Web Project (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: Radko Najman
URL:
Keywords:
: 52833 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-12-20 19:44 UTC by athompson
Modified: 2006-03-24 12:59 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
NPE (4.25 KB, text/plain)
2004-12-20 19:46 UTC, athompson
Details
exceptions after you hit 'Finish' in new project wizard (50.22 KB, text/plain)
2005-01-04 02:13 UTC, athompson
Details
exceptions thrown if you try to start IDE with bad project (12.53 KB, text/plain)
2005-01-04 02:18 UTC, athompson
Details
exception thrown when trying to bring up project properties (3.11 KB, text/plain)
2005-01-04 02:20 UTC, athompson
Details
exception thrown when trying to expand project node (4.25 KB, text/plain)
2005-01-04 02:21 UTC, athompson
Details
IllegalArgumentException thrown if the test directory was specified (3.54 KB, text/plain)
2005-01-04 22:14 UTC, athompson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description athompson 2004-12-20 19:44:49 UTC
winxp
4.1 daily 12/20/4
jdk-5.0

any attempts to create or use a web project with
existing sources results in the attached NPE.
Comment 1 athompson 2004-12-20 19:46:07 UTC
Created attachment 19370 [details]
NPE
Comment 2 Martin Matula 2004-12-21 10:01:58 UTC
Seems to be a web/project issue. Reassigning...
Comment 3 Radko Najman 2005-01-03 14:57:48 UTC
I can't reproduce your problem. Could you try to reproduce it with the
latest dev build, please?
Comment 4 athompson 2005-01-04 02:11:15 UTC
the problem is still there as of today's build, and it's definitely a
P1 bug. i just tried with jdk 1.4.2 and jdk 5.0, on WinXP and Linux,
with new '.netbeans' directories and old, and with multiple users. the
same problem every time. i do not exaggerate: web projects with
existing sources absolutely do not work at all under any
configuration, and i'm basically screwed at work until this gets
fixed. reproducing the problem is as simple as creating a web project
with existing sources. here are the values i used on windows. linux is
similar:

sources location: C:\stuff\projects\netbeans\pikachu\mas
project name: test
project folder: C:\stuff\projects\netbeans\pikachu\mas.test
context path: /mas

web pages: C:\stuff\projects\netbeans\pikachu\mas\src\jsp\mas
java sources: C:\stuff\projects\netbeans\pikachu\mas\src\java
libraries: C:\stuff\projects\netbeans\pikachu\mas\lib
server: bundled tomcat
J2EE specification: J2EE 1.4

this was working fine until the stuff for the multiple source
directories was added. i can't imagine how this can't be reproduced,
since i can't avoid it no matter what i do. if i'm doing something
wrong/stupid, PLEASE let me know.

when i hit 'Finish' in the wizard, the IDE starts with the initial
parsing, and immediately throws several UndeclaredThrowableException's
(see attachment 'UTEs.txt'). When the parsing is done, the project is
created, but attempting to access the project's properties results in
a NPE ('NPE2.txt') and the dialog does not show up. attempting to
expand the project node also results in a NPE ('NPE3.txt') and there
no child nodes displayed. additionally, whenever the IDE is started
with the project open, several NPEs are thrown during startup
('NPEs.txt') and the project panel doesn't even show up. the only way
you can get it back is to close the project and restart the IDE. the
only thing you can successfully do with the project is close it.
HELP!!! it quite literally can't be used, and i'm in hot water because
i pitched netbeans at work. please fix soon!
Comment 5 athompson 2005-01-04 02:13:08 UTC
Created attachment 19443 [details]
exceptions after you hit 'Finish' in new project wizard
Comment 6 athompson 2005-01-04 02:18:56 UTC
Created attachment 19444 [details]
exceptions thrown if you try to start IDE with bad project
Comment 7 athompson 2005-01-04 02:20:54 UTC
Created attachment 19445 [details]
exception thrown when trying to bring up project properties
Comment 8 athompson 2005-01-04 02:21:40 UTC
Created attachment 19446 [details]
exception thrown when trying to expand project node
Comment 9 John Jullion-ceccarelli 2005-01-04 08:45:05 UTC
Geertjan and I are getting the same errors if you want to take a look.
Definitely agree that it's a P1 - it's making it impossible to run the
end-to-end scenarios.
Comment 10 Radko Najman 2005-01-04 13:05:29 UTC
Fixed.

This issue appeared only when sources were placed in other directory
then "src". That was why I wasn't able to reproduce it, my sources
were in "src" directory. Because it worked for me I decreased the
priority. Increasing the priority back.
Comment 11 Radko Najman 2005-01-04 14:58:58 UTC
*** Issue 52833 has been marked as a duplicate of this issue. ***
Comment 12 athompson 2005-01-04 17:55:24 UTC
you can't see me, of course, but right now i'm dancing with joy.
thanks! when my people come to invade your planet, you will not be harmed.
Comment 13 athompson 2005-01-04 22:11:55 UTC
much better now, but here's a bug that's probably related: if you set
the test directory, you get an IllegalArgumentException when trying to
load the project (attached). you also can not view the project
properties. i'll file a separate bug report.
Comment 14 athompson 2005-01-04 22:14:37 UTC
Created attachment 19476 [details]
IllegalArgumentException thrown if the test directory was specified
Comment 15 athompson 2005-01-04 22:48:32 UTC
filed (distantly) related issue 52933
Comment 16 zikmund 2005-03-31 18:51:49 UTC
This part of issue was Verified, orther parts are filed separately (see previous
comments).