wood burning stoves 2.0*
The moose likes Web Services and the fly likes Axis 2 minimal jars for web Services connection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Axis 2 minimal jars for web Services connection" Watch "Axis 2 minimal jars for web Services connection" New topic
Author

Axis 2 minimal jars for web Services connection

E Robb
Ranch Hand

Joined: Aug 27, 2010
Posts: 111
I have a web site that I want to use to connect to an Axis 2 webapp.

I downloaded the binary of Axis2 1.5.3. Does anyone know the minimal jars I can use on the web site to connect to Axis? I dont want to set up an axis2 server I just want the minimum jars to connect to axis2 from a plain jane web site.

My understanding is minimal jars are:

axis2-kernel-1.0.jar
axis2-adb-1.0.jar

This sort of confused me as the article I read that says these were the min didnt include wsdl4.jar, jaxrpc.jar or saaj.jar and I didnt see them in the binary distrubution.

Just checking to see if anyone knew off hand. If not Ill just experiment with it.

Thanks,
Earl
Naren Chivukula
Ranch Hand

Joined: Feb 03, 2004
Posts: 576

Hi Robb,
Why don't you just copy all the jars in the lib folder in to your web app? Unless, by inspection if you see logging, commons or other jars which might probably already present in your web app, you can remove those.


Cheers,
Naren
(OCEEJBD6, SCWCD5, SCDJWS, SCJP1.4 and Oracle SQL 1Z0-051)
E Robb
Ranch Hand

Joined: Aug 27, 2010
Posts: 111
Naren Chivukula wrote:Hi Robb,
Why don't you just copy all the jars in the lib folder in to your web app? Unless, by inspection if you see logging, commons or other jars which might probably already present in your web app, you can remove those.


Well I dont have a webapp just a web site and I want to connect to a third party webpp using axis2. The binary download has 103 items in the axis2-1.5.3 folder (21 megs). Why would I put that in my lib to make a connection when I prob only need 4 jars. Im consuming the Axis Im the client.

Here is what I currently have and I am getting org.apache.axis.encoding.Deserializer error:
axis2-adb-codegen-1.5.3.jar
axis2-kernel-1.5.3.jar
axis2-saaj-1.5.3.jar
wsdl4j-1.6.2.jar

Thanks,
Earl


Naren Chivukula
Ranch Hand

Joined: Feb 03, 2004
Posts: 576

Okay, I got your point Robb.

What I do if I were you is to take a wild guess of core jars (like the ones you mentioned) and start testing my client. If I get ClassNotFoundException or NoClassDefFoundError exceptions, I'd use Agentransack tool (free and very useful) to find out jar containing that missing class. I'll continue doing so and eventually my client will work. The whole process will not even take more than 2-5mins to do if client is well written.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Axis 2 minimal jars for web Services connection