There are many issues which may arise during the integration of Apache Tomcat or IIS Tomcat integration. Some of them are mentioned in the following section and we will find out the reason for these issues and their solutions These issues are very common with the integration of Tomcat.
Scenario 1: The httpd server is not able to compile, and this results in the exit from the compilation mode.
Error:
configure: error: in `/opt/httpd-2.2.19/srclib/apr':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
configure failed for srclib/apr
Reason: C compilers are missing, such as the GCC and GCC+.
Solution: Download the GCC compiler from the Internet and compile it, as per the instructions given there:
Scenario 2: Apache is not able to compile the make
command, displaying an error and exiting the process.
Error:
make
is not able to compile the code.
Reason:
make
is not able to execute its functions.
Solution: Run the following command:
make clean
#Then
make
make install
Scenario 3: The Apache HTTP server is unable to connect to Tomcat 7.
Error: Unable to connect through AJP.
Reason: Port might get blocked or the AJP configuration is not correct.
Solution: Check the logs for more errors using the following command:
[root@localhost logs]# cat error_log
[Mon Jul 25 16:11:00 2011] [notice] Apache/2.2.19 (Unix) DAV/2 configured -- resuming normal operations
[Mon Jul 25 16:52:16 2011] [notice] caught SIGTERM, shutting down
[Mon Jul 25 16:52:23 2011] [warn] No JkShmFile defined in httpd.conf. Using default /opt/apache-2.2.19/logs/jk-runtime-status
[Mon Jul 25 16:52:23 2011] [warn] No JkShmFile defined in httpd.conf. Using default /opt/apache-2.2.19/logs/jk-runtime-status
[Mon Jul 25 16:52:23 2011] [notice] Apache/2.2.19 (Unix) DAV/2 mod_jk/1.2.32 configured -- resuming normal operations
[root@localhost logs]# cat mod_jk.log
[Mon Jul 25 16:52:23.555 2011] [13355:3086857920] [warn] jk_map_validate_property::jk_map.c (411): The attribute 'worker.node1.cachesize' is deprecated - please check the documentation for the correct replacement.
[Mon Jul 25 16:52:23.555 2011] [13355:3086857920] [info] init_jk::mod_jk.c (3252): mod_jk/1.2.32 () initialized
[Mon Jul 25 16:52:23.564 2011] [13356:3086857920] [warn] jk_map_validate_property::jk_map.c (411): The attribute 'worker.node1.cachesize' is deprecated - please check the documentation for the correct replacement.
[Mon Jul 25 16:52:23.564 2011] [13356:3086857920] [info] init_jk::mod_jk.c (3252): mod_jk/1.2.32 () initialized
Then, run the configtest
command on the server to verify the configuration using the following command:
[root@root@localhost bin]# ./apachectl configtest
Syntax OK
3.145.143.239