You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Martin Bouman <M....@telecats.nl> on 2000/11/24 16:25:56 UTC

Tomcat 3.2 + mod_jk + Apache 1.3.14 + Cocoon 1.8 on Win NT: One q uestion and a lot of answers!

Hello everyone!

After three days I succeeded in running Tomcat 3.2 beta 8, Apache 1.3.14 and
Cocoon 1.8 on Win NT!
Now I hope I have not overlooked something and that it IS working right. For
now it does.

My configuration has the following features:

- Tomcat 3.2 beta 8 
- Apache 1.3.14
- Cocoon 1.8
- mod_jk
- no port 8080 (Thanks to Dima and Robin: jkMount /*.xml, I hope this is
right? I can get http://localhost/cocoon/Cocoon.xml)
- ajp13 (next to ajp12)
- Tomcat running as NT Service or in DOS-prompt with Cocoon (I solved the
jar-sequence-problem by recreating the jars from      
  Tomcat under NT)
- Both Tomcat and Apache are running as an 'Automatic' service at the
startup of NT. To avoid Apache from starting before Tomcat
  (I know this is nescessary in the DOS-prompt, but also in the NT Service?
I think so.) I made Apache dependent on Tomcat, which
  does the trick.

Now the question: Is it possible to have the cocoonfiles in different
directory's under 'htdocs' in Apache and make Tomcat handle the
whole 'htdocs' tree? I have tried Mr. Schneider's approach, but I could not
get it to work.

Now all there is to do for me is to make everything work with Nuance
Voyager...

If anyone has any questions, answers, remarks or suggestions, pleas let me
know!

Martin Bouman
TeleCats BV
The Netherlands

Problem with IIS5 & isapi_redirect.dll & tomcat 3.1

Posted by chris edwards <ch...@clara.co.uk>.
>Hey all,


Just wondering if anyone else has suffered this problem.

Have installed the isapi_redirect.dll and IIS5 is happy with it. Followed 
all of the IIS How to's to the letter, however when I try and connect 
through IIS to a jsp page the inetinfo.exe service errors and the web 
services are restarted.

I am using;
  jdk1.3.
Tomcat 3.1 stable.
geservany to load tomcat as a service.
mySql as my rdbms.
windows 2k professional

If any one has experienced this and found an answer your help would be much 
appreciated.
Is there a chance that this is due to a dodgy security update from M$ ?

Much thanks for any help, all apreciated.

-------------------------------------------
Chris Edwards
e. chris.edwards@clara.co.uk
-------------------------------------------


Re: HELP on Tomcat 3.2 + mod_jk + Apache 1.3.14 + Mandrake 7.1

Posted by Dominique BATARD <db...@sf2r.fr>.
Salut

You have to compile mod_jk !

Dom

----- Original Message -----
From: "Bourque, Guillaume" <bo...@logisoftech.com>
To: <to...@jakarta.apache.org>
Sent: Friday, November 24, 2000 11:22 PM
Subject: Re: HELP on Tomcat 3.2 + mod_jk + Apache 1.3.14 + Mandrake 7.1


> I forgot to included the ouput of  /var/log/httpd/mod_jk.log
>
> [jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker
> [jk_uri_worker_map.c (434)]: jk_uri_worker_map_t::map_uri_to_worker, done
> without a match
>
> What's missing to my tomcat conf ?
>
>
> Vous auriez écrit ... :
>
> >Hello all !
> >
> >Sorry to ask this one but I tried a lot of thing before asking ?
> >
> >I have a standards Mandrake/Linux machine 7.1 with the following packages
> >installed
> >
> >[root@localhost conf]# rpm -qa | egrep "apache|tomcat|IBMB"
> >apache-suexec-1.3.12-24mdk
> >apache-1.3.12-24mdk
> >apache-common-1.3.12-24mdk
> >apache-manual-1.3.12-24mdk
> >apache-devel-1.3.12-12mdk
> >IBMJava2-SDK-1.3-2.0
> >tomcat-3.2-beta5.1
> >tomcat-mod-3.2-beta5.1
> >tomcat-doc-3.2-beta5.1
> >
> >
> >After installing these package I can talk to tomcat via
> >http://localhost:8080
> >
> >But like every body I want to use 80 and the JKMount for my jsp files
> >
> >And here is my /etc/http/conf/mod_jk.conf file
> >
> >        <VirtualHost 131.195.53.122:80>
> >          DocumentRoot /web/host1
> >          ServerName darwin.hydro.qc.ca
> >          JkMount /*.jsp ajp12
> >          JkMount /servlet/* ajp12
> >        </VirtualHost>
> >
> >
> >Also I included the ouput of the strace command run on my apache process
> >
> >strace -f -p 18460
> >
> >
> >brk(0x8151000)                          = 0x8151000
> >brk(0x8154000)                          = 0x8154000
> >brk(0x8157000)                          = 0x8157000
> >read(11, "GET /carts.jsp HTTP/1.0\r\nIf-Modi"..., 4096) = 415
> >write(10, "[jk_uri_worker_map.c (344)]: Int"..., 73) = 73
> >fdatasync(0xa)                          = 0
> >write(10, "[jk_uri_worker_map.c (406)]: jk_"..., 89) = 89
> >fdatasync(0xa)                          = 0
> >stat("/web/host1/carts.jsp", {st_mode=S_IFREG|0644, st_size=522, ...}) =
0
> >open("/.htaccess", O_RDONLY)            = -1 ENOENT (No such file or
> >directory)
> >open("/web/.htaccess", O_RDONLY)        = -1 ENOENT (No such file or
> >directory)
> >open("/web/host1/.htaccess", O_RDONLY)  = -1 ENOENT (No such file or
> >directory)
> >open("/web/host1/carts.jsp", O_RDONLY)  = 12
> >select(12, [11], NULL, NULL, {0, 0})    = 0 (Timeout)
> >write(11, "HTTP/1.1 304 Not Modified\r\nDate:"..., 283) = 283
> >close(12)                               = 0
> >read(11, 0x8152b20, 4096)               = ? ERESTARTSYS (To be restarted)
> >--- SIGALRM (Minuterie d'alerte) ---
> >close(11)                               = 0
> >rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
> >rt_sigaction(SIGURG, {0x805be14, [], SA_INTERRUPT|0x4000000}, {0x805be14,
> >[], SA_INTERRUPT|0x4000000}, 8) = 0
> >
> >
> >What am I missing ?
> >
> >Why apache do not pass the request to tomcat or why tomcat doesnot reply
> >to apache ?
> >
> >Right now I see only the ascii source file of my jsp file !
> >
> >TIA,
> >
> >Guillaume
> >
> >
> >
>
> --
> --------------------- La qualité avant tout ! ----------------------
> Guillaume Bourque                            Architecte informatique
>                      LogiSoft Technologies inc.
> Tél. (514) 580-0050                              Fax: (450) 649-6134
> -------------------- http://www.logisoftech.com --------------------
>
>


Re: HELP on Tomcat 3.2 + mod_jk + Apache 1.3.14 + Mandrake 7.1

Posted by "Bourque, Guillaume" <bo...@logisoftech.com>.
I forgot to included the ouput of  /var/log/httpd/mod_jk.log

[jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker
[jk_uri_worker_map.c (434)]: jk_uri_worker_map_t::map_uri_to_worker, done 
without a match

What's missing to my tomcat conf ?


Vous auriez écrit ... :

>Hello all !
>
>Sorry to ask this one but I tried a lot of thing before asking ?
>
>I have a standards Mandrake/Linux machine 7.1 with the following packages
>installed
>
>[root@localhost conf]# rpm -qa | egrep "apache|tomcat|IBMB"
>apache-suexec-1.3.12-24mdk
>apache-1.3.12-24mdk
>apache-common-1.3.12-24mdk
>apache-manual-1.3.12-24mdk
>apache-devel-1.3.12-12mdk
>IBMJava2-SDK-1.3-2.0
>tomcat-3.2-beta5.1
>tomcat-mod-3.2-beta5.1
>tomcat-doc-3.2-beta5.1
>
>
>After installing these package I can talk to tomcat via
>http://localhost:8080
>
>But like every body I want to use 80 and the JKMount for my jsp files 
>
>And here is my /etc/http/conf/mod_jk.conf file
>
>        <VirtualHost 131.195.53.122:80>
>          DocumentRoot /web/host1
>          ServerName darwin.hydro.qc.ca
>          JkMount /*.jsp ajp12
>          JkMount /servlet/* ajp12
>        </VirtualHost>
>
>
>Also I included the ouput of the strace command run on my apache process 
>
>strace -f -p 18460
>
>
>brk(0x8151000)                          = 0x8151000
>brk(0x8154000)                          = 0x8154000
>brk(0x8157000)                          = 0x8157000
>read(11, "GET /carts.jsp HTTP/1.0\r\nIf-Modi"..., 4096) = 415
>write(10, "[jk_uri_worker_map.c (344)]: Int"..., 73) = 73
>fdatasync(0xa)                          = 0
>write(10, "[jk_uri_worker_map.c (406)]: jk_"..., 89) = 89
>fdatasync(0xa)                          = 0
>stat("/web/host1/carts.jsp", {st_mode=S_IFREG|0644, st_size=522, ...}) = 0
>open("/.htaccess", O_RDONLY)            = -1 ENOENT (No such file or
>directory)
>open("/web/.htaccess", O_RDONLY)        = -1 ENOENT (No such file or
>directory)
>open("/web/host1/.htaccess", O_RDONLY)  = -1 ENOENT (No such file or
>directory)
>open("/web/host1/carts.jsp", O_RDONLY)  = 12
>select(12, [11], NULL, NULL, {0, 0})    = 0 (Timeout)
>write(11, "HTTP/1.1 304 Not Modified\r\nDate:"..., 283) = 283
>close(12)                               = 0
>read(11, 0x8152b20, 4096)               = ? ERESTARTSYS (To be restarted)
>--- SIGALRM (Minuterie d'alerte) ---
>close(11)                               = 0
>rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
>rt_sigaction(SIGURG, {0x805be14, [], SA_INTERRUPT|0x4000000}, {0x805be14,
>[], SA_INTERRUPT|0x4000000}, 8) = 0
>
>
>What am I missing ? 
>
>Why apache do not pass the request to tomcat or why tomcat doesnot reply
>to apache ?
>
>Right now I see only the ascii source file of my jsp file !
>
>TIA,
>
>Guillaume
>
>
>

-- 
--------------------- La qualité avant tout ! ----------------------
Guillaume Bourque                            Architecte informatique
                     LogiSoft Technologies inc.
Tél. (514) 580-0050                              Fax: (450) 649-6134
-------------------- http://www.logisoftech.com --------------------


HELP on Tomcat 3.2 + mod_jk + Apache 1.3.14 + Mandrake 7.1

Posted by "Bourque, Guillaume" <bo...@logisoftech.com>.
Hello all !

Sorry to ask this one but I tried a lot of thing before asking ?

I have a standards Mandrake/Linux machine 7.1 with the following packages
installed

[root@localhost conf]# rpm -qa | egrep "apache|tomcat|IBMB"
apache-suexec-1.3.12-24mdk
apache-1.3.12-24mdk
apache-common-1.3.12-24mdk
apache-manual-1.3.12-24mdk
apache-devel-1.3.12-12mdk
IBMJava2-SDK-1.3-2.0
tomcat-3.2-beta5.1
tomcat-mod-3.2-beta5.1
tomcat-doc-3.2-beta5.1


After installing these package I can talk to tomcat via
http://localhost:8080

But like every body I want to use 80 and the JKMount for my jsp files 

And here is my /etc/http/conf/mod_jk.conf file

        <VirtualHost 131.195.53.122:80>
          DocumentRoot /web/host1
          ServerName darwin.hydro.qc.ca
          JkMount /*.jsp ajp12
          JkMount /servlet/* ajp12
        </VirtualHost>


Also I included the ouput of the strace command run on my apache process 

strace -f -p 18460


brk(0x8151000)                          = 0x8151000
brk(0x8154000)                          = 0x8154000
brk(0x8157000)                          = 0x8157000
read(11, "GET /carts.jsp HTTP/1.0\r\nIf-Modi"..., 4096) = 415
write(10, "[jk_uri_worker_map.c (344)]: Int"..., 73) = 73
fdatasync(0xa)                          = 0
write(10, "[jk_uri_worker_map.c (406)]: jk_"..., 89) = 89
fdatasync(0xa)                          = 0
stat("/web/host1/carts.jsp", {st_mode=S_IFREG|0644, st_size=522, ...}) = 0
open("/.htaccess", O_RDONLY)            = -1 ENOENT (No such file or
directory)
open("/web/.htaccess", O_RDONLY)        = -1 ENOENT (No such file or
directory)
open("/web/host1/.htaccess", O_RDONLY)  = -1 ENOENT (No such file or
directory)
open("/web/host1/carts.jsp", O_RDONLY)  = 12
select(12, [11], NULL, NULL, {0, 0})    = 0 (Timeout)
write(11, "HTTP/1.1 304 Not Modified\r\nDate:"..., 283) = 283
close(12)                               = 0
read(11, 0x8152b20, 4096)               = ? ERESTARTSYS (To be restarted)
--- SIGALRM (Minuterie d'alerte) ---
close(11)                               = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGURG, {0x805be14, [], SA_INTERRUPT|0x4000000}, {0x805be14,
[], SA_INTERRUPT|0x4000000}, 8) = 0


What am I missing ? 

Why apache do not pass the request to tomcat or why tomcat doesnot reply
to apache ?

Right now I see only the ascii source file of my jsp file !

TIA,

Guillaume


-- 
--------------------- La qualité avant tout ! ----------------------
Guillaume Bourque                            Architecte informatique
                     LogiSoft Technologies inc.
Tél. (514) 580-0050                              Fax: (450) 649-6134
-------------------- http://www.logisoftech.com --------------------