dims 01/08/21 14:20:10 Modified: src/org/apache/cocoon/components/parser JaxpParser.java Log: Treat Resolver ComponentException as as a debug(). This exception is ok during startup. Revision Changes Path 1.8 +5 -3 xml-cocoon2/src/org/apache/cocoon/components/parser/JaxpParser.java Index: JaxpParser.java =================================================================== RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/components/parser/JaxpParser.java,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- JaxpParser.java 2001/08/20 19:16:27 1.7 +++ JaxpParser.java 2001/08/21 21:20:10 1.8 @@ -34,7 +34,7 @@ * If only we can get rid of the need for the Document... * * @author <a href="mailto:[EMAIL PROTECTED]">Berin Loritsch</a> - * @version CVS $Revision: 1.7 $ $Date: 2001/08/20 19:16:27 $ + * @version CVS $Revision: 1.8 $ $Date: 2001/08/21 21:20:10 $ */ public class JaxpParser extends AbstractXMLProducer implements Parser, ErrorHandler, Composable, SingleThreaded { @@ -68,7 +68,8 @@ getLogger().debug("Looking up " + Resolver.ROLE); this.resolver = (Resolver)manager.lookup(Resolver.ROLE); } catch(ComponentException e) { - getLogger().error("Error in JaxpParser!",e); + // This exception is ok during initialization/startup. + getLogger().debug("Error in JaxpParser: Cannot find " + Resolver.ROLE); } } @@ -95,7 +96,8 @@ reader.setErrorHandler(this); reader.setContentHandler(super.contentHandler); - reader.setEntityResolver(this.resolver); + if(this.resolver != null) + reader.setEntityResolver(this.resolver); reader.parse(in); } ---------------------------------------------------------------------- In case of troubles, e-mail: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]