aspose file tools
The moose likes Web Services and the fly likes Upgrading to Axis 2 - Ant build.xml no longer works Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "Upgrading to Axis 2 - Ant build.xml no longer works" Watch "Upgrading to Axis 2 - Ant build.xml no longer works" New topic
Author

Upgrading to Axis 2 - Ant build.xml no longer works

E Robb
Ranch Hand

Joined: Aug 27, 2010
Posts: 111
I have a build.xml that works fine with Axis 1.4. I am trying to upgrade to Axis2 1.5 and Axis 2 does not like my build.xml.

All the build.xml does is go out an look at the remote wsdl's and builds the stubs for the web site to consume the web services.

In my build.xml I have modified this to use axis2:
<property name="wsdl2java.classname" value="org.apache.axis2.wsdl.WSDL2Java" />

I have narrowed down the issue to this peice of the build.:



I cant understand why it keeps telling me axis2 usage when it hits this area.
Any ideas would be greatly appreciated.
Am I not doing the arguments correctly or am I missing an argument?

Earl


[Thumbnail for axis2buildxmlerror.jpg]

E Robb
Ranch Hand

Joined: Aug 27, 2010
Posts: 111
I would like to add that the web site that is trying to consume the services is using Axis2 and I believe that the source that providing the service is using Axis1. Im getting alot of additional errors when trying to build the stubs like:

org.apache.axis.description does not exist, org.apache.axis.encoding does not exist.

Im thinking in Axis 2 its looking for:
org.apache.axis2.description does not exist, org.apache.axis2.encoding does not exist.

Is it a fair assumption that Axis 2 is not backwardly compatable with Axis 1?

After more debug I have narrowed down the error further to my compileClasses:

<property name="wsdl2java.classname" value="org.apache.axis2.wsdl.WSDL2Java" />




 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Upgrading to Axis 2 - Ant build.xml no longer works
 
Similar Threads
Pre Compiling jsp
axis-java2wsdl task classpath problem
How to stop the SimpleHTTPServer server ?
AXIS 1, ant, java2wsdl in NetBeans 5.5
Axis 2 tutorial - client class compliation error