struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Learner9010 (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-4942) struts2 logs disabling from log4j.properties file
Date Thu, 21 Jun 2018 10:24:00 GMT

    [ https://issues.apache.org/jira/browse/WW-4942?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16519199#comment-16519199
] 

Learner9010 commented on WW-4942:
---------------------------------

[~lukaszlenart] thanks for the update, further can you please help me out. i have {color:#d04437}{color:#333333}issue{color} java.lang.ExceptionInInitializerError{color}
{color:#d04437} at org.apache.logging.log4j.core.impl.Log4jLogEvent.createContextData(Log4jLogEvent.java:472){color}

*Below is the log4j2.xml*

<?xml version="1.0" encoding="UTF-8"?>
<Configuration>
 <Appenders>
 <Console name="STDOUT" target="SYSTEM_OUT">
 <PatternLayout pattern="%d %-5p [%t] %C\{2} (%F:%L) - %m%n"/>
 </Console>
 </Appenders>
 <Loggers>
 <Logger name="com.opensymphony.xwork2" level="info"/>
 <Logger name="org.apache.struts2" level="info"/>
 <Logger name="org.apache.struts2.edit" level="debug"/>
 <Root level="warn">
 <AppenderRef ref="STDOUT"/>
 </Root>
 </Loggers>
</Configuration>

 

below is the complete stack trace

<Jun 21, 2018 2:00:54 PM IST> <Error> <HTTP> <BEA-101165> <Could
not load user defined filter in web.xml: org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter.
java.lang.ExceptionInInitializerError
 at org.apache.logging.log4j.core.impl.Log4jLogEvent.createContextData(Log4jLogEvent.java:472)
 at org.apache.logging.log4j.core.impl.Log4jLogEvent.<init>(Log4jLogEvent.java:331)
 at org.apache.logging.log4j.core.impl.DefaultLogEventFactory.createEvent(DefaultLogEventFactory.java:54)
 at org.apache.logging.log4j.core.config.LoggerConfig.log(LoggerConfig.java:401)
 at org.apache.logging.log4j.core.config.AwaitCompletionReliabilityStrategy.log(AwaitCompletionReliabilityStrategy.java:63)
 at org.apache.logging.log4j.core.Logger.logMessage(Logger.java:146)
 at org.apache.logging.log4j.spi.AbstractLogger.tryLogMessage(AbstractLogger.java:2163)
 at org.apache.logging.log4j.spi.AbstractLogger.logMessageTrackRecursion(AbstractLogger.java:2118)
 at org.apache.logging.log4j.spi.AbstractLogger.logMessageSafely(AbstractLogger.java:2101)
 at org.apache.logging.log4j.spi.AbstractLogger.logMessage(AbstractLogger.java:1995)
 at org.apache.logging.log4j.spi.AbstractLogger.logIfEnabled(AbstractLogger.java:1967)
 at org.apache.logging.log4j.spi.AbstractLogger.info(AbstractLogger.java:1304)
 at org.apache.struts2.dispatcher.Dispatcher.init_CheckWebLogicWorkaround(Dispatcher.java:469)
 at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:498)
 at org.apache.struts2.dispatcher.InitOperations.initDispatcher(InitOperations.java:73)
 at org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:61)
 at weblogic.servlet.internal.FilterManager$FilterInitAction.run(FilterManager.java:343)
 at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
 at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
 at weblogic.servlet.internal.FilterManager.loadFilter(FilterManager.java:96)
 at weblogic.servlet.internal.FilterManager.preloadFilters(FilterManager.java:57)
 at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1875)
 at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3173)
 at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1529)
 at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:488)
 at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
 at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
 at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
 at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
 at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247)
 at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
 at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
 at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
 at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
 at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:671)
 at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
 at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)
 at weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:44)
 at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
 at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:80)
 at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:187)
 at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:379)
 at weblogic.management.deploy.internal.DeploymentAdapter$1.doActivate(DeploymentAdapter.java:51)
 at weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:200)
 at weblogic.management.deploy.internal.AppTransition$2.transitionApp(AppTransition.java:30)
 at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:240)
 at weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:169)
 at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:123)
 at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:180)
 at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:96)
 at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
 at weblogic.work.ExecuteThread.execute(ExecuteThread.java:263)
 at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
