Anyone working with Eclipse and log4j? I have a beginner labrepl question...

27 views
Skip to first unread message

Victor S

unread,
Jul 23, 2010, 1:14:58 AM7/23/10
to Clojure
I finally got labrepl to work with one IDE, tried with intelliJ but
didnt work, also comand line didnt work on mac os x. But Eclipse
version seems to work! Yay!

So I can't wait to start learning more about Clojure, but the road so
far is pretty bumpy... Any help in figuring out what this log4j error
is? Consider I'm a complete beginner at all the java jargon, and
there's plenty!

1:2 user=> (labrepl/-main)
2010-07-23 00:57:38.015::INFO: Logging to STDERR via
org.mortbay.log.StdErrLogsolutions.mini_browser.proxy
$javax.servlet.http.HttpServlet$0

2010-07-23 00:57:38.035::INFO: jetty-6.1.21
labrepl.proxy$javax.servlet.http.HttpServlet$0
2010-07-23 00:57:38.155::INFO: Started SocketC...@0.0.0.0:9000
2010-07-23 00:57:38.156::INFO: jetty-6.1.21
2010-07-23 00:57:38.160::INFO: Started SocketC...@0.0.0.0:8080
Welcome to the labrepl. Browse to localhost:8080 to get started!
nil
1:3 user=> log4j:WARN No appenders could be found for logger
(labrepl).
log4j:WARN Please initialize the log4j system properly.

So far, the site is accessible and things seem fine. Maybe I'm asking
about this error preemptively...
I have also posted this question on the labrepl github page as an
issue.

- V

Laurent PETIT

unread,
Jul 23, 2010, 7:26:26 AM7/23/10
to clo...@googlegroups.com
And may I add that "crazy easy labrepl installation for ccw" is around the corner: http://github.com/smuehlst/ccw/tree/labrepl-sample-project !

2010/7/23 Victor S <victo...@gmail.com>
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clo...@googlegroups.com
Note that posts from new members are moderated - please be patient with your first post.
To unsubscribe from this group, send email to
clojure+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Victor S

unread,
Jul 24, 2010, 12:58:09 AM7/24/10
to Clojure
Well so far it works, I'm just confused by some of these java
errors...

- V


On Jul 23, 7:26 am, Laurent PETIT <laurent.pe...@gmail.com> wrote:
> And may I add that "crazy easy labrepl installation for ccw" is around the
> corner:http://github.com/smuehlst/ccw/tree/labrepl-sample-project!
>
> 2010/7/23 Victor S <victor.s...@gmail.com>
>
>
>
> > I finally got labrepl to work with one IDE, tried with intelliJ but
> > didnt work, also comand line didnt work on mac os x. But Eclipse
> > version seems to work! Yay!
>
> > So I can't wait to start learning more about Clojure, but the road so
> > far is pretty bumpy... Any help in figuring out what this log4j error
> > is? Consider I'm a complete beginner at all the java jargon, and
> > there's plenty!
>
> > 1:2 user=> (labrepl/-main)
> > 2010-07-23 00:57:38.015::INFO:  Logging to STDERR via
> > org.mortbay.log.StdErrLogsolutions.mini_browser.proxy
> > $javax.servlet.http.HttpServlet$0
>
> > 2010-07-23 00:57:38.035::INFO:  jetty-6.1.21
> > labrepl.proxy$javax.servlet.http.HttpServlet$0
> > 2010-07-23 00:57:38.155::INFO:  Started SocketConnec...@0.0.0.0:9000
> > 2010-07-23 00:57:38.156::INFO:  jetty-6.1.21
> > 2010-07-23 00:57:38.160::INFO:  Started SocketConnec...@0.0.0.0:8080
> > Welcome to the labrepl. Browse to localhost:8080 to get started!
> > nil
> > 1:3 user=> log4j:WARN No appenders could be found for logger
> > (labrepl).
> > log4j:WARN Please initialize the log4j system properly.
>
> > So far, the site is accessible and things seem fine. Maybe I'm asking
> > about this error preemptively...
> > I have also posted this question on the labrepl github page as an
> > issue.
>
> > - V
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Clojure" group.
> > To post to this group, send email to clo...@googlegroups.com
> > Note that posts from new members are moderated - please be patient with
> > your first post.
> > To unsubscribe from this group, send email to
> > clojure+u...@googlegroups.com<clojure%2Bunsu...@googlegroups.com >

j-g-faustus

unread,
Jul 24, 2010, 12:25:01 PM7/24/10
to Clojure
You can safely ignore them.

What you are seeing is the startup log for the web/application server,
and it complains about the server log configuration.
But there's nothing there that stops the labrepl from working or that
you need to do anything about.

Regards
jf

Shantanu Kumar

unread,
Jul 24, 2010, 12:37:15 PM7/24/10
to Clojure
This is a well-known Log4j issue (but don't worry, this is only a
warning not an error). See here:

http://www.avajava.com/tutorials/lessons/how-do-i-initialize-log4j-in-a-web-application.html

http://www.avajava.com/tutorials/lessons/what-is-log4j-and-how-do-i-use-it.html

The easiest way to initialize Log4j is to execute this on REPL before
running (labrepl/-main):

(org.apache.log4j.BasicConfigurator/configure)

However, from what the output looks like you are already all set up.
You can go to the browser and invoke http://localhost:8080 (or
whatever is the port number).

Regards,
Shantanu
Reply all
Reply to author
Forward
0 new messages