Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Replacing javax.servlet Dependency

also note the related discussion on servletbridge issue
https://bugs.eclipse.org/bugs/show_bug.cgi?id=348045 

Jan

From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Franz-Stefan Preiss
Sent: Mittwoch, 23. Januar 2013 11:56
To: tycho-user@xxxxxxxxxxx
Subject: [tycho-user] Replacing javax.servlet Dependency

Dear Tycho-Team, Dear RAP-Team, 

we use Tycho to automatically assemble a .war file of our RAP [1] 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. 

--------------- 
Setup: 
--------------- 
Our setup is analog to the ones in org.eclipse.rap.examples.build [2], 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 

--------------- 
Question: 
--------------- 
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. 

[1] http://eclipse.org/rap/ 
[2] https://github.com/eclipse/rap/tree/master/releng/org.eclipse.rap.examples.build 
[3] https://github.com/eclipse/rap/blob/master/releng/org.eclipse.rap.examples.build/parent/pom.xml 
[4] https://github.com/eclipse/rap/blob/master/releng/org.eclipse.rap.examples.build/parent/parent/pom.xml 

Best Regards, 
Franz-Stefan


Back to the top