|Replacing javax.servlet Dependency [message #1004495]
||Wed, 23 January 2013 10: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.
Powered by FUDForum
. Page generated in 0.02080 seconds