This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Web Services and the fly likes Required jars in Axis2 libraries? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "Required jars in Axis2 libraries?" Watch "Required jars in Axis2 libraries?" New topic
Author

Required jars in Axis2 libraries?

Kelly Powell
Ranch Hand

Joined: Oct 29, 2010
Posts: 56
When I try to create a dynamic web project in Eclipse with Axis2 (Project Facets), a ton of jars are always loaded in my Web App Libraries. These jars are from Axis2. I'm wondering if I can delete some of these jars or are they all being used by Axis2? Can you give me a list of jars which are not being used by Axis2 and is only there just in case I want to use it explicitly? Also, are all commons jars required in Axis2?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35247
    
    7
While some of the libraries are used only in particular scenarios (like Antlr and Mail) and some are most likely wholly redundant (like Xalan and Xerces), that's hard to say in general. Does the number of libraries cause an actual problem you're trying to address?


Android appsImageJ pluginsJava web charts
Kelly Powell
Ranch Hand

Joined: Oct 29, 2010
Posts: 56
@Ulf Dittmer: The problem is some of the jars in my Web App UI is also using the same jars with a different version. (ie: My Web App UI is using xalan.jar, but my web service is using xalan-2.7.0.jar.) Since my Web App UI and Web Service is under the same project, I have to choose between the jar being used my Web App UI and the jar being used by my Web Service to avoid conflicts. While, as of now, I am not really receiving any error in my Web App UI from using the newer version of Jars, I am afraid that an error may suddenly pop up in the future. Also, I would like to have a cleaner library without the unnecessary jars.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35247
    
    7
Your web app most likely needs no separate copies of either Xerces or Xalan at all, provided you run at least on a Java 5 JRE (which includes those).
Kelly Powell
Ranch Hand

Joined: Oct 29, 2010
Posts: 56
@Ulf Dittmer: Thanks! I already replaced my previous Xalan jar with a newer version. As of now, everything seems fine.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Required jars in Axis2 libraries?
 
Similar Threads
Apache MyFaces in JSF
How to handle all these jars?
500 Internal Server Error java.lang.NoClassDefFoundError
Confused with Struts 2.2 libraries
Is Axis2 1.1 stable ?