You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by "Zulema Olguin T." <zo...@sii.cl> on 2006/08/30 14:59:42 UTC

Problem with DOMConfigurator.configure(url) in tomcat-4.1.30 and Xerces-J-bin.2.8.0.

Hellow

I am implemented the class DOMConfigurator.configure(url) in my program, but
when executing the application falls and i can't capture the error, However
when I eliminate the line works.

 nevertheless if exempt him the line where this defined call to this class
the application if it works. I am using: jakarta-tomcat-4.1.30 and
Xerces-J-bin.2.8.0.


Example:
            //I form the URL
 		URL url =
Thread.currentThread().getContextClassLoader().getResource("oiLogJ.xml");

		if(url!=null){
		    try {
			  DOMConfigurator.configure(url); //This does not work
                } catch (Exception fcerr) {

		    }
	      }


Thanks

Zulema



---------------------------------------------------------------------
To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-users-help@xerces.apache.org


Re: Problem with DOMConfigurator.configure(url) in tomcat-4.1.30 and Xerces-J-bin.2.8.0.

Posted by Jacob Kjome <ho...@visi.com>.
This is a Log4j issue.  Please send it to the log4j-user list 
[1].  I'm sure you will get the help you need there.  BTW, when you 
post there, you should print out the stack trace in the exception 
that you are catching.  The exception is not being caught, then catch 
Throwable (only for diagnostic purposes).  No one will be able to 
help you without a stack trace.

Jake

[1] log4j-user@logging.apache.org


At 07:59 AM 8/30/2006, you wrote:
 >Hellow
 >
 >I am implemented the class DOMConfigurator.configure(url) in my program, but
 >when executing the application falls and i can't capture the error, However
 >when I eliminate the line works.
 >
 > nevertheless if exempt him the line where this defined call to this class
 >the application if it works. I am using: jakarta-tomcat-4.1.30 and
 >Xerces-J-bin.2.8.0.
 >
 >
 >Example:
 >            //I form the URL
 >               URL url =
 >Thread.currentThread().getContextClassLoader().getResource("oiLogJ.xml");
 >
 >               if(url!=null){
 >                   try {
 >                         DOMConfigurator.configure(url); //This does not work
 >                } catch (Exception fcerr) {
 >
 >                   }
 >             }
 >
 >
 >Thanks
 >
 >Zulema
 >
 >
 >
 >---------------------------------------------------------------------
 >To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org
 >For additional commands, e-mail: j-users-help@xerces.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-users-help@xerces.apache.org