tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jane <ja...@sezampro.yu>
Subject Can't figure out the problem with Apache+js_mod and TomCat
Date Mon, 31 Oct 2005 22:41:43 GMT
Hi

I do have problems with my Apache-tomcat configuration, the system can't  
serve JSP still yet, only source code is showed when I tray to open any JSP 
file over my browser, take a look:

http://backup.backupdienst.com/Browser.jsp

I get the same when I shutdown tomcat (when apache is up only), so I think the 
request are still not proceeded from apache to tomcat or tomcat is not 
handling anything. Below is my server.xml for tomcat. When Tomcat is started 
as standalone server on 80 port he works fine, but when I start apache 
nothing is happen with the jsp files, only source code is shown :(
When I tray 
#netstat -na | grep 80 
to check ports which are listen. Ports for ajp12 and ajp13are are not shown to 
be listen, why? I get this only:
#netstat -na | grep 80
tcp        0      0 127.0.0.1:8014              0.0.0.0:*                   
LISTEN
tcp        0      0 85.12.17.31:80              0.0.0.0:*                   
LISTEN
tcp        0      0 85.12.17.30:80              0.0.0.0:*                   
LISTEN
tcp        0      0 85.12.17.29:80              0.0.0.0:*                   
LISTEN
tcp        0      0 85.12.17.29:8080            0.0.0.0:*                   
LISTEN

Is this correct? Or, should this two connectors (ajp) listen on 8007 and 8009 
too?
Is there anything wrong in server.xml file below?

When I tray:
http://85.12.17.29:8080
I get nothing too :(


<Server port="8014" shutdown="SHUTDOWN" debug="0">
  <Service name="Tomcat-Standalone">

<Connector className="org.apache.catalina.connector.http.HttpConnector"
               address="85.12.17.29" port="8080" minProcessors="50" 
maxProcessors="1000"
               enableLookups="false" redirectPort="8443" bufferSize="32768"
               allowChunking="false" acceptCount="200" debug="0" 
connectionTimeout="60000" />


<Listener className="org.apache.ajp.tomcat4.config.ApacheConfig" 
modJk="/usr/local/apache2/modules/mod_jk.so" />


 <Connector className="org.apache.catalina.connector.http.HttpConnector"
               address="85.12.17.29" port="8443" minProcessors="50" 
maxProcessors="1000"
               enableLookups="false" acceptCount="200" bufferSize="32768"
               allowChunking="false" debug="0" scheme="https" secure="true" 
connectionTimeout="60000">

    <!-- <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
               port="8009" minProcessors="5" maxProcessors="75"
               enableLookups="true" redirectPort="8443"
               acceptCount="10" debug="0" connectionTimeout="0"
               useURIValidationHack="false"
               protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>
               -->


<Connector className="org.apache.tomcat.service.PoolTcpConnector">
  <Parameter name="handler" 
value="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"/>
  <Parameter name="port" value="8007"/>
</Connector>


<Connector className="org.apache.tomcat.service.PoolTcpConnector">
  <Parameter name="handler"  
value="org.apache.tomcat.service.connector.Ajp13ConnectionHandler"/>
  <Parameter name="port" value="8009"/>
</Connector>


       <Factory className="org.apache.catalina.net.SSLServerSocketFactory"
                keystoreFile="conf/keystore"
                keystorePass="changeit"
                clientAuth="false" protocol="TLS"/>
    </Connector>
    <Engine name="Standalone" defaultHost="localhost" debug="0">
      <Logger className="org.apache.catalina.logger.FileLogger"
              directory="../logs"  prefix="catalina_log." suffix=".txt"
              timestamp="true"/>
      <Realm className="org.apache.catalina.realm.MemoryRealm" />
      <Host name="localhost" debug="0" appBase="webapps" unpackWARs="true" 
autoDeploy="false" liveDeploy="false">

<Listener className="org.apache.ajp.tomcat4.config.ApacheConfig" append="true" 
forwardAll="false" modJk="/usr/local/apache2/modules/mod_jk.so" />

        <Valve className="org.apache.catalina.valves.AccessLogValve"
                 directory="../logs"  prefix="access_log." suffix=".txt"
                 pattern="common"/>
        <Context path="/obs" docBase="obs" debug="0" cookies="true" 
reloadable="false">
          <Logger className="org.apache.catalina.logger.FileLogger"
                directory="../logs"  prefix="obs_log."
                suffix=".txt" timestamp="true" />
        </Context>
        <Context path="/AobAdmin" docBase="AobAdmin" debug="0" 
crossContext="true"
                 reloadable="false">
          <Logger className="org.apache.catalina.logger.FileLogger"
                directory="../logs"  prefix="AobAdmin_log."
                suffix=".txt" timestamp="true" />
        </Context>
        <Context path="" docBase="root" debug="0" cookies="true" 
reloadable="true">
          <Logger className="org.apache.catalina.logger.FileLogger"
                directory="../logs"  prefix="root_log."
                suffix=".txt" timestamp="true" />
        </Context>
      </Host>

    </Engine>
  </Service>

</Server>



regards Jane



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message