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

Aaron Zeckoski commented on CXF-2452:
-------------------------------------

I tried the following:
-> find cxf
   ID   State        Name
[  27] [Active     ] [    1] Apache CXF Bundle Jar (2.3.0.SNAPSHOT)
[  28] [Active     ] [    1] CXF Local Discovery Service Bundle (1.1.0.SNAPSHOT)
[  29] [Resolved   ] [    1] CXF Distributed Software Bundle (1.1.0.SNAPSHOT)
-> refresh 27
.... lots of logging
-> refresh 28
.. some logging
-> refresh 29
-> [FelixDispatchQueue] DEBUG org.apache.felix.framework - FrameworkEvent 
PACKAGES REFRESHED
-> start 29
... lots of logging and then this exception appears at the end:
[Felix Shell TUI] DEBUG 
org.springframework.osgi.extender.internal.support.NamespacePlugins - Removing 
handler CXF Distributed Software Bundle (cxf-dosgi-ri-dsw-cxf)
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 
javax.ws.rs.core.MediaType
        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)
        ... 6 more
java.lang.NoClassDefFoundError: Could not initialize class 
javax.ws.rs.core.MediaType

-> find cxf
   ID   State        Name
[  27] [Active     ] [    1] Apache CXF Bundle Jar (2.3.0.SNAPSHOT)
[  28] [Active     ] [    1] CXF Local Discovery Service Bundle (1.1.0.SNAPSHOT)
[  29] [Resolved   ] [    1] CXF Distributed Software Bundle (1.1.0.SNAPSHOT)
-> find 311
   ID   State        Name
[  45] [Active     ] [    1] Apache ServiceMix Specs :: JSR311 API 1.1 
(1.4.0.SNAPSHOT)


> 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