[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[equinox-dev] classnotfound exception

Hi,

I'm getting this SAXParser not found exception but when Iook at the
iformation given by jdom bundle I clearly see
org.apache.xerces.parsers;
version="0.0.0"<initial@reference:file:xerces.jar/ [8]>.

What am I missing here?

output for xerces
==============
osgi> bundle 8
initial@reference:file:xerces.jar/ [8]
  Id=8, Status=ACTIVE      Data
Root=/opt/nsm/im/etc/org.eclipse.osgi/bundles/8/data
  No registered services.
  No services in use.
  Exported packages
    org.apache.xerces.validators.common; version="0.0.0"[exported]
    org.apache.xerces.parsers; version="0.0.0"[exported]
    org.apache.xerces.framework; version="0.0.0"[exported]
    org.w3c.dom.events; version="0.0.0"[exported]
    javax.xml.parsers; version="0.0.0"[exported]
    org.apache.xerces.jaxp; version="0.0.0"[exported]
    org.apache.xerces.validators.schema; version="0.0.0"[exported]
    org.apache.xerces.utils.regex; version="0.0.0"[exported]
    org.apache.html.dom; version="0.0.0"[exported]
    org.xml.sax; version="0.0.0"[exported]
    org.apache.xerces.dom; version="0.0.0"[exported]
    org.apache.xerces.validators.datatype; version="0.0.0"[exported]
    org.apache.xerces.dom.events; version="0.0.0"[exported]
    org.w3c.dom.html; version="0.0.0"[exported]
    org.apache.xml.serialize; version="0.0.0"[exported]
    org.w3c.dom; version="0.0.0"[exported]
    org.apache.xerces.utils; version="0.0.0"[exported]
    org.apache.xerces.domx; version="0.0.0"[exported]
    org.apache.wml.dom; version="0.0.0"[exported]
    org.apache.xerces.validators.schema.identity; version="0.0.0"[exported]
    org.w3c.dom.traversal; version="0.0.0"[exported]
    org.apache.xerces.validators.dtd; version="0.0.0"[exported]
    org.xml.sax.ext; version="0.0.0"[exported]
    org.w3c.dom.ranges; version="0.0.0"[exported]
    org.xml.sax.helpers; version="0.0.0"[exported]
    org.apache.wml; version="0.0.0"[exported]
    org.apache.xerces.readers; version="0.0.0"[exported]
    org.apache.xerces.msg; version="0.0.0"[exported]
  Imported packages
    javax.xml.parsers; version="0.0.0"<System Bundle [0]>
    org.w3c.dom; version="0.0.0"<System Bundle [0]>
    org.w3c.dom.events; version="0.0.0"<System Bundle [0]>
    org.w3c.dom.html; version="0.0.0"<System Bundle [0]>
    org.w3c.dom.ranges; version="0.0.0"<System Bundle [0]>
    org.w3c.dom.traversal; version="0.0.0"<System Bundle [0]>
    org.xml.sax; version="0.0.0"<System Bundle [0]>
    org.xml.sax.ext; version="0.0.0"<System Bundle [0]>
    org.xml.sax.helpers; version="0.0.0"<System Bundle [0]>
  No fragment bundles
  Named class space
    xerces; bundle-version="0.0.0"[provided]
  No required bundles

output for jdom
===========
osgi> bundle 7
initial@reference:file:jdom.jar/ [7]
  Id=7, Status=ACTIVE      Data
Root=/opt/nsm/im/etc/org.eclipse.osgi/bundles/7/data
  No registered services.
  No services in use.
  Exported packages
    org.jdom.output; version="0.0.0"[exported]
    org.jdom.input; version="0.0.0"[exported]
    org.jdom; version="0.0.0"[exported]
    org.jdom.filter; version="0.0.0"[exported]
    org.jdom.adapters; version="0.0.0"[exported]
    org.jdom.xpath; version="0.0.0"[exported]
    org.jdom.transform; version="0.0.0"[exported]
  Imported packages
    javax.xml.parsers; version="0.0.0"<System Bundle [0]>
    javax.xml.transform; version="0.0.0"<System Bundle [0]>
    javax.xml.transform.sax; version="0.0.0"<System Bundle [0]>
    javax.xml.transform.stream; version="0.0.0"<System Bundle [0]>
    org.apache.xerces.dom;
version="0.0.0"<initial@reference:file:xerces.jar/ [8]>
    org.apache.xerces.parsers;
version="0.0.0"<initial@reference:file:xerces.jar/ [8]>
    org.w3c.dom; version="0.0.0"<System Bundle [0]>
    org.xml.sax; version="0.0.0"<System Bundle [0]>
    org.xml.sax.ext; version="0.0.0"<System Bundle [0]>
    org.xml.sax.helpers; version="0.0.0"<System Bundle [0]>
  No fragment bundles
  Named class space
    jdom; bundle-version="0.0.0"[provided]
  No required bundles



Exception that I'm getting
====================
Caused by: java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParser
        at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:481)
        at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:397)
        at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:385)
        at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:87)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at org.xml.sax.helpers.NewInstance.newInstance(NewInstance.java:49)
        at org.xml.sax.helpers.XMLReaderFactory.loadClass(XMLReaderFactory.java:187)
        at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory.java:180)
        at org.jdom.input.SAXBuilder.createParser(SAXBuilder.java:610)
        at org.jdom.input.SAXBuilder.build(SAXBuilder.java:460)
        at org.jdom.input.SAXBuilder.build(SAXBuilder.java:888)