You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Christoph Kukulies <ku...@gil.physik.rwth-aachen.de> on 2000/05/02 17:26:57 UTC

getting tomcat-apache.conf working

I'm trying to get apache1.3.12 working with tomcat-3.1.

I can run tomcat and the selftest.

I can run apache.

I ran /usr/local/sbin/apxs -c -o mod_jserv.so *.c in
/usr/local/jakarta-tomcat/src/native/apache 
and it compiled/linked mod_jserv.so.

/usr/local/etc/apache/httpd.conf contains:
Include /usr/local/build/tomcat/conf/tomcat-apache.conf

In turn:

/usr/local/build/tomcat/conf/tomcat-apache.conf:

LoadModule jserv_module /usr/local/libexec/apache/mod_jserv.so


(Do I have to set some Environment variable during the compilation, btw.?,
like APACHE_HOME or TOMCAT_HOME?)

[Tue May  2 17:19:47 2000] [notice] SIGHUP received.  Attempting to restart
[Tue May  2 17:19:47 2000] [emerg] JServ: Error setting defaults: ApJServLogFile
: file '/usr/local/./logs/mod_jserv.log' can't be opened
[Tue May  2 17:19:47 2000] [crit] (2)No such file or directory: Apache JServ enc
ountered a fatal error; check your ApJServLogFile for details if none are presen
t in this file.  Exiting.


Hhmm. I created /usr/local/logs and apache started. Well, that's a bit
quick 'n dirty. Do I have to specify ApJServLogFile in tomcat-apache.conf
also? (Which isn't there by default).

-- 
Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de

Re: getting tomcat-apache.conf working

Posted by Nishit Trivedi <ni...@planet.net>.
you have to set TOMCAT_HOME and JAVA_HOME before see some examples...
it's all given in the <your path where your install
tomcat>/doc/ubguide/tomcat_ug.html

Nishit
Internet Programmer
Planet Access Networks
973-691-4704 Ext:157
----- Original Message -----
From: "Christoph Kukulies" <ku...@gilberto.physik.RWTH-Aachen.DE>
To: <to...@jakarta.apache.org>
Sent: Tuesday, May 02, 2000 11:26 AM
Subject: getting tomcat-apache.conf working


>
> I'm trying to get apache1.3.12 working with tomcat-3.1.
>
> I can run tomcat and the selftest.
>
> I can run apache.
>
> I ran /usr/local/sbin/apxs -c -o mod_jserv.so *.c in
> /usr/local/jakarta-tomcat/src/native/apache
> and it compiled/linked mod_jserv.so.
>
> /usr/local/etc/apache/httpd.conf contains:
> Include /usr/local/build/tomcat/conf/tomcat-apache.conf
>
> In turn:
>
> /usr/local/build/tomcat/conf/tomcat-apache.conf:
>
> LoadModule jserv_module /usr/local/libexec/apache/mod_jserv.so
>
>
> (Do I have to set some Environment variable during the compilation, btw.?,
> like APACHE_HOME or TOMCAT_HOME?)
>
> [Tue May  2 17:19:47 2000] [notice] SIGHUP received.  Attempting to
restart
> [Tue May  2 17:19:47 2000] [emerg] JServ: Error setting defaults:
ApJServLogFile
> : file '/usr/local/./logs/mod_jserv.log' can't be opened
> [Tue May  2 17:19:47 2000] [crit] (2)No such file or directory: Apache
JServ enc
> ountered a fatal error; check your ApJServLogFile for details if none are
presen
> t in this file.  Exiting.
>
>
> Hhmm. I created /usr/local/logs and apache started. Well, that's a bit
> quick 'n dirty. Do I have to specify ApJServLogFile in tomcat-apache.conf
> also? (Which isn't there by default).
>
> --
> Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de
>
> --------------------------------------------------------------------------
> To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commmands, email: tomcat-user-help@jakarta.apache.org
>
>


Re: getting tomcat-apache.conf working

Posted by Christoph Kukulies <ku...@gilberto.physik.RWTH-Aachen.DE>.
On Tue, May 02, 2000 at 05:34:57PM +0200, Jan Wilm wrote:
> Hi Christoph
> 
> I think your problems were write permissions, JServ was not allowed
> to create the file as the user it ran.
> Or ??

Yeah, I wrote that I created the directory /usr/local/logs and it could proceed.
Although the location /usr/local/logs is a bit weird. I was assuming that I had
to tell tomcat-apache the location of the log file and the
location it was assuming it to put looked as if there was some
PREFIX missing.


Anyway, I can proudly report to see:
[Tue May  2 17:30:09 2000] [notice] Apache/1.3.12 (Unix) tomcat/1.0 configured -
- resuming normal operations

in my httpd-error.log now.

Do I have to run build/tomcat/bin/startup.sh also? I.e., does tomcat have to
run in parallel to apache or is mod_jserv.so (tomcats) now doing all the job?


-- 
Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de

Re: getting tomcat-apache.conf working

Posted by Jan Wilm <Ja...@consol.de>.
Hi Christoph

I think your problems were write permissions, JServ was not allowed
to create the file as the user it ran.
Or ??

On Tue, 2 May 2000, Christoph Kukulies wrote:

> 
> I'm trying to get apache1.3.12 working with tomcat-3.1.
> 
> I can run tomcat and the selftest.
> 
> I can run apache.
> 
> I ran /usr/local/sbin/apxs -c -o mod_jserv.so *.c in
> /usr/local/jakarta-tomcat/src/native/apache 
> and it compiled/linked mod_jserv.so.
> 
> /usr/local/etc/apache/httpd.conf contains:
> Include /usr/local/build/tomcat/conf/tomcat-apache.conf
> 
> In turn:
> 
> /usr/local/build/tomcat/conf/tomcat-apache.conf:
> 
> LoadModule jserv_module /usr/local/libexec/apache/mod_jserv.so
> 
> 
> (Do I have to set some Environment variable during the compilation, btw.?,
> like APACHE_HOME or TOMCAT_HOME?)
> 
> [Tue May  2 17:19:47 2000] [notice] SIGHUP received.  Attempting to restart
> [Tue May  2 17:19:47 2000] [emerg] JServ: Error setting defaults: ApJServLogFile
> : file '/usr/local/./logs/mod_jserv.log' can't be opened
> [Tue May  2 17:19:47 2000] [crit] (2)No such file or directory: Apache JServ enc
> ountered a fatal error; check your ApJServLogFile for details if none are presen
> t in this file.  Exiting.
> 
> 
> Hhmm. I created /usr/local/logs and apache started. Well, that's a bit
> quick 'n dirty. Do I have to specify ApJServLogFile in tomcat-apache.conf
> also? (Which isn't there by default).
> 
> -- 
> Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de
> 
> --------------------------------------------------------------------------
> To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commmands, email: tomcat-user-help@jakarta.apache.org
>