logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dean A. Hoover" <dhoo...@rochester.rr.com>
Subject Re: tomcat and log4j, again
Date Thu, 03 Jul 2003 18:15:00 GMT
Shapira, Yoav wrote:

>Howdy,
>
>  
>
>>This is what I changed log4.properties to:
>>
>>log4j.logger.fermataintl.migrasponder=DEBUG, l1
>>log4j.appender.l1=org.apache.log4j.FileAppender
>>log4j.appender.l1.File=/tmp/migrasponder
>>log4j.appender.l1.layout=org.apache.log4j.PatternLayout
>>log4j.appender.l1.layout.ConversionPattern=%d [%t] %-5p %F:%L - %m%n
>>
BTW, I changed the last line as follows:
log4j.appender.l1.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p 
%F:%L - %m%n

>>    
>>
>
>That looks fine.
>
>  
>
>>=======================================================
>>I am still not seeing the log file show up. It just goes into
>>catalina.out. I didn't
>>mean to imply that there were no errors in catalina.out. Actually,
>>    
>>
>there
>  
>
>>seems
>>to be a bunch of stack traces, but none seem related to log4j. Is there
>>    
>>
>
>Don't assume that they're not relevant: can you please post them?
>
OK, here goes. I shutdown tomcat, removed catalina.out, and restarted. 
Here it is:

0 [main] INFO modeler.Registry  - Loading registry information
3 [main] INFO modeler.Registry  - Creating new Registry instance
449 [main] INFO modeler.Registry  - Creating MBeanServer
1217 [main] INFO http11.Http11Protocol  - Initializing Coyote HTTP/1.1 
on port 8080
Starting service Tomcat-Standalone
Apache Tomcat/4.1.24
4932 [main] ERROR digester.Digester  - Parse Error at line 37 column 11: 
The content of element type "web-app" must match 
"(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*)".
org.xml.sax.SAXParseException: The content of element type "web-app" 
must match 
"(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*)".
        at 
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown 
Source)
        at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown 
Source)
        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown 
Source)
        at 
org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source)
        at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown 
Source)
        at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown 
Source)
        at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown

Source)
        at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)
        at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
        at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at org.apache.commons.digester.Digester.parse(Digester.java:1543)
        at 
org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.java:282)
        at 
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:639)
        at 
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:243)
        at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
        at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:3567)
        at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
        at 
org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
        at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
        at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
        at 
org.apache.catalina.core.StandardService.start(StandardService.java:497)
        at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
        at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
        at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
5283 [main] INFO http11.Http11Protocol  - Starting Coyote HTTP/1.1 on 
port 8080
5309 [main] INFO common.ChannelSocket  - JK2: ajp13 listening on 
/0.0.0.0:8009
5365 [main] INFO server.JkMain  - Jk running ID=0 time=1/82  
config=/usr/java/jakarta-tomcat-4.1.24/conf/jk2.properties

Any idea what all this nonsense is?

>
>  
>
>>some
>>public place that documents all of the ConversionPattern specifiers?
>>
Thanks. That helps.

>>    
>>
>
>Yes, the JavaDoc for PatternLayout.
>
>Yoav Shapira
>
>
>
>This e-mail, including any attachments, is a confidential business communication, and
may contain information that is confidential, proprietary and/or privileged.  This e-mail
is intended only for the individual(s) to whom it is addressed, and may not be saved, copied,
printed, disclosed or used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the sender.  Thank you.
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: log4j-user-help@jakarta.apache.org
>
>
>  
>



---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org


Mime
View raw message