Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[emft-dev] [Fwd: Essential build problem]

Hi Nick,

To help myself I've added orbit-S20080512184123 to emft:/home/www-data/build/3rdPartyjars.
Hopefully that's not too much data (~50MB, only non-source bundles)

Cheers
/Eike


-------- Original-Nachricht --------
Betreff: Essential build problem
Datum: Tue, 27 May 2008 10:08:31 +0200
Von: Eike Stepper <stepper@xxxxxxxxxx>
An: Nick Boldt <codeslave@xxxxxxxxxx>
CC: Simon McDuff <smcduff@xxxxxxxxxxx>, Martin Taal <mtaal@xxxxxxxxx>
Referenzen: <OFCAC1E203.31787677-ON85257456.000D764F-85257456.000D9D89@xxxxxxxxxx>


Hi Nick,

I just tried to include Orbit as external dependency into my builds.
I updated all respective scripts and from a configuration's point of 
view it looks good.

BUT:

Orbit contains, for example, several versions of javax.servlet (2.3.0, 
2.4.0 and 2.5.0).
It seems as if all versions in the bundle names are cut off.
I don't know the algorithm (if any) that is used to evict bundles to be 
removed but I suspect the following:
1) all bundles are processed in lexical order (in case of 
javax.servlet_vxyz: 2.3 -> 2.4 -> 2.5)
2) an attempt to remove the version from the file name is made
3) if not successfule because the rename target exists already, the file 
/folder is deleted

This is conform with my observation that javax.servlet_2.3.0.jar 
survived as javax.servlet.jar (checked the manifest).
That is a problem (the result, regardless of my above assumption)!

I'm not very sure, how OSGi's/PDE's resolution strategy is for multiple 
versions of the same bundle/package.
It used to be higher version wins (although once I read a discussion to 
change that).

And there's even the case possible that different bundles need a bundle 
(same name) in different versions.
This should/must be possible if the named bundle is not marked as a 
singleton!

Concrete: I get the following errors in the build log:

