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 140870 - Cannot open web project
Summary: Cannot open web project
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Web Project (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: David Konecny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-19 09:37 UTC by _ gtzabari
Modified: 2008-09-22 07:59 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Here is my project file (17.51 KB, application/x-compressed)
2008-07-19 09:43 UTC, _ gtzabari
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ gtzabari 2008-07-19 09:37:39 UTC
dev build 200807170007

When I try opening the web project I get this error:

"Error parsing C:\Users\Gili\Documents\blueeye\trunk\desktopbeautifier\Server\netbeans6.5\nbproject\project.xml:
cvc-type.3.1.3: The value '1.6.5' of element 'minimum-ant-version' is not valid."

I downloaded the JavaSE bundle of Netbeans, and installed "Web Applications" and "Tomcat" plugins after the fact. This
used to work as late as last week (also 6.5 milestone 1) but fails now.
Comment 1 _ gtzabari 2008-07-19 09:43:17 UTC
Created attachment 65023 [details]
Here is my project file
Comment 2 _ gtzabari 2008-07-19 09:44:35 UTC
Given the fact this is a regression and blocks basic usage I am raising the priority to a P1. Feel free to lower it if
you disagree.
Comment 3 David Konecny 2008-07-20 21:07:34 UTC

*** This issue has been marked as a duplicate of 140515 ***
Comment 4 David Konecny 2008-07-20 21:25:49 UTC
This actually is not a duplicate. Sorry. Opening a project now checks validity of project.xml against XML Schema. There
was a time in the past when NB generated project.xml with <minimum-ant-version>1.6.5</minimum-ant-version> which was
later fix to be <minimum-ant-version>1.6</minimum-ant-version> and that's the value enforced by schema now. See issue
70913 for more details. Short term fix is to update your project.xml to have "1.6". That will work with NB6.5 and older
versions.

Jesse, it is question how often this problem can happen. Relaxing schema to allow both 1.6 and 1.6.5 could be a fix.
Comment 5 _ gtzabari 2008-07-20 21:42:29 UTC
Thank you for providing a workaround. In the meantime I will modify my project file by hand.
Comment 6 Jesse Glick 2008-07-21 18:44:24 UTC
Probably the schema should permit any valid version number. Anyway do we _really_ still generate projects which can run
on Ant 1.6.0? I doubt it; very likely we are generating projects which rely on 1.6.5 features or bug fixes.
Comment 7 David Konecny 2008-07-22 22:08:30 UTC
Actually issue 70913 confused me. You are right Jesse that 1.6.5 is minimum required version but issue 70913 claims that
we should wait with fixing this until there is a reason to increase schema version. Which is not true - we can add 1.6.5
to schema and keep there 1.6 for now as well to make schema backward compatible and with a new version of schema we
would remove 1.6 from valid values. And this is what I'm going to implement.
Comment 8 David Konecny 2008-07-23 04:00:19 UTC
Now both 1.6 and 1.6.5 are acceptable values and all new projects are generated with 1.6.5.
a43c189259b9
Comment 9 josin 2008-09-17 11:48:32 UTC
I wasn't able to open attached project because of AssertionError. See issue 143969 for more details.

Product Version: NetBeans IDE Dev (Build 200809170201)
Java: 1.6.0_10-beta; Java HotSpot(TM) Client VM 11.0-b11
System: Linux version 2.6.24-19-generic running on i386; UTF-8; en_US (nb)
Comment 10 David Konecny 2008-09-17 20:40:04 UTC
That's different issue. There is no relation between these two issues.
Comment 11 Martin Fousek 2008-09-22 07:59:22 UTC
I opened it without problem. 

Verified in NetBeans IDE Dev (Build 200809220201).