Tomcat 4.0.3 Notes: Difference between revisions

From Federal Burro of Information
Jump to navigationJump to search
No edit summary
No edit summary
Line 56: Line 56:


<Context path="" docBase="bband" reloadable="true"></Context>
<Context path="" docBase="bband" reloadable="true"></Context>
<Context path="/bband/content" docBase="/home/rogersimedia/bband/content" reloadable="true"
<Context path="/bband/content" docBase="/home/rojersimedia/bband/content" reloadable="true"


trusted="true" ></Context>
trusted="true" ></Context>
<Context path="/sbband/feeds" docBase="/home/rogersimedia/bband/feeds" reloadable="true" trusted="true"
<Context path="/sbband/feeds" docBase="/home/rojersimedia/bband/feeds" reloadable="true" trusted="true"


></Context>
></Context>
Line 73: Line 73:
               acceptCount="10" debug="0"/>
               acceptCount="10" debug="0"/>
</pre>
</pre>
---
/etc/rc.d/init.d/tomcat4 start
lynx localhost:8180
cd /usr/include
ln -s /usr/local/apache/include apache
rpm --nodeps --rebuild tomcat-connectors-1.0-1.4.0.2.src.rpm
.. failed tried again... with:
rpm --nodeps -bc tomcat-connectors-1.0-1.4.0.2.src.rpm
and a little
rpm --nodeps -bb tomcat-connectors-1.0-1.4.0.2.src.rpm
got past mod_jk.so so...
cp /usr/local/apache/libexec/mod_jk.so /usr/local/apache/libexec/mod_jk.so.3.x
cp /usr/src/redhat/BUILD/jakarta-tomcat-connectors-4.0.2-01-src/jk/build/WEB-INF/jk/apache13/mod_jk.so \
  /usr/local/apache/libexec/mod_jk.so
then:
/usr/local/apache/bin/apachectl stop
/usr/local/apache/bin/apachectl start
lynx localhost...
I also noticed that both
/home/rojersimedia/bband/feeds
and
/home/rojersimedia/bband/content
Has neither any *.jsp files , nor any *.class files.
Why are there contexts for them?
Also you have this in your httpd.conf config:
for: ServerName www.broadband.rojers.com
        JkMount /*.jsp ajp13
        JkMount / ajp13
the second line loosely translates (as far as I can tell) in to: forward all requests to tomcat. and infact when I load http://66.46.147.26/bband/content/shared/images/pop_br.gif, nothing shows up in /var/log/httpd/access.log
and :
"[Wed May 08 00:16:57 2002]  [jk_uri_worker_map.c (464)]: Attempting to map URI '/bband/content/shared/images/pop_br.gif'"
shows up in "mod_jk.log".

Revision as of 03:47, 29 May 2023

installs:

rpm -i ant-1.4.1-4.noarch.rpm
rpm -i regexp-1.2-1.noarch.rpm
rpm -i servletapi4-4.0.3-1.noarch.rpm
rpm -i tomcat4-4.0.3-1.noarch.rpm
rpm -i tomcat4-webapps-4.0.3-1.noarch.rpm

got http://download.sourceforge.net/junit/junit3.7.zip

unzipped , dropped: "junit.jar" in /usr/share/java/

cd /usr/include/
ln -s /usr/local/apapche/include apache
cp /usr/local/apache/libexec/mod_jk.so /usr/local/apache/libexec/mod_jk.so.3.x

edit /usr/local/apache/conf/httpd.conf

added:

JkLogFile "/var/tomcat4/logs/mod_jk.log"

edit /var/tomcat4/conf/server.xml change:

<Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
               port="8109" minProcessors="5" maxProcessors="75"
               acceptCount="10" debug="0"/>

to:

<Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
               port="8009" minProcessors="5" maxProcessors="75"
               acceptCount="10" debug="0"/>
PATH=$PATH:/usr/java/jdk1.3.1_02/bin
CLASSPATH=$CLASSPATH:/usr/share/java

edit /etc/tomcat4/conf/tomcat4.conf changed:

JAVA_HOME="/opt/IBMJava2-13"

to:

JAVA_HOME="/usr/java/jdk1.3.1_02"

edited /var/tomcat4/conf/server.xml

added:

<Context path="" docBase="bband" reloadable="true"></Context> <Context path="/bband/content" docBase="/home/rojersimedia/bband/content" reloadable="true"

trusted="true" ></Context> <Context path="/sbband/feeds" docBase="/home/rojersimedia/bband/feeds" reloadable="true" trusted="true"

></Context>

changed: <Connector className="org.apache.ajp.tomcat4.Ajp13Connector"

              port="8109" minProcessors="5" maxProcessors="75"
              acceptCount="10" debug="0"/>

to:

<Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
               port="8009" minProcessors="5" maxProcessors="75"
               acceptCount="10" debug="0"/>

---

/etc/rc.d/init.d/tomcat4 start lynx localhost:8180

cd /usr/include ln -s /usr/local/apache/include apache

rpm --nodeps --rebuild tomcat-connectors-1.0-1.4.0.2.src.rpm

.. failed tried again... with:

rpm --nodeps -bc tomcat-connectors-1.0-1.4.0.2.src.rpm

and a little

rpm --nodeps -bb tomcat-connectors-1.0-1.4.0.2.src.rpm

got past mod_jk.so so...

cp /usr/local/apache/libexec/mod_jk.so /usr/local/apache/libexec/mod_jk.so.3.x
cp /usr/src/redhat/BUILD/jakarta-tomcat-connectors-4.0.2-01-src/jk/build/WEB-INF/jk/apache13/mod_jk.so \
 /usr/local/apache/libexec/mod_jk.so

then:

/usr/local/apache/bin/apachectl stop
/usr/local/apache/bin/apachectl start
lynx localhost...

I also noticed that both

/home/rojersimedia/bband/feeds

and

/home/rojersimedia/bband/content

Has neither any *.jsp files , nor any *.class files. Why are there contexts for them?

Also you have this in your httpd.conf config:

for: ServerName www.broadband.rojers.com

       JkMount /*.jsp ajp13
       JkMount / ajp13

the second line loosely translates (as far as I can tell) in to: forward all requests to tomcat. and infact when I load http://66.46.147.26/bband/content/shared/images/pop_br.gif, nothing shows up in /var/log/httpd/access.log and : "[Wed May 08 00:16:57 2002] [jk_uri_worker_map.c (464)]: Attempting to map URI '/bband/content/shared/images/pop_br.gif'" shows up in "mod_jk.log".