« EJB 3.0 and JBossWS | Main | Porting JAX-WS applications across web services toolkits »

just starting with CXF (celtixfire)

The Apache CeltiXFire project has just recently been renamed to CXF. Which is much more userfriendly for the mouth at any rate, (Celtixfire is a bit of tongue twister).

I am only a newbie and only getting started on it now. I successfully imported the project into Eclipse thanks to Dan Kulp's explanation.

The only problem Ive come across so far was when building the project (out in the command line) using Maven 2.0.4 my /trunk/distribution/target directory was not being created. "mvn install" needs to be run in the trunk and distribution directory, however I found running "mvn -e install" more useful for error output. Maven runs fine from the distribution directory (/trunk/distribution) directory but from the trunk directory (/trunk) it generated a build error.

java.lang.NoClassDefFoundError: org/apache/cxf/configuration/CommandlineConfiguration
at java.lang.Class.getDeclaredMethods0(Native Method)


It seemed this was caused by out-of-date binaries. To make sure you update these, use "mvn clean install" instead of just "mvn install". If clean fails (which it did for me!), delete the */target directories manually. Clean out the local repository, i.e. remove the org.apache.cxf directory in c:\Documents and Settings\\.m2\repository. Then run "mvn -e install".

After this my build worked and the /trunk/distribution/target directory was created.

The project is now complete with distribution jars and demos \distribution\src\main\release\samples and up and running in Eclipse.

TrackBack

TrackBack URL for this entry:
http://blogs.iona.com/cgi-bin/mt/mt-tb.cgi/391

Comments (1)

Daniel Kulp:

There is now a top level profile that will build "everything". You can run:

mvn -Peverything

and the distribution directory will also be built.

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

About

This page contains a single entry from the blog posted on October 19, 2006 8:27 PM.

The previous post in this blog was EJB 3.0 and JBossWS.

The next post in this blog is Porting JAX-WS applications across web services toolkits.

Many more can be found on the main index page or by looking through the archives.

Powered by
Movable Type 3.31