Where did you put log4j.jar ?  In common/lib, shared/lib or server/lib ? 
I believe it should be in shared/lib.

Hope that helps,
Fran�ois

On Sat, 24 Jan 2004 09:31:47 -0700, "Eric Hernandez"
<[EMAIL PROTECTED]> said:
> Hello,
> 
> I bought a book called "Mastering Apache Velocity" by Gradecki and Cole.
> 
> It involved downloading/extracting Maverick. The book stated that I
> should place the friendbook-jsp.war file into Tomcat's webapps directory
> plus moving log4j.jar and then startup Tomcat. Unfortunately, I get the
> following error in the Tomcat's log during startup... please help...
> Thank you in advance for anyone's help.
> 
> 2004-01-24 07:58:26 StandardContext[/friendbook-jsp]: Servlet
> /friendbook-jsp threw load() exception
> javax.servlet.ServletException: Error instantiating servlet class
> org.infohazard.maverick.Dispatcher
>  at
>  org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:912)
>  at
>  org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
>  at
>  org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3422)
>  at
>  org.apache.catalina.core.StandardContext.start(StandardContext.java:3623)
>  at
>  org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)
>  at
>  org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
>  at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
>  at
>  org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:307)
>  at org.apache.catalina.core.StandardHost.install(StandardHost.java:788)
>  at
>  org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:492)
>  at
>  org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:400)
>  at org.apache.catalina.startup.HostConfig.run(HostConfig.java:851)
>  at java.lang.Thread.run(Thread.java:536)
> ----- Root Cause -----
> java.lang.NoClassDefFoundError: org/apache/log4j/Category
>  at org.infohazard.maverick.Dispatcher.<clinit>(Dispatcher.java:141)
>  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>  at
>  
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>  at
>  
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>  at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
>  at java.lang.Class.newInstance0(Class.java:306)
>  at java.lang.Class.newInstance(Class.java:259)
>  at
>  org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:903)
>  at
>  org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
>  at
>  org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3422)
>  at
>  org.apache.catalina.core.StandardContext.start(StandardContext.java:3623)
>  at
>  org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)
>  at
>  org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
>  at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
>  at
>  org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:307)
>  at org.apache.catalina.core.StandardHost.install(StandardHost.java:788)
>  at
>  org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:492)
>  at
>  org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:400)
>  at org.apache.catalina.startup.HostConfig.run(HostConfig.java:851)
>  at java.lang.Thread.run(Thread.java:536)
> 
> 2004-01-24 07:58:26 StandardWrapper[/friendbook-jsp:invoker]: Loading
> container servlet invoker
> 


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
[INVALID FOOTER]

Reply via email to