To make changes to tomcat under jboss you must edit tomcat41-service.xml
not server.xml; changes made to the server.xml will not be used by
tomcat.
The tomcat41-service.xml file will be located in your /deploy directory
of the selected configuration set.

Might i suggest that you purchase the JBoss 3.0 Handbook for further
details, this book kicks ASS!
http://www.amazon.com/exec/obidos/tg/detail/-/1861008120/qid=1045677540/
sr=8-1/ref=sr_8_1/104-9967696-6863144?v=glance&s=books&n=507846


-----Original Message-----
From: Mete Kural [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 19, 2003 9:51 AM
To: Tomcat Users List
Subject: RE: JK2 2.0.1 and Apache 2.0.44 problem


I think so. This is in my servlet.xml:

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

One thing to mention, I am using the Tomcat that comes
bundled with JBoss, which is Tomcat 4.1.12. Do you
think the fact that Tomcat is invoked by JBoss make a
difference? Any ideas?

Thanks,
Mete

--- "Turner, John" <[EMAIL PROTECTED]> wrote:
> 
> Do you have a Connector configured for port 8009 in
> server.xml?
> 
> John
> 
> 
> > -----Original Message-----
> > From: Mete Kural [mailto:[EMAIL PROTECTED]]
> > 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" <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED]]
> > > > Sent: Tuesday, February 18, 2003 7:56 PM
> > > > To: [EMAIL PROTECTED]
> > > > 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,
> > > > [EMAIL PROTECTED] 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:
> > > [EMAIL PROTECTED]
> > > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > > > 
> > > 
> > >
> >
>
---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > > 
> > 
> > 
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


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


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

Reply via email to