Hello all,

I've just installed jk 1.2.15  from sources to replace jk2, with
Apache 2.0.46 from rpm & rpm-dev and tomcat 5.0.27.
When I launch tomcat, the log says that jk2 is listening :

30 nov. 2005 16:31:51 org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
30 nov. 2005 16:31:51 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=1/80  config=null
30 nov. 2005 16:31:51 org.apache.catalina.startup.Catalina start


In fact,
- jk2 is not loaded in httpd.conf
- {tomcat_home}conf/jk2.properties has been removed
So I don't understand how jk2 can be listening on port 8009.
I can't access all of my site's functionnalities

Question :
How can I be sure that jk is listening on port 8009 and not  jk2 ?


Any Commentary or advice is welcome.


Cordially

Patrice Durosay





Configs :

httpd.conf :
...
LoadModule jk_module  modules/mod_jk.so
<IfModule mod_jk.c>
 JkWorkersfile conf/workers.properties
 JkLogFile logs/mod_jk.log
 JkLogLevel trace
 JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"
 JkOptions +ForwardKeySize +ForwardURICompat +ForwardDirectories
 JkRequestLogFormat "%w %V %T"
 JkMount /expresso/* tomworker
 JkMount /servlets-examples/* tomworker
 JkMount /*.jsp  tomworker
</IfModule>
...
NameVirtualHost *:80
<VirtualHost *:80>
  ServerName MyTomcatWeb.MyDomain
  DocumentRoot /usr/local/java/tomcat/webapps/ROOT/
  ErrorLog logs/MyTomcatWeb.log
  TransferLog logs/MyTomcatWeb_transfer.log
  ServerAdmin [EMAIL PROTECTED]
  DirectoryIndex frame.jsp index.jsp index.html
</VirtualHost>

workers.properties :
workers.tomcat_home=/usr/java/tomcat
workers.java_home=/usr/java
ps=/
worker.list=tomworker
worker.tomworker.type=ajp13
worker.tomworker.host=MyTomcatWeb.MyDomain
worker.tomworker.port=8009
worker.tomworker.lbfactor=50
worker.tomworker.cachesize=10
worker.tomworker.cache_timeout=600
worker.tomworker.socket_keepalive=1
worker.tomworker.socket_timeout=300
# # Announce a "status" worker
[status:status]
info=Status worker. Displays runtime information.
# # Uri mapping
[uri:/jkstatus/*]
group=status:status
# Uri mapping
[uri:/jsp-examples/*]
# Uri mapping
[uri:/expresso/*]
# Uri mapping
[uri:/MyTomcatWeb/*]

server.xml :
<Server port="8005" shutdown="SHUTDOWN" debug="0">
 <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"
           debug="0"/>
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
           debug="0"/>

 <GlobalNamingResources>
   <Environment name="simpleValue" type="java.lang.Integer" value="30"/>
   <Resource name="UserDatabase" auth="Container"
             type="org.apache.catalina.UserDatabase"
      description="User database that can be updated and saved">
   </Resource>
   <ResourceParams name="UserDatabase">
     <parameter>
       <name>factory</name>
       <value>org.apache.catalina.users.MemoryUserDatabaseFactory</value>
     </parameter>
     <parameter>
       <name>pathname</name>
       <value>conf/tomcat-users.xml</value>
     </parameter>
   </ResourceParams>
 </GlobalNamingResources>

 <Service name="Catalina">
<!-- 28/11/5 : supprime le serveur tomcat pour rendre la main à apache
   <Connector port="80"
              maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
              enableLookups="false"
           redirectPort="8443" acceptCount="100"
              debug="0" connectionTimeout="20000"
              disableUploadTimeout="true" />
-->
   <Connector port="8009"
              enableLookups="false" redirectPort="8443" debug="0"
              protocol="AJP/1.3" />

   <Engine name="Catalina" defaultHost="localhost" debug="0">
     <Logger className="org.apache.catalina.logger.FileLogger"
             prefix="catalina_log." suffix=".txt"
             timestamp="true"/>

     <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
                debug="0" resourceName="UserDatabase"/>
     <Host name="localhost" debug="0" appBase="webapps"
      unpackWARs="true" autoDeploy="true"
      xmlValidation="false" xmlNamespaceAware="false">

       <Context path=""
                docBase="/usr/java/tomcat/webapps/ROOT/"
                debug="0"  reloadable="true"   crossContext="true"/>

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



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to