IntelliJ 10 and Axis2

Hello,

Does anyone have any pointers on how to begin using the Axis2 plugin with IntelliJ 10?

The Axis2 plugin isn't an option in the plugin manager and the web services PDF by JetBrains appears to be outdated.

Any tips would be much appreciated.

Thanks,

Binh

15 comments
Comment actions Permalink

Hello Binh,

Axis2 is supported by the core WebServices plugin; there is no separate plugin
for Axis2.

An up-to-date tutorial on creating Web Services in IntelliJ IDEA can be found
at http://wiki.jetbrains.net/intellij/Web_Services_with_IntelliJ_IDEA

Does anyone have any pointers on how to begin using the Axis2 plugin
with IntelliJ 10?

The Axis2 plugin isn't an option in the plugin manager and the web
services PDF by JetBrains appears to be outdated.

Any tips would be much appreciated.


--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

Dmitry:


The "up-to-date" version is from IntelliJ 8.  I am having a lot of difficulty mapping an Axis setup into 10.5.  Specifically, the expoded artifact doesn't seem to be found after starting Tomcat.  Not until I dump all the classes manually into Tomcat 7.0\webapps\axis\WEB-INF\classes is the service exposed.

Regards,
Greg Kedge

0
Comment actions Permalink

Hi Dmitry,

> Axis2 is supported by the core WebServices plugin

How to generate code for Axis2, not axis? Thank you.

0
Comment actions Permalink

You need to choose axis2 in webservices engine chooser on web service facet tab. I

0
Comment actions Permalink

Anna, thanks for answer.

Creating new WebServices project.

1. In 11.1.5 - adding path to axis2 to Settings-WebServices does not add appropriate item in "Version" dropdown on "Please select the desired technologies" page of New Project wizard. Is it ok?

2. In 12.0.2 "Apache Axis 2" appeared there. HelloWorld.java was generated, I've added @WebService and @WebMethod, compliled, generated wsdl from java. Created Tomcat local configuration.
(please note that in 12 I did not need to expose the class as WebService as your doc http://wiki.jetbrains.net/intellij/Web_Services_with_IntelliJ_IDEA#Creating_Web_Service_Server:_Apache_Axis suggests).

On start I see "Artifact untitled1:war exploded: Server is not connected. Press 'Deploy' to start deployment.", then

Connected to server
Artifact untitled1:war exploded: Artifact is being deployed, please wait...
Artifact untitled1:war exploded: Artifact is deployed successfully
org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\apache-tomcat-7.0.32\webapps\manager


But unlike axis1 - http://localhost:8080/services/HelloWorld?wsdl says

HTTP Status 500 - javax.servlet.ServletException: org.apache.axis2.AxisFault: The system is attempting to engage a module that is not available: addressing

Ok, adding addressing.mar.

Attempt to get wsdl gives "Unable to generate WSDL 1.1 for this service. If you wish Axis2 to automatically generate the WSDL 1.1, then please set useOriginalwsdl as false in your services.xml"

Continuing to play with dragging generated wsdl to META_INF, making same classnames in wsdl and services.xml, adding <parameter name="useOriginalwsdl">true</parameter> to services.xml - still no wsdl.

Question:
1. How to get WSDL?
2. Where I can find docs on developing Axis2 under Idea 12?

Thank you.
0
Comment actions Permalink

> Axis2 is supported by the core WebServices plugin; there is no separate plugin for Axis2.



What about http://axis.apache.org/axis2/java/core/tools/idea/Idea_plug-in_userguide.html - which is not supported by IntelliJ 11 and 12?
0
Comment actions Permalink

Anna, 2.5 weeks passed - did you get a chance to look into the problem? Thanks!

0
Comment actions Permalink

Sorry, I am out of the office and will be able to look at the problem next week only

0
Comment actions Permalink

Hi Anna,

May you please inform me when "next week" starts?

Thanks!

0
Comment actions Permalink

Anna, did you come back to office?

0
Comment actions Permalink
Anna, half of a year passed - did you come back to office and look at the problem? Thank you.
0
Comment actions Permalink
Dmitry, may please you and Anna provide details on Axis2 in Idea 12? Thanks!
0
Comment actions Permalink

We are very sorry for the extremely delayed response to this question, the developers originally involved in this subsystem are no longer responsible for it. I'd recommend using the support channel at https://intellij-support.jetbrains.com/home/ to get timely responses in the future.

Axis2 project created by IDEA will not work out of the box with the recent Axis2 versions, several manual changes to the configuration are required, I'll mention all the steps performed after creating a project with a wizard and provide a link to the sample project that should work out of the box and would require only Tomcat 7.0.50 application server (can be changed to another version in the project configuration) and JDK 1.7 defined in IDEA.

1. Before creating a project open Settings | Web Services and configure Apache Axis 2 path like this: http://img841.imageshack.us/img841/15/ym94.png . Version 1.6.2 will be used in this example. You can download it at http://axis.apache.org/axis2/java/core/download.cgi .
2. Create a new Java project using the New Project wizard, tick the following: Web Application, WebSerives (Apache Axis 2), Application Server (Tomcat 7.0.50). Enable the option to generate a sample HelloWorld service.
3. Copy AXIS2\repository subdirectories (services and modules) into PROJECT\web\WEB-INF.
4. Copy AXIS2\webapp\axis2-web into PROJECT\web\axis2-web
5. Copy AXIS2\webapp\WEB-INF\classes\ into PROJECT\lib\admin, set up a library and add it to the module: http://img560.imageshack.us/img560/3254/d7qq.png .
6. Verify that you have the following structure of the project: http://img560.imageshack.us/img560/5336/ra03.png (Axis2 library would be under External Libraries, in the sample project it was moved to lib for convenience).
7. According to http://axis.apache.org/axis2/java/core/docs/quickstartguide.html#deploy exploded service should be placed into WEB-INF/services/<ServiceName>. Adjust the artifact, create services/HelloWorld folder under WEB-INF, move module compile output to HelloWorld, the artifact should look like this: http://img833.imageshack.us/img833/4951/lkaj.png . Also check that admin and Axis2 libraries are included into Artifact.
8. Create/Edit Tomcat Run/Debug configuration like this: http://img836.imageshack.us/img836/5986/sf24.png, http://img853.imageshack.us/img853/8521/px4x.png (/axis2 context, http://localhost:8080/axis2/services/listServices as the start page).
9. Start the configuration, you should get this output: http://img547.imageshack.us/img547/6010/lb3c.png (Version service is available via version.aar, HelloWorld web service is available via WEB-INF/services/HelloWorld containing the module output).

The complete sample project: ftp://ftp.intellij.net/pub/.idea/Axis2Sample.zip .

0

Please sign in to leave a comment.