You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Denise Mangano <De...@complusdata.com> on 2002/12/15 08:03:12 UTC

RE: Almost there...Updated Apach-Tomcat with mod_jk .. please he lp!

At first I thought it might be a permission problem, so I changed
permissions to 775 on workers.properties and still no good.  NOW my Apache
won't work.  I am getting an error message saying that Apache could not bind
to port 443, that the port is already in use.  Figuring on the problem being
Tomcat, I uninstalled Tomcat, and I am still getting the error message and I
can't bring up my website?! Desperately need to solve that cause my website,
HAS to be up.  Can someone tell me how to check what else is binding to port
443?

As far as why the jk2.properties, I have no idea!  But I can say this, it
looks like when I built mod_jk it uses a java file called ApacheConfig.
This file has code that points to a different location for mod_jk is
installed then where it actually is on my system.  Is it possible that I
need to modify this ApacheConfig file before I build or are my configuration
settings supposed to override that.  (In my error log below you can see that
it still looks for mod_jk.so in libexec/ even though I changed that location
in my tomcat config files... That still doesn't explain why even though its
looking in the right place for my workers.properties file, it says the file
is not there).  

Right now my first problem is more pressing...

THanks!
Denise
 

-----Original Message-----
From: Milt Epstein
To: Tomcat Users List
Sent: 12/14/2002 11:00 AM
Subject: Re:  Almost there...Updated Apach-Tomcat with mod_jk  

On Sat, 14 Dec 2002, Denise Mangano wrote:

> I also found this in my cataline.out log.
> INFO: Loading registry information
> Dec 13, 2002 4:29:37 PM org.apache.commons.modeler.Registry
getRegistry
> INFO: Creating new Registry instance
> Dec 13, 2002 4:29:38 PM org.apache.commons.modeler.Registry getServer
> INFO: Creating MBeanServer
> Dec 13, 2002 4:29:39 PM org.apache.coyote.http11.Http11Protocol init
> INFO: Initializing Coyote HTTP/1.1 on port 8080
> mod_jk location: libexec/mod_jk.so
> Make sure it is installed corectly or  set the config location
> Using <ApacheConfig modJk="PATH_TO_MOD_JK.SO_OR_DLL" />
> Can't find workers.properties at
> /usr/local/jakarta-tomcat-4.1.17/conf/jk/workers.properties
> Please install it in the default location or  set the config location
> Using <ApacheConfig workersConfig="FULL_PATH" />
> Starting service Tomcat-Standalone
> Apache Tomcat/4.1.17
> Dec 13, 2002 4:29:44 PM org.apache.coyote.http11.Http11Protocol start
> INFO: Starting Coyote HTTP/1.1 on port 8080
> Dec 13, 2002 4:29:44 PM org.apache.jk.common.ChannelSocket init
> INFO: JK2: ajp13 listening on /0.0.0.0:8009
> Dec 13, 2002 4:29:44 PM org.apache.jk.server.JkMain start
> INFO: Jk running ID=0 time=2/46
> config=/usr/local/jakarta-tomcat-4.1.17/conf/jk2.properties
>
> It gives me an error that it can't find workers.properties, but it is
in
> fact there...

What is the ownership/permissions on it?  In particular, is it
readable by the user Tomcat is running as?

Also, if you're using mod_jk, why all that stuff about jk2?


> -----Original Message-----
> From: Denise Mangano
> To: 'tomcat-user@jakarta.apache.org'
> Sent: 12/13/2002 10:36 PM
> Subject: Almost there...Updated Apach-Tomcat with mod_jk
>
> Here is an update.  I managed to get passed the configure fail I was
> getting, and got through the build of mod_jk.  I followed everything
to
> the T, and I am back to the almost the same boat that I was in
> yesterday.
>
> Before mod_jk setup I could access http://localhost:8080 as well as
> http://localhost.  Both apache and Tomacat were working fine.
Yesterday
>
> after mod_jk install Tomcat stopped working.  This time, after second
> try, I can still access both.  However, even though I installed mod_jk
I
>
> need to input the :8080.
>
> I restarted apache, and found the following error:
>
> [Fri Dec 13 21:37:08 2002] [error] Error while opening the workers, jk
> will not work
> [Fri Dec 13 21:37:12 2002] [error] (2)No such file or directory: Error
> while opening the workers, jk will not work
>
> Which file is trying to access the workers.properties file that I
> created?  I searched the server.xml, the httpd.conf, and the
mod_jk.conf
>
> files and could find nothing that called for it....
>
> As you can see I cannot access the files without using the port :8080
> attached to the end of localhost - if I try to it is still looking in
my
>
> Apache web directory...
>
> [Fri Dec 13 22:04:59 2002] [error] [client 216.164.30.185] File does
not
>
> exist: /var/www/html/examples/jsp/num/numguess.jsp
>
> Any thoughts?  I can post my files, if anyone is willing to take a
look
> at it...
>
> Thanks.
> Denise
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>

Milt Epstein
Research Programmer
Integration and Software Engineering (ISE)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
mepstein@uiuc.edu


--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Almost there...Updated Apach-Tomcat with mod_jk .. please he lp!

Posted by Jacob Kjome <ho...@visi.com>.
1.  Tomcat is so non-intrusive that it is pretty certainly *not* causing 
Apache not to work.

2.  jk2.properties has *nothing* to do with mod_jk.  mod_jk.conf and 
workers.properties are the two files you need to worry about.

3.  ApacheConfig is a helper to auto-generate mod_jk.conf based on settings 
in the web.xml upon Tomcat startup.  I has no effect on anything unless you 
actually use it in server.xml or run it directly from the command line.

I'm including a zip file with the contents of my mod_jk config.  You'll 
have to modify the paths to Unix style (since I am using Win2k), but 
otherwise everything should be the same.

All Apache's httpd.conf should have in it is something like this:

Include "C:/Java/Apache/Jakarta/tomcat-4.1.17/conf/jk/mod_jk.conf"


Note that I also included my server.xml.  In it, look for <ApacheConfig 
...> entries.  They are commented out, but should show you how to use 
ApacheConfig.  I usually use it once and then comment it out.  I also make 
a copy of the resulting mod_jk.conf, modify it, and use that instead of 
directly using the auto-generated one.

Jake

