apache-karaf

Apache Camel conditional routing

♀尐吖头ヾ 提交于 2019-11-29 03:59:56
I have a service which has two operations. RegisterUser UpdateUser I have a camel rout: <camel:route id="myRoute"> <camel:from uri="cxf:bean:myListenerEndpoint?dataFormat=POJO&synchronous=true" /> <camel:bean ref="processor" method="processMessage"/> <camel:to uri="xslt:file:resources/service/2.0.0/UserRegistration.xsl"/> <camel:to uri="cxf:bean:myTargetEndpoint"/> </camel:route> In my processor bean, when I specify: RegisterUser registerUser = exchange.getIn().getBody(RegisterUser.class); I get the register user object. Everything works fine. The problem is that I want camel to route my

Moxy error with Karaf

流过昼夜 提交于 2019-11-28 02:04:12
I'm using MOXy under fuse ESB (based on karaf), I converted org.eclipse.persistence.jar to a bundle, I deployed this bundle under fuse ESB and I got this error Error : "org.apache.cxf.interceptor.Fault: property "eclipselink-oxm-xml" is not supported" When trying to create new instance of JAXBContext my code is trying to convert Java model to XML, and the model is deployed in a separate bundle under fuse ESB and I added jaxb.properties file in the same package of the model Note: The same code runs successfully without problems when running from a main method in a main class. The following is

Apache Camel conditional routing

谁都会走 提交于 2019-11-27 17:59:16
问题 I have a service which has two operations. RegisterUser UpdateUser I have a camel rout: <camel:route id="myRoute"> <camel:from uri="cxf:bean:myListenerEndpoint?dataFormat=POJO&synchronous=true" /> <camel:bean ref="processor" method="processMessage"/> <camel:to uri="xslt:file:resources/service/2.0.0/UserRegistration.xsl"/> <camel:to uri="cxf:bean:myTargetEndpoint"/> </camel:route> In my processor bean, when I specify: RegisterUser registerUser = exchange.getIn().getBody(RegisterUser.class); I

Karaf / Maven - Unable to resolve: missing requirement osgi.wiring.package

对着背影说爱祢 提交于 2019-11-27 06:54:22
I am unable to start a bundle in Karaf (version 3.0.1). The bundle is built using maven and it imports gson . I included gson in maven as required: <dependency> <groupId>com.google.code.gson</groupId> <artifactId>gson</artifactId> <version>2.3.1</version> </dependency> The build goes fine. However, when deploying the bundle I receive this Warning from Karaf: 2015-05-27 12:45:07,371 | WARN | 49-19-bin/deploy | fileinstall | 11 - org.apache.felix.fileinstall - 3.2.8 | Error while starting bundle: file:/Users/user/Documents/tools/MyBundle-1.0.0-SNAPSHOT.jar org.osgi.framework.BundleException:

Moxy error with Karaf

帅比萌擦擦* 提交于 2019-11-27 04:51:13
问题 I'm using MOXy under fuse ESB (based on karaf), I converted org.eclipse.persistence.jar to a bundle, I deployed this bundle under fuse ESB and I got this error Error : "org.apache.cxf.interceptor.Fault: property "eclipselink-oxm-xml" is not supported" When trying to create new instance of JAXBContext my code is trying to convert Java model to XML, and the model is deployed in a separate bundle under fuse ESB and I added jaxb.properties file in the same package of the model Note: The same code

Karaf / Maven - Unable to resolve: missing requirement osgi.wiring.package

可紊 提交于 2019-11-26 12:11:10
问题 I am unable to start a bundle in Karaf (version 3.0.1). The bundle is built using maven and it imports gson. I included gson in maven as required: <dependency> <groupId>com.google.code.gson</groupId> <artifactId>gson</artifactId> <version>2.3.1</version> </dependency> The build goes fine. However, when deploying the bundle I receive this Warning from Karaf: 2015-05-27 12:45:07,371 | WARN | 49-19-bin/deploy | fileinstall | 11 - org.apache.felix.fileinstall - 3.2.8 | Error while starting bundle