Returned 5 Results for "tomcat" Ordered By Relevance
under debian enter the following command to make sure your compiler environment is working
set up your environment with
apt-get install libtool autoconf gcc apache2-prefork-dev
great.. now we are ready to compile
copy the tomcat source native directory over to the server and from within native/ run the following
make sure the support dir is sitting at the same level
./configure --with-apxs=/usr/bin/apxs2
make
make install
then after all that
Libraries have been installed in:
/usr/lib/apache2/modules
Or download a precomiled binary from http://mirror.public-internet.co.uk/ftp/apache/tomcat/tomcat-connectors/jk/binaries/linux/jk-1.2.26/i386/
excluding sub-directories from mod_jk and allowing apache to execute them natively can be done with with SetEnvIf no-jk. simply add the following code to either the httpd.conf or the mod-jk.conf
DocumentRoot /var/www/html/
SetEnvIf Request_URI "/munin/*" no-jk
JkMount /* ajp13
In this case we are running munin with jboss/tomcat and want to run the perl code in the apache httpd environment at the same time forwarding all other requests to the root /* to the jboss/tomcat server
When tomcat generates something similar to the following log output chances are its missing the Windows C dll MSVCR71.dll - Tomcat needs this to initialise java when the service starts. Put a copy in your c:\windows\system32 directory or wherever you want as long as its in your system path
[2007-09-13 04:12:54] [info] Running Service...
[2007-09-13 04:12:54] [info] Starting service...
[2007-09-13 04:12:54] [173 javajni.c] [error] The specified module could not be found.
[2007-09-13 04:12:54] [924 prunsrv.c] [error] Failed creating java C:\Program Files\Java\jre1.6.0_02\bin\client\jvm.dll
[2007-09-13 04:12:54] [1179 prunsrv.c] [error] ServiceStart returned 1
[2007-09-13 04:12:54] [info] Run service finished.
[2007-09-13 04:12:54] [info] Procrun finished.
Following on from the previous article Java should now be located in
/usr/lib/j2re1.6-sun/bin
You will have to set up
JAVA_HOME and JRE_HOME
these can be set in
/etc/environment
add the lines
JAVA_HOME = "/usr/lib/j2re1.6-sun"
export JAVA_HOME
CATALINA_HOME= "/opt/Tomcat5.5/"
export CATALINA_HOME
or from the command line
export JAVA_HOME=/usr/lib/j2re1.6-sun/
etc.
first we have to build mod_jk for our environment
refer to my other article on building mod_jk
put mod_jk.so into /etc/apache2/mods-available or wherever else you want and then refer to it in the apache conf stick this in your httpd.conf # Load mod_jk module # Specify the filename of the mod_jk lib LoadModule jk_module /usr/lib/apache2/modules/mod_jk.so then restart apache ./ /etc/init.d/apache2 restart