I'm puzzled by this: I can't find anywhere in the code that produces this message.
Could you confirm:
(a) which Saxon version are you using?
(b) is Saxon-SA on the classpath?
When using the XQJ interface, Saxon tries first to load a SchemaAwareConfiguration. This is expected to fail silently if Saxon-SA is not available, in which case it loads an ordinary Configuration. I'm not surprised that there's a failure to load this class, but I am surprised that there's a message reporting the fact.
The stack trace shown in your second message also seems unrelated. It suggests a failure to initialize the static variable "platform" of the Configuration class. Because this is set up with the help of some magic in the build file, I wonder if you're using a non-standard build?


Michael Kay

From: Vance [mailto:aroc725@yahoo.com]
Sent: 08 June 2009 00:02
To: saxon-help@lists.sourceforge.net
Subject: [saxon] Getting "Could not loadcom.saxonica.validate.SchemaAwareConfiguration" error message

I'm getting the following error message on occasion,

"Could not load com.saxonica.validate.SchemaAwareConfiguration"

after calling the no-argument 'SaxonXQDataSource' constructor, i.e.

XQDataSource xqjd = new SaxonXQDataSource();

Any ideas as to how to resolve this?