Dave,

I'm actually running with a recent version of Xerces (2.9.1).

Barry

On 10/8/2011 10:34 AM, Dave Reynolds wrote:
On Fri, 2011-10-07 at 17:49 -0400, Barry Hathaway wrote:
Dave,

I put Xerces back into the Jena bundle.  I checked all the bundles and
the imports/exports
look fine; however, I'm still getting:

PropertyAccessException 1:
org.springframework.beans.MethodInvocationException: Property
'kbaseRoot' threw exception;
nested exception is com.hp.hpl.jena.shared.JenaException:
org.apache.xerces.impl.dv.DVFactoryException:
DTD factory class org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl does
not extend from DTDDVFactory.

when I execute the following 3 lines in my application:

          Model m = ModelFactory.createMemModelMaker().createFreshModel();
          FileInputStream is = new FileInputStream(file);
          m = m.read(is, null);

with the offending line being the read.  Any ideas?
Not really. Like I say I make quite heavy use of Jena with OSGi bundles
without such problems.

So long as the Xerces references in Jena core are being satisfied from
the Xerces in the bundle and not from import list then I'm stumped.

Can you update the Xerces in your ServiceMix bundle to something a bit
more modern which is compatible with Jena?

Do you think it could have something to do with the static classes in
the factory?
No, since it works fine in other OSGi environments.

Dave





Reply via email to