At 02:03 AM 12/15/2002 -0500, you wrote:
>At first I thought it might be a permission problem, so I changed
>permissions to 775 on workers.properties and still no good.  NOW my Apache
>won't work.  I am getting an error message saying that Apache could not bind
>to port 443, that the port is already in use.  Figuring on the problem being
>Tomcat, I uninstalled Tomcat, and I am still getting the error message and I
>can't bring up my website?! Desperately need to solve that cause my website,
>HAS to be up.  Can someone tell me how to check what else is binding to port
>443?
>
>As far as why the jk2.properties, I have no idea!  But I can say this, it
>looks like when I built mod_jk it uses a java file called ApacheConfig.
>This file has code that points to a different location for mod_jk is
>installed then where it actually is on my system.  Is it possible that I
>need to modify this ApacheConfig file before I build or are my configuration
>settings supposed to override that.  (In my error log below you can see that
>it still looks for mod_jk.so in libexec/ even though I changed that location
>in my tomcat config files... That still doesn't explain why even though its
>looking in the right place for my workers.properties file, it says the file
>is not there).
>
>Right now my first problem is more pressing...
>
>THanks!
>Denise
>
>
>-----Original Message-----
>From: Milt Epstein
>To: Tomcat Users List
>Sent: 12/14/2002 11:00 AM
>Subject: Re:  Almost there...Updated Apach-Tomcat with mod_jk
>
>On Sat, 14 Dec 2002, Denise Mangano wrote:
>
> > I also found this in my cataline.out log.
> > INFO: Loading registry information
> > Dec 13, 2002 4:29:37 PM org.apache.commons.modeler.Registry
>getRegistry
> > INFO: Creating new Registry instance
> > Dec 13, 2002 4:29:38 PM org.apache.commons.modeler.Registry getServer
> > INFO: Creating MBeanServer
> > Dec 13, 2002 4:29:39 PM org.apache.coyote.http11.Http11Protocol init
> > INFO: Initializing Coyote HTTP/1.1 on port 8080
> > mod_jk location: libexec/mod_jk.so
> > Make sure it is installed corectly or  set the config location
> > Using <ApacheConfig modJk="PATH_TO_MOD_JK.SO_OR_DLL" />
> > Can't find workers.properties at
> > /usr/local/jakarta-tomcat-4.1.17/conf/jk/workers.properties
> > Please install it in the default location or  set the config location
> > Using <ApacheConfig workersConfig="FULL_PATH" />
> > Starting service Tomcat-Standalone
> > Apache Tomcat/4.1.17
> > Dec 13, 2002 4:29:44 PM org.apache.coyote.http11.Http11Protocol start
> > INFO: Starting Coyote HTTP/1.1 on port 8080
> > Dec 13, 2002 4:29:44 PM org.apache.jk.common.ChannelSocket init
> > INFO: JK2: ajp13 listening on /0.0.0.0:8009
> > Dec 13, 2002 4:29:44 PM org.apache.jk.server.JkMain start
> > INFO: Jk running ID=0 time=2/46
> > config=/usr/local/jakarta-tomcat-4.1.17/conf/jk2.properties
> >
> > It gives me an error that it can't find workers.properties, but it is
>in
> > fact there...
>
>What is the ownership/permissions on it?  In particular, is it
>readable by the user Tomcat is running as?
>
>Also, if you're using mod_jk, why all that stuff about jk2?
>
>
> > -----Original Message-----
> > From: Denise Mangano
> > To: 'tomcat-user@jakarta.apache.org'
> > Sent: 12/13/2002 10:36 PM
> > Subject: Almost there...Updated Apach-Tomcat with mod_jk
> >
> > Here is an update.  I managed to get passed the configure fail I was
> > getting, and got through the build of mod_jk.  I followed everything
>to
> > the T, and I am back to the almost the same boat that I was in
> > yesterday.
> >
> > Before mod_jk setup I could access http://localhost:8080 as well as
> > http://localhost.  Both apache and Tomacat were working fine.
>Yesterday
> >
> > after mod_jk install Tomcat stopped working.  This time, after second
> > try, I can still access both.  However, even though I installed mod_jk
>I
> >
> > need to input the :8080.
> >
> > I restarted apache, and found the following error:
> >
> > [Fri Dec 13 21:37:08 2002] [error] Error while opening the workers, jk
> > will not work
> > [Fri Dec 13 21:37:12 2002] [error] (2)No such file or directory: Error
> > while opening the workers, jk will not work
> >
> > Which file is trying to access the workers.properties file that I
> > created?  I searched the server.xml, the httpd.conf, and the
>mod_jk.conf
> >
> > files and could find nothing that called for it....
> >
> > As you can see I cannot access the files without using the port :8080
> > attached to the end of localhost - if I try to it is still looking in
>my
> >
> > Apache web directory...
> >
> > [Fri Dec 13 22:04:59 2002] [error] [client 216.164.30.185] File does
>not
> >
> > exist: /var/www/html/examples/jsp/num/numguess.jsp
> >
> > Any thoughts?  I can post my files, if anyone is willing to take a
>look
> > at it...
> >
> > Thanks.
> > Denise
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> > <ma...@jakarta.apache.org>
> >
> > --
> > To unsubscribe, e-mail:
><ma...@jakarta.apache.org>
> > For additional commands, e-mail:
><ma...@jakarta.apache.org>
> >
>
>Milt Epstein
>Research Programmer
>Integration and Software Engineering (ISE)
>Campus Information Technologies and Educational Services (CITES)
>University of Illinois at Urbana-Champaign (UIUC)
>mepstein@uiuc.edu
>
>
>--
>To unsubscribe, e-mail:
><ma...@jakarta.apache.org>
>For additional commands, e-mail:
><ma...@jakarta.apache.org>
>
>--
>To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>

RE: Almost there...Updated Apach-Tomcat with mod_jk .. please he lp!

Posted by Milt Epstein <me...@uiuc.edu>.
On Sun, 15 Dec 2002, Denise Mangano wrote:

> At first I thought it might be a permission problem, so I changed
> permissions to 775 on workers.properties and still no good.  NOW my
> Apache won't work.  I am getting an error message saying that Apache
> could not bind to port 443, that the port is already in use.
> Figuring on the problem being Tomcat, I uninstalled Tomcat, and I am
> still getting the error message and I can't bring up my website?!
> Desperately need to solve that cause my website, HAS to be up.  Can
> someone tell me how to check what else is binding to port 443?

443 is the default SSL (https) port, so most likely it is Apache that
is using it.  You probably already have it running, and need to
restart it (i.e. stop it then start it, as opposed to just starting
it).  Not sure about the other stuff.


> As far as why the jk2.properties, I have no idea!  But I can say
> this, it looks like when I built mod_jk it uses a java file called
> ApacheConfig.  This file has code that points to a different
> location for mod_jk is installed then where it actually is on my
> system.  Is it possible that I need to modify this ApacheConfig file
> before I build or are my configuration settings supposed to override
> that.  (In my error log below you can see that it still looks for
> mod_jk.so in libexec/ even though I changed that location in my
> tomcat config files... That still doesn't explain why even though
> its looking in the right place for my workers.properties file, it
> says the file is not there).
>
> Right now my first problem is more pressing...
>
> THanks!
> Denise
>
>
> -----Original Message-----
> From: Milt Epstein
> To: Tomcat Users List
> Sent: 12/14/2002 11:00 AM
> Subject: Re:  Almost there...Updated Apach-Tomcat with mod_jk
>
> On Sat, 14 Dec 2002, Denise Mangano wrote:
>
> > I also found this in my cataline.out log.
> > INFO: Loading registry information
> > Dec 13, 2002 4:29:37 PM org.apache.commons.modeler.Registry
> getRegistry
> > INFO: Creating new Registry instance
> > Dec 13, 2002 4:29:38 PM org.apache.commons.modeler.Registry getServer
> > INFO: Creating MBeanServer
> > Dec 13, 2002 4:29:39 PM org.apache.coyote.http11.Http11Protocol init
> > INFO: Initializing Coyote HTTP/1.1 on port 8080
> > mod_jk location: libexec/mod_jk.so
> > Make sure it is installed corectly or  set the config location
> > Using <ApacheConfig modJk="PATH_TO_MOD_JK.SO_OR_DLL" />
> > Can't find workers.properties at
> > /usr/local/jakarta-tomcat-4.1.17/conf/jk/workers.properties
> > Please install it in the default location or  set the config location
> > Using <ApacheConfig workersConfig="FULL_PATH" />
> > Starting service Tomcat-Standalone
> > Apache Tomcat/4.1.17
> > Dec 13, 2002 4:29:44 PM org.apache.coyote.http11.Http11Protocol start
> > INFO: Starting Coyote HTTP/1.1 on port 8080
> > Dec 13, 2002 4:29:44 PM org.apache.jk.common.ChannelSocket init
> > INFO: JK2: ajp13 listening on /0.0.0.0:8009
> > Dec 13, 2002 4:29:44 PM org.apache.jk.server.JkMain start
> > INFO: Jk running ID=0 time=2/46
> > config=/usr/local/jakarta-tomcat-4.1.17/conf/jk2.properties
> >
> > It gives me an error that it can't find workers.properties, but it is
> in
> > fact there...
>
> What is the ownership/permissions on it?  In particular, is it
> readable by the user Tomcat is running as?
>
> Also, if you're using mod_jk, why all that stuff about jk2?
>
>
> > -----Original Message-----
> > From: Denise Mangano
> > To: 'tomcat-user@jakarta.apache.org'
> > Sent: 12/13/2002 10:36 PM
> > Subject: Almost there...Updated Apach-Tomcat with mod_jk
> >
> > Here is an update.  I managed to get passed the configure fail I was
> > getting, and got through the build of mod_jk.  I followed everything
> to
> > the T, and I am back to the almost the same boat that I was in
> > yesterday.
> >
> > Before mod_jk setup I could access http://localhost:8080 as well as
> > http://localhost.  Both apache and Tomacat were working fine.
> Yesterday
> >
> > after mod_jk install Tomcat stopped working.  This time, after second
> > try, I can still access both.  However, even though I installed mod_jk
> I
> >
> > need to input the :8080.
> >
> > I restarted apache, and found the following error:
> >
> > [Fri Dec 13 21:37:08 2002] [error] Error while opening the workers, jk
> > will not work
> > [Fri Dec 13 21:37:12 2002] [error] (2)No such file or directory: Error
> > while opening the workers, jk will not work
> >
> > Which file is trying to access the workers.properties file that I
> > created?  I searched the server.xml, the httpd.conf, and the
> mod_jk.conf
> >
> > files and could find nothing that called for it....
> >
> > As you can see I cannot access the files without using the port :8080
> > attached to the end of localhost - if I try to it is still looking in
> my
> >
> > Apache web directory...
> >
> > [Fri Dec 13 22:04:59 2002] [error] [client 216.164.30.185] File does
> not
> >
> > exist: /var/www/html/examples/jsp/num/numguess.jsp
> >
> > Any thoughts?  I can post my files, if anyone is willing to take a
> look
> > at it...
> >
> > Thanks.
> > Denise
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> > <ma...@jakarta.apache.org>
> >
> > --
> > To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> >
>
> Milt Epstein
> Research Programmer
> Integration and Software Engineering (ISE)
> Campus Information Technologies and Educational Services (CITES)
> University of Illinois at Urbana-Champaign (UIUC)
> mepstein@uiuc.edu
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
>

Milt Epstein
Research Programmer
Integration and Software Engineering (ISE)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
mepstein@uiuc.edu


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>