|Replacing javax.servlet Dependency [message #1004495]
||Wed, 23 January 2013 05:55
| Franz-Stefan Mising name
Registered: December 2010
Dear Tycho-Team, Dear RAP-Team,|
we use Tycho to automatically assemble a .war file of our RAP  project, and I want to know whether it is possible to replace the javax.servlet dependency from Glassfish with an alternative implementation.
As I'm not sure if the Tycho developers or the RAP developers are the right audience to ask, I'm sending this to both communities.
Our setup is analog to the ones in org.eclipse.rap.examples.build , with a bundle project, a feature project, a product project, a two-staged parent pom [3, 4], and eclipse-juno as p2 repository.
The .war file is built correctly and our RAP application runs fine on a jetty server.
In my bundle project MANIFEST.MF, I have 'Require-Bundle: org.eclipse.rap.ui' and 'Import-Package: javax.servlet;version="2.4.0", javax.servlet.http;version="2.4.0"' entries.
Using 'mvn dependency:tree' on this bundle project, I see the following dependency entry:
[INFO] +- p2.eclipse-plugin:javax.servlet:jar:3.0.0.v201112011016:system
Looking at javax.servlet-3.0.0.v201112011016.jar in my m2 repository folder, its 'about.html' says: "The plug-in includes software developed by Sun as part of the Glassfish project."
As far as I understand, this jar file is automatically downloaded by Tycho from the eclipse-juno p2 repository.
I don't know if that's relevant, but the feature/product projects do not have such a javax.servlet dependency; they have the following servlet dependency entries (instead):
[INFO] +- p2.eclipse-plugin:org.eclipse.equinox.http.servlet:jar:1.1.300.v20120522-1841:system
[INFO] +- p2.eclipse-plugin:org.eclipse.equinox.http.servletbridge:jar:1.0.300.v20120522-2049:system
[INFO] +- p2.eclipse-plugin:org.eclipse.equinox.servletbridge.extensionbundle:jar:1.2.100.v20120522-2049:system
Because of open-source licensing issues, I need to substitute the javax.servlet from Sun's/Oracle's Glassfish with an implementation from another provider.
Can anybody tell me whether this is possible, and if yes, how it can be done?
Thank you already in advance.
|Re: Replacing javax.servlet Dependency [message #1005349 is a reply to message #1004495]
||Thu, 24 January 2013 19:40
| Chris Fairhall
Registered: February 2011
What are the licensing issues? You don't need to distribute the Glassfish or any other implementation. All you're doing is declaring a dependency on an API = "javax.servlet".|
When you build your RAP application into a WAR file, the servlet jar is not included.
You should never bundle a servlet implementation jar with your product unless your product is a servlet container.
Powered by FUDForum
. Page generated in 0.08972 seconds