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 46971 - [freeform] servlet APIs should be on classpath by default in web wizard
Summary: [freeform] servlet APIs should be on classpath by default in web wizard
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@javaee
URL:
Keywords:
Depends on:
Blocks: 42682 56356
  Show dependency tree
 
Reported: 2004-08-06 15:23 UTC by zikmund
Modified: 2016-07-07 08:53 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description zikmund 2004-08-06 15:23:32 UTC
Build 200408051800

1) Invoke wizard "Web Project with Existing Ant
Script"
2) Go to 6th page "Classpath"
3) ERROR:
Missing servlet and/or JSP API jars (depends on
J2EE specification level).
Notice: I'd expect unchecked "Separate classpath
..." checkbox and default filled API jars.
Comment 1 Jesse Glick 2004-08-06 16:49:00 UTC
I'm not so sure they should be included automatically by the wizard.
(1) Not all package roots in the project are necessarily using servlet
APIs. Some may be data beans or whatever you like. (2) Presumably you
are adding some copy of servlet.jar or similar to your classpath in
the Ant script already, just as in any other Ant script, and the IDE
can't guess exactly which one - not obvious that it is better for the
IDE to fill in some CP entries which you are not in fact using at
runtime (there are reasons pro and con).

UI spec does not currently request default addition of these JARs.
Needs a conscious decision.
Comment 2 Pavel Buzek 2004-08-06 21:43:38 UTC
AFAIK the user currently has no easy way to include any IDE libraries.
So this would need to be changed in the first place. 

IMO it would be easier for some users to just add the libs package
with IDE to get code completion work, even though it is not 100%
reliable and it would be more accurate to include the libs that the
project is actually built with (Look at ant/freeform/eg/web_jakarta -
it uses jar files from tomcat installation (this is how it is setup in
sample project jakarta build.xml).

If we decide to allow adding libraries to project I would agree with
adding them to wizard by default (and the user can always replace them
with the 'right' version).
Comment 3 Radko Najman 2004-09-17 09:31:52 UTC
Hopefully it will be solved in next release by better library management.
Comment 4 Andrei Badea 2005-03-17 07:57:35 UTC
Radko, do you plan to fix this for 4.1? I set the related issue #56356 in the
EJB freeform to ENHANCEMENT/promo-F, please do the same if you think it's
appropriate.
Comment 5 Radko Najman 2005-03-18 15:56:57 UTC
Changed to ENHANCEMENT as Andrei proposed.
Comment 6 Jaroslav Pospisil 2006-03-13 13:43:36 UTC
TM 5.0->TBD
Comment 7 Martin Balin 2016-07-07 08:53:00 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss