Neo4j + logback + janino + play framework 2.0 fails on start up

286 views
Skip to first unread message

Magnus Andersson

unread,
May 8, 2012, 8:26:38 AM5/8/12
to ne...@googlegroups.com
When I start my app in production mode in (tested in ubuntu and osx) the logging fails to start up. All logging is by default in play framework.


When starting my app in production mode I get:
...
Play server process ID is 8980
[info] application - Application has started
[info] play - Application started (Prod)
11:49:58,020 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]
11:49:58,021 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
11:49:58,021 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.xml]
11:49:58,022 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Setting up default configuration.
11:49:58,122 |-INFO in ch.qos.logback.core.joran.spi.ConfigurationWatchList@388698fa - URL [jar:file:/Users/x/play/play-2.0.1/repository/local/play/play_2.9.1/2.0.1/jars/play_2.9.1.jar!/logger.xml] is not of type file
11:49:58,162 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set
11:49:58,162 |-INFO in ch.qos.logback.core.joran.action.ConversionRuleAction - registering conversion word coloredLevel with class [play.api.Logger$ColoredLevel]
11:49:58,162 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.FileAppender]
11:49:58,163 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [FILE]
11:49:58,176 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
11:49:58,180 |-INFO in ch.qos.logback.core.FileAppender[FILE] - File property is set to [/Users/x/y/play2/y/logs/application.log]
11:49:58,181 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
11:49:58,181 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [STDOUT]
11:49:58,181 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
11:49:58,182 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [play] to INFO
11:49:58,182 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [application] to INFO
11:49:58,182 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [com.avaje.ebean.config.PropertyMapLoader] to OFF
11:49:58,182 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [com.avaje.ebeaninternal.server.core.XmlConfigLoader] to OFF
11:49:58,182 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [com.avaje.ebeaninternal.server.lib.BackgroundThread] to OFF
11:49:58,182 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to ERROR
11:49:58,182 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [STDOUT] to Logger[ROOT]
11:49:58,182 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [FILE] to Logger[ROOT]
11:49:58,183 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@ca56214 - Registering current configuration as safe fallback point
11:49:58,643 |-INFO in ch.qos.logback.core.joran.spi.ConfigurationWatchList@388698fa - URL [jar:file:/Users/x/y/play2/y/lib/neo4j-kernel-1.7.jar!/neo4j-logback.xml] is not of type file
11:49:58,645 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set
11:49:58,645 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.FileAppender]
11:49:58,645 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [FILE]
11:49:58,645 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
11:49:58,646 |-INFO in ch.qos.logback.core.FileAppender[FILE] - File property is set to [/Users/x/neo2/db/messages.log]
11:49:58,647 |-ERROR in ch.qos.logback.core.joran.conditional.IfAction - Could not find Janino library on the class path. Skipping conditional processing.
11:49:58,647 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [neo4j.diagnostics] to DEBUG
11:49:58,647 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity of logger [neo4j] to false
11:49:58,648 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [FILE] to Logger[neo4j]
11:49:58,648 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to INFO
11:49:58,648 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@3dca1588 - Registering current configuration as safe fallback point
11:49:58,869 |-INFO in ch.qos.logback.core.joran.spi.ConfigurationWatchList@1e4bb369 - URL [jar:file:/Users/x/play/play-2.0.1/repository/local/play/play_2.9.1/2.0.1/jars/play_2.9.1.jar!/logger.xml] is not of type file
11:49:58,871 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set
11:49:58,871 |-INFO in ch.qos.logback.core.joran.action.ConversionRuleAction - registering conversion word coloredLevel with class [play.api.Logger$ColoredLevel]
11:49:58,872 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.FileAppender]
11:49:58,872 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [FILE]
11:49:58,872 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
11:49:58,872 |-INFO in ch.qos.logback.core.FileAppender[FILE] - File property is set to [/Users/x/y/play2/y/logs/application.log]
11:49:58,872 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
11:49:58,872 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [STDOUT]
11:49:58,873 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
11:49:58,873 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [play] to INFO
11:49:58,873 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [application] to INFO
11:49:58,873 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [com.avaje.ebean.config.PropertyMapLoader] to OFF
11:49:58,873 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [com.avaje.ebeaninternal.server.core.XmlConfigLoader] to OFF
11:49:58,873 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [com.avaje.ebeaninternal.server.lib.BackgroundThread] to OFF
11:49:58,873 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to ERROR
11:49:58,873 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [STDOUT] to Logger[ROOT]
11:49:58,873 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [FILE] to Logger[ROOT]
11:49:58,873 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@7befc208 - Registering current configuration as safe fallback point

[info] play - Listening for HTTP on port 9000...



11:49:58,647 |-ERROR in ch.qos.logback.core.joran.conditional.IfAction - Could not find Janino library on the class path. Skipping conditional processing.
I guess this has to do with the support of logback in 1.7m3? :)

How to fix it?
Is there any info how to setup logback for neo4j?

Cheers,
Magnus

Mattias Persson

unread,
May 8, 2012, 9:14:00 AM5/8/12
to ne...@googlegroups.com
Hi Magnus,

could you try using 1.7 instead? http://neo4j.org/download/

2012/5/8 Magnus Andersson <magnusan...@gmail.com>



--
Mattias Persson, [mat...@neotechnology.com]
Hacker, Neo Technology
www.neotechnology.com

Magnus Andersson

unread,
May 8, 2012, 1:20:35 PM5/8/12
to ne...@googlegroups.com
Hi,
Thanks for answering.
I am using 1.7. 
Neo4j's lib files named "...-1.7.jar" are imported to my project's lib catalogue.


Den tisdagen den 8:e maj 2012 kl. 15:14:00 UTC+2 skrev Mattias Persson:
Hi Magnus,

could you try using 1.7 instead? http://neo4j.org/download/

2012/5/8 Magnus Andersson <magnusandersson85..>

Rickard Öberg

unread,
May 20, 2012, 11:47:47 PM5/20/12
to ne...@googlegroups.com
On 5/9/12 01:20 , Magnus Andersson wrote:
> *11:49:58,647 |-ERROR in
> ch.qos.logback.core.joran.conditional.IfAction - Could not find
> Janino library on the class path. Skipping conditional processing.*
> I guess this has to do with the support of logback in 1.7m3? :)
>
> How to fix it?
> Is there any info how to setup logback for neo4j?

This is a warning more than anything else, and the only thing that will
happen is that remote logging will not be possible. Adding janino to
classpath should be enough to "fix" this warning, but as above, only
thing it does is enable you to do remote logging so if you are not
interested in that it's fine.

My current thought is to remove our Logback XML file entirely, and do
the config in code instead, as it is fixed anyway. Then janino will not
be needed.

/Rickard

--
Rickard Öberg
Developer
Neo Technology
Twitter: @rickardoberg, Skype: rickardoberg

Magnus Andersson

unread,
May 23, 2012, 8:54:52 AM5/23/12
to ne...@googlegroups.com
Okay, thanks!
Reply all
Reply to author
Forward
0 new messages