Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-933

War feature installation failed with Java 5

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.2.3, 2.2.4, 2.2.5
    • Fix Version/s: 2.2.12
    • Component/s: karaf-webcontainer
    • Labels:
      None

      Description

      If the features:install war works without problem with Java 6, it fails using Java 5:

      Could not start bundle mvn:org.ops4j.pax.web/pax-web-jsp/1.0.7 in feature(s) war-2.2.4-SNAPSHOT: Unresolved constraint in bundle org.ops4j.pax.web.pax-web-jsp [73]: Unable to resolve 73.0: missing requirement [73.0] package; (package=javax.annotation.processing)

      To be Java 5 compliant, the war feature should use the Geronimo annotation spec bundle.

        Activity

        Hide
        dkulp Daniel Kulp added a comment - - edited

        Geronimo annotation bundle doesn't have the processing stuff in it. I'm not sure if there is a bundle that does yet. It's not just the javax.annotation.processing stuff though:

        Unsatisfied requirement(s):  
        ---------------------------                                                                                                              
           package:(&(package=javax.lang.model.util))                                                                                            
              OPS4J Pax Web - Jsp Support                                                                                                        
           package:(&(package=javax.annotation.processing))                                                                                      
              OPS4J Pax Web - Jsp Support                                                                                                        
           package:(&(package=javax.tools))                                                                                                      
              OPS4J Pax Web - Jsp Support                                                                                                        
           package:(&(package=javax.lang.model.type))                                                                                            
              OPS4J Pax Web - Jsp Support                                                                                                        
           package:(&(package=javax.lang.model.element))                                                                                         
              OPS4J Pax Web - Jsp Support                                                                                                        
           package:(&(package=javax.lang.model))                                                                                                 
              OPS4J Pax Web - Jsp Support   
        
        Show
        dkulp Daniel Kulp added a comment - - edited Geronimo annotation bundle doesn't have the processing stuff in it. I'm not sure if there is a bundle that does yet. It's not just the javax.annotation.processing stuff though: Unsatisfied requirement(s): --------------------------- package :(&( package =javax.lang.model.util)) OPS4J Pax Web - Jsp Support package :(&( package =javax.annotation.processing)) OPS4J Pax Web - Jsp Support package :(&( package =javax.tools)) OPS4J Pax Web - Jsp Support package :(&( package =javax.lang.model.type)) OPS4J Pax Web - Jsp Support package :(&( package =javax.lang.model.element)) OPS4J Pax Web - Jsp Support package :(&( package =javax.lang.model)) OPS4J Pax Web - Jsp Support
        Hide
        jbonofre Jean-Baptiste Onofré added a comment -

        javax.annotation.processing is not provided by Geronimo annotation spec bundle.

        It seems that the issue is "located" on pax-web-jsp bundle, others bundles don't look to have a dependencies to annotation.

        Show
        jbonofre Jean-Baptiste Onofré added a comment - javax.annotation.processing is not provided by Geronimo annotation spec bundle. It seems that the issue is "located" on pax-web-jsp bundle, others bundles don't look to have a dependencies to annotation.
        Hide
        jbonofre Jean-Baptiste Onofré added a comment -
        Show
        jbonofre Jean-Baptiste Onofré added a comment - The change has been introduced in pax-web 1.0.2: https://github.com/ops4j/org.ops4j.pax.web/commit/defc5b8ec9f3dd4f32990d357b3123fee4031be4
        Hide
        jbonofre Jean-Baptiste Onofré added a comment -

        The change in Pax-Web is for a better support of JSF.

        Show
        jbonofre Jean-Baptiste Onofré added a comment - The change in Pax-Web is for a better support of JSF.
        Hide
        jgoodyear Jamie goodyear added a comment -

        Issue still occurring with pax web 1.0.8 on Karaf 2.2.6-snapshot:

        karaf@root> feature:install war
        Error executing command: Could not start bundle mvn:org.ops4j.pax.web/pax-web-jsp/1.0.8 in 
        feature(s) war-2.2.6-SNAPSHOT: Unresolved constraint in bundle org.ops4j.pax.web.pax-web-jsp 
        [75]: Unable to resolve 75.0: missing requirement [75.0] package; (package=javax.annotation.
        processing)
        
        Show
        jgoodyear Jamie goodyear added a comment - Issue still occurring with pax web 1.0.8 on Karaf 2.2.6-snapshot: karaf@root> feature:install war Error executing command: Could not start bundle mvn:org.ops4j.pax.web/pax-web-jsp/1.0.8 in feature(s) war-2.2.6-SNAPSHOT: Unresolved constraint in bundle org.ops4j.pax.web.pax-web-jsp [75]: Unable to resolve 75.0: missing requirement [75.0] package ; ( package =javax.annotation. processing)
        Hide
        jgoodyear Jamie goodyear added a comment -

        This issue pends on an external dependency to pax at the moment.

        Bumping out to 2.2.7

        Show
        jgoodyear Jamie goodyear added a comment - This issue pends on an external dependency to pax at the moment. Bumping out to 2.2.7
        Hide
        jgoodyear Jamie goodyear added a comment -

        Bumping out to 2.2.8.

        Show
        jgoodyear Jamie goodyear added a comment - Bumping out to 2.2.8.
        Hide
        jgoodyear Jamie goodyear added a comment -

        Bumping out to 2.2.10

        Show
        jgoodyear Jamie goodyear added a comment - Bumping out to 2.2.10
        Hide
        barthel Uwe Barthel added a comment -

        This issue blocks the Karaf 2.2.12 release.

        Did the dependency was fixed by pax or it's possible to move this issue to a later 2.2.x release?

        Show
        barthel Uwe Barthel added a comment - This issue blocks the Karaf 2.2.12 release. Did the dependency was fixed by pax or it's possible to move this issue to a later 2.2.x release?
        Hide
        achim_nierbeck Achim Nierbeck added a comment -

        I think it's safe to say "Won't Fix" for this, a) as Pax Web never has not been change and can't be b) Support for Java 5 and even 6 isn't available any longer.

        Show
        achim_nierbeck Achim Nierbeck added a comment - I think it's safe to say "Won't Fix" for this, a) as Pax Web never has not been change and can't be b) Support for Java 5 and even 6 isn't available any longer.

          People

          • Assignee:
            Unassigned
            Reporter:
            jbonofre Jean-Baptiste Onofré
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:

              Development