File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 13036
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
It's not a secret anymore!