Uploaded image for project: 'ServiceMix 4'
  1. ServiceMix 4
  2. SMX4-358

JAX-RS 1.1 specification is unable to load implementation classes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • specs-1.4.0
    • specs-1.4.0
    • None
    • None

    Description

      When using the JSR-311 1.1 specs bundle together with the Jersey implementation, you get this exception when the specification fails to load the implementation classes:

      Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: com.sun.ws.rs.ext.RuntimeDelegateImpl
      	at javax.ws.rs.ext.RuntimeDelegate.findDelegate(RuntimeDelegate.java:122)
      	at javax.ws.rs.ext.RuntimeDelegate.getInstance(RuntimeDelegate.java:91)
      	at javax.ws.rs.core.MediaType.<clinit>(MediaType.java:44)
      	... 15 more
      Caused by: java.lang.ClassNotFoundException: com.sun.ws.rs.ext.RuntimeDelegateImpl
      	at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:726)
      	at org.apache.felix.framework.ModuleImpl.access$100(ModuleImpl.java:60)
      	at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1629)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:254)
      	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:399)
      	at java.lang.Class.forName0(Native Method)
      	at java.lang.Class.forName(Class.java:169)
      	at javax.ws.rs.ext.FactoryFinder.newInstance(FactoryFinder.java:62)
      	at javax.ws.rs.ext.FactoryFinder.find(FactoryFinder.java:155)
      	at javax.ws.rs.ext.RuntimeDelegate.findDelegate(RuntimeDelegate.java:105)
      	... 17 more
      

      Attachments

        Activity

          People

            gertvanthienen Gert Vanthienen
            gertvanthienen Gert Vanthienen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: