WSO2Con 2013 CFP Banner

How do I Set up Apache Axis2 in Eclipse?

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

Date: Mon, 3rd Apr, 2006
Level:
Reads: 41128
Discuss this article on Stack Overflow
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

ynah211989.gmail.com's picture

hi

It refers to the work done in providing primary care, secondary care and tertiary care, as well as in public health. Thanks san diego accident attorney
vermaseo055.gmail.com's picture

Well written ! i have to

Well written ! i have to admit that it's very informative article. This really is another really very amazing and interesting publishlearn English
latharangith1988.gmail.com's picture

This is a good post. This

This is a good post. This post give truly quality information.I’m definitely going to look into it.Really very useful tips are provided here.thank you so much.Keep up the good works. Minibus Insurance
ankurs127.gmail.com's picture

Nice blog. I like very much.

Nice blog. I like very much. We expect similar this one. Thanks for sharing to all this nice info. loan bad credit loans
409848980.qq.com's picture

value for money. If Chanel

value for money. If Chanel black lambskin silver chain classic flap bag a1118-9669 stores value for money. If gucci small tote with double-585 Sale value for money. If chaNel black lambskin metallic cc logo handbag a1804-9458 for cheap
ahmedwasim412.gmail.com's picture

In the next step of the new

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'. irs problems
mivpljaipur.gmail.com's picture

informative

tax settlement . 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
597529167.qq.com's picture

http://www.atcoachoutletsonli

http://www.atcoachoutletsonline.net Coach Outlet http://www.getcoachfactoryoutlet.org Coach Factory http://www.louisvuittonhandbagsoutlet.org/ Louis Vuitton Handbags Outlet http://www.saleincoachoutlets.com Coach Outlet Online http://www.atcoachoutletsonline.net Coach Outlet Online http://www.getcoachfactoryoutlet.org Coach Factory Outlet http://www.louisvuittonhandbagsoutlet.org/ Louis Vuitton Handbags http://www.saleincoachoutlets.com Coach Outlet http://www.coachfactoryoutlet-s.org Coach Factory Outlet http://www.buycoachoutletonline.org Coach Outlet http://www.coachoutletonfactory.net Coach Outlet http://www.buycoachoutletonline.org Coach Outlet Online
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
playboy11to9.gmail.com's picture

forex megadroid

Hello there and thank you for your info – I have definitely picked up something new from right hereforex megadroid
playboy11to9.gmail.com's picture

Research Paper Essay

Two and three bedroom apartments designed in sync with nature. Research Paper Essay
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.
ankurs127.gmail.com's picture

Great article with excellent

Great article with excellent idea !Thank you for such a valuable article. I really appreciate for this great information.executive resume writing