Caused By: java.lang.IllegalArgumentException: Initial capacity must be at least one but was
0
 at org.apache.logging.log4j.util.SortedArrayStringMap.<init>(SortedArrayStringMap.java:102)
 at org.apache.logging.log4j.core.impl.ContextDataFactory.createContextData(ContextDataFactory.java:109)
 at org.apache.logging.log4j.core.impl.ContextDataFactory.<clinit>(ContextDataFactory.java:57)
 at org.apache.logging.log4j.core.impl.Log4jLogEvent.createContextData(Log4jLogEvent.java:472)
 at org.apache.logging.log4j.core.impl.Log4jLogEvent.<init>(Log4jLogEvent.java:331)
 at org.apache.logging.log4j.core.impl.DefaultLogEventFactory.createEvent(DefaultLogEventFactory.java:54)
 at org.apache.logging.log4j.core.config.LoggerConfig.log(LoggerConfig.java:401)
 at org.apache.logging.log4j.core.config.AwaitCompletionReliabilityStrategy.log(AwaitCompletionReliabilityStrategy.java:63)
 at org.apache.logging.log4j.core.Logger.logMessage(Logger.java:146)
 at org.apache.logging.log4j.spi.AbstractLogger.tryLogMessage(AbstractLogger.java:2163)
 at org.apache.logging.log4j.spi.AbstractLogger.logMessageTrackRecursion(AbstractLogger.java:2118)
 at org.apache.logging.log4j.spi.AbstractLogger.logMessageSafely(AbstractLogger.java:2101)
 at org.apache.logging.log4j.spi.AbstractLogger.logMessage(AbstractLogger.java:1995)
 at org.apache.logging.log4j.spi.AbstractLogger.logIfEnabled(AbstractLogger.java:1967)
 at org.apache.logging.log4j.spi.AbstractLogger.info(AbstractLogger.java:1304)
 at org.apache.struts2.dispatcher.Dispatcher.init_CheckWebLogicWorkaround(Dispatcher.java:469)
 at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:498)
 at org.apache.struts2.dispatcher.InitOperations.initDispatcher(InitOperations.java:73)
 at org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:61)
 at weblogic.servlet.internal.FilterManager$FilterInitAction.run(FilterManager.java:343)
 at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
 at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
 at weblogic.servlet.internal.FilterManager.loadFilter(FilterManager.java:96)
 at weblogic.servlet.internal.FilterManager.preloadFilters(FilterManager.java:57)
 at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1875)
 at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3173)
 at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1529)
 at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:488)
 at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
 at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
 at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
 at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
 at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247)
 at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
 at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
 at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
 at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
 at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:671)
 at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
 at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)
 at weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:44)
 at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
 at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:80)
 at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:187)
 at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:379)
 at weblogic.management.deploy.internal.DeploymentAdapter$1.doActivate(DeploymentAdapter.java:51)
 at weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:200)
 at weblogic.management.deploy.internal.AppTransition$2.transitionApp(AppTransition.java:30)
 at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:240)
 at weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:169)
 at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:123)
 at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:180)
 at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:96)
 at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
 at weblogic.work.ExecuteThread.execute(ExecuteThread.java:263)
 at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
>

