Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Tomcat 4

Discussion in 'General Discussion' started by andethen, Aug 23, 2002.

  1. andethen

    andethen Member

    Joined:
    Feb 20, 2002
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    301
    Okay I had Tomcat 3 installed just fine. I'm not going to lie, when I tried to do that I forgot to add the proper lines to the conf file and it wouldn't start. For a variety of reasons I decided to upgrade to Tomcat 4, so I grabbet the file from layer1 and ran install.sh.

    After the install I changed the include line in httpd.conf and tried to restart. Error:
    fopen: No such file or directory
    httpd: could not open document config file /usr/local/jakarta/build/tomcat/conf/mod_jk.conf
    ./apachectl start: httpd could not be started

    I ran install.sh and noticed a ton of errors. Here is the output in its entirety for thoroughness:
    ----------------
    ./install.sh
    Preparing... ########################################### [100%]
    file /usr/lib/libstdc++-2-libc6.1-1-2.9.0.so from install of compat-libstdc++-6.2-2.9.0.14 conflicts with file from package egcs-c++-1.1.2-30
    file /usr/lib/libstdc++-2-libc6.1-1-2.9.0.so from install of compat-libstdc++-6.2-2.9.0.14 conflicts with file from package libstdc++-2.9.0-30
    Preparing... ########################################### [100%]
    package j2sdk-1.4.0-fcs is already installed
    ... Bootstrapping Ant Distribution
    ... Compiling Ant Classes
    Invalid initial heap size: -Xms8m
    Could not create the Java virtual machine.
    ... Copying Required Files
    cp: cannot create regular file `classes/org/apache/tools/ant/taskdefs': No such file or directory
    cp: cannot create regular file `classes/org/apache/tools/ant/types': No such file or directory
    ... Building Ant Distribution
    Exception in thread &main& java.lang.NoClassDefFoundError: org/apache/tools/ant/Main
    ... Cleaning Up Build Directories
    ... Done Bootstrapping Ant Distribution
    Bootstrap FAILED
    ./install.sh: ant: command not found
    cp: cannot create regular file `/usr/local/jakarta/jakarta-tomcat-4.0.3-src/build/conf/server.xml.in': No such file or directory
    mkdir: cannot create directory `/usr/local/jakarta/jakarta-tomcat-4.0.3-src/build/conf/jk': No such file or directory
    cp: cannot create regular file `/usr/local/jakarta/jakarta-tomcat-4.0.3-src/build/conf/jk': No such file or directory
    make: *** No rule to make target `clean'. Stop.
    /usr/local/apache/bin/apxs -I ../common/ -DUSE_APACHE_MD5 -I /usr/local/jdk/include -I /usr/local/jdk/include/linux -c -o mod_jk.so mod_jk.c ../common//jk_ajp12_worker.c ../common//jk_connect.c ../common//jk_msg_buff.c ../common//jk_util.c ../common//jk_ajp13.c ../common//jk_jni_worker.c ../common//jk_pool.c ../common//jk_worker.c ../common//jk_ajp13_worker.c ../common//jk_lb_worker.c ../common//jk_sockbuf.c ../common//jk_map.c ../common//jk_uri_worker_map.c ../common//jk_ajp14.c ../common//jk_ajp14_worker.c ../common//jk_md5.c ../common//jk_context.c ../common//jk_ajp_common.c
    gcc -DLINUX=22 -I/usr/include/db1 -DMOD_SSL=208109 -DUSE_HSREGEX -DEAPI -fpic -DSHARED_MODULE -I/usr/local/apache/include -I../common/ -I/usr/local/jdk/include -I/usr/local/jdk/include/linux -DUSE_APACHE_MD5 -c mod_jk.c
    gcc -DLINUX=22 -I/usr/include/db1 -DMOD_SSL=208109 -DUSE_HSREGEX -DEAPI -fpic -DSHARED_MODULE -I/usr/local/apache/include -I../common/ -I/usr/local/jdk/include -I/usr/local/jdk/include/linux -DUSE_APACHE_MD5 -c ../common//jk_ajp12_worker.c
    gcc -DLINUX=22 -I/usr/include/db1 -DMOD_SSL=208109 -DUSE_HSREGEX -DEAPI -fpic -DSHARED_MODULE -I/usr/local/apache/include -I../common/ -I/usr/local/jdk/include -I/usr/local/jdk/include/linux -DUSE_APACHE_MD5 -c ../common//jk_connect.c
    gcc -DLINUX=22 -I/usr/include/db1 -DMOD_SSL=208109 -DUSE_HSREGEX -DEAPI -fpic -DSHARED_MODULE -I/usr/local/apache/include -I../common/ -I/usr/local/jdk/include -I/usr/local/jdk/include/linux -DUSE_APACHE_MD5 -c ../common//jk_msg_buff.c
    gcc -DLINUX=22 -I/usr/include/db1 -DMOD_SSL=208109 -DUSE_HSREGEX -DEAPI -fpic -DSHARED_MODULE -I/usr/local/apache/include -I../common/ -I/usr/local/jdk/include -I/usr/local/jdk/include/linux -DUSE_APACHE_MD5 -c ../common//jk_util.c
    gcc -DLINUX=22 -I/usr/include/db1 -DMOD_SSL=208109 -DUSE_HSREGEX -DEAPI -fpic -DSHARED_MODULE -I/usr/local/apache/include -I../common/ -I/usr/local/jdk/include -I/usr/local/jdk/include/linux -DUSE_APACHE_MD5 -c ../common//jk_ajp13.c
    gcc -DLINUX=22 -I/usr/include/db1 -DMOD_SSL=208109 -DUSE_HSREGEX -DEAPI -fpic -DSHARED_MODULE -I/usr/local/apache/include -I../common/ -I/usr/local/jdk/include -I/usr/local/jdk/include/linux -DUSE_APACHE_MD5 -c ../common//jk_jni_worker.c
    gcc -DLINUX=22 -I/usr/include/db1 -DMOD_SSL=208109 -DUSE_HSREGEX -DEAPI -fpic -DSHARED_MODULE -I/usr/local/apache/include -I../common/ -I/usr/local/jdk/include -I/usr/local/jdk/include/linux -DUSE_APACHE_MD5 -c ../common//jk_pool.c
    gcc -DLINUX=22 -I/usr/include/db1 -DMOD_SSL=208109 -DUSE_HSREGEX -DEAPI -fpic -DSHARED_MODULE -I/usr/local/apache/include -I../common/ -I/usr/local/jdk/include -I/usr/local/jdk/include/linux -DUSE_APACHE_MD5 -c ../common//jk_worker.c
    gcc -DLINUX=22 -I/usr/include/db1 -DMOD_SSL=208109 -DUSE_HSREGEX -DEAPI -fpic -DSHARED_MODULE -I/usr/local/apache/include -I../common/ -I/usr/local/jdk/include -I/usr/local/jdk/include/linux -DUSE_APACHE_MD5 -c ../common//jk_ajp13_worker.c
    gcc -DLINUX=22 -I/usr/include/db1 -DMOD_SSL=208109 -DUSE_HSREGEX -DEAPI -fpic -DSHARED_MODULE -I/usr/local/apache/include -I../common/ -I/usr/local/jdk/include -I/usr/local/jdk/include/linux -DUSE_APACHE_MD5 -c ../common//jk_lb_worker.c
    gcc -DLINUX=22 -I/usr/include/db1 -DMOD_SSL=208109 -DUSE_HSREGEX -DEAPI -fpic -DSHARED_MODULE -I/usr/local/apache/include -I../common/ -I/usr/local/jdk/include -I/usr/local/jdk/include/linux -DUSE_APACHE_MD5 -c ../common//jk_sockbuf.c
    gcc -DLINUX=22 -I/usr/include/db1 -DMOD_SSL=208109 -DUSE_HSREGEX -DEAPI -fpic -DSHARED_MODULE -I/usr/local/apache/include -I../common/ -I/usr/local/jdk/include -I/usr/local/jdk/include/linux -DUSE_APACHE_MD5 -c ../common//jk_map.c
    gcc -DLINUX=22 -I/usr/include/db1 -DMOD_SSL=208109 -DUSE_HSREGEX -DEAPI -fpic -DSHARED_MODULE -I/usr/local/apache/include -I../common/ -I/usr/local/jdk/include -I/usr/local/jdk/include/linux -DUSE_APACHE_MD5 -c ../common//jk_uri_worker_map.c
    gcc -DLINUX=22 -I/usr/include/db1 -DMOD_SSL=208109 -DUSE_HSREGEX -DEAPI -fpic -DSHARED_MODULE -I/usr/local/apache/include -I../common/ -I/usr/local/jdk/include -I/usr/local/jdk/include/linux -DUSE_APACHE_MD5 -c ../common//jk_ajp14.c
    gcc -DLINUX=22 -I/usr/include/db1 -DMOD_SSL=208109 -DUSE_HSREGEX -DEAPI -fpic -DSHARED_MODULE -I/usr/local/apache/include -I../common/ -I/usr/local/jdk/include -I/usr/local/jdk/include/linux -DUSE_APACHE_MD5 -c ../common//jk_ajp14_worker.c
    gcc -DLINUX=22 -I/usr/include/db1 -DMOD_SSL=208109 -DUSE_HSREGEX -DEAPI -fpic -DSHARED_MODULE -I/usr/local/apache/include -I../common/ -I/usr/local/jdk/include -I/usr/local/jdk/include/linux -DUSE_APACHE_MD5 -c ../common//jk_md5.c
    gcc -DLINUX=22 -I/usr/include/db1 -DMOD_SSL=208109 -DUSE_HSREGEX -DEAPI -fpic -DSHARED_MODULE -I/usr/local/apache/include -I../common/ -I/usr/local/jdk/include -I/usr/local/jdk/include/linux -DUSE_APACHE_MD5 -c ../common//jk_context.c
    gcc -DLINUX=22 -I/usr/include/db1 -DMOD_SSL=208109 -DUSE_HSREGEX -DEAPI -fpic -DSHARED_MODULE -I/usr/local/apache/include -I../common/ -I/usr/local/jdk/include -I/usr/local/jdk/include/linux -DUSE_APACHE_MD5 -c ../common//jk_ajp_common.c
    gcc -shared -o mod_jk.so jk_ajp_common.o jk_context.o jk_md5.o jk_ajp14_worker.o jk_ajp14.o jk_uri_worker_map.o jk_map.o jk_sockbuf.o jk_lb_worker.o jk_ajp13_worker.o jk_worker.o jk_pool.o jk_jni_worker.o jk_ajp13.o jk_util.o jk_msg_buff.o jk_connect.o jk_ajp12_worker.o mod_jk.o
    [activating module `jk' in /usr/local/apache/conf/httpd.conf]
    cp mod_jk.so /usr/local/apache/libexec/mod_jk.so
    chmod 755 /usr/local/apache/libexec/mod_jk.so
    cp /usr/local/apache/conf/httpd.conf /usr/local/apache/conf/httpd.conf.bak
    cp /usr/local/apache/conf/httpd.conf.new /usr/local/apache/conf/httpd.conf
    rm /usr/local/apache/conf/httpd.conf.new
    Scanning httpd.conf...X..X..X..X..X..X..X..X..X..X..X..X..X..X..X..X..X..X..X..X..X..X..X..X..X..X..X..X..X..X..X..X..X..X..X..X..X..X..X..X..X..X..X..X..X..X..X..X..X..X..X..X..X..X..X..X..X..X..X..X.X..X..X..X..X..X..X..X...X..X
    /usr/sbin/stoptomcat: /usr/local/jakarta/jakarta-tomcat-4.0.3-src/build: No such file or directory
    /usr/sbin/stoptomcat: ./bin/shutdown.sh: No such file or directory
    /usr/sbin/starttomcat: /usr/local/jakarta/jakarta-tomcat-4.0.3-src/build: No such file or directory
    /usr/sbin/starttomcat: ./bin/startup.sh: No such file or directory
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    Install Complete.
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    You must add following lines to httpd.conf under the last AddModule line

    Include &/usr/local/jakarta/jakarta-tomcat-4.0.3-src/build/conf/auto/mod_jk.conf&

    You need to also add index.jsp to the DirIndex

    You should also add the below line after AddType text/html .htm*

    AddType text/html .jsp
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    --------------------

    Could someone tell me what could be going wrong here and how I can fix it? Thanks in advance.
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice