Unable to add cxf bundle package in Eclipse - cxf

I'm trying to learn apache cxf and axis2.
I created a java project in Eclipse Helios and also added Maven Integration for Eclipse. After that, I enabled Dependency Management on that project. But when I select add Dependency and enter cxf in the search box, it doesn't return any result.
According to the book I'm using (Developing Web Services with Apache CXF & Axis2), it should return org.apache.cxf bundle package.
Please advise.

Enter cxf-bundle instead of cxf. I don't know why, but entering cxf alone does not return any results. cxf-bundle does, though.

Related

Google Endpoints V2 and Maven plugin version?

We have a multi-module (war-packaged) project that uses com.google.appengine - appengine-maven-plugin target being ear file.
We have migrated succesfully to Java8 and EndpointsV2. It builds and runs fine in Cloud. However the following requirement is still a bit questionmark in the migration instructions. What is the reason behind this incompatibility and requirement? Or is it just related to for example "discovery docs" that we are not using anyway?
The old App Engine Maven plugin, with group com.google.appengine, is incompatible with the Endpoints Framework plugin. You must use the new version shown above
https://cloud.google.com/endpoints/docs/frameworks/java/migrating
If you aren't using discovery docs or generated client libraries and are only using Endpoints as a library dependency, you can remove the Endpoints plugin and the error should go away.

Deploying camel spring application in Apache Karaf 4.2.0

I am trying to deploy camel spring application in apache karaf. I am using maven to resolve the dependencies. The application runs fine in Intellij but when I deploy the application (along with all the project dependencies) in karaf the application won't start.
Can anyone tell me what is the correct way to deploy camel spring application in karaf?
And also the best approach in resolving the project dependencies?
Camel-version: 2.16.5
Karaf: 4.2.0
If the application is not starting, then it might be waiting for some resolvable dependency. Check the log and install the dependency manually using feature:install. Also ensure all libraries are properly mentioned in pom.xml

Angular tsd based application + Spring Boot in JAR

I have faced a problem connected with project config. I am working on an application which consist of server-side (Spring Boot App) and client-side(Angular-Gulp). I would like to configure my project so that when I build a jar file it would include both client and server side. What should I start with? I am using maven. Is it even possible? (if you need some of my code to answer this question just let me know).
Thanks in advance for your answer.
I would recommend you to checkout the article in this location. I too found it difficult when it was not in the standard documentation for the spring boot folder structure.
https://spring.io/blog/2013/12/19/serving-static-web-content-with-spring-boot
If you place the final artifacts form your gulp build to be in one of the folders that spring boot recognizes as web folder will do the trick.
I tried to do the same with Angular2 and Spring Boot and it did work. Please see the my project https://github.com/reflexdemon/shop and let me know your feedback.

deploying camel java-archetype projec to Fuse 6.2

I have created a java-archetype project for Camel. It is a simple REST hello world to receive a get request and return a string body. When I run this as Java application from Eclipse it works as intended.
When I take the jar and deploy it the Fuse "deploy" folder I can see in the logs that the bundle has started. The state is active and green. However the Camel tab does not appear.
The same works if I use blueprint but does not seem to do so using the java dsl. Is there an extra magic code you need to add for Fuse to pick up the camel context? Thanks
Yes for OSGi to startup you can use a spring or blueprint with a <camelContext> that starts Camel. If you use pure Java code you have to fight with OSGi and use an OSGI activator and setup all kind of OSGi stuff that gets you tiresome.
So add a blueprint xml file and add the <camelContext> and then you can refer to Java route builders, just as you can when doing spring xml: http://camel.apache.org/spring.html

How to generate CXF beans.xml using wsdl2java maven?

When I use eclipse to generate jaxb classes and Webservice implementation by top down approach. eclipse automatically generates csf-beans.xml. However wsdl1java maven plugin doesnot generate config file. Is there are options available to plugin to enable generation of bean configuration file?
No! There isn't any option for generating cxf configuration file with wsdl2java maven plugin. You can get and customize the general cxf.xml file from Apache CXF Configuration and add it to the /WEB-INF/classes folder of your web application.
Hope this helps.

Resources