You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ko...@netscape.net on 2003/10/08 00:51:26 UTC

Incomplete auto/mod_jk.conf

Folks,

I did something so stupid.  I overwrote my whole tomcat directory by mistake.  I have to do a reinstall.  Whenever I start tomcat now, it appears to not pick up the hostname and context entries.  Below are my mod_jk.conf and server.xml.  Any suggestion of why this is happening.  BTW, tomcat is a symlink to jakarta-tomcat-4.1.27.

TIA,
Dan


/opt/tomcat/conf/auto/mod_jk.conf
########## Auto generated on Tue Oct 07 18:25:31 EDT 2003##########

<IfModule !mod_jk.c>
  LoadModule jk_module /opt/apache/modules/mod_jk.so
</IfModule>

JkWorkersFile "/opt/jakarta-tomcat-4.1.27/conf/jk/workers.properties"
JkLogFile "/opt/jakarta-tomcat-4.1.27/logs/mod_jk.log"

JkLogLevel emerg


-------------------------
/opt/tomcat/conf/server.xml

<Server port="8005" shutdown="SHUTDOWN" debug="1">
<Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
  modJk="/opt/apache/modules/mod_jk.so" />

<Connector className="org.apache.tomcat.service.PoolTcpConnector"> 
  <Parameter name="handler" 
     value="org.apache.tomcat.service.http.HttpConnectionHandler"/> 
  <Parameter name="port" value="8081"/> 

<Engine name="Standalone" defaultHost="servername.domain" debug="1"> 
  <Logger className="org.apache.catalina.logger.FileLogger"
     prefix="catalina_log." suffix=".txt" timestamp="true"/>

<Host name="localhost">
  <Context path="" docBase="ROOT" debug="1"/>
  <Context path="/examples" docBase="examples" debug="0"
     reloadable="true" crossContext="true"/>

</Host> 

</Engine>

</Connector>

</Server>



__________________________________________________________________
McAfee VirusScan Online from the Netscape Network.
Comprehensive protection for your entire computer. Get your free trial today!
http://channels.netscape.com/ns/computing/mcafee/index.jsp?promo=393397

Get AOL Instant Messenger 5.1 free of charge.  Download Now!
http://aim.aol.com/aimnew/Aim/register.adp?promo=380455

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


Re: Incomplete auto/mod_jk.conf

Posted by sr...@g88.net.
> I did something so stupid.  I overwrote my whole tomcat directory by
> mistake.  I have to do a reinstall.  Whenever I start tomcat now, it
> appears to not pick up the hostname and context entries.  Below are
> my mod_jk.conf and server.xml.  Any suggestion of why this is
> happening.  BTW, tomcat is a symlink to jakarta-tomcat-4.1.27.

I may be wrong, but don't Connector and Engine need to be inside of a
Service element?

  http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/server.html
  http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/service.html


> -------------------------
> /opt/tomcat/conf/server.xml
>
> <Server port="8005" shutdown="SHUTDOWN" debug="1">
> <Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
>   modJk="/opt/apache/modules/mod_jk.so" />
>
> <Connector className="org.apache.tomcat.service.PoolTcpConnector">
>   <Parameter name="handler"
>      value="org.apache.tomcat.service.http.HttpConnectionHandler"/>
>   <Parameter name="port" value="8081"/>
>
> <Engine name="Standalone" defaultHost="servername.domain" debug="1">
>   <Logger className="org.apache.catalina.logger.FileLogger"
>      prefix="catalina_log." suffix=".txt" timestamp="true"/>
>
> <Host name="localhost">
>   <Context path="" docBase="ROOT" debug="1"/>
>   <Context path="/examples" docBase="examples" debug="0"
>      reloadable="true" crossContext="true"/>
>
> </Host>
>
> </Engine>
>
> </Connector>
>
> </Server>

-- 
Steve

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