...
- Make a backup copy of
pentaho/WEB-INF/classes/log4j.xml
. - Open
log4j.xml
. Remove anyThreshold
param that occurs in all of the appenders (i.e.PENTAHOFILE
orPENTAHOCONSOLE
).Code Block xml xml title log4j.xmlxml <appender name="PENTAHOFILE" class="org.apache.log4j.DailyRollingFileAppender"> <!-- THRESHOLD REMOVED --> </appender> <appender name="PENTAHOCONSOLE" class="org.apache.log4j.ConsoleAppender"> <!-- THRESHOLD REMOVED --> </appender>
- Staying in the same file, find the
root
logger definition. Add or change the existingpriority
toWARN
,ERROR
, orFATAL
. All loggers will inherit this level except where it is overridden (which is done in the next step).Code Block xml xml title log4j.xmlxml <root> <priority value="WARN" /> <appender-ref ref="PENTAHOCONSOLE"/> <appender-ref ref="PENTAHOFILE"/> </root>
- Staying in the same file, add the following loggers before the
root
element. This will enable debug-level output in security-related classes.Note: When you add
category
elements, be sure to add them before theroot
element. Otherwise, you will violate the DTD forlog4j.xml
.Code Block xml xml title log4j.xmlxml <!-- all Spring Security classes will be set to DEBUG --> <category name="org.springframework.security"> <priority value="DEBUG" /> </category> <!-- all Pentaho security-related classes will be set to DEBUG --> <category name="org.pentaho.platform.engine.security"> <priority value="DEBUG" /> </category> <category name="org.pentaho.platform.plugin.services.security"> <priority value="DEBUG" /> </category>
- Now open
pentaho-solutions/system/applicationContext-spring-security-<back-end>.xml
where<back-end>
is one ofmemory
,jdbc
,ldap
, orhibernate
. Which one you open will depend on the type of security back-end you've configured inweb.xml
. Add a property calledhideUserNotFoundExceptions
with valuefalse
to the bean with iddaoAuthenticationProvider
. Your modified bean should look like the bean below. Note that existing properties andconstructor-args
elements for this bean should be left unmodified.Code Block xml xml title applicationContext-spring-security-<back-end>.xmlxml <bean id="daoAuthenticationProvider" class="..."> <!-- other properties/constructor-args not shown --> <property name="hideUserNotFoundExceptions" value="false" /> </bean>
- Save the file and restart your servlet container or application server.
...