tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Turner, John" <JTur...@AAS.com>
Subject RE: Tomcat MOD JK Error...
Date Fri, 24 Jan 2003 13:42:23 GMT

No, that's not correct.  Mod_jk is open source, under the Apache license, as
is Apache HTTP and Jakarta Tomcat.  The source is freely available, and you
can modify it all you want, and compile your own version as much as you
would like.

My point was that as far as I could tell, that part of the code is making a
simple sockets library call...that is, it is calling connect() with certain
parameters like IP address, port, etc. and trying to open a socket.  I'm not
sure what you would want to change there, my less-than-proficient-at-C guess
tells me changing anything there would break mod_jk more than it would help.
The socket libraries are pretty standard in any application (not just
mod_jk), I doubt there is anything special about them that you would want to
change.  The error message says "I tried to open a socket to the given IP
address and the port and couldn't".

If mod_jk.so, the actual binary file, hasn't changed on your system (check
the timestamp) since before you started seeing this error message, then
there's nothing in mod_jk.so to fix, unless you wanted to set it up to log
less cryptic error messages, so messing with the source code would be
futile.  The error would be external to mod_jk, such as:

- Tomcat's connector doesn't have enough processes or threads to allow
another connection

- somebody setup a firewall or made a change to an existing firewall ruleset
that would block connections (note that a firewall can be local to the
server, it doesn't necessarily have to be an external device)

- a system resource is not allowing the connect to happen, such as max
number of socket connections system-wide, memory, bad name resolution, etc.

- the error is happening on the response from Tomcat, not the request, which
means Apache is having a problem with resources (memory, threads, etc)

- any number of other things, fairly difficult to narrow it down

If you really want to get into the nitty gritty of what that error message
means, and what the solution might be, I would subscribe to tomcat-dev and
start asking questions there, or dive into the source code yourself and see
if you can figure out what is going on.

John


> -----Original Message-----
> From: Karikalan Kumaresan [mailto:KKumaresan@buildonline.com]
> Sent: Friday, January 24, 2003 8:29 AM
> To: 'Tomcat Users List'
> Subject: RE: Tomcat MOD JK Error...
> 
> 
> Thanks a lot John,
> 
> But the point is, is this because of any installation or 
> configuration or
> anything else...? it was working very well, suddenly it is 
> not.. I assume
> the mod_jk module is provided with the apache-tomcat 
> software.. so we cannot
> modify anything in mod_jk module.. is that correct...???? 
> 
> -----Original Message-----
> From: Turner, John [mailto:JTurner@AAS.com]
> Sent: 24 January 2003 10:53
> To: 'Tomcat Users List'
> Subject: RE: Tomcat MOD JK Error...
> 
> 
> 
> Line 152 of jk_ajp12_worker.c is trying to open a socket, 
> which means that
> the worker is trying to connect to Tomcat.  "sd = -1" means 
> the connect()
> function failed.  I'm too rusty at C (it's been years) to 
> tell much else at
> the moment, perhaps someone else can elaborate.
> 
> John
> 
> 
> -----Original Message-----
> From: Karikalan Kumaresan [mailto:KKumaresan@buildonline.com] 
> Sent: Friday, January 24, 2003 4:17 AM
> To: 'Tomcat Users List'
> Subject: RE: Tomcat MOD JK Error...
> 
> 
> Does anyone know about this error... could anybody help in 
> this please?
> 
> -----Original Message-----
> From: Karikalan Kumaresan [mailto:KKumaresan@buildonline.com]
> Sent: 23 January 2003 20:24
> To: 'Tomcat Users List'
> Subject: Tomcat MOD JK Error...
> 
> 
> Does anyone know why the following errors occurs when I try 
> to access the
> JSP in tomcat?
> 
> [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
> [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
> 
> The whole system was running fine till last week... really 
> have not changed
> anything and nobody tocuhed the system. Suddenly the above 
> error occurs when
> trying to access the JSP...
> 
> It would be great if someone could provide a quick solution...
> 
> Thanks a lot in advance...
> 
> Cheers,
> Karikalan
> 
> -----Original Message-----
> From: Karikalan Kumaresan [mailto:KKumaresan@buildonline.com]
> Sent: 23 January 2003 20:23
> To: 'Tomcat Users List'
> Subject: RE: Apache2.0.40 Tomcat4.1.18 Integration on Linux 7.1
> 
> 
> Does anyone know why the following errors occurs when I try 
> to access the
> JSP in tomcat?
> 
> [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
> [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
> 
> The whole system was running fine till last week... really 
> have not changed
> anything and nobody tocuhed the system. Suddenly the above 
> error occurs when
> trying to access the JSP...
> 
> It would be great if someone could provide a quick solution...
> 
> Thanks a lot in advance...
> 
> Cheers,
> Karikalan
> 
> -----Original Message-----
> From: vim m [mailto:vim6662000@yahoo.com]
> Sent: 23 January 2003 20:16
> To: Tomcat Users List
> Subject: RE: Apache2.0.40 Tomcat4.1.18 Integration on Linux 7.1
> 
> 
> Do you have to include Context in server.xml? Let me
> get this straight first - Is this required when tomcat
> runs as a standalone? If so, I have never included
> anything in server.xml. Both for tomcat on win and
> linux. And they have been working fine for me. Also I
> have integrated apache and tomcat on windows without
> making any Context additions to server.xml.
> 
> Another thing is, even examples dont work for me, and
> the context for that is already in the xml file. And
> there is the error in my apache's log file to be
> explained. IT doesnt seem to point to a context
> problem does it?
> 
> Thank you.
> 
> 
> 
> --- "Turner, John" <JTurner@AAS.com> wrote:
> > 
> > Where are the Contexts in server.xml for all of your applications??
> > 
> > For each "/someDir" in a URL you need a Context.
> > 
> > John
> > 
> > 
> > > -----Original Message-----
> > > From: vim m [mailto:vim6662000@yahoo.com]
> > > Sent: Thursday, January 23, 2003 2:56 PM
> > > To: Tomcat Users List
> > > Subject: RE: Apache2.0.40 Tomcat4.1.18 Integration
> > on Linux 7.1
> > > 
> > > 
> > > Oh ok. I thouht inline would be easier. I have
> > > attached the files this time.
> > > Thank you.
> > > 
> > > --- "Turner, John" <JTurner@AAS.com> wrote:
> > > > 
> > > > 2.0.44 is module compatible with 2.0.43.
> > Everything
> > > > looks OK, but it would
> > > > probably be easier if you posted the files:
> > > > server.xml, mod_jk.conf,
> > > > workers.properties.  It's hard to diagnose when
> > > > things are copied inline, at
> > > > least for me.
> > > > 
> > > > John
> > > > 
> > > > 
> > > > > -----Original Message-----
> > > > > From: vim m [mailto:vim6662000@yahoo.com]
> > > > > Sent: Thursday, January 23, 2003 2:38 PM
> > > > > To: Tomcat Users List
> > > > > Subject: RE: Apache2.0.40 Tomcat4.1.18
> > Integration
> > > > on Linux 7.1
> > > > > 
> > > > > 
> > > > > Yes I did. Does apache2.0.44 work with
> > > > > mod_jk2.0.43.so? Has anybody done this before?
> > Or
> > > > > maybe I should just stick to ur suggestion and
> > get
> > > > > apache2.0.43 on my system?
> > > > > 
> > > > > Thank you.
> > > > > 
> > > > > 
> > > > 
> > > > --
> > > > To unsubscribe, e-mail:
> > > >
> > <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> > > > For additional commands, e-mail: 
> > > > <mailto:tomcat-user-help@jakarta.apache.org>
> > > > 
> > > 
> > > 
> > > __________________________________________________
> > > Do you Yahoo!?
> > > Yahoo! Mail Plus - Powerful. Affordable. Sign up
> > now.
> > > http://mailplus.yahoo.com
> > > 
> > 
> > --
> > To unsubscribe, e-mail:
> > <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail:
> > <mailto:tomcat-user-help@jakarta.apache.org>
> > 
> 
> 
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
> 
> --
> To unsubscribe, e-mail: 
<mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:tomcat-user-help@jakarta.apache.org>

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

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

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

---

Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.443 / Virus Database: 248 - Release Date: 1/10/2003
 

---

Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.443 / Virus Database: 248 - Release Date: 1/10/2003
 

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

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

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


Mime
View raw message