logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ralph Goers <ralph.go...@dslextreme.com>
Subject Re: beta9 to rc1
Date Thu, 20 Mar 2014 15:37:06 GMT
It is hard to answer your question just based on this email.  

First, if you are getting an exception when starting Tomcat please open a Jira issue and attach
the log with the exception in it.  Is the stack trace below the exception?  

Second, if lookups aren’t working we need a better description of what is not working. I’m
not sure why you have “$${web:contextPath}” and “$${sys:catalina.home}” in your configuration
below though.  Those should be resolved when the configuration is processed.

Ralph

On Mar 19, 2014, at 7:07 PM, Mahesh Dilhan <mail.mahesh.lk@gmail.com> wrote:

> HI
> 
> I'm using AsyncLogger and it satisfied the what i need.
> 1 : Asysnc logger [tomcat is configured with the property
> {Log4jContextSelector=org.apache.logging.log4j.core.async.AsyncLoggerContextSelector
> }
> 
> 2. I'm using  rolling random access appender
> 
> 3. *Lookups *works as expected
> 
> 
> 
> Following is a part of log4j2.xml.
> 
> 
> 
> <Properties>
>    <Property name="contextName">$${web:contextPath}</Property>
> <Property name="catalinaHome">$${sys:catalina.home}</Property>
>    <Property
> name="filename">${catalinaHome}/logs/current/${contextName}.log</Property>
>  </Properties>
>  <Appenders>
> 
>    <RollingRandomAccessFile name="RollingFile-${web:contextPath}"
> fileName="${filename}" immediateFlush="false" append="false"
> 
> filePattern="${catalinaHome}/logs/archived/%d{yyyy-MM-dd}${contextName}-%d{yyyy-MM-dd}.log.gz">
>      <PatternLayout>
>        <Pattern>%d %p %c{1.} [%t] %m%n</Pattern>
>      </PatternLayout>
>      <Policies>
>        <TimeBasedTriggeringPolicy />
>      </Policies>
>    </RollingRandomAccessFile>
> 
> 
> 
> 
> Everything was perfect before I change the version from *beta9 *to *rc1*
> 
> 1. Exception occurred while initializing tomcat, *but this is not a show
> stopper*.
> 2. File is created with a name AsyncLoggerContext.log.
> 3. *Lookup suddenly stop working , which is a show stopper for me*
> 
> 
> 
> So I had to rollback the version again.
> 
> are there any new configuration which comes with *rc1?*
> 
> 
> SEVERE: IOException while loading persisted sessions:
> java.io.WriteAbortedException: writing aborted;
> java.io.NotSerializableException: org.ap
> ache.logging.log4j.core.Logger$PrivateConfig
> java.io.WriteAbortedException: writing aborted;
> java.io.NotSerializableException:
> org.apache.logging.log4j.core.Logger$PrivateConfig
>        at
> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1333)
>        at
> java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
>        at
> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
>        at
> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
>        at
> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
>        at
> java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
>        at
> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
>        at
> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
>        at
> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
>        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
>        at java.util.HashMap.readObject(HashMap.java:1030)
>        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:597)
>        at
> java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974)
>        at
> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1849)
>        at
> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
>        at
> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
>        at
> java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
>        at
> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
>        at
> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
>        at
> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
>        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
>        at
> org.apache.catalina.session.StandardSession.readObject(StandardSession.java:1597)
>        at
> org.apache.catalina.session.StandardSession.readObjectData(StandardSession.java:1062)
>        at
> org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:284)
>        at
> org.apache.catalina.session.StandardManager.load(StandardManager.java:204)
>        at
> org.apache.catalina.session.StandardManager.startInternal(StandardManager.java:491)
>        at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>        at
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5443)
>        at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>        at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
>        at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
>        at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
>        at
> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:983)
>        at
> org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1660)
>        at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
>        at
> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>        at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>        at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>        at java.lang.Thread.run(Thread.java:619)
> 
> 
> 
> 
> 
> 
> 
> 
> -- 
> Mahesh Dilhan


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


Mime
View raw message