aspose file tools*
The moose likes Web Services and the fly likes Required jars in Axis2 libraries? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
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: 41872
    
  63
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?


Ping & DNS - my free Android networking tools app
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: 41872
    
  63
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Required jars in Axis2 libraries?