You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Gert Vanthienen (JIRA)" <ji...@apache.org> on 2009/09/10 22:56:12 UTC

[jira] Created: (SMX4-358) JAX-RS 1.1 specification is unable to load implementation classes

JAX-RS 1.1 specification is unable to load implementation classes
-----------------------------------------------------------------

                 Key: SMX4-358
                 URL: https://issues.apache.org/activemq/browse/SMX4-358
             Project: ServiceMix 4
          Issue Type: Bug
    Affects Versions: specs-1.4.0
            Reporter: Gert Vanthienen
            Assignee: Gert Vanthienen
             Fix For: specs-1.4.0


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:

{code}
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
{code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (SMX4-358) JAX-RS 1.1 specification is unable to load implementation classes

Posted by "Gert Vanthienen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SMX4-358?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gert Vanthienen resolved SMX4-358.
----------------------------------

    Resolution: Fixed

Fixed by adding a Dynamic-Import in http://svn.apache.org/viewvc?view=rev&revision=813584

It's probably not the ideal solution though, so I'm open to any suggestions for improvement

> JAX-RS 1.1 specification is unable to load implementation classes
> -----------------------------------------------------------------
>
>                 Key: SMX4-358
>                 URL: https://issues.apache.org/activemq/browse/SMX4-358
>             Project: ServiceMix 4
>          Issue Type: Bug
>    Affects Versions: specs-1.4.0
>            Reporter: Gert Vanthienen
>            Assignee: Gert Vanthienen
>             Fix For: specs-1.4.0
>
>
> 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:
> {code}
> 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
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.