1 Reply Latest reply on Sep 3, 2010 5:49 AM by fvbetteraey

    Mising Constraint: Bundle-RequiredExecutionEnvironment: JavaSE-1.6

    fvbetteraey

      Hello,

       

      in FUSE ESB 4.3 with equinox OSGi framework in Windows XP running Java 1.6.0_21-b07 I get an

       

      Error executing command: 
      The bundle "myOsgiExample.myOsgiBundle_0.0.1.SNAPSHOT [187|http://fusesource.com/forums/]" could not be resolved. 
      Reason: Mising Constraint: Bundle-RequiredExecutionEnvironment: JavaSE-1.6
      

       

      Exception:

       

      See my environment below:

       

      karaf@root> osgi:install mvn:myOsgiExample/myOsgiBundle/0.0.1-SNAPSHOT
      Bundle ID: 187
      
      karaf@root> start 187
      Error executing command: The bundle "myOsgiExample.myOsgiBundle_0.0.1.SNAPSHOT [187|http://fusesource.com/forums/]" could not be resolved. Reason: Mising Constraint: Bundle-RequiredExecutionEnvironment: JavaSE-1.6
      
      karaf@root> headers 187
      
      myOsgiExample (187)
      -------------------
      Manifest-Version = 1.0
      Export-Package = de.my.osgi.example
      Built-By = franzb
      Tool = Bnd-0.0.357
      Bundle-Name = myOsgiExample
      Created-By = Apache Maven Bundle Plugin
      Bundle-RequiredExecutionEnvironment = JavaSE-1.6
      Bundle-Version = 0.0.1.SNAPSHOT
      Build-Jdk = 1.6.0_21
      Bnd-LastModified = 1283503194437
      Bundle-ManifestVersion = 2
      Import-Package = de.my.osgi.example
      Bundle-SymbolicName = myOsgiExample.myOsgiBundle
      
      karaf@root> shell:info
      Karaf
      Karaf home                  C:\progs\apache-servicemix-4.3.0-fuse-00-00
      Karaf base                  C:\progs\apache-servicemix-4.3.0-fuse-00-00
      OSGi Framework              org.eclipse.osgi - 3.6.0.v20100517
      
      JVM
      Java Virtual Machine        Java HotSpot(TM) Server VM version 17.0-b17
      Version                     1.6.0_21
      Vendor                      Sun Microsystems Inc.
      Uptime                      7 minutes
      Total compile time          20.594 seconds
      Threads
      Live threads                90
      Daemon threads              48
      Peak                        95
      Total started               148
      Memory
      Current heap size           42,195 kbytes
      Maximum heap size           1,013,632 kbytes
      Committed heap size         126,848 kbytes
      Pending objects             0
      Garbage collector           Name = 'Copy', Collections = 36, Time = 0.579 seconds
      Garbage collector           Name = 'MarkSweepCompact', Collections = 1, Time = 0.125 seconds
      Classes
      Current classes loaded      7,906
      Total classes loaded        7,906
      Total classes unloaded      0
      Operating system
      Name                        Windows XP version 5.1
      Architecture                x86
      Processors                  1
      karaf@root>
      

       

      This error does not happen in FUSE ESB 4.2!

       

      Any suggestions how to avoid it?

       

      Thanks and best regards

      Franz

       

      Edited by: fvbetteraey on Sep 3, 2010 9:24 AM - fixed typo