Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Apache Axis 1.1 & Tomcat 5.5 - XML Security optional jar

 
bryan nelson
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone,

I've finally had the opportunity to delve into the realm of web services and have begun with Apache Axis 1.1 and Tomcat 5.5.9. I get to my happiness page just fine, and have worked through all the required jars...and all the optional jars except for one...the one for the XML Security. However, I'm having trouble getting this one to work, and I'll most likely need the feature in the near future as well.

Here's my warning:

Warning: could not find a dependency of class org.apache.xml.security.Init from file xmlsec.jar
XML Security is not supported
See http://xml.apache.org/security/
The root cause was: org/apache/xpath/compiler/FuncLoader
This can happen e.g. if org.apache.xml.security.Init is in the 'common' classpath, but a dependency like activation.jar is only in the webapp classpath.

I guess the first question to ask is...can Axis 1.1 and Tomcat 5.5 work together...and if so, any ideas about that error?

Many thanks,
bryan
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes (on my machine ), i actually placed all the neccessay jar files from various packages(xerces, xalan,xmlsec,javamail) in to the lib folder of my axis webapp. it worked fine.
 
bryan nelson
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hmmm.

I have the xmlsec.jar and the mail.jar...So you're saying that the xalan.jar and the xerces.jar are also required to obtain this XMLSecurity feature?
 
bryan nelson
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ah, apparently so. Adding the xalan.jar, xml-apis.jar, and the xercesImpl.jar has solved all the problems.

thanks!
 
Christina Wang
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where can I download the xmlsec.jar, the apache pages seem need to get the source then compile it yourself.
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Christina Wang:
Where can I download the xmlsec.jar, the apache pages seem need to get the source then compile it yourself.


here => http://xml.apache.org/security/download.html
 
Christina Wang
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cool, i got it, actually, it is linked there, I only checked at the end of the page.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic