[ 
https://issues.apache.org/jira/browse/CXF-2452?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12760871#action_12760871
 ] 

Aaron Zeckoski edited comment on CXF-2452 at 9/30/09 3:14 AM:
--------------------------------------------------------------

Here is the error I am seeing when using 
org.apache.servicemix.specs.jsr311-api-1.1-1.4-SNAPSHOT with the latest CXF 
2.3.0 snapshots:
ERROR:
[FelixStartLevel] DEBUG 
org.springframework.osgi.extender.internal.support.NamespacePlugins - Removing 
handler CXF Distributed Software Bundle (cxf-dosgi-ri-dsw-cxf)
ERROR: Error starting 
file:/Users/azeckoski/.m2/repository/org/apache/cxf/dosgi/cxf-dosgi-ri-dsw-cxf/1.1-SNAPSHOT/cxf-dosgi-ri-dsw-cxf-1.1-SNAPSHOT.jar
 (org.osgi.framework.BundleException: Activator start error in bundle 
cxf-dosgi-ri-dsw-cxf [29].)
java.lang.ExceptionInInitializerError[FelixDispatchQueue] DEBUG 
cxf-dosgi-ri-dsw-cxf - BundleEvent STOPPED

        at org.apache.cxf.jaxrs.utils.JAXRSUtils.<clinit>(JAXRSUtils.java:99)
        at 
org.apache.cxf.jaxrs.model.ClassResourceInfo.getConsumeMime(ClassResourceInfo.java:241)
        at 
org.apache.cxf.jaxrs.model.OperationResourceInfo.checkMediaTypes(OperationResourceInfo.java:153)
        at 
org.apache.cxf.jaxrs.model.OperationResourceInfo.<init>(OperationResourceInfo.java:71)
        at 
org.apache.cxf.jaxrs.utils.ResourceUtils.createOperationInfo(ResourceUtils.java:279)
        at 
org.apache.cxf.jaxrs.utils.ResourceUtils.evaluateResourceClass(ResourceUtils.java:156)
        at 
org.apache.cxf.jaxrs.utils.ResourceUtils.createClassResourceInfo(ResourceUtils.java:142)
        at 
org.apache.cxf.jaxrs.JAXRSServiceFactoryBean.createResourceInfo(JAXRSServiceFactoryBean.java:176)
        at 
org.apache.cxf.jaxrs.JAXRSServiceFactoryBean.setResourceClasses(JAXRSServiceFactoryBean.java:140)
        at 
org.apache.cxf.jaxrs.JAXRSServiceFactoryBean.setResourceClasses(JAXRSServiceFactoryBean.java:185)
        at 
org.apache.cxf.jaxrs.JAXRSServerFactoryBean.setServiceClass(JAXRSServerFactoryBean.java:144)
        at 
org.apache.cxf.dosgi.dsw.handlers.JaxRSHttpServiceConfigurationTypeHandler.createServer(JaxRSHttpServiceConfigurationTypeHandler.java:84)
        at 
org.apache.cxf.dosgi.dsw.hooks.ServiceHookUtils.createServer(ServiceHookUtils.java:86)
        at 
org.apache.cxf.dosgi.dsw.hooks.CxfPublishHook.createServer(CxfPublishHook.java:106)
        at 
org.apache.cxf.dosgi.dsw.hooks.CxfPublishHook.publishEndpoint(CxfPublishHook.java:80)
        at 
org.apache.cxf.dosgi.dsw.Activator.checkExistingServices(Activator.java:151)
        at org.apache.cxf.dosgi.dsw.Activator.start(Activator.java:81)
        at 
org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:667)
        at org.apache.felix.framework.Felix.activateBundle(Felix.java:1699)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:1621)
        at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1076)
        at 
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
        at java.lang.Thread.run(Thread.java:637)
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)
        ... 23 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:1631)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:254)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:402)
        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)
        ... 25 more
[FelixDispatchQueue] DEBUG cxf-dosgi-ri-dsw-cxf - FrameworkEvent ERROR
org.osgi.framework.BundleException: Activator start error in bundle 
cxf-dosgi-ri-dsw-cxf [29].
        at org.apache.felix.framework.Felix.activateBundle(Felix.java:1750)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:1621)
        at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1076)
        at 
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
        at java.lang.Thread.run(Thread.java:637)
Caused by: java.lang.ExceptionInInitializerError
        at org.apache.cxf.jaxrs.utils.JAXRSUtils.<clinit>(JAXRSUtils.java:99)
        at 
org.apache.cxf.jaxrs.model.ClassResourceInfo.getConsumeMime(ClassResourceInfo.java:241)
        at 
org.apache.cxf.jaxrs.model.OperationResourceInfo.checkMediaTypes(OperationResourceInfo.java:153)
        at 
org.apache.cxf.jaxrs.model.OperationResourceInfo.<init>(OperationResourceInfo.java:71)
        at 
org.apache.cxf.jaxrs.utils.ResourceUtils.createOperationInfo(ResourceUtils.java:279)
        at 
org.apache.cxf.jaxrs.utils.ResourceUtils.evaluateResourceClass(ResourceUtils.java:156)
        at 
org.apache.cxf.jaxrs.utils.ResourceUtils.createClassResourceInfo(ResourceUtils.java:142)
        at 
org.apache.cxf.jaxrs.JAXRSServiceFactoryBean.createResourceInfo(JAXRSServiceFactoryBean.java:176)
        at 
org.apache.cxf.jaxrs.JAXRSServiceFactoryBean.setResourceClasses(JAXRSServiceFactoryBean.java:140)
        at 
org.apache.cxf.jaxrs.JAXRSServiceFactoryBean.setResourceClasses(JAXRSServiceFactoryBean.java:185)
        at 
org.apache.cxf.jaxrs.JAXRSServerFactoryBean.setServiceClass(JAXRSServerFactoryBean.java:144)
        at 
org.apache.cxf.dosgi.dsw.handlers.JaxRSHttpServiceConfigurationTypeHandler.createServer(JaxRSHttpServiceConfigurationTypeHandler.java:84)
        at 
org.apache.cxf.dosgi.dsw.hooks.ServiceHookUtils.createServer(ServiceHookUtils.java:86)
        at 
org.apache.cxf.dosgi.dsw.hooks.CxfPublishHook.createServer(CxfPublishHook.java:106)
        at 
org.apache.cxf.dosgi.dsw.hooks.CxfPublishHook.publishEndpoint(CxfPublishHook.java:80)
        at 
org.apache.cxf.dosgi.dsw.Activator.checkExistingServices(Activator.java:151)
        at org.apache.cxf.dosgi.dsw.Activator.start(Activator.java:81)
        at 
org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:667)
        at org.apache.felix.framework.Felix.activateBundle(Felix.java:1699)
        ... 4 more
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)
        ... 23 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:1631)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:254)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:402)
        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)
        ... 25 more


      was (Author: azeckoski):
    Here is the error I am seeing when using 
org.apache.servicemix.specs.jsr311-api-1.1-1.4-SNAPSHOT with the latest CXF 
2.3.0 snapshots:
ERROR:
org.osgi.framework.BundleException: Activator start error in bundle
cxf-dosgi-ri-dsw-cxf [29].
[FelixDispatchQueue] DEBUG cxf-dosgi-ri-dsw-cxf - BundleEvent STOPPED
       at org.apache.felix.framework.Felix.activateBundle(Felix.java:1750)
       at org.apache.felix.framework.Felix.startBundle(Felix.java:1621)
       at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:890)
       at 
org.apache.felix.shell.impl.StartCommandImpl.execute(StartCommandImpl.java:114)
       at 
org.apache.felix.shell.impl.Activator$ShellServiceImpl.executeCommand(Activator.java:281)
       at 
org.apache.felix.shell.tui.Activator$ShellTuiRunnable.run(Activator.java:184)
       at java.lang.Thread.run(Thread.java:637)
Caused by: java.lang.NoClassDefFoundError: Could not initialize class
org.apache.cxf.jaxrs.utils.JAXRSUtils
       at 
