tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel <dant...@yorku.ca>
Subject Re: tomcat 5.0.16 log4j wierd behaviour
Date Thu, 04 Dec 2003 22:09:23 GMT

Oops, it would help if I included the stack trace :)  See below...

On Thu, 4 Dec 2003, Daniel wrote:

>
> Hi everyone,
>
> I'm trying out the new tomcat 5.0.16 with a simple turbine 2.3 webapp that
> uses log4j.
>
> When I deploy the webapp into /webapps/ then start tomcat, I get the
> error below--not when it loads my webapp--but when it loads the
> tomcat-docs webapp...??  So I copy the commons-logging.jar and
> log4j.jar into /commons/lib/ dir and the problem goes away, but is that
> how things should be done?  But I really want to keep my webapps as
> self-contained as possible...  Any pointers?
>
> Thanks.
> Regards,
> Daniel

...all fine up to about this point...(notice Turbine app deployed fine,
and now tomcat is trying to deploy /tomcat-docs)...
<snip>
Dec 4, 2003 3:50:50 PM org.apache.turbine.Turbine init
INFO: Turbine: init() Ready to Rumble!
Dec 4, 2003 3:50:50 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /tomcat-docs from URL
file:C:\J
ava\Software\jakarta-tomcat-5.0.16\webapps\tomcat-docs
Dec 4, 2003 3:50:50 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Error installing
org.apache.commons.logging.LogConfigurationException:
java.lang.ClassNotFoundExc
eption: org.apache.commons.logging.impl.Log4jFactory
        at
org.apache.commons.logging.LogFactory$2.run(LogFactory.java:609)
        at java.security.AccessController.doPrivileged(Native Method)
        at
org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:561)

        at
org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:298)

        at
org.apache.commons.logging.LogFactory.getLog(LogFactory.java:395)
        at
org.apache.catalina.session.ManagerBase.<init>(ManagerBase.java:107)
        at
org.apache.catalina.session.StandardManager.<init>(StandardManager.ja
va:111)
        at
org.apache.catalina.startup.ContextConfig.managerConfig(ContextConfig
.java:350)
        at
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:65
5)
        at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi
g.java:254)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:166)
        at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4
212)
        at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:866)
        at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:85
0)
        at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)

        at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDep
loyer.java:316)
        at
org.apache.catalina.core.StandardHost.install(StandardHost.java:859)
        at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j
ava:723)
        at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:473
)
        at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1002)
        at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:393)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:166)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)

        at
org.apache.catalina.core.StandardHost.start(StandardHost.java:816)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125)

        at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:518
)
        at
org.apache.catalina.core.StandardService.start(StandardService.java:5
19)
        at
org.apache.catalina.core.StandardServer.start(StandardServer.java:234
3)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)
Caused by: java.lang.ClassNotFoundException:
org.apache.commons.logging.impl.Log
4jFactory
        at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:141)
        at
org.apache.commons.logging.LogFactory$2.run(LogFactory.java:607)
        ... 34 more
Dec 4, 2003 3:50:50 PM org.apache.catalina.startup.HostConfig
deployDirectories
SEVERE: Error deploying web application directory tomcat-docs
java.io.IOException: org.apache.commons.logging.LogConfigurationException:
java.
lang.ClassNotFoundException: org.apache.commons.logging.impl.Log4jFactory
        at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDep
loyer.java:322)
        at
org.apache.catalina.core.StandardHost.install(StandardHost.java:859)
        at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j
ava:723)
        at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:473
)
        at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1002)
        at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:393)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:166)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)

        at
org.apache.catalina.core.StandardHost.start(StandardHost.java:816)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125)

        at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:518
)
        at
org.apache.catalina.core.StandardService.start(StandardService.java:5
19)
        at
org.apache.catalina.core.StandardServer.start(StandardServer.java:234
3)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)
Dec 4, 2003 3:50:50 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 8080
Dec 4, 2003 3:50:51 PM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Dec 4, 2003 3:50:51 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/31
config=C:\Java\Software\jakarta-tomcat-5.0.16\c
onf\jk2.properties
Dec 4, 2003 3:50:51 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 6437 ms

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message