RE: log4j trouble getting 1.2.6 running

"Christian Cryder" <[email protected]> Tue, 3 Feb 2004 23:27:01 -0500
Newsgroups gmane.comp.java.enhydra.barracuda.general
Message-ID <[email protected]>
Ah shoot. I know what the problem is. The lib-cvs directory is missing from
binary zip! Arggg!!! I must have inadvertantly deleted them when purging the
cvs directories prior to creating the binaries. Same thing happened to
BarracudaDiscRack. Drat!

Ok, I have rebuilt the binaries and pushed them back up to the site. This
means that anyone who has downloaded them today needs to re-download them.
My sincere apologies for this...at least we caught it soon. :-(

Please try the new binary and let us know if that works any better.

Christian
----------------------------------------------
Christian Cryder
Internet Architect, ATMReports.com
Project Chair, BarracudaMVC - http://barracudamvc.org
----------------------------------------------
"Coffee? I could quit anytime, just not today"

  -----Original Message-----
  From: [email protected]
[mailto:[email protected]]On Behalf Of Stephen
  Sent: Tuesday, February 03, 2004 10:25 PM
  To: [email protected]
  Subject: [Barracuda] log4j trouble getting 1.2.6 running


  Hi All,

  I'm having trouble getting 1.2.6 running. I'm getting the following error
in the Tomcat log:

  <snip>
  2004-02-04 16:11:40 WebappLoader[/Barracuda]: Deploy JAR
/WEB-INF/lib/jtidy-r7-xmlc-2.2.4.jar to
/opt/sdwjava/jakarta-tomcat-4.1.24/webapps/Barracuda/WEB-INF/lib/jtidy-r7-xm
lc-2.2.4.jar
  2004-02-04 16:11:40 WebappLoader[/Barracuda]: Deploy JAR
/WEB-INF/lib/log4j-1.2.8.jar to
/opt/sdwjava/jakarta-tomcat-4.1.24/webapps/Barracuda/WEB-INF/lib/log4j-1.2.8
.jar
  2004-02-04 16:11:40 WebappLoader[/Barracuda]: Deploy JAR
/WEB-INF/lib/plankton.jar to
/opt/sdwjava/jakarta-tomcat-4.1.24/webapps/Barracuda/WEB-INF/lib/plankton.ja
r
  2004-02-04 16:11:41 WebappLoader[/Barracuda]: Deploy JAR
/WEB-INF/lib/xmlc-all-runtime-2.2.4.jar to
/opt/sdwjava/jakarta-tomcat-4.1.24/webapps/Barracuda/WEB-INF/lib/xmlc-all-ru
ntime-2.2.4.jar
  2004-02-04 16:11:41 StandardManager[/Barracuda]: Seeding random number
generator class java.security.SecureRandom
  2004-02-04 16:11:41 StandardManager[/Barracuda]: Seeding of random number
generator has been completed
  2004-02-04 16:11:47 StandardContext[/Barracuda]: Error configuring
application listener of class org.apache.log4j.servlet.InitContextListener
  java.lang.ClassNotFoundException:
org.apache.log4j.servlet.InitContextListener
          at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1443)
          at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1289)
          at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:
3236)
  </snip>


  Process
  Running on RedHat 9 with Sun version 1.4.2_02
  1. unzip Barracuda and cd to src directory
  2. Ran "ant war" and it failed as couldn't find log4j. I downloaded
log4j-1.2.8 and put it in the WEB-INF/lib-cvs folder where the build script
was looking for it.
  3. copy Barracuda.war to webapps folder of tomcat-4.1.24
  4. Start tomcat and get the error above.

  Summary
  I can see from the log snippet above that the log4j jar is loading.
  I had a look in the source of log4j and there doesn't seem to be a class
called org.apache.log4j.servlet.InitContextListener

  If someone could point me in the right direction that would be much
appreciated.

  Thanks

  Stephen