org.apache.cxf.jaxrs.model.ClassResourceInfo.getConsumeMime(ClassResourceInfo.java:241)
       at 
org.apache.cxf.jaxrs.model.OperationResourceInfo.checkMediaTypes(OperationResourceInfo.java:153)
       at 
org.apache.cxf.jaxrs.model.OperationResourceInfo.<init>(OperationResourceInfo.java:71)
       at 
org.apache.cxf.jaxrs.utils.ResourceUtils.createOperationInfo(ResourceUtils.java:279)
       at 
org.apache.cxf.jaxrs.utils.ResourceUtils.evaluateResourceClass(ResourceUtils.java:156)
       at 
org.apache.cxf.jaxrs.utils.ResourceUtils.createClassResourceInfo(ResourceUtils.java:142)
       at 
org.apache.cxf.jaxrs.JAXRSServiceFactoryBean.createResourceInfo(JAXRSServiceFactoryBean.java:176)
       at 
org.apache.cxf.jaxrs.JAXRSServiceFactoryBean.setResourceClasses(JAXRSServiceFactoryBean.java:140)
       at 
org.apache.cxf.jaxrs.JAXRSServiceFactoryBean.setResourceClasses(JAXRSServiceFactoryBean.java:185)
       at 
org.apache.cxf.jaxrs.JAXRSServerFactoryBean.setServiceClass(JAXRSServerFactoryBean.java:144)
       at 
org.apache.cxf.dosgi.dsw.handlers.JaxRSHttpServiceConfigurationTypeHandler.createServer(JaxRSHttpServiceConfigurationTypeHandler.java:84)
       at 
org.apache.cxf.dosgi.dsw.hooks.ServiceHookUtils.createServer(ServiceHookUtils.java:86)
       at 
org.apache.cxf.dosgi.dsw.hooks.CxfPublishHook.createServer(CxfPublishHook.java:106)
       at 
org.apache.cxf.dosgi.dsw.hooks.CxfPublishHook.publishEndpoint(CxfPublishHook.java:80)
       at 
org.apache.cxf.dosgi.dsw.Activator.checkExistingServices(Activator.java:151)
       at org.apache.cxf.dosgi.dsw.Activator.start(Activator.java:81)
       at 
org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:667)
       at org.apache.felix.framework.Felix.activateBundle(Felix.java:1699)
       ... 6 more
java.lang.NoClassDefFoundError: Could not initialize class
org.apache.cxf.jaxrs.utils.JAXRSUtils

  
> DOSGI CXF Distributed Software Bundle (1.1.0.SNAPSHOT) fails on startup
> -----------------------------------------------------------------------
>
>                 Key: CXF-2452
>                 URL: https://issues.apache.org/jira/browse/CXF-2452
>             Project: CXF
>          Issue Type: Bug
>          Components: Distributed-OSGi
>    Affects Versions: dOSGi-1.1
>         Environment: adz20:~ azeckoski$ java -version
> java version "1.6.0_15"
> Java(TM) SE Runtime Environment (build 1.6.0_15-b03-226)
> Java HotSpot(TM) 64-Bit Server VM (build 14.1-b02-92, mixed mode)
>            Reporter: Aaron Zeckoski
>            Priority: Critical
>             Fix For: dOSGi-1.1
>
>
> One of the DOSGI bundles is failing to startup using Felix 2.0 as the 
> container
> cxf-dosgi-ri-dsw-cxf (1.1.0.SNAPSHOT)
> The exception and ps info from felix will be added in comments
> Here is the log of the attempt to startup and the exception at the end:
> http://pastebin.com/m4da7142
> Some tracing shows that this seems to fail when felix tries to load the 
> org.apache.cxf.jaxrs.AbstractJAXRSFactoryBean class and is unable to load the 
> javax.ws.rs.WebApplicationException class. The constructor called here is 
> never actually reached.
> JAXRSServerFactoryBean factory = new JAXRSServerFactoryBean();

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

Reply via email to