tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Turner, John" <JTur...@AAS.com>
Subject RE: JK2 2.0.1 and Apache 2.0.44 problem
Date Wed, 19 Feb 2003 17:36:06 GMT

Do you have a Connector configured for port 8009 in server.xml?

John


> -----Original Message-----
> From: Mete Kural [mailto:metekural@yahoo.com]
> Sent: Wednesday, February 19, 2003 11:35 AM
> To: Tomcat Users List
> Subject: RE: JK2 2.0.1 and Apache 2.0.44 problem
> 
> 
> Thanks for the feedback. Hmm.. for some reason it
> doesn't tell you to add the lines that you gave me in
> the workers2.properties file in the JK2 documentation.
> But anyways, I added these lines to
> workers2.properties:
> 
> [shm]
> file=$/usr/apache/logs/shm.file
> size=1048576
> 
> Now I don't get the "shm.init(): No file" errors any
> more. But the Apache-Tomcat connection still doesn't
> happen. Even after adding those lines to
> workers2.properties, I still get these errors:
> 
> 
> [Wed Feb 19 08:30:59 2003] [notice] Apache/2.0.44
> (Unix) mod_jk2/2.0.0 configured -- resuming normal
> operations
> [Wed Feb 19 08:31:06 2003] [error]
> channelSocket.open() connect failed localhost:8009 111
> Connection refused
> [Wed Feb 19 08:31:06 2003] [error] ajp13.connect()
> failed ajp13:localhost:8009
> [Wed Feb 19 08:31:06 2003] [error] ajp13.service()
> failed to connect endpoint errno=111 Connection
> refused
> [Wed Feb 19 08:31:06 2003] [error] ajp13.service()
> Error  forwarding ajp13:localhost:8009 1 1
> [Wed Feb 19 08:31:06 2003] [error] lb.service() worker
> failed ajp13:localhost:8009
> [Wed Feb 19 08:31:06 2003] [error]
> channelSocket.open() connect failed localhost:8009 111
> Connection refused
> [Wed Feb 19 08:31:06 2003] [error] ajp13.connect()
> failed ajp13:localhost:8009
> [Wed Feb 19 08:31:06 2003] [error] ajp13.service()
> failed to connect endpoint errno=111 Connection
> refused
> [Wed Feb 19 08:31:06 2003] [error] ajp13.service()
> Error  forwarding ajp13:localhost:8009 1 1
> [Wed Feb 19 08:31:06 2003] [error] lb.service() worker
> failed ajp13:localhost:8009
> [Wed Feb 19 08:31:06 2003] [error] lb_worker.service()
> all workers in error or disabled state
> [Wed Feb 19 08:31:06 2003] [error] mod_jk.handler()
> Error connecting to tomcat 120000
> 
> Do you have any idea?
> 
> Thanks,
> Mete
> 
> --- "Turner, John" <JTurner@AAS.com> wrote:
> > 
> > I'm pretty sure you need a shared memory block in
> > your workers2.properties
> > file.
> > 
> > I don't use JK2, but I think it should look
> > something like this:
> > 
> > [shm]
> > file=${serverRoot}/logs/shm.file
> > size=1048576
> > 
> > John
> > 
> > > -----Original Message-----
> > > From: Mete Kural [mailto:metekural@yahoo.com]
> > > Sent: Tuesday, February 18, 2003 7:56 PM
> > > To: tomcat-user@jakarta.apache.org
> > > Subject: JK2 2.0.1 and Apache 2.0.44 problem
> > > 
> > > 
> > > Hello guys,
> > > 
> > > I'm having trouble connecting Apache and Tomcat
> > with
> > > JK2 v2.0.1. I am using Apache 2.0.44 and Tomcat
> > 4.1.12
> > > which is bundled inside of the JBoss 3.0.4
> > > distribution. I'm on a Red Hat Linux 8.0. I set up
> > the
> > > configuration as the minimum recommended on the
> > jk2
> > > documentation website.
> > > 
> > > The only line I added to httpd.conf is:
> > > LoadModule jk2_module modules/mod_jk2.so
> > > 
> > > My workers2.properties file looks like this:
> > > 
> > > # Define the communication channel
> > > [channel.socket:localhost:8009]
> > > info=Ajp13 forwarding over socket
> > > tomcatId=localhost:8009
> > > # Map the Tomcat examples webapp to the Web server
> > uri
> > > space
> > > [uri:/examples/*]
> > > info=Map the whole webapp
> > > 
> > > And I left jk2.properties as it came with Tomcat
> > > 4.1.12, i.e. all the lines inside it are commented
> > > out.
> > > 
> > > When I try to access localhost/examples, I get
> > this
> > > page:
> > > <<<
> > > Internal Server Error
> > > The server encountered an internal error or
> > > misconfiguration and was unable to complete your
> > > request.
> > > 
> > > Please contact the server administrator,
> > > you@your.address and inform them of the time the
> > error
> > > occurred, and anything you might have done that
> > may
> > > have caused the error.
> > > 
> > > More information about this error may be available
> > in
> > > the server error log.
> > > >>>
> > > 
> > > And here is my error_log:
> > > 
> > > [Tue Feb 18 15:27:28 2003] [notice] Apache/2.0.44
> > > (Unix) configured -- resuming normal operations
> > > [Tue Feb 18 15:29:29 2003] [notice] caught
> > SIGTERM,
> > > shutting down
> > > [Tue Feb 18 16:22:58 2003] [error] shm.init(): No
> > file
> > > [Tue Feb 18 16:22:58 2003] [notice] Apache/2.0.44
> > > (Unix) mod_jk2/2.0.0 configured -- resuming normal
> > > operations
> > > [Tue Feb 18 16:22:58 2003] [error] shm.init(): No
> > file
> > > [Tue Feb 18 16:22:58 2003] [error] shm.init(): No
> > file
> > > [Tue Feb 18 16:23:10 2003] [error]
> > workerEnv.init()
> > > create slot epStat.0 failed
> > > [Tue Feb 18 16:23:10 2003] [error] lb.service()
> > worker
> > > failed ajp13:localhost:8009
> > > [Tue Feb 18 16:23:10 2003] [error] lb.service()
> > > unrecoverable error...
> > > [Tue Feb 18 16:23:10 2003] [error]
> > mod_jk.handler()
> > > Error connecting to tomcat 120000
> > > 
> > > 
> > > Can you please help me out with this? I am new to
> > JK2
> > > and I have no idea why this could be happenning.
> > If
> > > more information about my configuration is
> > necessary
> > > please let me know.
> > > 
> > > Thank you very much,
> > > Mete
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > >
> >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > tomcat-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail:
> > tomcat-user-help@jakarta.apache.org
> > > 
> > 
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> > tomcat-user-help@jakarta.apache.org
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 

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


Mime
View raw message