tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From support <supp...@pyramidx.com>
Subject impartial pages
Date Fri, 25 Oct 2002 05:15:55 GMT

I am running Redhat 7.3, jakarta tomcat 4.1.12 and Apache/1.3.23 with 
mod_jk2. I am using SSL and a JNDI datasource.  On startup I get the 
following error in Apache "(error) [jk_logger_file.c (171)]: Can't open 
log file ${serverRoot}/logs/mod_jk.log" but then I don't get any other 
errors in either Apache or exceptions in tomcat.  I'd like to solve that 
error but the real problem is that after a day or two of running without 
problems all of a sudden Apache serves up impartial pages with images 
displayed in odd formats, images displayed over the entire page or 
images that are missing or sometimes a blank page with a button image or 
some such.  I have noted this in different browsers running on different 
clients.  The webapp does not have any static pages so everything is a 
jsp and the images are all in a subdirectory, i.e. 
webapps/artful/Images.  Problem is I can't find any clue in any of the 
logs.  I have listed server.xml, jk2.propoerties and workers2.properties 
below.



/* server.xml */
<Server port="8005" shutdown="SHUTDOWN" debug="9">

   <Service name="Tomcat-Apache">


     <!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8019 -->

         <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
                port="8019" minProcessors="5" maxProcessors="75"
                enableLookups="false" redirectPort="443"
                acceptCount="10" debug="9" connectionTimeout="20000"
                useURIValidationHack="false"
 
protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>


         <!-- Define an AJP 1.3 Connector on port 8019 -->
         <Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
                port="8019" minProcessors="5" maxProcessors="75"
                acceptCount="10" debug="9"/>


      <!-- Global logger unless overridden at lower levels -->

         <Logger className="org.apache.catalina.logger.FileLogger"
               prefix="catalina_log." suffix=".txt"
               timestamp="true"/>


     <!-- Define the top level container in our container hierarchy -->
     <Engine name="Apache" defaultHost="localhost" debug="9">


       <!-- Global logger unless overridden at lower levels -->

       <Logger className="org.apache.catalina.logger.FileLogger"
               prefix="catalina_log." suffix=".txt"
               timestamp="true"/>


       <!-- Define the default virtual host -->
       <Host name="localhost" debug="9" appBase="webapps"
        unpackWARs="true" autoDeploy="true">

         <Logger className="org.apache.catalina.logger.FileLogger"
                  directory="logs"  prefix="localhost_log." suffix=".txt"
                 timestamp="true"/>


         <Context path="" docBase="artful"
                 debug="9" reloadable="true" crossContext="true">

         <Logger className="org.apache.catalina.logger.FileLogger"
              prefix="artful_log." suffix=".txt"
              timestamp="true"/>

         <Resource name="jdbc/MySQLJdbc"
                auth="Container"
                type="javax.sql.DataSource"/>

         <ResourceParams name="jdbc/MySQLJdbc">

         <parameter>
         <name>factory</name>
         <value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
         </parameter>

         <parameter>
         <name>maxActive</name>
         <value>20</value>
         </parameter>

         <parameter>
         <name>maxIdle</name>
         <value>30</value>
         </parameter>

         <parameter>
         <name>maxWait</name>
         <value>10000</value>
         </parameter>

         <parameter>
         <name>username</name>
         <value>juser</value>
         </parameter>

         <parameter>
         <name>password</name>
         <value>jpass</value>
         </parameter>

         <parameter>
         <name>driverClassName</name>
         <value>com.mysql.jdbc.Driver</value>
         </parameter>

         <parameter>
         <name>url</name>
 
<value>jdbc:mysql://localhost:3306/artful?autoReconnect=true</value>
         </parameter>

         </ResourceParams>

         </Context>

       </Host>
     </Engine>
   </Service>
</Server>


/* workers2.properties */

[shm]
file=${serverRoot}/logs/shm.file
size=1048576

# Example socket channel, override port and host.
[channel.socket:localhost:8019]
port=8019
host=127.0.0.1

# define the worker
[ajp13:localhost:8019]
channel=channel.socket:localhost:8019

# Uri mapping
[uri:/*]
worker=ajp13:localhost:8019

/* jk2.properties */

## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED
## WHEN YOU EDIT THE FILE.

## COMMENTS WILL BE _LOST_

## DOCUMENTATION OF THE FORMAT IN JkMain javadoc.

# Override the default port for the socketChannel
# channelSocket.port=8009
# Default:
# channelUnix.file=${jkHome}/work/jk2.socket
# Just to check if the the config  is working
# shm.file=${jkHome}/work/jk2.shm

# In order to enable jni use any channelJni directive
# channelJni.disabled = 0
# And one of the following directives:

# apr.jniModeSo=/opt/apache2/modules/mod_jk2.so

# If set to inprocess the mod_jk2 will Register natives itself
# This will enable the starting of the Tomcat from mod_jk2
# apr.jniModeSo=inprocess

serverRoot=/etc/httpd


/* jk2.properties.save */

#AUTOMATICALLY GENERATED
#Fri Oct 25 00:24:44 EDT 2002
secure=false
soTimeout=20000
port=8019
jkHome=/usr/local/jakarta-tomcat-4.1.12
maxThreads=75
backlog=10
serverRoot=/etc/httpd
timeout=20000
tcpNoDelay=true



--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message