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 179178 - Handling projects with unsupported J2EE versions
Summary: Handling projects with unsupported J2EE versions
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Web Project (show other bugs)
Version: 6.x
Hardware: PC All
: P2 normal (vote)
Assignee: David Konecny
URL:
Keywords:
: 177912 180554 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-01-04 05:08 UTC by Martin Schovanek
Modified: 2010-03-29 23:28 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Schovanek 2010-01-04 05:08:24 UTC
[Nb 6.8 FCS, jdk 1.6]

In case a user is going to open a project with unsupported J2EE version we should display a clear warning that the project's J2EE version is not supported and mark it as broken. Next we can provide link to a page where user find which versions are supported and a how to upgrade his project to a supported version.

Current state is that Nb opens such projects without any warning and user get some strange warning and exceptions during creating Servlets etc.

See:
http://netbeans.org/projects/www/lists/nbusers/archive/2010-01/message/3
issue 167963 

This issue is valid for other J2EE project types too.
Comment 1 David Konecny 2010-03-22 04:27:24 UTC
Instead of warning user during project opening I implemented slightly different strategy. I looked at concrete errors reported and provided better error messages and/or prevented user from getting into an exception situation. If web.xml is too old and user tries to for example apply Safe Delete refactoring or create a new Servlet then user is informed that action is not going to work because web.xml has to be upgraded to 2.4 or higher first; or older version of NB has to be used. Please file bugs for any other cases which are not handled this way and I will fix them.
86c8fa4f1b08
Comment 2 Quality Engineering 2010-03-23 05:10:53 UTC
Integrated into 'main-golden', will be available in build *201003230200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/86c8fa4f1b08
User: David Konecny <dkonecny@netbeans.org>
Log: #179178 -  Handling projects with unsupported J2EE versions
Comment 3 David Konecny 2010-03-26 03:34:02 UTC
*** Bug 177912 has been marked as a duplicate of this bug. ***
Comment 4 David Konecny 2010-03-29 23:28:43 UTC
*** Bug 180554 has been marked as a duplicate of this bug. ***