Bundle-RequiredExecutionEnvironment will not match for obr
----------------------------------------------------------

                 Key: FELIX-2831
                 URL: https://issues.apache.org/jira/browse/FELIX-2831
             Project: Felix
          Issue Type: Bug
          Components: Bundle Repository (OBR)
         Environment: Java SE 1.6
            Reporter: Don Corley


The obr will not deploy a resource with the correct execution environment.
If my manifest has the entry:
Bundle-RequiredExecutionEnvironment: J2SE-1.5, JavaSE-1.6
and I try to deploy, I get this error:

deploy joda-time
Unsatisfied requirement(s):
---------------------------
   (|(ee=J2SE-1.5)(ee=JavaSE-1.6))
      Joda-Time

If I change the mainfest to JavaSE-1.6* it works fine.. but then the framework 
doesn't see it.

I searched through your source code, but I can't find the place where you get 
the ee. Obviously, you are getting the full version, such as JavaSE-1.6.2 and 
you are not removing the .2, to match the expected values in
http://www.osgi.org/Specifications/Reference#ees

Thanks for looking at this.
Don

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to