• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Required jars in Axis2 libraries?

 
Kelly Powell
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Kelly Powell
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@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
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@Ulf Dittmer: Thanks! I already replaced my previous Xalan jar with a newer version. As of now, everything seems fine.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic