XML Parser in Embedded OC4J
34282Oct 20 2003 — edited Dec 21 2003I have a project where I need to use the Plug-in layer provided in the Java API for XML Processing. The embedded OC4J is using the Oracle XML parser and I have a requirement to use Xalan-Xerces.
The project 'Runner' Java Options property have been changed as follows;
"-Djavax.xml.transform.TransformerFactory=org.apache.xalan.processor.TransformerFactoryImpl -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl -Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl"
The related libraries need to be provided to the engine and this is where help is needed.
If I use "-classpath V:\tomcat\jakarta-tomcat-4.1.18\common\endorsed\xercesImpl.jar;V:\tomcat\jakarta-tomcat-4.1.18\common\endorsed\xmlParserAPIs.jar" as 'Java Options' then TWO -classpath parameters appear at runtime as the following extract shows;
C:\jdev905\jdk\bin\javaw.exe -ojvm -classpath C:\jdev905\j2ee\home\oc4j.jar;C:\jdev905\jdev\lib\jdev-oc4j.jar -classpath V:\tomcat\jakarta-tomcat-4.1.18\common\endorsed\xercesImpl.jar;V:\tomcat\jakarta-tomcat-4.1.18\common\endorsed\xmlParserAPIs.jar -Djavax.xml.transform.TransformerFactory=org.apache.xalan.processor.TransformerFactoryImpl -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl -Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl .......
Where do I define these libraries needed to start the OC4JServer.
Any help would be greatly appreciated :)