twarne / xebia-france

Automatically exported from code.google.com/p/xebia-france
0 stars 0 forks source link

Tomcat 5.5 startup failure after configuring RemoteIpValve / ClassNotFoundException: org.apache.catalina.valves.ValveBase #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

I'm having some problems using RemoteIpValve for Tomcat 5.5. Tomcat fails
to start after having set up RemoteIpValve.

1. Copy xebia-tomcat-extras-tc55-1.0.0.jar to lib directory
($TOMCAT_HOME/common/lib in my case, a pristine install)

2. Include Valve configuration as shown in basic example in server.xml
inside Host container.

 <Valve className="org.apache.catalina.connector.RemoteIpValve" />
   <Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs" prefix="localhost_access_log."
      suffix=".txt" pattern="common" resolveHosts="false" />

All other valves are disabled.

3. Start tomcat with $TOMCAT_HOME/startup.sh. Tomcat fails to start.

I'm using official binaries for tomcat 5.5.28 on Red Hat Linux 5 and Sun
JDK 1.6 Update 16.

Three applications were deployed without problems prior to the installation
of xebia-tomcat-extras-tc55-1.0.0.jar.

If I comment out the line
<Valve className="org.apache.catalina.connector.RemoteIpValve" />
tomcat can start and localhost_access_log file is created with access
logging working as expected.

catalina.out output is attached.

Thanks!

Original issue reported on code.google.com by abel.mar...@gmail.com on 27 Jan 2010 at 3:45

Attachments:

GoogleCodeExporter commented 9 years ago
I add the error message to ease search for other 'victims' :-)

Original comment by cyrille....@gmail.com on 27 Jan 2010 at 3:57

GoogleCodeExporter commented 9 years ago
Hi,

I solved my problem copying the jar inside $TOMCAT/server/lib instead of
$TOMCAT/common/lib.

Sorry for the inconvenience.

Regards.

Original comment by abel.mar...@gmail.com on 27 Jan 2010 at 4:01

GoogleCodeExporter commented 9 years ago
I was verifying this scenario :-) Thanks for the feedback. I'll update the wiki 
page.

Original comment by cyrille....@gmail.com on 27 Jan 2010 at 4:06

GoogleCodeExporter commented 9 years ago

Original comment by cyrille....@gmail.com on 6 Nov 2010 at 2:11