Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SAX Exception

 
Ravi Verma
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am using the sax parser to load the xml document in the weblogic application server, but i am getting this exception java.lang.NoClassDefFoundError: org/apache/xerces/parsers/SAXParser.
I put all the jars in the classpath including the xerces.jar,xalan.jar.
Any suggestion why this error comes up?
Thanks in advance
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13074
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know what the weblogic convention is but the most recent Tomcat ignores the classpath environment variable, maybe weblogic does too. I would expect that weblogic has a SAX parser that it uses, why not use the default parser?
Bill
 
Ravi Verma
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks bill, But what happens is i have a app deployed into weblogic and i am using one client program to invoke the app,in the client program i used the sax parser with xml document. So when i invoke this client program to hit the application in Weblogic it is throwing this java.lang.NoClassDefFoundError: org/apache/xerces/parsers/SAXParser exception.
What i am trying to say is the error thrown before hiting the weblogic server and i have all the jars including xalan,xerces in the classpath from where i am invoking this program.
Thanks in advance
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is beginning to sound more and more a non-XML topic, but I'll defer moving the post for a while...
So. If your NoClassDefFoundError is thrown at client-side, you can forget about WebLogic. It doesn't have any significance here. What I would like to see is the command you're using to run your client application?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic