dims 02/02/26 08:30:16
Modified: src/java/org/apache/cocoon Cocoon.java
Log:
Well...We still need this patch. xml-api's jar file has old versions of
org\xml\sax\helpers that does not load the org.xml.sax.driver from META-INF/services
Revision Changes Path
1.20 +12 -0 xml-cocoon2/src/java/org/apache/cocoon/Cocoon.java
Index: Cocoon.java
===================================================================
RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/Cocoon.java,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- Cocoon.java 26 Feb 2002 13:34:31 -0000 1.19
+++ Cocoon.java 26 Feb 2002 16:30:16 -0000 1.20
@@ -98,7 +98,7 @@
* @author <a href="mailto:[EMAIL PROTECTED]">Pierpaolo Fumagalli</a> (Apache
Software Foundation, Exoffice Technologies)
* @author <a href="mailto:[EMAIL PROTECTED]">Stefano Mazzocchi</a>
* @author <a href="mailto:[EMAIL PROTECTED]">Leo Sutic</a>
- * @version CVS $Id: Cocoon.java,v 1.19 2002/02/26 13:34:31 dims Exp $
+ * @version CVS $Id: Cocoon.java,v 1.20 2002/02/26 16:30:16 dims Exp $
*/
public class Cocoon
extends AbstractLoggable
@@ -416,7 +416,19 @@
* Sets required system properties.
*/
protected void setSystemProperties() {
+ java.util.Properties props = new java.util.Properties();
+ // FIXME We shouldn't have to specify the SAXParser...
+ // This is needed by Xalan2, it is used by
org.xml.sax.helpers.XMLReaderFactory
+ // to locate the SAX2 driver.
+ props.put("org.xml.sax.driver", "org.apache.xerces.parsers.SAXParser");
java.util.Properties systemProps = System.getProperties();
+ Enumeration propEnum = props.propertyNames();
+ while (propEnum.hasMoreElements()) {
+ String prop = (String)propEnum.nextElement();
+ if (!systemProps.containsKey(prop)) {
+ systemProps.put(prop, props.getProperty(prop));
+ }
+ }
// FIXME We shouldn't have to specify these. Needed to override jaxp
implementation of weblogic.
if (systemProps.containsKey("javax.xml.parsers.DocumentBuilderFactory") &&
systemProps.getProperty("javax.xml.parsers.DocumentBuilderFactory").startsWith("weblogic"))
{
----------------------------------------------------------------------
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]