geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Ruggles <a.rugg...@gmail.com>
Subject Re: Log4j Issues with 2.1.2
Date Tue, 09 Sep 2008 02:25:01 GMT

Done.

https://issues.apache.org/jira/browse/GERONIMO-4286
https://issues.apache.org/jira/browse/GERONIMO-4287


djencks wrote:
> 
> The NPE is a dumb typo, easy to fix.  I should have said classLoader  
> instead of classloader.
> 
> Dunno about the reload >>> stop working problem.  That's going to take  
> some experimentation to find out why it doesn't work.  Maybe we are  
> abusing log4j registration facilities?
> 
> Can you file one or two jira issues about these problems?
> 
> thanks
> david jencks
> 
> 
> On Sep 8, 2008, at 9:05 PM, Adam Ruggles wrote:
> 
>>
>> I'm having a couple of log4j issues with Geronimo/Tomcat 2.1.2.
>>
>> The following configuration doesn't seem to work with Geronimo/ 
>> Tomcat in my
>> plan file
>> <gbean name="MyLog4jConfiguration"
>> class 
>> = 
>> "org 
>> .apache 
>> .geronimo.system.logging.log4j.ApplicationLog4jConfigurationGBean">
>> <attribute name="log4jResource">log4j.properties</attribute>
>> </gbean>
>>
>> I've tried setting it to META-INF/log4j.properites.  I've put my
>> log4j.properties file in META-INF in my jar/ under classes/META-INF  
>> under my
>> Webapps META-INF folder and under the geronimo META-INF folder.  It  
>> doesn't
>> pick up the file.
>>
>> If I place the same file into var/log and use this configuration it  
>> works,
>> same log4j file.
>> <gbean name="SupportLog4jConfiguration"
>> class 
>> = 
>> "org 
>> .apache 
>> .geronimo.system.logging.log4j.ApplicationLog4jConfigurationGBean">
>> <attribute name="log4jFile">var/log/app-log.properties</attribute>
>> <reference name="ServerInfo">
>>   <name>ServerInfo</name>
>> </reference>
>> </gbean>
>>
>> Here is the error I get
>>
>> java.lang.NullPointerException
>>       at
>> org 
>> .apache 
>> .geronimo 
>> .deployment 
>> .hot 
>> .DirectoryHotDeployer.getDeploymentTime(DirectoryHotDeployer.java:237)
>>       at
>> org 
>> .apache 
>> .geronimo 
>> .deployment.hot.DirectoryMonitor.initialize(DirectoryMonitor.java:240)
>>       at
>> org 
>> .apache 
>> .geronimo.deployment.hot.DirectoryMonitor.run(DirectoryMonitor.java: 
>> 213)
>>       at java.lang.Thread.run(Thread.java:613)
>> 18:01:05,168 ERROR [GBeanInstanceState] Error while starting; GBean  
>> is now
>> in the FAILED state:
>> abstractName="corp/myapp/1.0/war?J2EEApplication=null,WebModule=corp/ 
>> myapp/1.0/war,j2eeType=SystemLog,name=MyAppLog4jConfiguration"
>> java.lang.NullPointerException
>>       at
>> org 
>> .apache 
>> .geronimo 
>> .system 
>> .logging 
>> .log4j 
>> .ApplicationLog4jConfigurationGBean 
>> .<init>(ApplicationLog4jConfigurationGBean.java:52)
>>       at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
>> Method)
>>       at
>> sun 
>> .reflect 
>> .NativeConstructorAccessorImpl 
>> .newInstance(NativeConstructorAccessorImpl.java:39)
>>       at
>> sun 
>> .reflect 
>> .DelegatingConstructorAccessorImpl 
>> .newInstance(DelegatingConstructorAccessorImpl.java:27)
>>       at java.lang.reflect.Constructor.newInstance(Constructor.java: 
>> 494)
>>       at
>> org 
>> .apache 
>> .geronimo 
>> .gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:948)
>>       at
>> org 
>> .apache 
>> .geronimo 
>> .gbean 
>> .runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java: 
>> 268)
>>       at
>> org 
>> .apache 
>> .geronimo 
>> .gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:102)
>>       at
>> org 
>> .apache 
>> .geronimo 
>> .gbean 
>> .runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java: 
>> 124)
>>       at
>> org 
>> .apache 
>> .geronimo 
>> .gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:555)
>>       at
>> org 
>> .apache 
>> .geronimo 
>> .kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:379)
>>       at
>> org 
>> .apache 
>> .geronimo 
>> .kernel 
>> .config 
>> .ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java: 
>> 456)
>>       at
>> org 
>> .apache 
>> .geronimo 
>> .kernel 
>> .config 
>> .KernelConfigurationManager.start(KernelConfigurationManager.java:188)
>>       at
>> org 
>> .apache 
>> .geronimo 
>> .kernel 
>> .config 
>> .SimpleConfigurationManager 
>> .startConfiguration(SimpleConfigurationManager.java:562)
>>       at
>> org 
>> .apache 
>> .geronimo 
>> .kernel 
>> .config 
>> .SimpleConfigurationManager 
>> .startConfiguration(SimpleConfigurationManager.java:543)
>>       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:585)
>>       at
>> org 
>> .apache 
>> .geronimo 
>> .gbean 
>> .runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java: 
>> 34)
>>       at
>> org 
>> .apache 
>> .geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
>>       at
>> org 
>> .apache 
>> .geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:832)
>>       at
>> org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java: 
>> 57)
>>       at
>> org 
>> .apache 
>> .geronimo 
>> .kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
>>       at
>> org 
>> .apache 
>> .geronimo 
>> .kernel 
>> .basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java: 
>> 96)
>>       at
>> org.apache.geronimo.kernel.config.EditableConfigurationManager$ 
>> $EnhancerByCGLIB$$8e27dde.startConfiguration(<generated>)
>>       at
>> org 
>> .apache 
>> .geronimo 
>> .deployment 
>> .plugin 
>> .local 
>> .RedeployCommand.redeploySameConfiguration(RedeployCommand.java:229)
>>       at
>> org 
>> .apache 
>> .geronimo 
>> .deployment.plugin.local.RedeployCommand.run(RedeployCommand.java:101)
>>       at java.lang.Thread.run(Thread.java:613)
>>
>>
>> The second issue I'm having is after I un-deploy/uninstall my webapp  
>> and
>> then deploy again, the logging in geronimo.out and geronimo.log stop.
>>
>> Any idea's?
>> -- 
>> View this message in context:
>> http://www.nabble.com/Log4j-Issues-with-2.1.2-tp19384166s134p19384166.html
>> Sent from the Apache Geronimo - Users mailing list archive at  
>> Nabble.com.
>>
> 
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Log4j-Issues-with-2.1.2-tp19384166s134p19384862.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Mime
View raw message