I am deploying an unpacked webapp directory to TOMCAT_HOME/webapps/myapp,
If i (stop and) start tomcat then my application runs fine and the logging
works fine.  However if i stop the application (successfully, it seems) and
restart it using Tomcats manager app then I get the following error:

2007-02-27 16:21:17,671 ERROR http-8080-Processor3
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager] -
FAIL - Application at context path /myapp could not be started
java.lang.NullPointerException
        at
org.apache.log4j.helpers.PatternConverter.spacePad(PatternConverter.java:106
)
        at
org.apache.log4j.helpers.PatternConverter.format(PatternConverter.java:68)
        at org.apache.log4j.PatternLayout.format(PatternLayout.java:503)
        at
org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:301)
        at
org.apache.log4j.RollingFileAppender.subAppend(RollingFileAppender.java:236)
        at org.apache.log4j.WriterAppender.append(WriterAppender.java:159)
        at
org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:230)
        at
org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(Append
erAttachableImpl.java:65)
        at org.apache.log4j.Category.callAppenders(Category.java:203)
        at org.apache.log4j.Category.forcedLog(Category.java:388)
        at org.apache.log4j.Category.log(Category.java:853)
        at
org.apache.commons.logging.impl.Log4JLogger.debug(Log4JLogger.java:171)
        at qmul.jndirealm.JNDIRealm.open(JNDIRealm.java:1592)
        at qmul.jndirealm.JNDIRealm.start(JNDIRealm.java:1690)
        at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4097)




Configuration details
---------------------
Tomcat 5.5.17
Windows XP

I am using server-minimal.xml
I have a context.xml in my webapp's META-INF dir
I have an application specific log4j.properties file in my webapps
WEB-INF/classes dir
I have an log4j.properties file in TOMCAT_HOME/common/classes


The closest I can find on the web to my problems are the following threads
but there is no clear solution in my situation

http://www.junlu.com/msg/295563.html
http://www.mail-archive.com/log4j-dev@logging.apache.org/msg06424.html


This is especially strange because the configuration must have been correct
initially in order for everything to work in the first instance.
So what changes when an application is stopped and started in order to cause
this error?

I have run out of things to check now, can anybody suggest any more leads?


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to