I'm not a member of Maverick team, and I'm not using eclipse. But I've
used Maverick and Tomcat for a long time. 

AFAICS, Tomcat (at least 4.1.18) has its own commons-beanutils.jar in
its server/lib. It could conflict with the one you added to Tomcat
classpath.

So, I think, you should remove commons-beanutils.jar from Tomcat
classpath and put it into WEB-INF/lib dir of your webapp.


AFAIK, this _warning_ message 
---------
log4j:WARN No appenders could be found for logger
(org.apache.commons.digester.Digester).
log4j:WARN Please initialize the log4j system properly.
---------
doesn't have anything in common with NPE. Tomcat should start with it.

HTH,
yurazlin.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Todd O'Bryan
Sent: Monday, February 09, 2004 12:24 PM
To: [EMAIL PROTECTED]
Subject: Re: [Mav-user] Eclipse, log4j, etc.

Thanks for the help. That didn't fix it. The weekend's over and I'm 
back at work, so it will probably be
Friday before I have a chance to look at everything again.

Todd

On Feb 8, 2004, at 1:48 PM, Ed Thompson wrote:

> I have the following in my web.xml:
>
>   <servlet>
>     <servlet-name>log4j-init</servlet-name>
>     <servlet-class>org.ed4becky.mComics.Log4jInit</servlet-class>
>     <init-param>
>       <param-name>log4j-init-file</param-name>
>       <param-value>WEB-INF/log4j.properties</param-value>
>     </init-param>
>     <load-on-startup>1</load-on-startup>
>   </servlet>
>
> org.ed4becky.mComics.Log4jInit looks like this:
>
> /*
>  * Created on Sep 19, 2003
>  *
>  * To change the template for this generated file go to
>  * Window - Preferences - Java - Code Generation - Code and Comments
>  */
> package org.ed4becky.mComics;
>
>
> import org.apache.log4j.PropertyConfigurator;
> import javax.servlet.http.HttpServlet;
> import javax.servlet.http.HttpServletRequest;
> import javax.servlet.http.HttpServletResponse;
>
>
> public class Log4jInit extends HttpServlet {
>
>   public
>   void init() {
>       System.out.println("entering Log4jInit.init()");
>     String prefix =  getServletContext().getRealPath("/");
>     String file = getInitParameter("log4j-init-file");
>     // if the log4j-init-file is not set, then no point in trying
>     if(file != null) {
>         System.out.println("processing profile for Log4jInit.init("
>
+prefix+file+")");
>       PropertyConfigurator.configure(prefix+file);
>     }
>       System.out.println("leaving Log4jInit.init()");
>   }
>
>   public
>   void doGet(HttpServletRequest req, HttpServletResponse res) {
>   }
> }
>
>
> log4j.properties is in the WEB-INF directoru of my app
>
>
> -------------------------------------------------------
> 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]



-------------------------------------------------------
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]




-------------------------------------------------------
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