[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Problems starting ozone ?
Hi Mario,
On Don, 24 Aug 2000, you wrote:
> Thanks in advance to Falko and Lars:
> this is trace:
> D:\Programs\ozone-0.5.5\samples\XML>java -cp
> .;D:\Programs\ozone-0.5.5\bin\ozone.jar;D:\Programs\ozone-0.5.5\bin\xerces.j
> aar;D:\Programs\ozone-0.5.5\bin\omquery.jar;D:\Programs\ozone-0.5.5\bin\jta-s
> pec1_0_1.jar;D:\Programs\ozone-0.5.5\bin\xtdash.jar \
> XML.Store -p org.apache.xerces.parsers.DOMParser test.xml
>
> File name: test.xml
> Document name: test.xml
> java.lang.ClassCastException: org.apache.xerces.parsers.DOMParser
> at
> org.ozoneDB.xml.util.OzoneDOMParser.<init>(OzoneDOMParser.java:56)
> at XML.Store.main(Store.java:102)
No, no, no ... you can't use an other XML parser as simple as you tried it with
the '-p' option. YES with '-p' you can use an other XML parser - BUT this
parser must implement the interface org.ozoneDB.xml.util.DOMParser.java. This
interface was the try to standardize the different XML parser implementations.
There are two other DOM parser implementations you can use:
org.ozoneDB.xml.util.OpenXMLParser.java
org.ozoneDB.xml.util.XML4JParser.java
Please not that org.ozoneDB.xml.util.DOMParser.java is obsolete since the
definition of JAXP! Does anybody have the time to help implement JAXP usage in
ozone?
Regards,
Lars
--
___________________________________________________________________
Lars Martin mailto:lars@smb-tec.com
SMB GmbH http://www.smb-tec.com