• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

org.xml.sax.SAXNotRecognizedException: Feature: http://xml.org/sax/properties/lexical-handler

 
Akhilesh Trivedi
Ranch Hand
Posts: 1603
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
On my axis webservice I am getting following error in soap-ui.




What can be the root cause? I have the xerces jar in place.
 
g tsuji
Ranch Hand
Posts: 666
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Akhilesh Trivedi wrote:What can be the root cause?

The root cause is as spelt out in the api
http://www.saxproject.org/apidoc/org/xml/sax/ext/LexicalHandler.html
documentation wrote:To set the LexicalHandler for an XML reader, use the setProperty method with the property name http://xml.org/sax/properties/lexical-handler and an object implementing this interface (or null) as the value. If the reader does not report lexical events, it will throw a SAXNotRecognizedException when you attempt to register the handler.

A possibility is that the app/web server is running (via class loader tree) a version of sax1 or sax2 without extension implemented whereas the LexicalHandler requires sax2 with extension core v1.
Akhilesh Trivedi wrote:I have the xerces jar in place.

Then you've to look where you put "which xerces" in "which place" - that's all I can say.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic