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 81629 - Creation of web project from existing sources does not work.
Summary: Creation of web project from existing sources does not work.
Status: RESOLVED DUPLICATE of bug 79495
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Tomcat (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: Sherold Dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-01 20:10 UTC by ravivedala
Modified: 2006-08-08 09:35 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
messages.log for Netbeans 5.0 (57.52 KB, application/octet-stream)
2006-08-01 20:11 UTC, ravivedala
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ravivedala 2006-08-01 20:10:44 UTC
I have created a web project from existing sources. It works fine for the first
time.

If I delete the project from net beans and try to create another project for the
same set of src, web files any where in the drive, it throws an exception.

The steps I am performing are :

1) Open the IDE, create a new project, choose web, choose "Create web app from
existing sources".
2) Choose the directory where the src and web directories are present.
3) Go to the next step, everything gets filled (like src, web, lib).
4) Click on "Finish" it gives an exception.

I have tried the following but of no use.
1) Delete the .netBeans directory from user home directory and try the above steps.
2) Delete the nbproject, build.xml files and then try the above steps.
3) Move src, web directories to a different location in the drive and try the
above steps.

This is really very pain ful and this is happening on both 5.0 and 5.5 beta 2
versions.

It would be great and help if this can be resolved ASAP.
Comment 1 ravivedala 2006-08-01 20:11:46 UTC
Created attachment 32422 [details]
messages.log for Netbeans 5.0
Comment 2 Pavel Buzek 2006-08-08 06:01:13 UTC
It seems like you are using a strange build of nb 5.0. The build number
200601251500 does not correspond with what I see in cvs history. In revision
1.15 of org.netbeans.modules.tomcat5.WebappConfiguration which was created
2006/01/09 line 426 is empty! However, in rev 1.14 created on 2005/11/21 there
was this code (lines 434-437):

1.12         (sherold  25-Aug-05):             if (!modified) {
1.12         (sherold  25-Aug-05):                 SaveCookie cookie =
(SaveCookie)contextDataObject.getCookie(SaveCookie.class);
1.12         (sherold  25-Aug-05):                 cookie.save();
1.2          (rkubacki 21-May-03):             }

The class was later moved into org.netbeans.modules.tomcat5.config and this code
was changed to (lines 520-525):

1.1.2.1      (sherold  11-Apr-06):             if (!modified) {
1.1.2.1      (sherold  11-Apr-06):                 SaveCookie cookie =
(SaveCookie)contextDataObject.getCookie(SaveCookie.class);
1.1.2.5      (sherold  13-Jul-06):                 if (cookie != null) {
1.1.2.5      (sherold  13-Jul-06):                     cookie.save();
1.1.2.5      (sherold  13-Jul-06):                 }
1.1.2.1      (sherold  11-Apr-06):             }

Please try the latest build of NB 5.5 or the final build of nb 5.0.
Comment 3 Sherold Dev 2006-08-08 09:35:53 UTC

*** This issue has been marked as a duplicate of 79495 ***