You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ljuba Veselinova <lj...@ling.su.se> on 2007/12/13 16:26:25 UTC

Attempts to install Tomcat 5.5 on a windows machine with Apache 2.0.58

I have been trying to install Tomcat 5.5 on a windows machine where
there is an Apache webserver running. The version of Apache is 2.0.58.
I did  a clean re-installation of Apache, checked the path of system
variables such as CATALINA_HOME, JAVA_HOME and PATH. I have checked
the config files for spelling errors, specifically

for Apache
httpd.conf
workers.properties

for Tomcat
mod_jk.conf

Despite all of this I cannot get Tomcat to work. I have checked the
Apache installation via a full URL (http://ling-map2.win.su.se) and
also via http://localhost. I get the normal response from Apache but
when I check http://localhost:8080, I get a message "The connection
was refused when trying to contact localhost:8080.

I have also checked in the Tomcat/logs/mod_jk.log; I am pasting some
of its intial lines below.

PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\Program
Files\\php\\ext\\php_cpdf.dll' - The specified procedure could not be
found.\r\n in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\Program
Files\\php\\ext\\php_cpdf.dll' - The specified procedure could not be
found.\r\n in Unknown on line 0
[Thu Dec 13 15:07:19 2007] [info]  jk_open_socket::jk_connect.c (433):
connect to 130.237.171.49:8009 failed with errno=61
[Thu Dec 13 15:07:19 2007] [info]
ajp_connect_to_endpoint::jk_ajp_common.c (877): Failed connecting to
tomcat. Tomcat is probably not started or is listening on the wrong
host/port (130.237.171.49:8009). Failed errno = 61
[Thu Dec 13 15:07:19 2007] [info]  ajp_send_request::jk_ajp_common.c
(1227): Error connecting to the Tomcat process.
[Thu Dec 13 15:07:19 2007] [info]  ajp_service::jk_ajp_common.c
(1724): Sending request to tomcat failed,  recoverable operation
attempt=1
[Thu Dec 13 15:07:19 2007] [info]  jk_open_socket::jk_connect.c (433):
connect to 130.237.171.49:8009 failed with errno=61
[Thu Dec 13 15:07:19 2007] [info]
ajp_connect_to_endpoint::jk_ajp_common.c (877): Failed connecting to
tomcat. Tomcat is probably not started or is listening on the wrong
host/port (130.237.171.49:8009). Failed errno = 61
[Thu Dec 13 15:07:19 2007] [info]  ajp_send_request::jk_ajp_common.c
(1227): Error connecting to the Tomcat process.
[Thu Dec 13 15:07:19 2007] [info]  ajp_service::jk_ajp_common.c
(1724): Sending request to tomcat failed,  recoverable operation
attempt=2

I have searched the tomcat archives and also performed general google
searches. Although I do get hits where a similar problem is described,
I haven't found any solution yet. I am sure this has happened before
so a pointer to a file/address where I could find guidance on how to
proceed will be greatly appreciated.

Thank you in advance for your time and help.

Best wishes,
Ljuba

-- 
===========================================================================
Ljuba Veselinova
Dept of Linguistics          Email: ljuba@ling.su.se
Stockholm University      Phone: +46-8-16 2332
106 91 Stockholm          Fax  : +46-8-15 5389
Sweden                         URL  : http://www.ling.su.se/staff/ljuba/

"We learn by going where we want to go."
                                          Julia Cameron
============================================================================

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Attempts to install Tomcat 5.5 on a windows machine with Apache 2.0.58

Posted by Ljuba Veselinova <lj...@ling.su.se>.
On Dec 13, 2007 6:03 PM, Alan Chaney <al...@compulsivecreative.com> wrote:
> I've got tomcat going behind apache several times. My general view is
> get them both working independently and then hook them up. From your
> original mail I'm skeptical that you actually have got
> tomcat started properly.

I have got them working together several times before too which is why
this whole thing is even more frustrating than it might sound.

> > [Thu Dec 13 15:07:19 2007] [info]  ajp_send_request::jk_ajp_common.c
> > (1227): Error connecting to the Tomcat process.
> > [Thu Dec 13 15:07:19 2007] [info]  ajp_service::jk_ajp_common.c
> > (1724): Sending request to tomcat failed,  recoverable operation
> > attempt=1
> > [Thu Dec 13 15:07:19 2007] [info]  jk_open_socket::jk_connect.c (433):
> > connect to 130.237.171.49:8009 failed with errno=61
> > [Thu Dec 13 15:07:19 2007] [info]
> > ajp_connect_to_endpoint::jk_ajp_common.c (877): Failed connecting to
> > tomcat. Tomcat is probably not started or is listening on the wrong
> > host/port (130.237.171.49:8009). Failed errno = 61
> > [Thu Dec 13 15:07:19 2007] [info]  ajp_send_request::jk_ajp_common.c
> > (1227): Error connecting to the Tomcat process.
> > [Thu Dec 13 15:07:19 2007] [info]  ajp_service::jk_ajp_common.c
> > (1724): Sending request to tomcat failed,  recoverable operation
> > attempt=2
> >
> > I have searched the tomcat archives and also performed general google
> > searches. Although I do get hits where a similar problem is described,
> > I haven't found any solution yet. I am sure this has happened before
> > so a pointer to a file/address where I could find guidance on how to
> > proceed will be greatly appreciated.
> >
> >
>
> Questions
>
> 1. What ports are bound to apache? - only 80 I should hope. Make sure
> that 8009 and 8080 aren't bound by apache otherwise tomcat can't work.
> 2. If you stop apache does tomcat start?

It does not. In fact, the service does not stay on --- it says it
starts when I start it from either Control Panel > Admin Services >
Services or via its own control on the task bar. But it never stays on
and if I check a minute later, it's off again. I also noticed that I
cannot change the start up type from manual to automatic; it's the
same thing: it does not protest when I change it, but my change does
not hold.

>
> localhost:8080 is the HTTP connection to tomcat. I assume you are trying
> localhost:8080
> to see if tomcat is available. The mod_jk connector will use port 8009
> for the AJP connection.
> It is possible to run tomcat behind apache with 8080 disabled but I
> assume that is not what you're intention.

Yes, exactly, I was checking to see if tomcat is available; I am not
trying to run it with port 8080 disabled.

Thank you so much for your instructions! I will check catalina.out and
also the way the logging is set up.

> > [Thu Dec 13 15:07:19 2007] [info]  jk_open_socket::jk_connect.c (433):
> > connect to 130.237.171.49:8009 failed with errno=61
> > [Thu Dec 13 15:07:19 2007] [info]
> > ajp_connect_to_endpoint::jk_ajp_common.c (877): Failed connecting to
> > tomcat. Tomcat is probably not started or is listening on the wrong
> > host/port (130.237.171.49:8009). Failed errno = 61
> >
> This seems the critical line - tomcat is probably not started or is
> listening on the wrong host/prot
> Is tomcat listening on localhost? It looks like you are trying to talk
> to the defined IP above (130...) and not localhost

That's the IP of the the localhost. Where do I check if tomcat is
listening for localhost?

I am in Europe and it's getting to be evening here after a long and
frustrating day so I've basically given up for today. But I just can't
thank you enough for writing. I am sure your directions will help me
tomorrow.

All the best,
Ljuba
> Hope that helps
>
> Alan
>
>
>
>
> > Thank you in advance for your time and help.
> >
> > Best wishes,
> > Ljuba
> >
> >
>
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>



-- 
===========================================================================
Ljuba Veselinova
Dept of Linguistics          Email: ljuba@ling.su.se
Stockholm University      Phone: +46-8-16 2332
106 91 Stockholm          Fax  : +46-8-15 5389
Sweden                         URL  : http://www.ling.su.se/staff/ljuba/

"We learn by going where we want to go."
                                          Julia Cameron
============================================================================

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Attempts to install Tomcat 5.5 on a windows machine with Apache 2.0.58

Posted by Alan Chaney <al...@compulsivecreative.com>.
I've got tomcat going behind apache several times. My general view is
get them both working independently and then hook them up. From your
original mail I'm skeptical that you actually have got
tomcat started properly.

> [Thu Dec 13 15:07:19 2007] [info]  ajp_send_request::jk_ajp_common.c
> (1227): Error connecting to the Tomcat process.
> [Thu Dec 13 15:07:19 2007] [info]  ajp_service::jk_ajp_common.c
> (1724): Sending request to tomcat failed,  recoverable operation
> attempt=1
> [Thu Dec 13 15:07:19 2007] [info]  jk_open_socket::jk_connect.c (433):
> connect to 130.237.171.49:8009 failed with errno=61
> [Thu Dec 13 15:07:19 2007] [info]
> ajp_connect_to_endpoint::jk_ajp_common.c (877): Failed connecting to
> tomcat. Tomcat is probably not started or is listening on the wrong
> host/port (130.237.171.49:8009). Failed errno = 61
> [Thu Dec 13 15:07:19 2007] [info]  ajp_send_request::jk_ajp_common.c
> (1227): Error connecting to the Tomcat process.
> [Thu Dec 13 15:07:19 2007] [info]  ajp_service::jk_ajp_common.c
> (1724): Sending request to tomcat failed,  recoverable operation
> attempt=2
>
> I have searched the tomcat archives and also performed general google
> searches. Although I do get hits where a similar problem is described,
> I haven't found any solution yet. I am sure this has happened before
> so a pointer to a file/address where I could find guidance on how to
> proceed will be greatly appreciated.
>
>  

Questions

1. What ports are bound to apache? - only 80 I should hope. Make sure
that 8009 and 8080 aren't bound by apache otherwise tomcat can't work.
2. If you stop apache does tomcat start?


localhost:8080 is the HTTP connection to tomcat. I assume you are trying
localhost:8080
to see if tomcat is available. The mod_jk connector will use port 8009
for the AJP connection.
It is possible to run tomcat behind apache with 8080 disabled but I
assume that is not what you're intention.

Ljuba Veselinova wrote:
> I have been trying to install Tomcat 5.5 on a windows machine where
> there is an Apache webserver running. The version of Apache is 2.0.58.
> I did  a clean re-installation of Apache, checked the path of system
> variables such as CATALINA_HOME, JAVA_HOME and PATH. I have checked
>
> Despite all of this I cannot get Tomcat to work. I have checked the
> Apache installation via a full URL (http://ling-map2.win.su.se) and
> also via http://localhost. I gethe config files for spelling errors, 
specifically
>
> for Apache
> httpd.conf
> workers.properties
>
> for Tomcat
> mod_jk.conf
>
> t the normal response from Apache but
> when I check http://localhost:8080, I get a message "The connection
> was refused when trying to contact localhost:8080.
>
>  
Sounds like tomcat hasn't started.

> I have also checked in the Tomcat/logs/mod_jk.log; I am pasting some
> of its intial lines below.
>
>  
Have you checked the tomcat logs to see that it has started properly?
Look for catalina.out in your tomcat logs directory.


> PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\Program
> Files\\php\\ext\\php_cpdf.dll' - The specified procedure could not be
> found.\r\n in Unknown on line 0
> PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\Program
> Files\\php\\ext\\php_cpdf.dll' - The specified procedure could not be
> found.\r\n in Unknown on line 0
>  
Why are you getting php warnings in the mod_jk log? Looks like your
logging isn't set up correctly.


> [Thu Dec 13 15:07:19 2007] [info]  jk_open_socket::jk_connect.c (433):
> connect to 130.237.171.49:8009 failed with errno=61
> [Thu Dec 13 15:07:19 2007] [info]
> ajp_connect_to_endpoint::jk_ajp_common.c (877): Failed connecting to
> tomcat. Tomcat is probably not started or is listening on the wrong
> host/port (130.237.171.49:8009). Failed errno = 61
>  
This seems the critical line - tomcat is probably not started or is
listening on the wrong host/prot
Is tomcat listening on localhost? It looks like you are trying to talk
to the defined IP above (130...) and not localhost

Hope that helps

Alan




> Thank you in advance for your time and help.
>
> Best wishes,
> Ljuba
>
>  



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org