[
https://issues.apache.org/jira/browse/CXF-2452?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12760871#action_12760871
]
Aaron Zeckoski commented on CXF-2452:
-------------------------------------
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.