This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes SAX Exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "SAX Exception" Watch "SAX Exception" New topic

SAX Exception

Ravi Verma
Ranch Hand

Joined: Aug 30, 2001
Posts: 42
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

Joined: Mar 22, 2000
Posts: 13025
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?
Ravi Verma
Ranch Hand

Joined: Aug 30, 2001
Posts: 42
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

Joined: Jan 23, 2002
Posts: 11962
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?

Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
I agree. Here's the link:
subject: SAX Exception
jQuery in Action, 3rd edition