cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Markevich (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CXF-6181) dom4j classes not found in karaf in case DOM4JProvider used
Date Wed, 31 Dec 2014 12:45:13 GMT
Alexey Markevich created CXF-6181:
-------------------------------------

             Summary: dom4j classes not found in karaf in case DOM4JProvider used
                 Key: CXF-6181
                 URL: https://issues.apache.org/jira/browse/CXF-6181
             Project: CXF
          Issue Type: Bug
          Components: JAX-RS
    Affects Versions: 2.7.14
            Reporter: Alexey Markevich


In case org.apache.cxf.jaxrs.provider.dom4j.DOM4JProvider added to provider list the following
exception occurred [1]

karaf@root()> headers org.apache.cxf.cxf-rt-frontend-jaxrs | grep dom4j
is empty.
When I added manually
Import-Package =
        org.dom4j;resolution:=optional,
        org.dom4j.io;resolution:=optional,
all works fine
1.
java.lang.NoClassDefFoundError: org/dom4j/Document
        at java.lang.Class.getDeclaredMethods0(Native Method)
        at java.lang.Class.privateGetDeclaredMethods(Class.java:2615)
        at java.lang.Class.privateGetPublicMethods(Class.java:2733)
        at java.lang.Class.privateGetPublicMethods(Class.java:2749)
        at java.lang.Class.getMethods(Class.java:1472)
        at org.apache.cxf.jaxrs.model.AbstractResourceInfo.findContextSetterMethods(AbstractResourceInfo.java:191)
        at org.apache.cxf.jaxrs.model.AbstractResourceInfo.findContexts(AbstractResourceInfo.java:82)
        at org.apache.cxf.jaxrs.model.AbstractResourceInfo.<init>(AbstractResourceInfo.java:77)
        at org.apache.cxf.jaxrs.model.ProviderInfo.<init>(ProviderInfo.java:29)
        at org.apache.cxf.jaxrs.provider.ProviderFactory.setProviders(ProviderFactory.java:753)
        at org.apache.cxf.jaxrs.provider.ProviderFactory.setUserProviders(ProviderFactory.java:1073)
        at org.apache.cxf.jaxrs.AbstractJAXRSFactoryBean.setupFactory(AbstractJAXRSFactoryBean.java:324)
        at org.apache.cxf.jaxrs.client.JAXRSClientFactoryBean.initClient(JAXRSClientFactoryBean.java:377)
        at org.apache.cxf.jaxrs.client.JAXRSClientFactoryBean.createWebClient(JAXRSClientFactoryBean.java:221)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message