> struts2 logs disabling from log4j.properties file
> -------------------------------------------------
>
>                 Key: WW-4942
>                 URL: https://issues.apache.org/jira/browse/WW-4942
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.5.16
>         Environment: struts 2.5.16
>            Reporter: Learner9010
>            Priority: Major
>              Labels: performance
>         Attachments: jars_in_lib_dir.PNG
>
>
> struts2 logs disabling from log4j.properties file
> I'm migrating from struts1 to struts2, i'm facing problems with logs which are continously
logging with debug level
> Below are the logs which i took it from log file
> DEBUG 15287 [freemark] (): Key "errorposition" was not found on instance of java.util.LinkedHashMap.
Introspection information for the class is: {getClass=public final native java.lang.Class
java.lang.Object.getClass(), java.lang.Object@3c9557f1=freemarker.ext.beans.OverloadedMethods@174dae2d,
clone=public java.lang.Object java.util.HashMap.clone(), put=public java.lang.Object java.util.HashMap.put(java.lang.Object,java.lang.Object),
get=public java.lang.Object java.util.LinkedHashMap.get(java.lang.Object), remove=public java.lang.Object
java.util.HashMap.remove(java.lang.Object), equals=public boolean java.util.AbstractMap.equals(java.lang.Object),
entrySet=public java.util.Set java.util.HashMap.entrySet(), hashCode=public int java.util.AbstractMap.hashCode(),
class=java.beans.PropertyDescriptor[name=class; propertyType=class java.lang.Class; readMethod=public
final native java.lang.Class java.lang.Object.getClass()], keySet=public java.util.Set java.util.HashMap.keySet(),
java.lang.Object@293312fd=
> {public void java.util.LinkedHashMap.clear()=[Ljava.lang.Class;@6ce6184e, public int
java.util.HashMap.size()=[Ljava.lang.Class;@7645e0bc, public int java.util.AbstractMap.hashCode()=[Ljava.lang.Class;@65a5934d,
public final native java.lang.Class java.lang.Object.getClass()=[Ljava.lang.Class;@5969d85d,
public java.util.Set java.util.HashMap.keySet()=[Ljava.lang.Class;@33fbef87, public java.util.Set
java.util.HashMap.entrySet()=[Ljava.lang.Class;@612aa2ba, public boolean java.util.LinkedHashMap.containsValue(java.lang.Object)=[Ljava.lang.Class;@3621932c,
public java.lang.Object java.util.HashMap.remove(java.lang.Object)=[Ljava.lang.Class;@56454977,
public java.lang.Object java.util.HashMap.put(java.lang.Object,java.lang.Object)=[Ljava.lang.Class;@5eda4fe0,
public java.lang.Object java.util.HashMap.clone()=[Ljava.lang.Class;@4eb22bc6, public boolean
java.util.AbstractMap.equals(java.lang.Object)=[Ljava.lang.Class;@1357fc87, public java.lang.String
java.util.AbstractMap.toString()=[Ljava.lang.Class;@75840cfc, public java.lang.Object java.util.LinkedHashMap.get(java.lang.Object)=[Ljava.lang.Class;@3070b0aa,
public void java.util.HashMap.putAll(java.util.Map)=[Ljava.lang.Class;@365e81be, public boolean
java.util.HashMap.containsKey(java.lang.Object)=[Ljava.lang.Class;@7697fcd4, public java.util.Collection
java.util.HashMap.values()=[Ljava.lang.Class;@7457ff1f, public boolean java.util.HashMap.isEmpty()=[Ljava.lang.Class;@3d2e87e5},
size=public int java.util.HashMap.size(), clear=public void java.util.LinkedHashMap.clear(),
isEmpty=public boolean java.util.HashMap.isEmpty(), containsKey=public boolean java.util.HashMap.containsKey(java.lang.Object),
values=public java.util.Collection java.util.HashMap.values(), containsValue=public boolean
java.util.LinkedHashMap.containsValue(java.lang.Object), empty=java.beans.PropertyDescriptor[name=empty;
propertyType=boolean; readMethod=public boolean java.util.HashMap.isEmpty()], toString=public
java.lang.String java.util.AbstractMap.toString(), java.lang.Object@4d514eb3=public java.lang.Object
java.util.LinkedHashMap.get(java.lang.Object), putAll=public void java.util.HashMap.putAll(java.util.Map)}
> DEBUG 15287 [freemark] (): "template/css_xhtml/form-close.ftl"("en_US", UTF-8, parsed)
cached copy not yet stale; using cached.
> DEBUG 15287 [freemark] (): "template/xhtml/form-close.ftl"("en_US", UTF-8, parsed)
cached copy not yet stale; using cached.
> DEBUG 15287 [freemark] (): "template/~~~css_xhtml/control-close.ftl"("en_US", UTF-8,
parsed) cached copy not yet stale; using cached.
> DEBUG 15287 [freemark] (): "template/simple/form-close.ftl"("en_US", UTF-8, parsed)
cached copy not yet stale; using cached.
> DEBUG 15287 [freemark] (): Key "customOnsubmitEnabled" was not found on instance of
java.util.LinkedHashMap. Introspection information for the class is: {getClass=public final
native java.lang.Class java.lang.Object.getClass(), java.lang.Object@3c9557f1=freemarker.ext.beans.OverloadedMethods@174dae2d,
clone=public java.lang.Object java.util.HashMap.clone(), put=public java.lang.Object java.util.HashMap.put(java.lang.Object,java.lang.Object),
get=public java.lang.Object java.util.LinkedHashMap.get(java.lang.Object), remove=public java.lang.Object
java.util.HashMap.remove(java.lang.Object), equals=public boolean java.util.AbstractMap.equals(java.lang.Object),
entrySet=public java.util.Set java.util.HashMap.entrySet(), hashCode=public int java.util.AbstractMap.hashCode(),
class=java.beans.PropertyDescriptor[name=class; propertyType=class java.lang.Class; readMethod=public
final native java.lang.Class java.lang.Object.getClass()], keySet=public java.util.Set java.util.HashMap.keySet(),
java.lang.Object@293312fd=\{public void java.util.LinkedHashMap.clear()=[Ljava.lang.Class;@6ce6184e,
public int java.util.HashMap.size()=[Ljava.lang.Class;@7645e0bc, public int java.util.AbstractMap.hashCode()=[Ljava.lang.Class;@65a5934d,
public final native java.lang.Class java.lang.Object.getClass()=[Ljava.lang.Class;@5969d85d,
public java.util.Set java.util.HashMap.keySet()=[Ljava.lang.Class;@33fbef87, public java.util.Set
java.util.HashMap.entrySet()=[Ljava.lang.Class;@612aa2ba, public boolean java.util.LinkedHashMap.containsValue(java.lang.Object)=[Ljava.lang.Class;@3621932c,
public java.lang.Object java.util.HashMap.remove(java.lang.Object)=[Ljava.lang.Class;@56454977,
public java.lang.Object java.util.HashMap.put(java.lang.Object,java.lang.Object)=[Ljava.lang.Class;@5eda4fe0,
public java.lang.Object java.util.HashMap.clone()=[Ljava.lang.Class;@4eb22bc6, public boolean
java.util.AbstractMap.equals(java.lang.Object)=[Ljava.lang.Class;@1357fc87, public java.lang.String
java.util.AbstractMap.toString()=[Ljava.lang.Class;@75840cfc, public java.lang.Object java.util.LinkedHashMap.get(java.lang.Object)=[Ljava.lang.Class;@3070b0aa,
public void java.util.HashMap.putAll(java.util.Map)=[Ljava.lang.Class;@365e81be, public boolean
java.util.HashMap.containsKey(java.lang.Object)=[Ljava.lang.Class;@7697fcd4, public java.util.Collection
java.util.HashMap.values()=[Ljava.lang.Class;@7457ff1f, public boolean java.util.HashMap.isEmpty()=[Ljava.lang.Class;@3d2e87e5}
> , size=public int java.util.HashMap.size(), clear=public void java.util.LinkedHashMap.clear(),
isEmpty=public boolean java.util.HashMap.isEmpty(), containsKey=public boolean java.util.HashMap.containsKey(java.lang.Object),
values=public java.util.Collection java.util.HashMap.values(), containsValue=public boolean
java.util.LinkedHashMap.containsValue(java.lang.Object), empty=java.beans.PropertyDescriptor[name=empty;
propertyType=boolean; readMethod=public boolean java.util.HashMap.isEmpty()], toString=public
java.lang.String java.util.AbstractMap.toString(), java.lang.Object@4d514eb3=public java.lang.Object
java.util.LinkedHashMap.get(java.lang.Object), putAll=public void java.util.HashMap.putAll(java.util.Map)}
> DEBUG 15287 [freemark] (): "template/~~~css_xhtml/form-close-tooltips.ftl"("en_US",
UTF-8, parsed) cached copy not yet stale; using cached.
> DEBUG 15287 [freemark] (): Key "hasTooltip" was not found on instance of java.util.LinkedHashMap.
Introspection information for the class is: {getClass=public final native java.lang.Class
java.lang.Object.getClass(), java.lang.Object@3c9557f1=freemarker.ext.beans.OverloadedMethods@174dae2d,
clone=public java.lang.Object java.util.HashMap.clone(), put=public java.lang.Object java.util.HashMap.put(java.lang.Object,java.lang.Object),
get=public java.lang.Object java.util.LinkedHashMap.get(java.lang.Object), remove=public java.lang.Object
java.util.HashMap.remove(java.lang.Object), equals=public boolean java.util.AbstractMap.equals(java.lang.Object),
entrySet=public java.util.Set java.util.HashMap.entrySet(), hashCode=public int java.util.AbstractMap.hashCode(),
class=java.beans.PropertyDescriptor[name=class; propertyType=class java.lang.Class; readMethod=public
final native java.lang.Class java.lang.Object.getClass()], keySet=public java.util.Set java.util.HashMap.keySet(),
java.lang.Object@293312fd=
> {public void java.util.LinkedHashMap.clear()=[Ljava.lang.Class;@6ce6184e, public int
java.util.HashMap.size()=[Ljava.lang.Class;@7645e0bc, public int java.util.AbstractMap.hashCode()=[Ljava.lang.Class;@65a5934d,
public final native java.lang.Class java.lang.Object.getClass()=[Ljava.lang.Class;@5969d85d,
public java.util.Set java.util.HashMap.keySet()=[Ljava.lang.Class;@33fbef87, public java.util.Set
java.util.HashMap.entrySet()=[Ljava.lang.Class;@612aa2ba, public boolean java.util.LinkedHashMap.containsValue(java.lang.Object)=[Ljava.lang.Class;@3621932c,
public java.lang.Object java.util.HashMap.remove(java.lang.Object)=[Ljava.lang.Class;@56454977,
public java.lang.Object java.util.HashMap.put(java.lang.Object,java.lang.Object)=[Ljava.lang.Class;@5eda4fe0,
public java.lang.Object java.util.HashMap.clone()=[Ljava.lang.Class;@4eb22bc6, public boolean
java.util.AbstractMap.equals(java.lang.Object)=[Ljava.lang.Class;@1357fc87, public java.lang.String
java.util.AbstractMap.toString()=[Ljava.lang.Class;@75840cfc, public java.lang.Object java.util.LinkedHashMap.get(java.lang.Object)=[Ljava.lang.Class;@3070b0aa,
public void java.util.HashMap.putAll(java.util.Map)=[Ljava.lang.Class;@365e81be, public boolean
java.util.HashMap.containsKey(java.lang.Object)=[Ljava.lang.Class;@7697fcd4, public java.util.Collection
java.util.HashMap.values()=[Ljava.lang.Class;@7457ff1f, public boolean java.util.HashMap.isEmpty()=[Ljava.lang.Class;@3d2e87e5},
size=public int java.util.HashMap.size(), clear=public void java.util.LinkedHashMap.clear(),
isEmpty=public boolean java.util.HashMap.isEmpty(), containsKey=public boolean java.util.HashMap.containsKey(java.lang.Object),
values=public java.util.Collection java.util.HashMap.values(), containsValue=public boolean
java.util.LinkedHashMap.containsValue(java.lang.Object), empty=java.beans.PropertyDescriptor[name=empty;
propertyType=boolean; readMethod=public boolean java.util.HashMap.isEmpty()], toString=public
java.lang.String java.util.AbstractMap.toString(), java.lang.Object@4d514eb3=public java.lang.Object
java.util.LinkedHashMap.get(java.lang.Object), putAll=public void java.util.HashMap.putAll(java.util.Map)}
> DEBUG 15287 [freemark] (): "template/~~~css_xhtml/form-close-validate.ftl"("en_US",
UTF-8, parsed) cached copy not yet stale; using cached.
> DEBUG 15287 [freemark] (): Key "validate" was not found on instance of java.util.LinkedHashMap.
Introspection information for the class is: {getClass=public final native java.lang.Class
java.lang.Object.getClass(), java.lang.Object@3c9557f1=freemarker.ext.beans.OverloadedMethods@174dae2d,
clone=public java.lang.Object java.util.HashMap.clone(), put=public java.lang.Object java.util.HashMap.put(java.lang.Object,java.lang.Object),
get=public java.lang.Object java.util.LinkedHashMap.get(java.lang.Object), remove=public java.lang.Object
java.util.HashMap.remove(java.lang.Object), equals=public boolean java.util.AbstractMap.equals(java.lang.Object),
entrySet=public java.util.Set java.util.HashMap.entrySet(), hashCode=public int java.util.AbstractMap.hashCode(),
class=java.beans.PropertyDescriptor[name=class; propertyType=class java.lang.Class; readMethod=public
final native java.lang.Class java.lang.Object.getClass()], keySet=public java.util.Set java.util.HashMap.keySet(),
java.lang.Object@293312fd=\{public void java.util.LinkedHashMap.clear()=[Ljava.lang.Class;@6ce6184e,
public int java.util.HashMap.size()=[Ljava.lang.Class;@7645e0bc, public int java.util.AbstractMap.hashCode()=[Ljava.lang.Class;@65a5934d,
public final native java.lang.Class java.lang.Object.getClass()=[Ljava.lang.Class;@5969d85d,
public java.util.Set java.util.HashMap.keySet()=[Ljava.lang.Class;@33fbef87, public java.util.Set
java.util.HashMap.entrySet()=[Ljava.lang.Class;@612aa2ba, public boolean java.util.LinkedHashMap.containsValue(java.lang.Object)=[Ljava.lang.Class;@3621932c,
public java.lang.Object java.util.HashMap.remove(java.lang.Object)=[Ljava.lang.Class;@56454977,
public java.lang.Object java.util.HashMap.put(java.lang.Object,java.lang.Object)=[Ljava.lang.Class;@5eda4fe0,
public java.lang.Object java.util.HashMap.clone()=[Ljava.lang.Class;@4eb22bc6, public boolean
java.util.AbstractMap.equals(java.lang.Object)=[Ljava.lang.Class;@1357fc87, public java.lang.String
java.util.AbstractMap.toString()=[Ljava.lang.Class;@75840cfc, public java.lang.Object java.util.LinkedHashMap.get(java.lang.Object)=[Ljava.lang.Class;@3070b0aa,
public void java.util.HashMap.putAll(java.util.Map)=[Ljava.lang.Class;@365e81be, public boolean
java.util.HashMap.containsKey(java.lang.Object)=[Ljava.lang.Class;@7697fcd4, public java.util.Collection
java.util.HashMap.values()=[Ljava.lang.Class;@7457ff1f, public boolean java.util.HashMap.isEmpty()=[Ljava.lang.Class;@3d2e87e5}
> , size=public int java.util.HashMap.size(), clear=public void java.util.LinkedHashMap.clear(),
isEmpty=public boolean java.util.HashMap.isEmpty(), containsKey=public boolean java.util.HashMap.containsKey(java.lang.Object),
values=public java.util.Collection java.util.HashMap.values(), containsValue=public boolean
java.util.LinkedHashMap.containsValue(java.lang.Object), empty=java.beans.PropertyDescriptor[name=empty;
propertyType=boolean; readMethod=public boolean java.util.HashMap.isEmpty()], toString=public
java.lang.String java.util.AbstractMap.toString(), java.lang.Object@4d514eb3=public java.lang.Object
java.util.LinkedHashMap.get(java.lang.Object), putAll=public void java.util.HashMap.putAll(java.util.Map)}
> DEBUG 15287 [freemark] (): Key "focusElement" was not found on instance of java.util.LinkedHashMap.
Introspection information for the class is: {getClass=public final native java.lang.Class
java.lang.Object.getClass(), java.lang.Object@3c9557f1=freemarker.ext.beans.OverloadedMethods@174dae2d,
clone=public java.lang.Object java.util.HashMap.clone(), put=public java.lang.Object java.util.HashMap.put(java.lang.Object,java.lang.Object),
get=public java.lang.Object java.util.LinkedHashMap.get(java.lang.Object), remove=public java.lang.Object
java.util.HashMap.remove(java.lang.Object), equals=public boolean java.util.AbstractMap.equals(java.lang.Object),
entrySet=public java.util.Set java.util.HashMap.entrySet(), hashCode=public int java.util.AbstractMap.hashCode(),
class=java.beans.PropertyDescriptor[name=class; propertyType=class java.lang.Class; readMethod=public
final native java.lang.Class java.lang.Object.getClass()], keySet=public java.util.Set java.util.HashMap.keySet(),
java.lang.Object@293312fd=
> {public void java.util.LinkedHashMap.clear()=[Ljava.lang.Class;@6ce6184e, public int
java.util.HashMap.size()=[Ljava.lang.Class;@7645e0bc, public int java.util.AbstractMap.hashCode()=[Ljava.lang.Class;@65a5934d,
public final native java.lang.Class java.lang.Object.getClass()=[Ljava.lang.Class;@5969d85d,
public java.util.Set java.util.HashMap.keySet()=[Ljava.lang.Class;@33fbef87, public java.util.Set
java.util.HashMap.entrySet()=[Ljava.lang.Class;@612aa2ba, public boolean java.util.LinkedHashMap.containsValue(java.lang.Object)=[Ljava.lang.Class;@3621932c,
public java.lang.Object java.util.HashMap.remove(java.lang.Object)=[Ljava.lang.Class;@56454977,
public java.lang.Object java.util.HashMap.put(java.lang.Object,java.lang.Object)=[Ljava.lang.Class;@5eda4fe0,
public java.lang.Object java.util.HashMap.clone()=[Ljava.lang.Class;@4eb22bc6, public boolean
java.util.AbstractMap.equals(java.lang.Object)=[Ljava.lang.Class;@1357fc87, public java.lang.String
java.util.AbstractMap.toString()=[Ljava.lang.Class;@75840cfc, public java.lang.Object java.util.LinkedHashMap.get(java.lang.Object)=[Ljava.lang.Class;@3070b0aa,
public void java.util.HashMap.putAll(java.util.Map)=[Ljava.lang.Class;@365e81be, public boolean
java.util.HashMap.containsKey(java.lang.Object)=[Ljava.lang.Class;@7697fcd4, public java.util.Collection
java.util.HashMap.values()=[Ljava.lang.Class;@7457ff1f, public boolean java.util.HashMap.isEmpty()=[Ljava.lang.Class;@3d2e87e5}
> , size=public int java.util.HashMap.size(), clear=public void java.util.LinkedHashMap.clear(),
isEmpty=public boolean java.util.HashMap.isEmpty(), containsKey=public boolean java.util.HashMap.containsKey(java.lang.Object),
values=public java.util.Collection java.util.HashMap.values(), containsValue=public boolean
java.util.LinkedHashMap.containsValue(java.lang.Object), empty=java.beans.PropertyDescriptor[name=empty;
propertyType=boolean; readMethod=public boolean java.util.HashMap.isEmpty()], toString=public
java.lang.String java.util.AbstractMap.toString(), java.lang.Object@4d514eb3=public java.lang.Object
java.util.LinkedHashMap.get(java.lang.Object), putAll=public void java.util.HashMap.putAll(java.util.Map)
>  
> jars exists in war file(jars_in_lib_dir.png attached)
> Below is my log4j.properties
> log4j.rootLogger=info, stdout, R
> log4j.appender.stdout=org.apache.log4j.ConsoleAppender
> log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
>  # Pattern to output the caller's file name and line number.
> log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n
> log4j.appender.R=org.apache.log4j.RollingFileAppender
> log4j.appender.R.File=../MyLogin.log
> log4j.appender.R.MaxFileSize=1000KB
>  # Keep one backup file
> log4j.appender.R.MaxBackupIndex=1
> log4j.appender.R.layout=org.apache.log4j.PatternLayout
> log4j.appender.R.layout.ConversionPattern=%p %d\{dd MMM yyyy HH:mm:ss,SSS} %c - %m%n
> #log4j.category.com.opensymphony.xwork2=OFF
> #log4j.category.org.apache.struts2=OFF
> #log4j.category.freemarker.beans=OFF
> #log4j.category.freemarker.cache=OFF
> log4j.logger.com.opensymphony.xwork2=INFO
> log4j.logger.org.apache.struts2=INFO
> log4j.logger.freemarker.cache=INFO
> log4j.logger.freemarker.beans=INFO
> I have tried with below combinations but even then still the logs are getting logged
> #log4j.category.com.opensymphony.xwork2=OFF
> #log4j.category.org.apache.struts2=OFF
> #log4j.category.freemarker.beans=OFF
> #log4j.category.freemarker.cache=OFF
> log4j.logger.com.opensymphony.xwork2=INFO
> log4j.logger.org.apache.struts2=INFO
> log4j.logger.freemarker.cache=INFO
> log4j.logger.freemarker.beans=INFO
> code snippet from struts.xml
> <!--
> <constant name="struts.devMode" value="true"/>
> -->
> <constant name="struts.action.extension" value="do"/>
> <constant name="struts.ui.theme" value="css_xhtml" />
> <constant name="struts.custom.i18n.resources" value="global"></constant>
> below are the logs after adding log4j.logger.freemarker.ext=INFO to my log4j file
> DEBUG 15287 [freemark] (): "template/~~~css_xhtml/form-close-tooltips.ftl"("en_US",
UTF-8, parsed) cached copy not yet stale; using cached.
> DEBUG 15287 [freemark] (): Key "hasTooltip" was not found on instance of java.util.LinkedHashMap.
Introspection information for the class is: {getClass=public final native java.lang.Class
java.lang.Object.getClass(), clone=public java.lang.Object java.util.HashMap.clone(), put=public
java.lang.Object java.util.HashMap.put(java.lang.Object,java.lang.Object), get=public java.lang.Object
java.util.LinkedHashMap.get(java.lang.Object), remove=public java.lang.Object java.util.HashMap.remove(java.lang.Object),
equals=public boolean java.util.AbstractMap.equals(java.lang.Object), entrySet=public java.util.Set
java.util.HashMap.entrySet(), hashCode=public int java.util.AbstractMap.hashCode(), class=java.beans.PropertyDescriptor[name=class;
propertyType=class java.lang.Class; readMethod=public final native java.lang.Class java.lang.Object.getClass()],
keySet=public java.util.Set java.util.HashMap.keySet(), java.lang.Object@7a41f6ea=
> {public void java.util.LinkedHashMap.clear()=[Ljava.lang.Class;@43a645b0, public int
java.util.HashMap.size()=[Ljava.lang.Class;@59294882, public int java.util.AbstractMap.hashCode()=[Ljava.lang.Class;@25577c89,
public final native java.lang.Class java.lang.Object.getClass()=[Ljava.lang.Class;@12b11986,
public java.util.Set java.util.HashMap.keySet()=[Ljava.lang.Class;@2902b600, public java.util.Set
java.util.HashMap.entrySet()=[Ljava.lang.Class;@70facf08, public boolean java.util.LinkedHashMap.containsValue(java.lang.Object)=[Ljava.lang.Class;@622e502a,
public java.lang.Object java.util.HashMap.remove(java.lang.Object)=[Ljava.lang.Class;@4e9127c1,
public java.lang.Object java.util.HashMap.put(java.lang.Object,java.lang.Object)=[Ljava.lang.Class;@1bc91833,
public java.lang.Object java.util.HashMap.clone()=[Ljava.lang.Class;@2f53ca85, public boolean
java.util.AbstractMap.equals(java.lang.Object)=[Ljava.lang.Class;@2614fa09, public java.lang.String
java.util.AbstractMap.toString()=[Ljava.lang.Class;@2b2b7867, public java.lang.Object java.util.LinkedHashMap.get(java.lang.Object)=[Ljava.lang.Class;@32edc855,
public void java.util.HashMap.putAll(java.util.Map)=[Ljava.lang.Class;@18fb5e92, public boolean
java.util.HashMap.containsKey(java.lang.Object)=[Ljava.lang.Class;@1efdd00e, public java.util.Collection
java.util.HashMap.values()=[Ljava.lang.Class;@29665707, public boolean java.util.HashMap.isEmpty()=[Ljava.lang.Class;@7ddba1cc},
size=public int java.util.HashMap.size(), clear=public void java.util.LinkedHashMap.clear(),
isEmpty=public boolean java.util.HashMap.isEmpty(), containsKey=public boolean java.util.HashMap.containsKey(java.lang.Object),
java.lang.Object@65fbf80e=freemarker.ext.beans.OverloadedMethods@5e5b98a1, values=public java.util.Collection
java.util.HashMap.values(), containsValue=public boolean java.util.LinkedHashMap.containsValue(java.lang.Object),
empty=java.beans.PropertyDescriptor[name=empty; propertyType=boolean; readMethod=public boolean
java.util.HashMap.isEmpty()], java.lang.Object@4d3fac52=public java.lang.Object java.util.LinkedHashMap.get(java.lang.Object),
toString=public java.lang.String java.util.AbstractMap.toString(), putAll=public void java.util.HashMap.putAll(java.util.Map)}
> DEBUG 15287 [freemark] (): "template/~~~css_xhtml/form-close-validate.ftl"("en_US",
UTF-8, parsed) cached copy not yet stale; using cached.
> DEBUG 15287 [freemark] (): Key "validate" was not found on instance of java.util.LinkedHashMap.
Introspection information for the class is: {getClass=public final native java.lang.Class
java.lang.Object.getClass(), clone=public java.lang.Object java.util.HashMap.clone(), put=public
java.lang.Object java.util.HashMap.put(java.lang.Object,java.lang.Object), get=public java.lang.Object
java.util.LinkedHashMap.get(java.lang.Object), remove=public java.lang.Object java.util.HashMap.remove(java.lang.Object),
equals=public boolean java.util.AbstractMap.equals(java.lang.Object), entrySet=public java.util.Set
java.util.HashMap.entrySet(), hashCode=public int java.util.AbstractMap.hashCode(), class=java.beans.PropertyDescriptor[name=class;
propertyType=class java.lang.Class; readMethod=public final native java.lang.Class java.lang.Object.getClass()],
keySet=public java.util.Set java.util.HashMap.keySet(), java.lang.Object@7a41f6ea=\{public
void java.util.LinkedHashMap.clear()=[Ljava.lang.Class;@43a645b0, public int java.util.HashMap.size()=[Ljava.lang.Class;@59294882,
public int java.util.AbstractMap.hashCode()=[Ljava.lang.Class;@25577c89, public final native
java.lang.Class java.lang.Object.getClass()=[Ljava.lang.Class;@12b11986, public java.util.Set
java.util.HashMap.keySet()=[Ljava.lang.Class;@2902b600, public java.util.Set java.util.HashMap.entrySet()=[Ljava.lang.Class;@70facf08,
public boolean java.util.LinkedHashMap.containsValue(java.lang.Object)=[Ljava.lang.Class;@622e502a,
public java.lang.Object java.util.HashMap.remove(java.lang.Object)=[Ljava.lang.Class;@4e9127c1,
public java.lang.Object java.util.HashMap.put(java.lang.Object,java.lang.Object)=[Ljava.lang.Class;@1bc91833,
public java.lang.Object java.util.HashMap.clone()=[Ljava.lang.Class;@2f53ca85, public boolean
java.util.AbstractMap.equals(java.lang.Object)=[Ljava.lang.Class;@2614fa09, public java.lang.String
java.util.AbstractMap.toString()=[Ljava.lang.Class;@2b2b7867, public java.lang.Object java.util.LinkedHashMap.get(java.lang.Object)=[Ljava.lang.Class;@32edc855,
public void java.util.HashMap.putAll(java.util.Map)=[Ljava.lang.Class;@18fb5e92, public boolean
java.util.HashMap.containsKey(java.lang.Object)=[Ljava.lang.Class;@1efdd00e, public java.util.Collection
java.util.HashMap.values()=[Ljava.lang.Class;@29665707, public boolean java.util.HashMap.isEmpty()=[Ljava.lang.Class;@7ddba1cc}
> , size=public int java.util.HashMap.size(), clear=public void java.util.LinkedHashMap.clear(),
isEmpty=public boolean java.util.HashMap.isEmpty(), containsKey=public boolean java.util.HashMap.containsKey(java.lang.Object),
java.lang.Object@65fbf80e=freemarker.ext.beans.OverloadedMethods@5e5b98a1, values=public java.util.Collection
java.util.HashMap.values(), containsValue=public boolean java.util.LinkedHashMap.containsValue(java.lang.Object),
empty=java.beans.PropertyDescriptor[name=empty; propertyType=boolean; readMethod=public boolean
java.util.HashMap.isEmpty()], java.lang.Object@4d3fac52=public java.lang.Object java.util.LinkedHashMap.get(java.lang.Object),
toString=public java.lang.String java.util.AbstractMap.toString(), putAll=public void java.util.HashMap.putAll(java.util.Map)}
> DEBUG 15287 [freemark] (): Key "focusElement" was not found on instance of java.util.LinkedHashMap.
Introspection information for the class is: {getClass=public final native java.lang.Class
java.lang.Object.getClass(), clone=public java.lang.Object java.util.HashMap.clone(), put=public
java.lang.Object java.util.HashMap.put(java.lang.Object,java.lang.Object), get=public java.lang.Object
java.util.LinkedHashMap.get(java.lang.Object), remove=public java.lang.Object java.util.HashMap.remove(java.lang.Object),
equals=public boolean java.util.AbstractMap.equals(java.lang.Object), entrySet=public java.util.Set
java.util.HashMap.entrySet(), hashCode=public int java.util.AbstractMap.hashCode(), class=java.beans.PropertyDescriptor[name=class;
propertyType=class java.lang.Class; readMethod=public final native java.lang.Class java.lang.Object.getClass()],
keySet=public java.util.Set java.util.HashMap.keySet(), java.lang.Object@7a41f6ea=
> {public void java.util.LinkedHashMap.clear()=[Ljava.lang.Class;@43a645b0, public int
java.util.HashMap.size()=[Ljava.lang.Class;@59294882, public int java.util.AbstractMap.hashCode()=[Ljava.lang.Class;@25577c89,
public final native java.lang.Class java.lang.Object.getClass()=[Ljava.lang.Class;@12b11986,
public java.util.Set java.util.HashMap.keySet()=[Ljava.lang.Class;@2902b600, public java.util.Set
java.util.HashMap.entrySet()=[Ljava.lang.Class;@70facf08, public boolean java.util.LinkedHashMap.containsValue(java.lang.Object)=[Ljava.lang.Class;@622e502a,
public java.lang.Object java.util.HashMap.remove(java.lang.Object)=[Ljava.lang.Class;@4e9127c1,
public java.lang.Object java.util.HashMap.put(java.lang.Object,java.lang.Object)=[Ljava.lang.Class;@1bc91833,
public java.lang.Object java.util.HashMap.clone()=[Ljava.lang.Class;@2f53ca85, public boolean
java.util.AbstractMap.equals(java.lang.Object)=[Ljava.lang.Class;@2614fa09, public java.lang.String
java.util.AbstractMap.toString()=[Ljava.lang.Class;@2b2b7867, public java.lang.Object java.util.LinkedHashMap.get(java.lang.Object)=[Ljava.lang.Class;@32edc855,
public void java.util.HashMap.putAll(java.util.Map)=[Ljava.lang.Class;@18fb5e92, public boolean
java.util.HashMap.containsKey(java.lang.Object)=[Ljava.lang.Class;@1efdd00e, public java.util.Collection
java.util.HashMap.values()=[Ljava.lang.Class;@29665707, public boolean java.util.HashMap.isEmpty()=[Ljava.lang.Class;@7ddba1cc}
> , size=public int java.util.HashMap.size(), clear=public void java.util.LinkedHashMap.clear(),
isEmpty=public boolean java.util.HashMap.isEmpty(), containsKey=public boolean java.util.HashMap.containsKey(java.lang.Object),
java.lang.Object@65fbf80e=freemarker.ext.beans.OverloadedMethods@5e5b98a1, values=public java.util.Collection
java.util.HashMap.values(), containsValue=public boolean java.util.LinkedHashMap.containsValue(java.lang.Object),
empty=java.beans.PropertyDescriptor[name=empty; propertyType=boolean; readMethod=public boolean
java.util.HashMap.isEmpty()], java.lang.Object@4d3fac52=public java.lang.Object java.util.LinkedHashMap.get(java.lang.Object),
toString=public java.lang.String java.util.AbstractMap.toString(), putAll=public void java.util.HashMap.putAll(java.util.Map)}
> Please help me out how i can get rid of this logs problem



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


Mime
View raw message