You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Stefan Riegel <st...@telig.de> on 2010/03/21 17:34:13 UTC

Tomcat and Eclipse setup

Hi all

I'm using Eclipse with embedded tomcat and did the following:

   1. Create a dynamic web project
   2. Create a HelloWorld sample app

This results in a traditional directory structure:

/src
/src/myproject/
src/myproject/log4j.properties
src/myproject/HelloWorld.html
src/myproject/HelloWorld.java
src/myproject/HelloWorldApplication.java
WebContent/
WebContent/WEB-INF
...

The application works fine, but I get the following log4j warnings:

log4j:WARN No appenders could be found for logger
(org.apache.wicket.protocol.http.pagestore.FileChannelPool).
log4j:WARN Please initialize the log4j system properly.

and no Logging at all.

I understand that I should configure the log4j properly, but how to do.
Thats my log4j.properties:

log4j.appender.Stdout=org.apache.log4j.ConsoleAppender
log4j.appender.Stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.Stdout.layout.conversionPattern=%-5p - %-26.26c{1} - %m\n

log4j.rootLogger=ERROR,Stdout

log4j.logger.org.apache.wicket=ERROR
log4j.logger.org.apache.wicket.protocol.http.HttpSessionStore=ERROR
log4j.logger.org.apache.wicket.version=ERROR
log4j.logger.org.apache.wicket.RequestCycle=ERROR

Their is another Warning at the beginning of the tomcat startup. Here is the
complete startup-output

21.03.2010 16:50:59 org.apache.tomcat.util.digester.SetPropertiesRule begin
*WARNUNG: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting
property 'source' to 'org.eclipse.jst.jee.server:wicket' did not find a
matching property.
*21.03.2010 16:50:59 org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal
performance in production environments was not found on the
java.library.path:
.:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
21.03.2010 16:50:59 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
21.03.2010 16:50:59 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 801 ms
21.03.2010 16:50:59 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
21.03.2010 16:50:59 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
*log4j:WARN No appenders could be found for logger
(org.apache.wicket.protocol.http.pagestore.FileChannelPool).
log4j:WARN Please initialize the log4j system properly.
*********************************************************************
*** WARNING: Wicket is running in DEVELOPMENT mode.              ***
***                               ^^^^^^^^^^^                    ***
*** Do NOT deploy to your live server(s) without changing this.  ***
*** See Application#getConfigurationType() for more information. ***
********************************************************************
21.03.2010 16:51:00 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
21.03.2010 16:51:00 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
21.03.2010 16:51:00 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/37  config=null
21.03.2010 16:51:00 org.apache.catalina.startup.Catalina start
INFO: Server startup in 1115 ms

Any idea?


Thanks
Stefan