forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thors...@apache.org
Subject svn commit: r736992 - /forrest/branches/dispatcher_rewrite/plugins/org.apache.forrest.plugin.internal.dispatcher/src/java/org/apache/forrest/dispatcher/transformation/DispatcherTransformer.java
Date Fri, 23 Jan 2009 10:51:16 GMT
Author: thorsten
Date: Fri Jan 23 02:51:15 2009
New Revision: 736992

URL: http://svn.apache.org/viewvc?rev=736992&view=rev
Log:
The loggingErrorListener gives much better error messages and traces. When tracking a bug
I found out that the trax error handler does not provide as much information as our listener

Modified:
    forrest/branches/dispatcher_rewrite/plugins/org.apache.forrest.plugin.internal.dispatcher/src/java/org/apache/forrest/dispatcher/transformation/DispatcherTransformer.java

Modified: forrest/branches/dispatcher_rewrite/plugins/org.apache.forrest.plugin.internal.dispatcher/src/java/org/apache/forrest/dispatcher/transformation/DispatcherTransformer.java
URL: http://svn.apache.org/viewvc/forrest/branches/dispatcher_rewrite/plugins/org.apache.forrest.plugin.internal.dispatcher/src/java/org/apache/forrest/dispatcher/transformation/DispatcherTransformer.java?rev=736992&r1=736991&r2=736992&view=diff
==============================================================================
--- forrest/branches/dispatcher_rewrite/plugins/org.apache.forrest.plugin.internal.dispatcher/src/java/org/apache/forrest/dispatcher/transformation/DispatcherTransformer.java
(original)
+++ forrest/branches/dispatcher_rewrite/plugins/org.apache.forrest.plugin.internal.dispatcher/src/java/org/apache/forrest/dispatcher/transformation/DispatcherTransformer.java
Fri Jan 23 02:51:15 2009
@@ -60,6 +60,7 @@
 import org.apache.cocoon.xml.StringXMLizable;
 import org.apache.cocoon.xml.XMLUtils;
 import org.apache.commons.io.output.ByteArrayOutputStream;
+import org.apache.commons.logging.Log;
 import org.apache.excalibur.source.Source;
 import org.apache.excalibur.source.SourceException;
 import org.apache.excalibur.source.SourceValidity;
@@ -73,6 +74,7 @@
 import org.apache.forrest.dispatcher.impl.CocoonResolver;
 import org.apache.forrest.dispatcher.impl.helper.AXIOMXPathCreate;
 import org.apache.forrest.dispatcher.impl.helper.Captions;
+import org.apache.forrest.dispatcher.impl.helper.LoggingErrorListener;
 import org.apache.forrest.dispatcher.impl.helper.StAX;
 import org.apache.forrest.dispatcher.impl.helper.StreamHelper;
 import org.apache.forrest.dispatcher.impl.helper.XMLProperties;
@@ -302,7 +304,7 @@
     // set the uri resolver the same as this class
     tfactory.setURIResolver(this);
     // we want to set the error handler here to make sure it is intitialized
-    tfactory.setErrorListener(new TraxErrorHandler(getLogger()));
+    tfactory.setErrorListener(new LoggingErrorListener((Log) getLogger()));
     // add the factory to the config
     config.setTransFact(tfactory);
     // get the OM factory



Mime
View raw message