You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by rsteppac2 <ra...@steppacher.name> on 2017/01/20 14:35:11 UTC
NoClassDefFoundError:
org/apache/camel/component/http4/helper/HttpMethodHelper
Hello,
I am on Karaf 4.0.7, Camel 2.16.3.
I am struggling with a classpath problem when deploying a KAR via the deploy
folder. Out of 4 features/bundles that depend on the camel-http4 feature, 3
fail at run-time when their routes get triggered:
2017-01-20 15:02:29,968 | ERROR | tp1107713346-554 | event_log
| 66 - org.apache.camel.camel-core - 2.16.3 |
ID-Ralfs-MacBook-Pro-local-62189-1484920844831-20-11 | Remote event
processing exception cause: java.lang.NoClassDefFoundError:
org/apache/camel/component/http4/helper/HttpMethodHelper
All 4 features declare their dependency to camel-http4 in the exact same way
in their feature descriptor:
<feature name="...">
<feature version="2.16.3" prerequisite="false"
dependency="false">camel-http4</feature>
<!-- ... -->
<bundle>mvn:the.bundle.group/the-bundle/4.0.20-SNAPSHOT</bundle>
</feature>
During deployment of the KAR most features/bundles get stopped and then
re-started multiple times. The only bundle that can successfully resolve the
http4 endpoint is the one that is installed and started last. The 4 bundles
correspond to the following Camel context:
pas-hp-ws -> bundle 1, NoClassDefFoundError at runtime
pas-patient-ws -> bundle 2, NoClassDefFoundError at runtime
pas-patient-registration -> bundle 3, NoClassDefFoundError at runtime
pep-pas, pep-xds -> bundle 4, works
This is the start/restart sequence when deploying the KAR:
$ grep -e 'CamelContext:.*shutdown' -e 'CamelContext:.*started' karaf.log
2017-01-20 15:12:02,159 | INFO | Apache Camel 2.16.3 (CamelContext:
pas-hp-ws) started in 4.628 seconds
2017-01-20 15:12:03,356 | INFO | Apache Camel 2.16.3 (CamelContext:
pas-hp-ws) is shutdown in 0.052 seconds
2017-01-20 15:12:04,480 | INFO | Apache Camel 2.16.3 (CamelContext:
rest-api) started in 0.311 seconds
2017-01-20 15:12:06,440 | INFO | Apache Camel 2.16.3 (CamelContext:
pas-hp-ws) started in 1.638 seconds
2017-01-20 15:12:08,641 | INFO | Apache Camel 2.16.3 (CamelContext:
pas-patient-ws) started in 0.701 seconds
2017-01-20 15:12:09,988 | INFO | Apache Camel 2.16.3 (CamelContext:
pas-patient-ws) is shutdown in 0.031 seconds
2017-01-20 15:12:10,046 | INFO | Apache Camel 2.16.3 (CamelContext:
pas-hp-ws) is shutdown in 0.040 seconds
2017-01-20 15:12:12,185 | INFO | Apache Camel 2.16.3 (CamelContext:
pas-hp-ws) started in 1.418 seconds
2017-01-20 15:12:14,019 | INFO | Apache Camel 2.16.3 (CamelContext:
pas-patient-registration-ws) started in 1.232 seconds
2017-01-20 15:12:15,564 | INFO | Apache Camel 2.16.3 (CamelContext:
pas-patient-ws) started in 1.313 seconds
2017-01-20 15:12:17,590 | INFO | Apache Camel 2.16.3 (CamelContext:
pas-patient-registration-ws) is shutdown in 0.025 seconds
2017-01-20 15:12:17,634 | INFO | Apache Camel 2.16.3 (CamelContext:
pas-patient-ws) is shutdown in 0.030 seconds
2017-01-20 15:12:17,673 | INFO | Apache Camel 2.16.3 (CamelContext:
rest-api) is shutdown in 0.018 seconds
2017-01-20 15:12:17,709 | INFO | Apache Camel 2.16.3 (CamelContext:
pas-hp-ws) is shutdown in 0.026 seconds
2017-01-20 15:12:19,203 | INFO | Apache Camel 2.16.3 (CamelContext:
rest-api) started in 0.158 seconds
2017-01-20 15:12:20,754 | INFO | Apache Camel 2.16.3 (CamelContext:
pep-pas) started in 0.983 seconds
2017-01-20 15:12:21,016 | INFO | Apache Camel 2.16.3 (CamelContext:
pep-xds) started in 0.256 seconds
2017-01-20 15:12:22,781 | INFO | Apache Camel 2.16.3 (CamelContext:
pas-hp-ws) started in 1.535 seconds
2017-01-20 15:12:23,881 | INFO | Apache Camel 2.16.3 (CamelContext:
pas-patient-registration-ws) started in 0.725 seconds
2017-01-20 15:12:25,104 | INFO | Apache Camel 2.16.3 (CamelContext:
pas-patient-ws) started in 1.037 seconds
2017-01-20 15:12:27,205 | INFO | Apache Camel 2.16.3 (CamelContext:
pep-xds) is shutdown in 0.039 seconds
2017-01-20 15:12:27,224 | INFO | Apache Camel 2.16.3 (CamelContext:
pep-pas) is shutdown in 0.016 seconds
2017-01-20 15:12:27,265 | INFO | Apache Camel 2.16.3 (CamelContext:
pas-patient-registration-ws) is shutdown in 0.019 seconds
2017-01-20 15:12:27,306 | INFO | Apache Camel 2.16.3 (CamelContext:
pas-patient-ws) is shutdown in 0.023 seconds
2017-01-20 15:12:27,389 | INFO | Apache Camel 2.16.3 (CamelContext:
pas-hp-ws) is shutdown in 0.042 seconds
2017-01-20 15:12:29,977 | INFO | Apache Camel 2.16.3 (CamelContext:
pep-pas) started in 0.495 seconds
2017-01-20 15:12:30,225 | INFO | Apache Camel 2.16.3 (CamelContext:
pep-xds) started in 0.246 seconds
2017-01-20 15:12:33,639 | INFO | Apache Camel 2.16.3 (CamelContext:
graph-migration) started in 0.174 seconds
2017-01-20 15:12:37,158 | INFO | Apache Camel 2.16.3 (CamelContext:
pas-hp-ws) started in 2.968 seconds
2017-01-20 15:12:38,878 | INFO | Apache Camel 2.16.3 (CamelContext:
pas-patient-registration-ws) started in 1.218 seconds
2017-01-20 15:12:40,150 | INFO | Apache Camel 2.16.3 (CamelContext:
pas-patient-ws) started in 1.054 seconds
2017-01-20 15:12:42,417 | INFO | Apache Camel 2.16.3 (CamelContext:
pep-xds) is shutdown in 0.019 seconds
2017-01-20 15:12:42,440 | INFO | Apache Camel 2.16.3 (CamelContext:
pep-pas) is shutdown in 0.018 seconds
2017-01-20 15:12:43,577 | INFO | Apache Camel 2.16.3 (CamelContext:
xacml-pdp) started in 0.917 seconds
2017-01-20 15:12:44,667 | INFO | Apache Camel 2.16.3 (CamelContext:
pep-pas) started in 0.915 seconds
2017-01-20 15:12:45,028 | INFO | Apache Camel 2.16.3 (CamelContext:
pep-xds) started in 0.355 seconds
2017-01-20 15:12:46,642 | INFO | Apache Camel 2.16.3 (CamelContext:
pas-persistence) started in 0.322 seconds
2017-01-20 15:12:48,278 | INFO | Apache Camel 2.16.3 (CamelContext:
ldap-graph-synchronization) started in 0.303 seconds
$
(Side question: why all those re-deploy cycles?)
If after initial deployment the bundles are restarted, then they start
working as well.
(Side question: When deploying the KAR it is not possible to
uninstall/install the features in the KAR by name from the console. The
feature:uninstall/install commands do not return an error, but in the log I
can see they take no effect?)
I cannot reproduce the problem when installing the features one by one from
the Karaf console in my development environment from my local maven
repository.
Explicitly adding the import of org.apache.camel.component.http4.helper to
the maven-bundle-plugin configuration also works around the problem.
What could be the reason why most bundles cannot resolve classes required by
the http4 endpoint but at least one can when deploying a KAR via the deploy
folder?
Thanks!
Ralf
--
View this message in context: http://karaf.922171.n3.nabble.com/NoClassDefFoundError-org-apache-camel-component-http4-helper-HttpMethodHelper-tp4049297.html
Sent from the Karaf - User mailing list archive at Nabble.com.
Re: NoClassDefFoundError:
org/apache/camel/component/http4/helper/HttpMethodHelper
Posted by rsteppac2 <ra...@steppacher.name>.
Bump.
Should I raise the issue on the Camel list instead?
--
View this message in context: http://karaf.922171.n3.nabble.com/NoClassDefFoundError-org-apache-camel-component-http4-helper-HttpMethodHelper-tp4049297p4049548.html
Sent from the Karaf - User mailing list archive at Nabble.com.
Re: NoClassDefFoundError:
org/apache/camel/component/http4/helper/HttpMethodHelper
Posted by rsteppac2 <ra...@steppacher.name>.
Hi JB,
jbonofre wrote
> that can be related to the Pax Web feature and httpclient dependencies.
>
> Instead of using the kar, it would be great to have the resolver output
> (with feature:install -v). It will explain the cause of the refresh.
I have replayed the first step of the KAR deployment on the console
1. feature:install -v pas-webservice-hp
2. feature:install -v rest-api
-> lead to an uninstall of pas-webservice-hp, then re-installed it before
the actual installation of the rest-api bundle.
After this the pas-webservice-hp bundle correctly resolved
org/apache/camel/component/http4/helper/HttpMethodHelper.
The feature descriptors of the two features are these:
<feature name="pas-webservice-hp" description="PAS Webservice for HPs"
version="4.0.20.SNAPSHOT">
<details>Webservice API for health professional related use
cases</details>
<feature prerequisite="false"
dependency="false">http-whiteboard</feature>
<feature version="2.16.3" prerequisite="false"
dependency="false">camel-jaxb</feature>
<feature version="2.16.3" prerequisite="false"
dependency="false">camel-jackson</feature>
<feature version="2.16.3" prerequisite="false"
dependency="false">camel-blueprint</feature>
<feature version="2.16.3" prerequisite="false"
dependency="false">camel-cxf</feature>
<feature version="2.16.3" prerequisite="false"
dependency="false">camel-http4</feature>
<feature version="4.0.20-SNAPSHOT" prerequisite="false"
dependency="false">base</feature>
<bundle>mvn:ch.vivates.ams/pas-webservice-hp/4.0.20-SNAPSHOT</bundle>
<bundle>mvn:ch.vivates.vel/vel-base/1.0.5</bundle>
<bundle>mvn:joda-time/joda-time/2.7</bundle>
<bundle>mvn:org.yaml/snakeyaml/1.15</bundle>
<bundle>mvn:commons-codec/commons-codec/1.9</bundle>
</feature>
<feature name="rest-api" description="Exposes a REST API for client-side
AMS interactions." version="4.0.20.SNAPSHOT">
<details>Exposes a REST API for client-side AMS
interactions</details>
<feature version="2.16.3" prerequisite="false"
dependency="false">camel-jackson</feature>
<feature version="2.16.3" prerequisite="false"
dependency="false">camel-blueprint</feature>
<feature version="2.16.3" prerequisite="false"
dependency="false">camel-netty4-http</feature>
<feature version="4.0.20-SNAPSHOT" prerequisite="false"
dependency="false">base</feature>
<bundle>mvn:ch.vivates.ams/rest-api/4.0.20-SNAPSHOT</bundle>
</feature>
Console output:
karaf@root()> feature:install -v pas-webservice-hp
Adding features: pas-webservice-hp/[4.0.20.SNAPSHOT,4.0.20.SNAPSHOT]
Changes to perform:
Region: root
Bundles to install:
mvn:ch.vivates.ams/base/4.0.20-SNAPSHOT
mvn:ch.vivates.ams/pas-webservice-hp/4.0.20-SNAPSHOT
mvn:ch.vivates.vel/vel-base/1.0.5
mvn:com.fasterxml.jackson.core/jackson-annotations/2.6.3
mvn:com.fasterxml.jackson.core/jackson-core/2.6.3
mvn:com.fasterxml.jackson.core/jackson-databind/2.6.3
mvn:com.fasterxml.jackson.module/jackson-module-jaxb-annotations/2.6.3
mvn:javax.annotation/javax.annotation-api/1.2
mvn:javax.mail/mail/1.4.5
mvn:javax.servlet/javax.servlet-api/3.1.0
mvn:javax.websocket/javax.websocket-api/1.1
mvn:joda-time/joda-time/2.7
mvn:org.apache.aries.spifly/org.apache.aries.spifly.dynamic.bundle/1.0.1
mvn:org.apache.camel/camel-blueprint/2.16.3
mvn:org.apache.camel/camel-catalog/2.16.3
mvn:org.apache.camel/camel-commands-core/2.16.3
mvn:org.apache.camel/camel-core/2.16.3
mvn:org.apache.camel/camel-cxf/2.16.3
mvn:org.apache.camel/camel-cxf-transport/2.16.3
mvn:org.apache.camel/camel-http-common/2.16.3
mvn:org.apache.camel/camel-http4/2.16.3
mvn:org.apache.camel/camel-jackson/2.16.3
mvn:org.apache.camel/camel-jaxb/2.16.3
mvn:org.apache.camel/camel-spring/2.16.3
mvn:org.apache.camel.karaf/camel-karaf-commands/2.16.3
mvn:commons-codec/commons-codec/1.9
mvn:org.apache.cxf/cxf-core/3.1.5
mvn:org.apache.cxf/cxf-rt-bindings-soap/3.1.5
mvn:org.apache.cxf/cxf-rt-bindings-xml/3.1.5
mvn:org.apache.cxf/cxf-rt-databinding-jaxb/3.1.5
mvn:org.apache.cxf/cxf-rt-frontend-jaxrs/3.1.5
mvn:org.apache.cxf/cxf-rt-frontend-jaxws/3.1.5
mvn:org.apache.cxf/cxf-rt-frontend-simple/3.1.5
mvn:org.apache.cxf/cxf-rt-management/3.1.5
mvn:org.apache.cxf/cxf-rt-rs-client/3.1.5
mvn:org.apache.cxf/cxf-rt-rs-extension-providers/3.1.5
mvn:org.apache.cxf/cxf-rt-rs-extension-search/3.1.5
mvn:org.apache.cxf/cxf-rt-rs-service-description/3.1.5
mvn:org.apache.cxf/cxf-rt-transports-http/3.1.5
mvn:org.apache.cxf/cxf-rt-transports-http-jetty/3.1.5
mvn:org.apache.cxf/cxf-rt-wsdl/3.1.5
mvn:org.apache.geronimo.specs/geronimo-jaspic_1.0_spec/1.1
mvn:org.apache.geronimo.specs/geronimo-jta_1.1_spec/1.1.1
mvn:org.apache.geronimo.specs/geronimo-osgi-registry/1.1
mvn:org.apache.httpcomponents/httpclient-osgi/4.5.1
mvn:org.apache.httpcomponents/httpcore-osgi/4.4.4
mvn:org.apache.karaf.bundle/org.apache.karaf.bundle.springstate/4.0.7
mvn:org.apache.karaf.deployer/org.apache.karaf.deployer.spring/4.0.7
mvn:org.apache.karaf.http/org.apache.karaf.http.core/4.0.7
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.aopalliance/1.0_6
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.cglib/3.2.2_1
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.fastinfoset/1.2.13_1
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-impl/2.2.6_1
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-impl/2.2.11_1
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-xjc/2.2.11_1
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-aop/3.2.17.RELEASE_1
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-beans/3.2.17.RELEASE_1
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-context/3.2.17.RELEASE_1
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-context-support/3.2.17.RELEASE_1
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-core/3.2.17.RELEASE_1
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-expression/3.2.17.RELEASE_1
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-tx/3.2.17.RELEASE_1
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.wsdl4j/1.6.3_1
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.xmlresolver/1.2_5
mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jsr339-api-2.0/2.4.0
mvn:org.apache.ws.xmlschema/xmlschema-core/2.2.1
mvn:org.apache.xbean/xbean-bundleutils/4.1
mvn:org.apache.xbean/xbean-finder/4.1
mvn:org.codehaus.jettison/jettison/1.3.7
mvn:org.eclipse.jdt.core.compiler/ecj/4.4
mvn:org.eclipse.jetty/jetty-client/9.2.19.v20160908
mvn:org.eclipse.jetty/jetty-continuation/9.2.19.v20160908
mvn:org.eclipse.jetty/jetty-http/9.2.19.v20160908
mvn:org.eclipse.jetty/jetty-io/9.2.19.v20160908
mvn:org.eclipse.jetty/jetty-jaas/9.2.19.v20160908
mvn:org.eclipse.jetty/jetty-jaspi/9.2.19.v20160908
mvn:org.eclipse.jetty/jetty-jmx/9.2.19.v20160908
mvn:org.eclipse.jetty/jetty-jndi/9.2.19.v20160908
mvn:org.eclipse.jetty/jetty-plus/9.2.19.v20160908
mvn:org.eclipse.jetty/jetty-rewrite/9.2.19.v20160908
mvn:org.eclipse.jetty/jetty-security/9.2.19.v20160908
mvn:org.eclipse.jetty/jetty-server/9.2.19.v20160908
mvn:org.eclipse.jetty/jetty-servlet/9.2.19.v20160908
mvn:org.eclipse.jetty/jetty-servlets/9.2.19.v20160908
mvn:org.eclipse.jetty/jetty-util/9.2.19.v20160908
mvn:org.eclipse.jetty/jetty-util-ajax/9.2.19.v20160908
mvn:org.eclipse.jetty/jetty-webapp/9.2.19.v20160908
mvn:org.eclipse.jetty.websocket/websocket-api/9.2.19.v20160908
mvn:org.eclipse.jetty.websocket/websocket-client/9.2.19.v20160908
mvn:org.eclipse.jetty.websocket/websocket-common/9.2.19.v20160908
mvn:org.eclipse.jetty.websocket/javax-websocket-client-impl/9.2.19.v20160908
mvn:org.eclipse.jetty.websocket/javax-websocket-server-impl/9.2.19.v20160908
mvn:org.eclipse.jetty.websocket/websocket-server/9.2.19.v20160908
mvn:org.eclipse.jetty.websocket/websocket-servlet/9.2.19.v20160908
mvn:org.eclipse.jetty/jetty-xml/9.2.19.v20160908
mvn:org.ops4j.pax.web/pax-web-api/4.3.0
mvn:org.ops4j.pax.web/pax-web-extender-whiteboard/4.3.0
mvn:org.ops4j.pax.web/pax-web-jetty/4.3.0
mvn:org.ops4j.pax.web/pax-web-jsp/4.3.0
mvn:org.ops4j.pax.web/pax-web-runtime/4.3.0
mvn:org.ops4j.pax.web/pax-web-spi/4.3.0
mvn:org.springframework.osgi/spring-osgi-core/1.2.1
mvn:org.springframework.osgi/spring-osgi-extender/1.2.1
mvn:org.springframework.osgi/spring-osgi-annotation/1.2.1
mvn:org.springframework.osgi/spring-osgi-io/1.2.1
mvn:org.yaml/snakeyaml/1.15
mvn:org.codehaus.woodstox/stax2-api/3.1.4
mvn:org.codehaus.woodstox/woodstox-core-asl/4.4.1
Installing bundles:
mvn:ch.vivates.ams/base/4.0.20-SNAPSHOT
mvn:ch.vivates.ams/pas-webservice-hp/4.0.20-SNAPSHOT
mvn:ch.vivates.vel/vel-base/1.0.5
mvn:com.fasterxml.jackson.core/jackson-annotations/2.6.3
mvn:com.fasterxml.jackson.core/jackson-core/2.6.3
mvn:com.fasterxml.jackson.core/jackson-databind/2.6.3
mvn:com.fasterxml.jackson.module/jackson-module-jaxb-annotations/2.6.3
mvn:javax.annotation/javax.annotation-api/1.2
mvn:javax.mail/mail/1.4.5
mvn:javax.servlet/javax.servlet-api/3.1.0
mvn:javax.websocket/javax.websocket-api/1.1
mvn:joda-time/joda-time/2.7
mvn:org.apache.aries.spifly/org.apache.aries.spifly.dynamic.bundle/1.0.1
mvn:org.apache.camel/camel-blueprint/2.16.3
mvn:org.apache.camel/camel-catalog/2.16.3
mvn:org.apache.camel/camel-commands-core/2.16.3
mvn:org.apache.camel/camel-core/2.16.3
mvn:org.apache.camel/camel-cxf/2.16.3
mvn:org.apache.camel/camel-cxf-transport/2.16.3
mvn:org.apache.camel/camel-http-common/2.16.3
mvn:org.apache.camel/camel-http4/2.16.3
mvn:org.apache.camel/camel-jackson/2.16.3
mvn:org.apache.camel/camel-jaxb/2.16.3
mvn:org.apache.camel/camel-spring/2.16.3
mvn:org.apache.camel.karaf/camel-karaf-commands/2.16.3
mvn:commons-codec/commons-codec/1.9
mvn:org.apache.cxf/cxf-core/3.1.5
mvn:org.apache.cxf/cxf-rt-bindings-soap/3.1.5
mvn:org.apache.cxf/cxf-rt-bindings-xml/3.1.5
mvn:org.apache.cxf/cxf-rt-databinding-jaxb/3.1.5
mvn:org.apache.cxf/cxf-rt-frontend-jaxrs/3.1.5
mvn:org.apache.cxf/cxf-rt-frontend-jaxws/3.1.5
mvn:org.apache.cxf/cxf-rt-frontend-simple/3.1.5
mvn:org.apache.cxf/cxf-rt-management/3.1.5
mvn:org.apache.cxf/cxf-rt-rs-client/3.1.5
mvn:org.apache.cxf/cxf-rt-rs-extension-providers/3.1.5
mvn:org.apache.cxf/cxf-rt-rs-extension-search/3.1.5
mvn:org.apache.cxf/cxf-rt-rs-service-description/3.1.5
mvn:org.apache.cxf/cxf-rt-transports-http/3.1.5
mvn:org.apache.cxf/cxf-rt-transports-http-jetty/3.1.5
mvn:org.apache.cxf/cxf-rt-wsdl/3.1.5
mvn:org.apache.geronimo.specs/geronimo-jaspic_1.0_spec/1.1
mvn:org.apache.geronimo.specs/geronimo-jta_1.1_spec/1.1.1
mvn:org.apache.geronimo.specs/geronimo-osgi-registry/1.1
mvn:org.apache.httpcomponents/httpclient-osgi/4.5.1
mvn:org.apache.httpcomponents/httpcore-osgi/4.4.4
mvn:org.apache.karaf.bundle/org.apache.karaf.bundle.springstate/4.0.7
mvn:org.apache.karaf.deployer/org.apache.karaf.deployer.spring/4.0.7
mvn:org.apache.karaf.http/org.apache.karaf.http.core/4.0.7
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.aopalliance/1.0_6
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.cglib/3.2.2_1
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.fastinfoset/1.2.13_1
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-impl/2.2.6_1
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-impl/2.2.11_1
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-xjc/2.2.11_1
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-aop/3.2.17.RELEASE_1
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-beans/3.2.17.RELEASE_1
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-context/3.2.17.RELEASE_1
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-context-support/3.2.17.RELEASE_1
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-core/3.2.17.RELEASE_1
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-expression/3.2.17.RELEASE_1
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-tx/3.2.17.RELEASE_1
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.wsdl4j/1.6.3_1
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.xmlresolver/1.2_5
mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jsr339-api-2.0/2.4.0
mvn:org.apache.ws.xmlschema/xmlschema-core/2.2.1
mvn:org.apache.xbean/xbean-bundleutils/4.1
mvn:org.apache.xbean/xbean-finder/4.1
mvn:org.codehaus.jettison/jettison/1.3.7
mvn:org.eclipse.jdt.core.compiler/ecj/4.4
mvn:org.eclipse.jetty/jetty-client/9.2.19.v20160908
mvn:org.eclipse.jetty/jetty-continuation/9.2.19.v20160908
mvn:org.eclipse.jetty/jetty-http/9.2.19.v20160908
mvn:org.eclipse.jetty/jetty-io/9.2.19.v20160908
mvn:org.eclipse.jetty/jetty-jaas/9.2.19.v20160908
mvn:org.eclipse.jetty/jetty-jaspi/9.2.19.v20160908
mvn:org.eclipse.jetty/jetty-jmx/9.2.19.v20160908
mvn:org.eclipse.jetty/jetty-jndi/9.2.19.v20160908
mvn:org.eclipse.jetty/jetty-plus/9.2.19.v20160908
mvn:org.eclipse.jetty/jetty-rewrite/9.2.19.v20160908
mvn:org.eclipse.jetty/jetty-security/9.2.19.v20160908
mvn:org.eclipse.jetty/jetty-server/9.2.19.v20160908
mvn:org.eclipse.jetty/jetty-servlet/9.2.19.v20160908
mvn:org.eclipse.jetty/jetty-servlets/9.2.19.v20160908
mvn:org.eclipse.jetty/jetty-util/9.2.19.v20160908
mvn:org.eclipse.jetty/jetty-util-ajax/9.2.19.v20160908
mvn:org.eclipse.jetty/jetty-webapp/9.2.19.v20160908
mvn:org.eclipse.jetty.websocket/websocket-api/9.2.19.v20160908
mvn:org.eclipse.jetty.websocket/websocket-client/9.2.19.v20160908
mvn:org.eclipse.jetty.websocket/websocket-common/9.2.19.v20160908
mvn:org.eclipse.jetty.websocket/javax-websocket-client-impl/9.2.19.v20160908
mvn:org.eclipse.jetty.websocket/javax-websocket-server-impl/9.2.19.v20160908
mvn:org.eclipse.jetty.websocket/websocket-server/9.2.19.v20160908
mvn:org.eclipse.jetty.websocket/websocket-servlet/9.2.19.v20160908
mvn:org.eclipse.jetty/jetty-xml/9.2.19.v20160908
mvn:org.ops4j.pax.web/pax-web-api/4.3.0
mvn:org.ops4j.pax.web/pax-web-extender-whiteboard/4.3.0
mvn:org.ops4j.pax.web/pax-web-jetty/4.3.0
mvn:org.ops4j.pax.web/pax-web-jsp/4.3.0
mvn:org.ops4j.pax.web/pax-web-runtime/4.3.0
mvn:org.ops4j.pax.web/pax-web-spi/4.3.0
mvn:org.springframework.osgi/spring-osgi-core/1.2.1
mvn:org.springframework.osgi/spring-osgi-extender/1.2.1
mvn:org.springframework.osgi/spring-osgi-annotation/1.2.1
mvn:org.springframework.osgi/spring-osgi-io/1.2.1
mvn:org.yaml/snakeyaml/1.15
mvn:org.codehaus.woodstox/stax2-api/3.1.4
mvn:org.codehaus.woodstox/woodstox-core-asl/4.4.1
Stopping bundles:
org.ops4j.pax.logging.pax-logging-service/1.8.5
Refreshing bundles:
org.ops4j.pax.logging.pax-logging-service/1.8.5 (Should be wired to:
javax.mail/1.4.5 (through [org.ops4j.pax.logging.pax-logging-service/1.8.5]
osgi.wiring.package; filter:="(osgi.wiring.package=javax.mail)";
resolution:=optional))
Starting bundles:
org.ops4j.pax.logging.pax-logging-service/1.8.5
org.apache.geronimo.specs.geronimo-osgi-registry/1.1.0
javax.annotation-api/1.2.0
org.apache.servicemix.specs.jsr339-api-2.0/2.4.0
org.apache.servicemix.bundles.jaxb-impl/2.2.6.1
org.apache.servicemix.bundles.jaxb-impl/2.2.11.1
org.apache.servicemix.bundles.jaxb-xjc/2.2.11.1
org.apache.xbean.bundleutils/4.1.0
stax2-api/3.1.4
org.apache.xbean.finder/4.1.0
woodstox-core-asl/4.4.1
org.apache.servicemix.bundles.xmlresolver/1.2.0.5
javax.servlet-api/3.1.0
org.eclipse.jetty.util/9.2.19.v20160908
org.eclipse.jetty.http/9.2.19.v20160908
org.eclipse.jetty.io/9.2.19.v20160908
org.eclipse.jetty.jmx/9.2.19.v20160908
org.eclipse.jetty.server/9.2.19.v20160908
org.eclipse.jetty.security/9.2.19.v20160908
org.eclipse.jetty.jaas/9.2.19.v20160908
org.eclipse.jetty.continuation/9.2.19.v20160908
org.apache.geronimo.specs.geronimo-jta_1.1_spec/1.1.1
org.apache.servicemix.bundles.cglib/3.2.2.1
org.apache.servicemix.bundles.spring-core/3.2.17.RELEASE_1
org.apache.servicemix.bundles.spring-expression/3.2.17.RELEASE_1
org.eclipse.jetty.xml/9.2.19.v20160908
org.eclipse.jetty.servlet/9.2.19.v20160908
org.eclipse.jetty.webapp/9.2.19.v20160908
org.springframework.osgi.io/1.2.1
org.apache.servicemix.bundles.fastinfoset/1.2.13.1
org.apache.ws.xmlschema.core/2.2.1
org.apache.servicemix.bundles.aopalliance/1.0.0.6
org.eclipse.jetty.websocket.api/9.2.19.v20160908
org.eclipse.jetty.websocket.common/9.2.19.v20160908
org.eclipse.jetty.websocket.client/9.2.19.v20160908
javax.websocket-api/1.1.0
org.eclipse.jetty.websocket.javax.websocket/9.2.19.v20160908
org.apache.aries.spifly.dynamic.bundle/1.0.1
org.eclipse.jetty.websocket.servlet/9.2.19.v20160908
org.eclipse.jetty.websocket.server/9.2.19.v20160908
org.eclipse.jetty.websocket.javax.websocket.server/9.2.19.v20160908
org.eclipse.jetty.servlets/9.2.19.v20160908
org.eclipse.jetty.util.ajax/9.2.19.v20160908
org.eclipse.jetty.rewrite/9.2.19.v20160908
org.eclipse.jetty.client/9.2.19.v20160908
org.eclipse.jdt.core.compiler.batch/3.10.0.v20140604-1726
org.apache.servicemix.bundles.spring-context/3.2.17.RELEASE_1
org.apache.servicemix.bundles.spring-tx/3.2.17.RELEASE_1
org.codehaus.jettison.jettison/1.3.7
org.apache.servicemix.bundles.wsdl4j/1.6.3.1
org.apache.servicemix.bundles.spring-context-support/3.2.17.RELEASE_1
org.springframework.osgi.extensions.annotations/1.2.1
org.springframework.osgi.extender/1.2.1
org.apache.geronimo.specs.geronimo-jaspic_1.0_spec/1.1.0
org.eclipse.jetty.jaspi/9.2.19.v20160908
org.ops4j.pax.web.pax-web-extender-whiteboard/4.3.0
org.apache.karaf.http.core/4.0.7
javax.mail/1.4.5
org.eclipse.jetty.jndi/9.2.19.v20160908
org.eclipse.jetty.plus/9.2.19.v20160908
org.ops4j.pax.web.pax-web-jetty/4.3.0
org.ops4j.pax.web.pax-web-runtime/4.3.0
org.ops4j.pax.web.pax-web-api/4.3.0
org.ops4j.pax.web.pax-web-spi/4.3.0
org.ops4j.pax.web.pax-web-jsp/4.3.0
org.apache.servicemix.bundles.spring-beans/3.2.17.RELEASE_1
org.apache.servicemix.bundles.spring-aop/3.2.17.RELEASE_1
org.springframework.osgi.core/1.2.1
org.apache.karaf.deployer.spring/4.0.7
org.apache.karaf.bundle.springstate/4.0.7
org.apache.cxf.cxf-rt-databinding-jaxb/3.1.5
org.apache.cxf.cxf-rt-wsdl/3.1.5
org.apache.cxf.cxf-rt-transports-http/3.1.5
org.apache.cxf.cxf-rt-bindings-soap/3.1.5
org.apache.cxf.cxf-rt-frontend-jaxrs/3.1.5
org.apache.cxf.cxf-rt-rs-extension-search/3.1.5
org.apache.cxf.cxf-rt-bindings-xml/3.1.5
org.apache.cxf.cxf-rt-frontend-simple/3.1.5
org.apache.cxf.cxf-rt-frontend-jaxws/3.1.5
org.apache.cxf.cxf-rt-rs-extension-providers/3.1.5
org.apache.cxf.cxf-rt-management/3.1.5
org.apache.cxf.cxf-rt-transports-http-jetty/3.1.5
org.apache.cxf.cxf-rt-rs-client/3.1.5
org.apache.cxf.cxf-rt-rs-service-description/3.1.5
org.apache.cxf.cxf-core/3.1.5
org.apache.camel.camel-spring/2.16.3
org.apache.camel.camel-core/2.16.3
org.apache.camel.camel-http-common/2.16.3
org.apache.camel.camel-blueprint/2.16.3
org.apache.camel.camel-cxf-transport/2.16.3
org.apache.camel.camel-cxf/2.16.3
com.fasterxml.jackson.core.jackson-annotations/2.6.3
com.fasterxml.jackson.core.jackson-core/2.6.3
com.fasterxml.jackson.core.jackson-databind/2.6.3
org.apache.camel.camel-jaxb/2.16.3
org.apache.httpcomponents.httpcore/4.4.4
org.apache.httpcomponents.httpclient/4.5.1
org.apache.camel.camel-catalog/2.16.3
com.fasterxml.jackson.module.jackson-module-jaxb-annotations/2.6.3
org.apache.camel.camel-jackson/2.16.3
org.apache.camel.camel-http4/2.16.3
ch.vivates.ams.base/4.0.20.SNAPSHOT
ch.vivates.vel.base/1.0.5
org.apache.commons.codec/1.9.0
joda-time/2.7.0
org.yaml.snakeyaml/1.15.0
ch.vivates.ams.pas-webservice-hp/4.0.20.SNAPSHOT
org.apache.camel.camel-commands-core/2.16.3
org.apache.camel.karaf.camel-karaf-commands/2.16.3
Done.
karaf@root()> feature:install -v rest-api
Adding features: rest-api/[4.0.20.SNAPSHOT,4.0.20.SNAPSHOT]
Changes to perform:
Region: root
Bundles to install:
mvn:ch.vivates.ams/rest-api/4.0.20-SNAPSHOT
mvn:io.netty/netty-buffer/4.0.34.Final
mvn:io.netty/netty-codec/4.0.34.Final
mvn:io.netty/netty-codec-http/4.0.34.Final
mvn:io.netty/netty-common/4.0.34.Final
mvn:io.netty/netty-handler/4.0.34.Final
mvn:io.netty/netty-transport/4.0.34.Final
mvn:org.apache.camel/camel-netty4/2.16.3
mvn:org.apache.camel/camel-netty4-http/2.16.3
mvn:commons-pool/commons-pool/1.6
Installing bundles:
mvn:ch.vivates.ams/rest-api/4.0.20-SNAPSHOT
mvn:io.netty/netty-buffer/4.0.34.Final
mvn:io.netty/netty-codec/4.0.34.Final
mvn:io.netty/netty-codec-http/4.0.34.Final
mvn:io.netty/netty-common/4.0.34.Final
mvn:io.netty/netty-handler/4.0.34.Final
mvn:io.netty/netty-transport/4.0.34.Final
mvn:org.apache.camel/camel-netty4/2.16.3
mvn:org.apache.camel/camel-netty4-http/2.16.3
mvn:commons-pool/commons-pool/1.6
Stopping bundles:
ch.vivates.ams.pas-webservice-hp/4.0.20.SNAPSHOT
org.apache.camel.camel-spring/2.16.3
org.apache.camel.camel-cxf-transport/2.16.3
org.apache.camel.camel-cxf/2.16.3
org.apache.cxf.cxf-rt-wsdl/3.1.5
org.apache.cxf.cxf-rt-transports-http-jetty/3.1.5
org.apache.cxf.cxf-rt-rs-service-description/3.1.5
org.apache.cxf.cxf-rt-rs-extension-search/3.1.5
org.apache.cxf.cxf-rt-rs-extension-providers/3.1.5
org.apache.cxf.cxf-rt-rs-client/3.1.5
org.apache.cxf.cxf-rt-management/3.1.5
org.apache.cxf.cxf-rt-frontend-simple/3.1.5
org.apache.cxf.cxf-rt-frontend-jaxws/3.1.5
org.apache.cxf.cxf-rt-frontend-jaxrs/3.1.5
org.apache.cxf.cxf-rt-databinding-jaxb/3.1.5
org.apache.cxf.cxf-rt-bindings-xml/3.1.5
org.apache.cxf.cxf-rt-bindings-soap/3.1.5
org.apache.cxf.cxf-core/3.1.5
org.apache.cxf.cxf-rt-transports-http/3.1.5
org.springframework.osgi.extensions.annotations/1.2.1
org.springframework.osgi.extender/1.2.1
org.springframework.osgi.core/1.2.1
org.apache.servicemix.bundles.spring-tx/3.2.17.RELEASE_1
org.apache.servicemix.bundles.spring-context-support/3.2.17.RELEASE_1
org.apache.servicemix.bundles.spring-context/3.2.17.RELEASE_1
org.apache.servicemix.bundles.spring-aop/3.2.17.RELEASE_1
org.apache.karaf.bundle.springstate/4.0.7
Refreshing bundles:
ch.vivates.ams.pas-webservice-hp/4.0.20.SNAPSHOT (Wired to
org.apache.cxf.cxf-rt-bindings-soap/3.1.5 which is being refreshed)
org.apache.camel.camel-cxf/2.16.3 (Wired to
org.apache.servicemix.bundles.spring-context/3.2.17.RELEASE_1 which is being
refreshed)
org.apache.camel.camel-cxf-transport/2.16.3 (Wired to
org.apache.cxf.cxf-core/3.1.5 which is being refreshed)
org.apache.camel.camel-spring/2.16.3 (Wired to
org.apache.servicemix.bundles.spring-context/3.2.17.RELEASE_1 which is being
refreshed)
org.apache.cxf.cxf-core/3.1.5 (Wired to
org.springframework.osgi.core/1.2.1 which is being refreshed)
org.apache.cxf.cxf-rt-bindings-soap/3.1.5 (Wired to
org.apache.cxf.cxf-core/3.1.5 which is being refreshed)
org.apache.cxf.cxf-rt-bindings-xml/3.1.5 (Wired to
org.apache.cxf.cxf-core/3.1.5 which is being refreshed)
org.apache.cxf.cxf-rt-databinding-jaxb/3.1.5 (Wired to
org.apache.cxf.cxf-core/3.1.5 which is being refreshed)
org.apache.cxf.cxf-rt-frontend-jaxrs/3.1.5 (Wired to
org.apache.servicemix.bundles.spring-context/3.2.17.RELEASE_1 which is being
refreshed)
org.apache.cxf.cxf-rt-frontend-jaxws/3.1.5 (Wired to
org.apache.servicemix.bundles.spring-context/3.2.17.RELEASE_1 which is being
refreshed)
org.apache.cxf.cxf-rt-frontend-simple/3.1.5 (Wired to
org.apache.servicemix.bundles.spring-context/3.2.17.RELEASE_1 which is being
refreshed)
org.apache.cxf.cxf-rt-management/3.1.5 (Wired to
org.apache.cxf.cxf-core/3.1.5 which is being refreshed)
org.apache.cxf.cxf-rt-rs-client/3.1.5 (Wired to
org.apache.servicemix.bundles.spring-context/3.2.17.RELEASE_1 which is being
refreshed)
org.apache.cxf.cxf-rt-rs-extension-providers/3.1.5 (Wired to
org.apache.cxf.cxf-core/3.1.5 which is being refreshed)
org.apache.cxf.cxf-rt-rs-extension-search/3.1.5 (Wired to
org.apache.cxf.cxf-core/3.1.5 which is being refreshed)
org.apache.cxf.cxf-rt-rs-service-description/3.1.5 (Wired to
org.apache.cxf.cxf-core/3.1.5 which is being refreshed)
org.apache.cxf.cxf-rt-transports-http/3.1.5 (Wired to
org.apache.servicemix.bundles.spring-context/3.2.17.RELEASE_1 which is being
refreshed)
org.apache.cxf.cxf-rt-transports-http-jetty/3.1.5 (Wired to
org.apache.servicemix.bundles.spring-context/3.2.17.RELEASE_1 which is being
refreshed)
org.apache.cxf.cxf-rt-wsdl/3.1.5 (Wired to org.apache.cxf.cxf-core/3.1.5
which is being refreshed)
org.apache.karaf.bundle.springstate/4.0.7 (Wired to
org.springframework.osgi.core/1.2.1 which is being refreshed)
org.apache.servicemix.bundles.spring-aop/3.2.17.RELEASE_1 (Should be
wired to: org.apache.commons.pool/1.6.0 (through
[org.apache.servicemix.bundles.spring-aop/3.2.17.RELEASE_1]
osgi.wiring.package;
filter:="(&(osgi.wiring.package=org.apache.commons.pool)(version>=1.5.3)(!(version>=2.0.0)))";
resolution:=optional))
org.apache.servicemix.bundles.spring-context/3.2.17.RELEASE_1 (Wired to
org.apache.servicemix.bundles.spring-aop/3.2.17.RELEASE_1 which is being
refreshed)
org.apache.servicemix.bundles.spring-context-support/3.2.17.RELEASE_1
(Wired to org.apache.servicemix.bundles.spring-context/3.2.17.RELEASE_1
which is being refreshed)
org.apache.servicemix.bundles.spring-tx/3.2.17.RELEASE_1 (Wired to
org.apache.servicemix.bundles.spring-aop/3.2.17.RELEASE_1 which is being
refreshed)
org.springframework.osgi.core/1.2.1 (Wired to
org.apache.servicemix.bundles.spring-aop/3.2.17.RELEASE_1 which is being
refreshed)
org.springframework.osgi.extender/1.2.1 (Wired to
org.apache.servicemix.bundles.spring-context/3.2.17.RELEASE_1 which is being
refreshed)
org.springframework.osgi.extensions.annotations/1.2.1 (Wired to
org.springframework.osgi.core/1.2.1 which is being refreshed)
Starting bundles:
org.apache.servicemix.bundles.spring-aop/3.2.17.RELEASE_1
org.apache.servicemix.bundles.spring-context/3.2.17.RELEASE_1
org.springframework.osgi.core/1.2.1
org.springframework.osgi.extensions.annotations/1.2.1
org.springframework.osgi.extender/1.2.1
org.apache.servicemix.bundles.spring-tx/3.2.17.RELEASE_1
org.apache.karaf.bundle.springstate/4.0.7
org.apache.servicemix.bundles.spring-context-support/3.2.17.RELEASE_1
org.apache.cxf.cxf-rt-databinding-jaxb/3.1.5
org.apache.cxf.cxf-rt-wsdl/3.1.5
org.apache.cxf.cxf-rt-transports-http/3.1.5
org.apache.cxf.cxf-rt-bindings-soap/3.1.5
org.apache.cxf.cxf-rt-frontend-jaxrs/3.1.5
org.apache.cxf.cxf-rt-rs-extension-search/3.1.5
org.apache.cxf.cxf-rt-bindings-xml/3.1.5
org.apache.cxf.cxf-rt-frontend-simple/3.1.5
org.apache.cxf.cxf-rt-frontend-jaxws/3.1.5
org.apache.cxf.cxf-rt-rs-extension-providers/3.1.5
org.apache.cxf.cxf-rt-management/3.1.5
org.apache.cxf.cxf-rt-transports-http-jetty/3.1.5
org.apache.cxf.cxf-rt-rs-client/3.1.5
org.apache.cxf.cxf-rt-rs-service-description/3.1.5
org.apache.cxf.cxf-core/3.1.5
org.apache.commons.pool/1.6.0
io.netty.common/4.0.34.Final
io.netty.buffer/4.0.34.Final
io.netty.transport/4.0.34.Final
io.netty.codec/4.0.34.Final
io.netty.handler/4.0.34.Final
io.netty.codec-http/4.0.34.Final
org.apache.camel.camel-netty4/2.16.3
org.apache.camel.camel-netty4-http/2.16.3
org.apache.camel.camel-spring/2.16.3
org.apache.camel.camel-cxf-transport/2.16.3
org.apache.camel.camel-cxf/2.16.3
ch.vivates.ams.pas-webservice-hp/4.0.20.SNAPSHOT
ch.vivates.ams.rest-api/4.0.20.SNAPSHOT
Done.
karaf@root()>
Thanks for your help!
Ralf
--
View this message in context: http://karaf.922171.n3.nabble.com/NoClassDefFoundError-org-apache-camel-component-http4-helper-HttpMethodHelper-tp4049297p4049299.html
Sent from the Karaf - User mailing list archive at Nabble.com.
Re: NoClassDefFoundError:
org/apache/camel/component/http4/helper/HttpMethodHelper
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,
that can be related to the Pax Web feature and httpclient dependencies.
Instead of using the kar, it would be great to have the resolver output
(with feature:install -v). It will explain the cause of the refresh.
Regards
JB
On 01/20/2017 03:35 PM, rsteppac2 wrote:
> Hello,
>
> I am on Karaf 4.0.7, Camel 2.16.3.
>
> I am struggling with a classpath problem when deploying a KAR via the deploy
> folder. Out of 4 features/bundles that depend on the camel-http4 feature, 3
> fail at run-time when their routes get triggered:
>
> 2017-01-20 15:02:29,968 | ERROR | tp1107713346-554 | event_log
> | 66 - org.apache.camel.camel-core - 2.16.3 |
> ID-Ralfs-MacBook-Pro-local-62189-1484920844831-20-11 | Remote event
> processing exception cause: java.lang.NoClassDefFoundError:
> org/apache/camel/component/http4/helper/HttpMethodHelper
>
> All 4 features declare their dependency to camel-http4 in the exact same way
> in their feature descriptor:
>
> <feature name="...">
> <feature version="2.16.3" prerequisite="false"
> dependency="false">camel-http4</feature>
> <!-- ... -->
> <bundle>mvn:the.bundle.group/the-bundle/4.0.20-SNAPSHOT</bundle>
> </feature>
>
> During deployment of the KAR most features/bundles get stopped and then
> re-started multiple times. The only bundle that can successfully resolve the
> http4 endpoint is the one that is installed and started last. The 4 bundles
> correspond to the following Camel context:
>
> pas-hp-ws -> bundle 1, NoClassDefFoundError at runtime
> pas-patient-ws -> bundle 2, NoClassDefFoundError at runtime
> pas-patient-registration -> bundle 3, NoClassDefFoundError at runtime
> pep-pas, pep-xds -> bundle 4, works
>
>
> This is the start/restart sequence when deploying the KAR:
>
> $ grep -e 'CamelContext:.*shutdown' -e 'CamelContext:.*started' karaf.log
> 2017-01-20 15:12:02,159 | INFO | Apache Camel 2.16.3 (CamelContext:
> pas-hp-ws) started in 4.628 seconds
> 2017-01-20 15:12:03,356 | INFO | Apache Camel 2.16.3 (CamelContext:
> pas-hp-ws) is shutdown in 0.052 seconds
> 2017-01-20 15:12:04,480 | INFO | Apache Camel 2.16.3 (CamelContext:
> rest-api) started in 0.311 seconds
> 2017-01-20 15:12:06,440 | INFO | Apache Camel 2.16.3 (CamelContext:
> pas-hp-ws) started in 1.638 seconds
> 2017-01-20 15:12:08,641 | INFO | Apache Camel 2.16.3 (CamelContext:
> pas-patient-ws) started in 0.701 seconds
> 2017-01-20 15:12:09,988 | INFO | Apache Camel 2.16.3 (CamelContext:
> pas-patient-ws) is shutdown in 0.031 seconds
> 2017-01-20 15:12:10,046 | INFO | Apache Camel 2.16.3 (CamelContext:
> pas-hp-ws) is shutdown in 0.040 seconds
> 2017-01-20 15:12:12,185 | INFO | Apache Camel 2.16.3 (CamelContext:
> pas-hp-ws) started in 1.418 seconds
> 2017-01-20 15:12:14,019 | INFO | Apache Camel 2.16.3 (CamelContext:
> pas-patient-registration-ws) started in 1.232 seconds
> 2017-01-20 15:12:15,564 | INFO | Apache Camel 2.16.3 (CamelContext:
> pas-patient-ws) started in 1.313 seconds
> 2017-01-20 15:12:17,590 | INFO | Apache Camel 2.16.3 (CamelContext:
> pas-patient-registration-ws) is shutdown in 0.025 seconds
> 2017-01-20 15:12:17,634 | INFO | Apache Camel 2.16.3 (CamelContext:
> pas-patient-ws) is shutdown in 0.030 seconds
> 2017-01-20 15:12:17,673 | INFO | Apache Camel 2.16.3 (CamelContext:
> rest-api) is shutdown in 0.018 seconds
> 2017-01-20 15:12:17,709 | INFO | Apache Camel 2.16.3 (CamelContext:
> pas-hp-ws) is shutdown in 0.026 seconds
> 2017-01-20 15:12:19,203 | INFO | Apache Camel 2.16.3 (CamelContext:
> rest-api) started in 0.158 seconds
> 2017-01-20 15:12:20,754 | INFO | Apache Camel 2.16.3 (CamelContext:
> pep-pas) started in 0.983 seconds
> 2017-01-20 15:12:21,016 | INFO | Apache Camel 2.16.3 (CamelContext:
> pep-xds) started in 0.256 seconds
> 2017-01-20 15:12:22,781 | INFO | Apache Camel 2.16.3 (CamelContext:
> pas-hp-ws) started in 1.535 seconds
> 2017-01-20 15:12:23,881 | INFO | Apache Camel 2.16.3 (CamelContext:
> pas-patient-registration-ws) started in 0.725 seconds
> 2017-01-20 15:12:25,104 | INFO | Apache Camel 2.16.3 (CamelContext:
> pas-patient-ws) started in 1.037 seconds
> 2017-01-20 15:12:27,205 | INFO | Apache Camel 2.16.3 (CamelContext:
> pep-xds) is shutdown in 0.039 seconds
> 2017-01-20 15:12:27,224 | INFO | Apache Camel 2.16.3 (CamelContext:
> pep-pas) is shutdown in 0.016 seconds
> 2017-01-20 15:12:27,265 | INFO | Apache Camel 2.16.3 (CamelContext:
> pas-patient-registration-ws) is shutdown in 0.019 seconds
> 2017-01-20 15:12:27,306 | INFO | Apache Camel 2.16.3 (CamelContext:
> pas-patient-ws) is shutdown in 0.023 seconds
> 2017-01-20 15:12:27,389 | INFO | Apache Camel 2.16.3 (CamelContext:
> pas-hp-ws) is shutdown in 0.042 seconds
> 2017-01-20 15:12:29,977 | INFO | Apache Camel 2.16.3 (CamelContext:
> pep-pas) started in 0.495 seconds
> 2017-01-20 15:12:30,225 | INFO | Apache Camel 2.16.3 (CamelContext:
> pep-xds) started in 0.246 seconds
> 2017-01-20 15:12:33,639 | INFO | Apache Camel 2.16.3 (CamelContext:
> graph-migration) started in 0.174 seconds
> 2017-01-20 15:12:37,158 | INFO | Apache Camel 2.16.3 (CamelContext:
> pas-hp-ws) started in 2.968 seconds
> 2017-01-20 15:12:38,878 | INFO | Apache Camel 2.16.3 (CamelContext:
> pas-patient-registration-ws) started in 1.218 seconds
> 2017-01-20 15:12:40,150 | INFO | Apache Camel 2.16.3 (CamelContext:
> pas-patient-ws) started in 1.054 seconds
> 2017-01-20 15:12:42,417 | INFO | Apache Camel 2.16.3 (CamelContext:
> pep-xds) is shutdown in 0.019 seconds
> 2017-01-20 15:12:42,440 | INFO | Apache Camel 2.16.3 (CamelContext:
> pep-pas) is shutdown in 0.018 seconds
> 2017-01-20 15:12:43,577 | INFO | Apache Camel 2.16.3 (CamelContext:
> xacml-pdp) started in 0.917 seconds
> 2017-01-20 15:12:44,667 | INFO | Apache Camel 2.16.3 (CamelContext:
> pep-pas) started in 0.915 seconds
> 2017-01-20 15:12:45,028 | INFO | Apache Camel 2.16.3 (CamelContext:
> pep-xds) started in 0.355 seconds
> 2017-01-20 15:12:46,642 | INFO | Apache Camel 2.16.3 (CamelContext:
> pas-persistence) started in 0.322 seconds
> 2017-01-20 15:12:48,278 | INFO | Apache Camel 2.16.3 (CamelContext:
> ldap-graph-synchronization) started in 0.303 seconds
> $
>
> (Side question: why all those re-deploy cycles?)
>
> If after initial deployment the bundles are restarted, then they start
> working as well.
>
> (Side question: When deploying the KAR it is not possible to
> uninstall/install the features in the KAR by name from the console. The
> feature:uninstall/install commands do not return an error, but in the log I
> can see they take no effect?)
>
> I cannot reproduce the problem when installing the features one by one from
> the Karaf console in my development environment from my local maven
> repository.
> Explicitly adding the import of org.apache.camel.component.http4.helper to
> the maven-bundle-plugin configuration also works around the problem.
>
> What could be the reason why most bundles cannot resolve classes required by
> the http4 endpoint but at least one can when deploying a KAR via the deploy
> folder?
>
>
> Thanks!
> Ralf
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/NoClassDefFoundError-org-apache-camel-component-http4-helper-HttpMethodHelper-tp4049297.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>
--
Jean-Baptiste Onofr
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com