[Building Sakai] Problem Bringing up a Sakai 2.9.1

Aaron Zeckoski azeckoski at unicon.net
Thu Apr 4 05:44:34 PDT 2013


You should not include the slf4j jars there as they won't contribute
to this and removing them will probably break things.

The real solution for this issue is to stop using JCL and use slf4j or
something like that but that is a pretty major change and not
something we can do for 2.9.1.
Ideally, no apps should include their own copy of log4j*.jar though.

-AZ


On Thu, Apr 4, 2013 at 8:06 AM, Charles Severance <csev at umich.edu> wrote:
> I am trying to bring up a fresh Sakai 2.9.1 and getting the following error:
>
> INFO: Deploying web application archive accountvalidator.war
> log4j:ERROR A "org.apache.log4j.ConsoleAppender" object is not assignable to
> a "org.apache.log4j.Appender" variable.
> log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
> log4j:ERROR [org.apache.catalina.loader.StandardClassLoader at 584fce71]
> whereas object of type
> log4j:ERROR "org.apache.log4j.ConsoleAppender" was loaded by
> [WebappClassLoader^M
>   context: /accountvalidator^M
>   delegate: false^M
>   repositories:^M
>     /WEB-INF/classes/^M
> ----------> Parent Classloader:^M
> org.apache.catalina.loader.StandardClassLoader at 10f102d3^M
> ].
> log4j:ERROR Could not instantiate appender named "Sakai".
> log4j:WARN No appenders could be found for logger
> (org.sakaiproject.util.ComponentsLoader).
> log4j:WARN Please initialize the log4j system properly.
> log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for
> more info.
> Could not resolve placeholder 'sakai.security' in
> [file:${sakai.security}security.properties] as system property: neither
> system property nor environment variable found
> EntityProviderManagerImpl init
> INFO Registered entity provider
> (org.sakaiproject.entitybroker.impl.entityprovider.EntityProviderManagerImpl$1)
> prefix (describe) with 1 capabilities
>
> A quick ski of StackOverflow came up with this:
>
> http://stackoverflow.com/questions/1359708/problem-using-log4j-with-axis2
>
> So I did this:
>
> ~/sakai-2.9.1/apache-tomcat-7.0.21$ find . -name '*log4j*jar'
> ./webapps/mailsender-tool/WEB-INF/lib/log4j-1.2.14.jar
> ./webapps/profile2-tool/WEB-INF/lib/slf4j-log4j12-1.4.2.jar
> ./webapps/sitestats-tool/WEB-INF/lib/slf4j-log4j12-1.4.3.jar
> ./webapps/accountvalidator/WEB-INF/lib/log4j-1.2.14.jar
> ./shared/lib/slf4j-log4j12-1.4.2.jar
> ./components/sitestats-components/WEB-INF/lib/slf4j-log4j12-1.4.3.jar
> ./common/lib/log4j-1.2.16.jar
>
> Any suggestions?   I can go in and tart whacking jars - but this was a fresh
> checkout and compile of 2.9.1-all - so it might be something we need to fix.
>
> Sakai seems to run fine.
>
> Thanks in advance.
>
> /Chuck
>
>
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org
> with a subject of "unsubscribe"



-- 
Aaron Zeckoski - Software Architect - http://tinyurl.com/azprofile


More information about the sakai-dev mailing list