How do I Set up Apache Axis2 in Eclipse?

Q: How do I Set up Apache Axis2 in Eclipse?

Date: Tue, 4th Apr, 2006
Level:
Reads: 24486 Comments: 6 | Login or register to post comments
Ruchith Fernando
Software Engineer
WSO2 Inc.

A: A developer who plans to contribute to Apache Axis2 will find it very useful to set up the project in an Integrated Development Environment such as Eclipse. In this page the commonly asked question of how to set up Apache Axis2 in Eclipse IDE is answered.

The following steps will successfully take you through the process.

  1. Get an SVN checkout of Axis2 (https://svn.apache.org/repos/asf/webservices/axis2/trunk/java) into 'axis2' directory inside your eclipse workspace. Run the maven build on this source.
  2. Start a new Java project in eclipse and set the project name as 'axis2'. Now with the default settings in eclipse it will automatically pick up the existing project contents (directories etc).
  3. In the next step of the new java project wizard you can select the source directories that you want to mount. You can browse the directories and select all 'src' and 'test' directories in each maven module (axis2/java/modules/*). Note that in the case of the security module, there's an additional source directory named 'interop'.
  4. In step 3 you can also use the "Libraries" tab to add the jars that all modules depends on. Note that you will have to add all dependent jars required by the modules that you selected/added as source.
  5. There are three places in Axis2 where there is code that don't compile. The missing classes are code generated during the maven build.
    • You can collect the code generated source of the security module - 'interop' source dir from '.../axis2/java/modules/security/target/interop/work/src' or you can code generate (XmlBeans) them with the ping.wsdl in the '.../axis2/java/modules/security/interop' dir and add them to your source in 'axis2/java/modules/security/interop' (Make sure you don't check in these classes when committing.)
    • As for the integration module - 'test' source dir, you can exclude the 'samples' package and "org.apache.axis2.om" package from the source path.

Congratulations! Now you have successfully set up Axis2 in eclipse

In the case of compilation failures:

  1. Check whether you have imported all dependent jars
  2. Check whether you have set up the code generated classes properly.

For any further details and questions email to: axis-dev@ws.apache.org (Prefix subject with with [Axis2])

To subscribe to Apache Axis2 mailing list see here

cooljasmineforever.gmail.com's picture

The information you have posted is very useful.

The information you have posted is very useful. Payday Loans Payday Loans Online
latex.mattress.yahoo.com's picture

Thanks for the step. I will

Thanks for the step. I will try do likes you wrote. I wish I will luck too likes you:) free ads |part time jobs|latex mattress

registrycleaner.mail.com's picture

Awesome Post

Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I'll be subscribing to your feed and I hope you post again soon.Your blog provided us valuable information to work on.You have done a marvellous job!I've Bookmarked this page for future reference.

Thank You
Fix windows registry problems

christin7007.gmail.com's picture

Thanks

Wonderful! I really did not think about this topic before from your point of view. But now I am thinking about your idea. I've also discussed with my friends about your post.

Thank you ruchith. I've bookmarked this page for my reference.

Mandy Tea

christin7007.gmail.com's picture

Thanks

Great! Thanks for the great informative post and your effort.
I think the above article is valuable for all concerned people. For me the Informations are really really useful. I've Bookmarked this page for future reference.

Thank you
Robin Jokes

alpatino's picture

Another way to setup Axis2 in Eclipse

I imported the axis2 modules to eclipse 3.3.

But first I run maven build:

IMPORTANT: Axis2 is built with maven2, this is, the mvn command, please don't follow the build instructions, don't follow the FAQ from the Axis2 home page. The info is outdated because says that the build doesn't support maven2, this is false, in fact the only way to build from the source is using maven2:

mvn clean, mvn install

Maven 2 create the .m2/repository directory, you need to add this Classpath variable from inside Eclipse.

Hot Topic
Hot
Topic

Google Gadgets are a nice way to develop user interfaces for distributed services. The fact that they can be hosted anywhere over a network, not necessarily in the very portal server they eventually run in makes them re-usable and allows users to quickly...

Mini Banners
WSO2Con 2010
Latest Webinar
In this webinar we'll share the range of concerns we've heard from the industry, and survey some of the new and sometimes subtle types of lock-in associated with cloud technologies.
Wednesday, 8 September, 10.00 AM (PDT)