Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

trouble using MSV - NoClassdef

Status
Not open for further replies.

daveofalltrades

IS-IT--Management
May 2, 2007
3
CA
Hello:

I rarely use java and am not fluent in its use or error messages. This may be an easy question for someone familiar with java. I had script files that used java and msv at my previous employer

I am trying to use msv to validate an xml document. When I dump data from my database with an unix script, I would like it validated before transfered to another party.

for the command
java -jar $jar myxsd.xsd myxml.xml

I get:
Exception in thread "main" java.lang.NoClassDefFoundError: org/iso_relax/dispatcher/SchemaProvider

$jar is /usr/java/ext/msv.jar and yes msv.jar is in /usr/java/ext

thanks in advance

 
This is more a question for the Java forum but at first sigth two ideas come to my mind:

1.- There is another jar needed to run the program and it's not in the classpath.
2.- It's in the classpath, but not the correct version.

Cheers,
Dian
 
Hi

I would have thought it was a problem with the xsd or xml files as it mentioned "SchemaProvider". However
java -jar msv.jar (with no reference to an xml or xsd file) gets the same error.

Looking through the documention on msv, I can see if there are any dependent jar files.

I have
Java(TM) SE Runtime Environment (build 1.6.0-b105)
 
its working now. I had thought I only require msv.jar, isorelax.jar, and others is required
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top