• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

SAX Exception

 
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
 
Author and all-around good cowpoke
Posts: 13078
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
 
author
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?
    Bookmark Topic Watch Topic
  • New Topic