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 95920 - Eliminate the servlet 2.2 library and replace it with an open source approach
Summary: Eliminate the servlet 2.2 library and replace it with an open source approach
Status: RESOLVED FIXED
Alias: None
Product: ide
Classification: Unclassified
Component: Internal Server (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Petr Jiricka
URL:
Keywords:
Depends on: 96001
Blocks: 90674
  Show dependency tree
 
Reported: 2007-02-19 13:27 UTC by Petr Jiricka
Modified: 2007-06-13 14:24 UTC (History)
1 user (show)

See Also:
Issue Type: TASK
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Jiricka 2007-02-19 13:27:52 UTC
Currently, the httpserver module uses the servlet 2.2 library, which is under
the Sun Binary License, so it is not open source. It should be eliminated and
replaced with an approach that does not require closed source software.
Comment 1 Petr Jiricka 2007-02-19 13:30:12 UTC
The approach will be to use the open source Grizzly container, instead of Tomcat
3.2, that we currently use. Grizzly is not tied to the servlet API, so
extensions of the httpserver module will use Grizzly adapters.

Branch httpserver_grizzly was created that contains the prototype of the
implementation.
Comment 2 _ rkubacki 2007-02-22 18:10:40 UTC
This can avoid couple of patches required to produce packages for jpackage where
tomcat sources where changed to make them usable in IDE. OTOH can brings another
problems if we do nt find package for grizzly. 
Comment 3 Jaroslav Tulach 2007-02-23 09:39:33 UTC
If we do not insist on servlet API, then I'd like to propose a different 
alternative: Let's use scripting APIs. I have 50kb httpserver implementation 
that delegates to freemarker under CDDL at 
http://dvbcentral.cvs.sourceforge.net/dvbcentral/sources/httpserver/
http://dvbcentral.cvs.sourceforge.net/dvbcentral/sources/velocity/?pathrev=freemarker
I'd like to propose scripting solution like this as an alternative to grizzly.
Comment 4 Petr Jiricka 2007-06-13 14:24:29 UTC
At the end I chose a different approach. Servlet 2.2 library is included in Tomcat 3.2, which is under the Apache 1.1
license. Servlet 2.2 itself is available for download from Apache under the Apache 1.1 license - here is the source
download:

http://archive.apache.org/dist/tomcat/tomcat-3/src/jakarta-servletapi-src.zip

Every source file in this archive includes a notice that it is licensed under Apache 1.1 license, so we can just include
this library under Apache 1.1.
httpserver/external/servlet-2.2-license.txt,v1.5