Well, it suggests I should replace commons-logging-api.jar with
commons-logging-1.1-api.jar, but when I tried that Tomcat failed to
start up.  Is there something else I need to do at the same time?

------------------------------ 
At the current date, Tomcat 5.5.16 is the current release. All releases
from version 4.1.x through 5.5.16 have a startup process that places
jarfile ${tomcat.home}/bin/commons-logging-api.jar in the system
classpath and then prevents any webapp from overriding the classes in
that jarfile. Effectively, all webapps behave as if "parent-first"
classloading were enabled for those classes. 

This has some benefits; in particular it means that there are no
problems in these Tomcat versions with having multiple copies of the
commons-logging Log interface in the classpath (which avoids the "Log
does not implement Log" problem described elsewhere). 

However it also means that no webapp can override the core
commons-logging classes by including an updated commons-logging jarfile
in WEB-INF/lib; any class already loaded via the container takes
priority. In particular, as Tomcat bundles logging 1.0.4 only, the new
diagnostics and memory-leak-prevention features of the 1.1 release will
not be available unless the container's library version is updated. 

Because the commons-logging-api.jar in the container does not contain
any log-library-adapter classes, updated behaviour for these will be
seen when logging 1.1 is bundled in WEB-INF/lib. In particular, the
support for log4j's TRACE level will take effect without having to
update the container. 

If you do wish to update Tomcat's version of commons-logging, then you
must use the commons-logging-1.1-api jar only, not the full jar. Classes
in the webapp cannot override classes loaded from the system classpath
set up during Tomcat's startup process, and logging adapters can only
see their matching concrete logging library if that library is available
in the same classpath. Bundling the full commons-logging jarfile (with
adapters) into the system classpath therefore means that logging
libraries (eg log4j) within WEB-INF/lib are not accessable. 

Note that the behaviour described here only applies if the standard
Tomcat startup process is run. When Tomcat is embedded in a larger
framework (eg run embedded within an IDE) this may not apply. 
 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of James Carman
Sent: Friday, June 06, 2008 2:50 PM
To: users@wicket.apache.org
Subject: Re: Tomcat 5.5.9 isn't running Quickstart

Our test/production servers are running Tomcat just fine.  Check this
out and I think it'll help you:

http://commons.apache.org/logging/troubleshooting.html#Apache%20Tomcat


On Fri, Jun 6, 2008 at 3:44 PM, Frank Silbermann
<[EMAIL PROTECTED]> wrote:
>
>
> Documentation for the jcl-over-slf4j.jar () says it replaces 
> commons-logging.jar -- which I cannot find anywhere in my Tomcat 
> installation.  All I've found is commons-logging-api.jar in the 
> {Tomcat installation}/bin directory.  When I do the replacement, 
> Tomcat fails to start.
>
> I'm having trouble finding any documentation that specifically speaks 
> of configuring Tomcat for this purpose.  Hasn't _anyone_ made the 
> Wicket
> 1.3 QuickStart project run in Tomcat?  Yes, I plan to use Jetty for 
> development, but I don't think my company's architecture committee has

> approved Jetty for deployment.  It seems to me that I ought to be able

> to run a Java web application in any J2EE-compliant webserver.
>
>        So, does this so
>
>        -----Original Message-----
>        From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of James Carman
>        Sent: Friday, June 06, 2008 1:01 PM
>        To: users@wicket.apache.org
>        Subject: Re: Tomcat 5.5.9 isn't running Quickstart
>
>        I would also check the tomcat/JCL documentation.  I seem to 
> remember there being some very specific instructions on one of their 
> sites about this issue.
>
>        On Fri, Jun 6, 2008 at 1:54 PM, Gwyn Evans 
> <[EMAIL PROTECTED]> wrote:
>        > That's a bit odd then...  One thing you could try is adding 
> in SLF4J's
>        > jcl-over-slf4j.jar instead of any commons-logging jars.  That

> would
>        > redirect any Commons-Logging logging to SLF4J.
>        >
>        > (Personally I'd also be looking to go with James' suggestion 
> of
>        > switching to Jetty, as I find that to be both clearer to 
> debug and
>        > more forgiving in terms of class-loading issues, but that may

> not be
>        > possible...)
>        >
>        > /Gwyn
>        >
>        > On Fri, Jun 6, 2008 at 5:31 PM, Frank Silbermann
>        > <[EMAIL PROTECTED]> wrote:
>        >> The lib directory in the QuickStart's WEB-INF contains:
>        >>
>        >>        log4j-1.2.14.jar
>        >>        slf4j-api-1.4.2.jar
>        >>        slf4j-log4j12-1.4.2.jar
>        >>
>        >> -----Original Message-----
>        >> From: Igor Vaynberg [mailto:[EMAIL PROTECTED]
>        >> Sent: Friday, June 06, 2008 11:27 AM
>        >> To: users@wicket.apache.org
>        >> Subject: Re: Tomcat 5.5.9 isn't running Quickstart
>        >>
>        >> you have to at least also have log4j in there somewhere.
>        >> commons-logging is just the pipeline..
>        >>
>        >> -igor
>        >>
>        >> On Fri, Jun 6, 2008 at 9:15 AM, Frank Silbermann
>        >> <[EMAIL PROTECTED]> wrote:
>        >>> Well, aside from the logging-oriented jars that maven packs

> into the
>        >>> QuickStart's lib folder, the only logging jar I can see in 
> Tomcat is
>        >>> in Tomcat's bin folder, named
>        >>>
>        >>> commons-logging-api.jar
>        >>>
>        >>> dated 3/26/2005.
>        >>>
>        >>> Do I need to replace that with a more recent version?  
> Would you
>        >>> recommend moving to the current version of Tomcat to avoid
>        >> side-effects?
>        >>>
>        >>>
>        >>> -----Original Message-----
>        >>> From: Igor Vaynberg [mailto:[EMAIL PROTECTED]
>        >>> Sent: Friday, June 06, 2008 11:07 AM
>        >>> To: users@wicket.apache.org
>        >>> Subject: Re: Tomcat 5.5.9 isn't running Quickstart
>        >>>
>        >>> well, there you go, something funky with your logger jars
>        >>>
>        >>> -igor
>        >>>
>        >>> On Fri, Jun 6, 2008 at 9:03 AM, Frank Silbermann
>        >>> <[EMAIL PROTECTED]> wrote:
>        >>>> Ah, yes, I thought I had checked those, but I must have 
> missed the
>        >>>> right log.  The error messages are:
>        >>>>
>        >>>> The catalina.log file contains:
>        >>>>
>        >>>> INFO: Stopping service Catalina
>        >>>> Jun 6, 2008 10:58:23 AM
>        >>>> org.apache.catalina.loader.WebappClassLoader
>        >>>> findResourceInternal
>        >>>> INFO: Illegal access: this web application instance has 
> been
>        >>>> stopped already.  Could not load 
> commons-logging.properties.  The
>        >>>> eventual following stack trace is caused by an error 
> thrown for
>        >>>> debugging purposes as well as to attempt to terminate the 
> thread
>        >>>> which caused the illegal access, and has no functional 
> impact.
>        >>>> Jun 6, 2008 10:58:23 AM
>        >>>> org.apache.catalina.loader.WebappClassLoader
>        >>>> findResourceInternal
>        >>>> INFO: Illegal access: this web application instance has 
> been
>        >>>> stopped already.  Could not load
>        >>>> META-INF/services/org.apache.commons.logging.LogFactory.
> The
>        >>>> eventual
>        >>>
>        >>>> following stack trace is caused by an error thrown for 
> debugging
>        >>>> purposes as well as to attempt to terminate the thread 
> which caused
>        >>>> the illegal access, and has no functional impact.
>        >>>> Jun 6, 2008 10:58:23 AM
>        >>>> org.apache.catalina.loader.WebappClassLoader
>        >>>> loadClass
>        >>>> INFO: Illegal access: this web application instance has 
> been
>        >>>> stopped already.  Could not load org.apache.log4j.Logger.
> The
>        >>>> eventual following stack trace is caused by an error 
> thrown for
>        >>>> debugging purposes as well as to attempt to terminate the 
> thread
>        >>>> which caused the illegal access, and has no functional 
> impact.
>        >>>> Jun 6, 2008 10:58:23 AM
>        >>>> org.apache.catalina.loader.WebappClassLoader
>        >>>> loadClass
>        >>>> INFO: Illegal access: this web application instance has 
> been
>        >>>> stopped already.  Could not load java.util.logging.Logger.
> The
>        >>>> eventual following stack trace is caused by an error 
> thrown for
>        >>>> debugging purposes as well as to attempt to terminate the 
> thread
>        >>>> which caused the illegal access, and has no functional 
> impact.
>        >>>> Jun 6, 2008 10:58:23 AM
>        >>>> org.apache.catalina.loader.WebappClassLoader
>        >>>> loadClass
>        >>>> INFO: Illegal access: this web application instance has 
> been
>        >>>> stopped already.  Could not load org.apache.log4j.Logger.
> The
>        >>>> eventual following stack trace is caused by an error 
> thrown for
>        >>>> debugging purposes as well as to attempt to terminate the 
> thread
>        >>>> which caused the illegal access, and has no functional 
> impact.
>        >>>> Jun 6, 2008 10:58:23 AM
>        >>>> org.apache.catalina.loader.WebappClassLoader
>        >>>> loadClass
>        >>>> INFO: Illegal access: this web application instance has 
> been
>        >>>> stopped already.  Could not load java.util.logging.Logger.
> The
>        >>>> eventual following stack trace is caused by an error 
> thrown for
>        >>>> debugging purposes as well as to attempt to terminate the 
> thread
>        >>>> which caused the illegal access, and has no functional 
> impact.
>        >>>> Jun 6, 2008 10:58:23 AM
>        >>>> org.apache.catalina.loader.WebappClassLoader
>        >>>> loadClass
>        >>>> INFO: Illegal access: this web application instance has 
> been
>        >>>> stopped already.  Could not load java.util.logging.Logger.
> The
>        >>>> eventual following stack trace is caused by an error 
> thrown for
>        >>>> debugging purposes as well as to attempt to terminate the 
> thread
>        >>>> which caused the illegal access, and has no functional 
> impact.
>        >>>> Jun 6, 2008 10:58:23 AM
>        >>>> org.apache.catalina.loader.WebappClassLoader
>        >>>> loadClass
>        >>>> INFO: Illegal access: this web application instance has 
> been
>        >>>> stopped already.  Could not load 
> org.apache.commons.logging.impl.SimpleLog.
>        >>>> The eventual following stack trace is caused by an error 
> thrown for
>        >>>> debugging purposes as well as to attempt to terminate the 
> thread
>        >>>> which
>        >>>
>        >>>> caused the illegal access, and has no functional impact.
>        >>>> Jun 6, 2008 10:58:23 AM
>        >>>> org.apache.catalina.loader.WebappClassLoader
>        >>>> loadClass
>        >>>> INFO: Illegal access: this web application instance has 
> been
>        >>>> stopped already.  Could not load 
> org.apache.commons.logging.impl.SimpleLog.
>        >>>> The eventual following stack trace is caused by an error 
> thrown for
>        >>>> debugging purposes as well as to attempt to terminate the 
> thread
>        >>>> which
>        >>>
>        >>>> caused the illegal access, and has no functional impact.
>        >>>> Jun 6, 2008 10:58:23 AM
> org.apache.coyote.http11.Http11Protocol
>        >>>> destroy
>        >>>> INFO: Stopping Coyote HTTP/1.1 on http-8080
>        >>>>
>        >>>> -----Original Message-----
>        >>>> From: Igor Vaynberg [mailto:[EMAIL PROTECTED]
>        >>>> Sent: Friday, June 06, 2008 10:50 AM
>        >>>> To: users@wicket.apache.org
>        >>>> Subject: Re: Tomcat 5.5.9 isn't running Quickstart
>        >>>>
>        >>>> how about the tomcat log...
>        >>>>
>        >>>> -igor
>        >>>>
>        >>>> On Fri, Jun 6, 2008 at 8:49 AM, Frank Silbermann
>        >>>> <[EMAIL PROTECTED]> wrote:
>        >>>>> Any suggestions as to where I should look for clues?
>        >>>>>
>        >>>>> -----Original Message-----
>        >>>>> From: Igor Vaynberg [mailto:[EMAIL PROTECTED]
>        >>>>> Sent: Friday, June 06, 2008 10:46 AM
>        >>>>> To: users@wicket.apache.org
>        >>>>> Subject: Re: Tomcat 5.5.9 isn't running Quickstart
>        >>>>>
>        >>>>> correct course of action is to figure out why its not 
> running in
>        >>>>> tomcat
>        >>>>>
>        >>>>> -igor
>        >>>>>
>        >>>>> On Fri, Jun 6, 2008 at 8:39 AM, Frank Silbermann
>        >>>>> <[EMAIL PROTECTED]> wrote:
>        >>>>>> I have the quickstart program and have been able to run 
> it in
>        >>>>>> Eclipse
>        >>>>
>        >>>>>> following the directions in
>        >>>>>> http://herebebeasties.com/2007-10-07/wicket-quickstart/
>        >>>>>>
>        >>>>>> Also, I used "mvn package" to build the web application 
> and .war
>        >>>>>>
>        >>>>>> I tried copying the myproject-1.0-SNAPSHOT folder (and I

> also
>        >>>>>> tried
>        >>
>        >>>>>> the .war file) into the webapps folder to Tomcat 5.5.9 
> and
>        >>>>>> started up
>        >>>>
>        >>>>>> Tomcat.  When I entered http://127.0.0.1:8080/myproject/

> (or
>        >>>>>> http://localhost:8080/myproject/) it failed to serve the
>        >>>>>> quickstart
>        >>
>        >>>>>> project.  Do I need a more recent version of Tomcat for 
> running
>        >>>>>> Wicket
>        >>>>>
>        >>>>>> 1.3, or is there something else I need to do to 
> configure it for
>        >>>>> Tomcat?
>        >>>>>> This is what it told me:
>        >>>>>>
>        >>>>>> HTTP Status 404 - /myproject/
>        >>>>>>
>        >>>>>>
> -----------------------------------------------------------------
>        >>>>>> --
>        >>>>>> -
>        >>>>>> -
>        >>>>>> -
>        >>>>>> --
>        >>>>>> --------
>        >>>>>>
>        >>>>>> type Status report
>        >>>>>>
>        >>>>>> message /myproject/
>        >>>>>>
>        >>>>>> description The requested resource (/myproject/) is not 
> available.
>        >>>>>>
>        >>>>>>
>        >>>>>>
> -----------------------------------------------------------------
>        >>>>>> --
>        >>>>>> -
>        >>>>>> -
>        >>>>>> -
>        >>>>>> --
>        >>>>>> --------
>        >>>>>>
>        >>>>>> Apache Tomcat/5.5.9
>        >>>>>>
>        >>>>>>
>        >>>>>>
>        >>>>>>
> -----------------------------------------------------------------
>        >>>>>> --
>        >>>>>> -
>        >>>>>> - To unsubscribe, e-mail:
> [EMAIL PROTECTED]
>        >>>>>> For additional commands, e-mail:
> [EMAIL PROTECTED]
>        >>>>>>
>        >>>>>>
>        >>>>>
>        >>>>>
> ------------------------------------------------------------------
>        >>>>> --
>        >>>>> - To unsubscribe, e-mail:
> [EMAIL PROTECTED]
>        >>>>> For additional commands, e-mail:
> [EMAIL PROTECTED]
>        >>>>>
>        >>>>>
>        >>>>>
> ------------------------------------------------------------------
>        >>>>> --
>        >>>>> - To unsubscribe, e-mail:
> [EMAIL PROTECTED]
>        >>>>> For additional commands, e-mail:
> [EMAIL PROTECTED]
>        >>>>>
>        >>>>>
>        >>>>
>        >>>>
> -------------------------------------------------------------------
>        >>>> -- To unsubscribe, e-mail:
> [EMAIL PROTECTED]
>        >>>> For additional commands, e-mail:
> [EMAIL PROTECTED]
>        >>>>
>        >>>>
>        >>>>
> -------------------------------------------------------------------
>        >>>> -- To unsubscribe, e-mail:
> [EMAIL PROTECTED]
>        >>>> For additional commands, e-mail:
> [EMAIL PROTECTED]
>        >>>>
>        >>>>
>        >>>
>        >>>
> --------------------------------------------------------------------
>        >>> - To unsubscribe, e-mail:
> [EMAIL PROTECTED]
>        >>> For additional commands, e-mail:
> [EMAIL PROTECTED]
>        >>>
>        >>>
>        >>>
> --------------------------------------------------------------------
>        >>> - To unsubscribe, e-mail:
> [EMAIL PROTECTED]
>        >>> For additional commands, e-mail:
> [EMAIL PROTECTED]
>        >>>
>        >>>
>        >>
>        >>
> ---------------------------------------------------------------------
>        >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>        >> For additional commands, e-mail:
[EMAIL PROTECTED]
>        >>
>        >>
>        >>
> ---------------------------------------------------------------------
>        >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>        >> For additional commands, e-mail:
[EMAIL PROTECTED]
>        >>
>        >>
>        >
>        >
> ---------------------------------------------------------------------
>        > To unsubscribe, e-mail: [EMAIL PROTECTED]
>        > For additional commands, e-mail: [EMAIL PROTECTED]
>        >
>        >
>
>
> ---------------------------------------------------------------------
>        To unsubscribe, e-mail: [EMAIL PROTECTED]
>        For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to