4 Replies Latest reply on Oct 22, 2004 4:29 AM by Lothar Egger

    setting up jk module. Where's mistake?

    mi1291 Newbie

      I've made everithing tells at:

      http://www.jboss.org/wiki/Wiki.jsp?page=UsingMod_jk1.2WithJBoss

      APache seems to work very well, but the jk Error-log reports this error:
      [jk_ajp_common.c (1477)]: Error connecting to tomcat. Tomcat is probably not started or is listening on the wrong port. worker=pippo failed errno = 60

      this is the server.xml:
















        • 1. Re: setting up jk module. Where's mistake? CodeSource
          mi1291 Newbie

           

          <Server>
          
           <Service name="jboss.web"
           className="org.jboss.web.tomcat.tc5.StandardService">
          
           <Connector port="8080" address="${jboss.bind.address}"
           maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
           enableLookups="false" redirectPort="8443" acceptCount="100"
           connectionTimeout="20000" disableUploadTimeout="true"/>
          
          
          <Connector port="8009" address="${jboss.bind.address}"
           enableLookups="false" redirectPort="8443" debug="0"
           protocol="AJP/1.3"/>
          
           <Engine name="jboss.web" defaultHost="pippo.balena.homeip.net" jvmRoute="pippo">
           <Logger className="org.jboss.web.tomcat.Log4jLogger"
           verbosityLevel="WARNING"
           category="org.jboss.web.localhost.Engine"/>
           <Host name="pippo.balena.homeip.net">
          
           <Context path="/pol"
           docBase="pol"
           crossContext="false"
           debug="0"
           reloadable="true" >
           </Context>
          
           <DefaultContext cookies="true" crossContext="true" override="true"/>
          
           </Host>
          
           </Engine>
          
           </Service>
          
          </Server>


          • 2. Re: setting up jk module. Where's mistake?
            Lothar Egger Newbie

            hi
            post your workers2.properties file too.

            cheers
            Lviz

            • 3. Re: setting up jk module. Where's mistake?
              mi1291 Newbie

              my workers.properties file:

              
              worker.list=pippo
              
              
              
              # Define pippo
              worker.pippo.port=8009
              worker.pippo.host=pippo.balena.homeip.net
              worker.pippo.type=ajp13
              worker.pippo.lbfactor=3.5
              #worker.pippo.local_worker=1
              worker.pippo.cachesize=10


              • 4. Re: setting up jk module. Where's mistake?
                Lothar Egger Newbie

                hi mi1291
                looks like there is something missing...

                here is our workers2.properties file, it is for two jboss instances.. 8008,18009

                activate the debug statements the file logger and the log level debug

                [logger]
                level=INFO
                
                [config:]
                file=/etc/apache2/conf/workers2.properties
                debug=0
                debugEnv=0
                
                [uriMap:]
                info=Maps the requests. Options: debug
                debug=0
                
                # Alternate file logger
                [logger.file:0]
                level=INFO
                file=/etc/apache2/logs/jk2.log
                
                [shm:]
                info=Scoreboard. Required for reconfiguration and status with multiprocess servers
                file=/var/run/jk2.shm
                size=1000000
                debug=0
                disabled=0
                
                [workerEnv:]
                info=Global server options
                timing=1
                debug=0
                # Default Native Logger (apache2 or win32 )
                # can be overriden to a file logger, useful
                # when tracing win32 related issues
                #logger=logger.file:0
                
                
                [channel.socket:localhost:8009]
                info=Ajp13 forwarding over socket
                debug=0
                tomcatId=localhost:8009
                
                [channel.socket:localhost:18009]
                info=Ajp13 forwarding over socket
                debug=0
                tomcatId=localhost:18009
                
                [ajp13.localhost:18009]
                channel=channel.socket:localhost:18009
                group=ajp13.localhost:18009
                
                [ajp13.localhost:8009]
                channel=channel.socket:localhost:8009
                group=ajp13.localhost:8009
                
                #[channel.socket:localhost:8019]
                #info=A second tomcat instance.
                #debug=0
                #tomcatId=localhost:8019
                #lb_factor=1
                #group=lb
                #group=lb_1
                #disabled=0
                
                #[channel.un:/var/run/jk2.socket]
                #info=A second channel connecting to localhost:8019 via unix socket
                #tomcatId=localhost:8019
                #lb_factor=1
                #debug=0
                
                
                [status:]
                info=Status worker, displays runtime informations
                
                
                
                #[uri:127.0.0.1:8003]
                #info=Example virtual host. Make sure myVirtualHost is in /etc/hosts to test it
                #alias=myVirtualHost:8003
                
                #[uri:127.0.0.1:8003/ex]
                #info=Example webapp in the virtual host. It'll go to lb_1 ( i.e. localhost:8019 )
                #context=/ex
                #group=lb_1
                
                #example uri mapping [add your own]
                [uri:/jboss1/*]
                debug=0
                group=ajp13:localhost:8009
                
                [uri:/jboss2/*]
                debug=0
                group=ajp13:localhost:18009
                
                


                hope that helps
                L