[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [virgo-dev] Problems with the new version of com.springsource.org.apache.jasper.springsource bundle

Hi Vily

This is substitutable exports in action, which I one reason I don't really like them.

During resolution, the jasper fragment is merged with the catalina host bundle at which point the merged result contains:

import-package: org.apache.tomcat;version="[6.0.29.S2-r1559,6.0.29.S2-r1559]",...
export-package: org.apache.tomcat;version="6.0.29.S2-r1559-A",...

The resolver then has to decide whether to discard the import or the export of org.apache.tomcat and since the export doesn't satisfy the import version range, it has no alternative but to discard the import.

The odd thing is that diag makes it appear as if there is an unresolved import, which isn't quite right IMHO.


On 25 Feb 2011, at 12:57, Violeta Georgieva wrote:

I'm currently preparing an update site for Gemini Web.
During testing I faced a problem in the Eclipse (Indigo M5) with installing the bundles from this update site - see attachment.
"Unable to satisfy dependency from com.springsource.org.apache.catalina.springsource 6.0.29.S2-r1559 to package org.apache.tomcat [6.0.29.S2-r1559]"
On the other hand if I connect to Virgo with the console this problem is somehow hidden. And actually the resolving is successful and you can event load a class with such package from com.springsource.org.apache.catalina.springsource - see console output below.
The problem is coming from the new version of the com.springsource.org.apache.jasper.springsource bundle
The scenario is:
 - import org.apache.tomcat;version="[6.0.29.S2-r1559,6.0.29.S2-r1559]"
 - export org.apache.tomcat;version="6.0.29.S2-r1559-A"
 - Fragment-Host com.springsource.org.apache.catalina.springsource
 How can you explain the successful resolution?

osgi> ss catal
Framework is launched.
id      State       Bundle
91      RESOLVED    com.springsource.org.apache.catalina.ha.springsource_6.0.29.S2-r1559
92      ACTIVE      com.springsource.org.apache.catalina.springsource_6.0.29.S2-r1559
                    Fragments=91, 93, 94, 96
93      RESOLVED    com.springsource.org.apache.catalina.tribes.springsource_6.0.29.S2-r1559

osgi> diag 92
org.eclipse.virgo.region.user@file:/C:/tmp/virgo-web-server-3.0.0.M01/repository/ext/com.springsource.org.apache.catalina.springsource-6.0.29.S2-r1559.jar [92]
  Direct constraints which are unresolved:
    Missing imported package org.apache.tomcat_[6.0.29.S2-r1559,6.0.29.S2-r1559].

osgi> clload org.apache.tomcat.JarScanner
Successfully loaded [org.apache.tomcat.JarScanner] from:
  111   org.eclipse.virgo.apps.splash
                [exported by 92 com.springsource.org.apache.catalina.springsource]
  100   org.eclipse.gemini.example.comics.web
                [exported by 92 com.springsource.org.apache.catalina.springsource]
  102   org.eclipse.virgo.apps.admin.web
                [exported by 92 com.springsource.org.apache.catalina.springsource]
  92    com.springsource.org.apache.catalina.springsource
  109   org.eclipse.virgo.apps.repository-3.0.0.M01-org.eclipse.virgo.apps.repository.web
                [exported by 92 com.springsource.org.apache.catalina.springsource]
  86    org.eclipse.gemini.web.tomcat
                [exported by 92 com.springsource.org.apache.catalina.springsource]
osgi> clload org.apache.tomcat.JarScanner 92
Successfully loaded [org.apache.tomcat.JarScanner] using class loader from:
  92    com.springsource.org.apache.catalina.springsource
virgo-dev mailing list