[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
finding logging.xml  XML
Forum Index -> Development
Author Message
levy

Power User

Joined: 12/03/2008 16:38:22
Messages: 308
Location: XpertCenter
Offline

Hi,

In our productive environments, it seems that logging.xml is not found, although I have carefully verified that logging.xml is spelled correctly and is placed right in eclntjsfserver\config\.

May I ask you to write out from intiLogging() some log information at fine level that could be useful to isolate the problem? I think it would be useful to log
- the exact location path name CC looks for logging.xml.
- if it has found the file or not.
- may be also the attributes successfully read.

Regards, Daniel
[WWW]
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5520
Offline

Hi Daniel,

we read the logging.xml through the web-resource-reader, i.e. we do not go through the file system but use the servlet container's API to read information from the web application:

Code:
             String loggingXML = WebResourceReader.readUTF8FileIntoString("/eclntjsfserver/config/logging.xml",servletContext,false);
             if (loggingXML != null)
             {
                 try
                 {
                     SAXParser saxParser = SAXParserCreator.createSAXParser();
                     InputSource is = new InputSource(new StringReader(loggingXML));
                     saxParser.parse(is,new MyParser());
                 }
                 catch (Throwable t)
                 {
                     CLog.L.log(CLog.LL_ERR,"Error when parsing logging.xml",t);
                 }
             }
 


...so there is not a lot to log. And: it is "perfectly fine" if the user does not define a logging.xml at all, so we do not log any error messages.

Send us your .war file and we'll check... ;-)

Björn


Björn Müller, CaptainCasa GmbH
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team