generateScript:
[eclipse.buildScript] Some inter-plug-in dependencies have not been satisfied.
[eclipse.buildScript] Bundle org.eclipse.jdt.apt.pluggable.core:
[eclipse.buildScript] 	Missing Constraint: Bundle-RequiredExecutionEnvironment: JavaSE-1.6
[eclipse.buildScript] 	Unsatisfied import package org.eclipse.jdt.internal.compiler.tool_0.0.0.
[eclipse.buildScript] 	Unsatisfied import package org.eclipse.jdt.internal.compiler.apt.dispatch_0.0.0.
[eclipse.buildScript] 	Unsatisfied import package org.eclipse.jdt.internal.compiler.apt.model_0.0.0.
[eclipse.buildScript] 	Unsatisfied import package org.eclipse.jdt.internal.compiler.apt.util_0.0.0.
[eclipse.buildScript] Bundle org.eclipse.equinox.jsp.jasper.registry:
[eclipse.buildScript] 	Unsatisfied import package org.eclipse.equinox.jsp.jasper_0.0.0.
[eclipse.buildScript] 	Unsatisfied import package javax.servlet_2.4.0.
[eclipse.buildScript] 	Unsatisfied import package javax.servlet.http_2.4.0.
[eclipse.buildScript] Bundle org.eclipse.platform:
[eclipse.buildScript] 	Missing required plug-in org.eclipse.ui.ide.application_[1.0.0,2.0.0).
[eclipse.buildScript] Bundle org.eclipse.jdt.compiler.tool:
[eclipse.buildScript] 	Missing Constraint: Bundle-RequiredExecutionEnvironment: JavaSE-1.6
[eclipse.buildScript] Bundle org.eclipse.jdt.compiler.apt:
[eclipse.buildScript] 	Missing Constraint: Bundle-RequiredExecutionEnvironment: JavaSE-1.6
[eclipse.buildScript] 	Unsatisfied import package org.eclipse.jdt.internal.compiler.tool_0.0.0.
[eclipse.buildScript] Bundle org.eclipse.help.webapp:
[eclipse.buildScript] 	Missing required plug-in org.apache.jasper_5.5.17.
[eclipse.buildScript] 	Missing required plug-in org.eclipse.equinox.jsp.jasper.registry_1.0.0.
[eclipse.buildScript] 	Unsatisfied import package javax.servlet_2.4.0.
[eclipse.buildScript] 	Unsatisfied import package javax.servlet.http_2.4.0.
[eclipse.buildScript] Bundle org.eclipse.equinox.http.jetty:
[eclipse.buildScript] 	Unsatisfied import package javax.servlet_[2.4.0,2.6.0).
[eclipse.buildScript] 	Unsatisfied import package javax.servlet.http_[2.4.0,2.6.0).
[eclipse.buildScript] 	Unsatisfied import package org.mortbay.http_[5.1.0,6.0.0).
[eclipse.buildScript] 	Unsatisfied import package org.mortbay.jetty.servlet_[5.1.0,6.0.0).
[eclipse.buildScript] 	Unsatisfied import package org.mortbay.util_[5.1.0,6.0.0).
[eclipse.buildScript] Bundle org.mortbay.jetty:
[eclipse.buildScript] 	Unsatisfied import package javax.servlet_[2.4.0,2.6.0).
[eclipse.buildScript] 	Unsatisfied import package javax.servlet.http_[2.4.0,2.6.0).
[eclipse.buildScript] 	Unsatisfied import package javax.servlet.resources_[2.4.0,2.6.0).
[eclipse.buildScript] Bundle org.eclipse.platform.doc.isv:
[eclipse.buildScript] 	Another singleton version selected: org.eclipse.platform.doc.isv_3.4.0.v20080522-1800
[eclipse.buildScript] Bundle org.eclipse.equinox.jsp.jasper:
[eclipse.buildScript] 	Unsatisfied import package javax.servlet_2.4.0.
[eclipse.buildScript] 	Unsatisfied import package javax.servlet.http_2.4.0.
[eclipse.buildScript] 	Unsatisfied import package javax.servlet.jsp_2.0.0.
[eclipse.buildScript] 	Unsatisfied import package org.apache.jasper.servlet_0.0.0.
[eclipse.buildScript] Bundle org.eclipse.sdk:
[eclipse.buildScript] 	Missing required plug-in org.eclipse.ui.ide.application_[1.0.0,2.0.0).
[eclipse.buildScript] Bundle org.eclipse.pde.api.tools:
[eclipse.buildScript] 	Missing required plug-in org.objectweb.asm_[3.1.0,4.0.0).
[eclipse.buildScript] 	Unsatisfied import package com.ibm.icu.text_3.6.1.
[eclipse.buildScript] Bundle org.eclipse.ui.ide.application:
[eclipse.buildScript] 	Missing required plug-in com.ibm.icu_3.8.1.
[eclipse.buildScript] Bundle org.apache.jasper:
[eclipse.buildScript] 	Unsatisfied import package javax.servlet_2.4.0.
[eclipse.buildScript] 	Unsatisfied import package javax.servlet.http_2.4.0.
[eclipse.buildScript] 	Unsatisfied import package javax.servlet.jsp_2.0.0.
[eclipse.buildScript] 	Unsatisfied import package javax.servlet.jsp.el_2.0.0.
[eclipse.buildScript] 	Unsatisfied import package javax.servlet.jsp.resources_2.0.0.
[eclipse.buildScript] 	Unsatisfied import package javax.servlet.jsp.tagext_2.0.0.
[eclipse.buildScript] 	Unsatisfied import package javax.servlet.resources_2.4.0.
[eclipse.buildScript] 	Unsatisfied import package org.apache.commons.el_[1.0.0,2.0.0).
[eclipse.buildScript] Bundle org.eclipse.pde.api.tools.ui:
[eclipse.buildScript] 	Missing required plug-in org.eclipse.pde.api.tools_[1.0.0,2.0.0).
[eclipse.buildScript] 	Unsatisfied import package com.ibm.icu.text_3.6.1.
[eclipse.buildScript] Bundle javax.servlet.jsp:
[eclipse.buildScript] 	Unsatisfied import package javax.servlet_2.4.0.
[eclipse.buildScript] 	Unsatisfied import package javax.servlet.http_2.4.0.
[eclipse.buildScript] 	Unsatisfied import package javax.servlet.resources_2.4.0.
[eclipse.buildScript] Bundle org.apache.commons.el:
[eclipse.buildScript] 	Unsatisfied import package javax.servlet_2.4.0.
[eclipse.buildScript] 	Unsatisfied import package javax.servlet.http_2.4.0.
[eclipse.buildScript] 	Unsatisfied import package javax.servlet.jsp_2.0.0.
[eclipse.buildScript] 	Unsatisfied import package javax.servlet.jsp.el_2.0.0.
[eclipse.buildScript] 	Unsatisfied import package javax.servlet.jsp.resources_2.0.0.
[eclipse.buildScript] 	Unsatisfied import package javax.servlet.jsp.tagext_2.0.0.
[eclipse.buildScript] 	Unsatisfied import package javax.servlet.resources_2.4.0.
[eclipse.buildScript] Bundle org.apache.wsil4j:
[eclipse.buildScript] 	Missing required plug-in javax.wsdl_[1.4.0,1.5.0).
[eclipse.buildScript] Bundle org.mortbay.jetty.util:
[eclipse.buildScript] 	Unsatisfied import package javax.servlet_2.5.0.
[eclipse.buildScript] 	Unsatisfied import package javax.servlet.http_2.5.0.
[eclipse.buildScript] Bundle org.mortbay.jetty.server:
[eclipse.buildScript] 	Unsatisfied import package javax.servlet_2.5.0.
[eclipse.buildScript] 	Unsatisfied import package javax.servlet.http_2.5.0.
[eclipse.buildScript] 	Unsatisfied import package org.mortbay.component_6.1.0.
[eclipse.buildScript] 	Unsatisfied import package org.mortbay.log_6.1.0.
[eclipse.buildScript] 	Unsatisfied import package org.mortbay.servlet_6.1.0.
[eclipse.buildScript] 	Unsatisfied import package org.mortbay.thread_6.1.0.
[eclipse.buildScript] 	Unsatisfied import package org.mortbay.util_6.1.0.
[eclipse.buildScript] 	Unsatisfied import package org.mortbay.util.ajax_6.1.0.
[eclipse.buildScript] Bundle org.eclipse.net4j.http.server:
[eclipse.buildScript] 	Unsatisfied import package javax.servlet_[2.4.0,3.0.0).
[eclipse.buildScript] 	Unsatisfied import package javax.servlet.http_[2.4.0,3.0.0).


As you can see there are several external bundles which need javax.servlet in different versions.
I have no influence on them (and they just behave well in the OSGi scope/spec).
It's just an issue with our build.

Do you have any ideas?

Cheers
/Eike





Back to the top