This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Axis 2 minimal jars for web Services connection

 
E Robb
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 577
Java Notepad Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
E Robb
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 577
Java Notepad Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic