RE: shared memory problem in Tomcat 4.1.24/Apache 2.0.47/mod_jk2 connection

2003-10-27 Thread Mario Juric
Hi,

FYI

I have found the error in server.xml. The following attribute value was
missing from the Connector element:

protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler

Not all JK2 setup instructions mention this.

However, the error messages in /var/log/httpd/error_log persist, but it does
not seem to affect the apache/tomcat connection.

Thanks a lot.

Cheers
Mario

-Original Message-
From: Klaus Wienert [mailto:[EMAIL PROTECTED] 
Sent: 22. oktober 2003 18:18
To: Tomcat Users List
Cc: [EMAIL PROTECTED]
Subject: Re: shared memory problem in Tomcat 4.1.24/Apache 2.0.47/mod_jk2
connection

Try the following:

# workers2.properties
[shm]
file=/var/log/httpd/jk2.shm
size=1048576

[channel.socket:localhost:8009]
tomcatId=tomcat1

[ajp13:localhost:8009]
channel=channel.socket:localhost:8009

[status:status]

[uri:/examples/*]
group=ajp13:localhost:8009

[uri:/jkstatus/*]
group=status:status

--

# jk2.properties
# no entries here

--

In server.xml add jvmRoute in Engine-Tag like this:

Engine jvmRoute=tomcat1 name=Standalone defaultHost=localhost
debug=0



Klaus

- Original Message - 
From: Mario Juric [EMAIL PROTECTED]
To: Tomcat User [EMAIL PROTECTED]
Sent: Wednesday, October 22, 2003 8:20 AM
Subject: shared memory problem in Tomcat 4.1.24/Apache 2.0.47/mod_jk2
connection


 I need some help in solving the following problem.



 I am trying to establish a simple Tomcat 4.1.24/Apache 2.0.47/mod_jk2
 connection using the standard Tomcat examples webapp. The browser waits
 forever when I try to access http://localhost/examples/. I also get the
the
 following errors two times in my /var/lo/httpd/error_log:



 [error] jk2_init() Can't find child XXX in scoreboard

 [error] mod_jk child init 1 -2



 Similar problem descriptions I found in the Tomcat User mailing archive
 indicate that this may have something to do with the shared memory file
 (shm). I have setup up read/write permission for this file.



 Note that http://localhost/ (Apache default page) and
 http://localhost:8009/examples/ (Tomcat examples) work as expected.



 My OS is Mandrake Linux 9.1 and I use the following setup files:



 # workers2.properties



 [shm]

 file=/var/log/httpd/jk2.shm

 size=1048576



 [channel.socket:localhost:8009]

 tomcatId=localhost:8009

 port=8009

 host=127.0.0.1



 [ajp13:localhost:8009]

 channel=channel.socket:localhost:8009



 [uri:/examples/*]

 worker=ajp13:localhost:8009



 # jk2.properties



 handler.list=request,container,channelSocket



 channelSocket.port=8009



 shm.file=/var/log/httpd/jk2.shm




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: shared memory problem in Tomcat 4.1.24/Apache 2.0.47/mod_jk2 connection

2003-10-23 Thread Mario Juric
I still have the same problem. This time I attached the status HTML page. It
may provide a clue to the source of the problem. I thank you for the help.

Cheers
Mario

-Original Message-
From: Klaus Wienert [mailto:[EMAIL PROTECTED] 
Sent: 22. oktober 2003 18:18
To: Tomcat Users List
Cc: [EMAIL PROTECTED]
Subject: Re: shared memory problem in Tomcat 4.1.24/Apache 2.0.47/mod_jk2
connection

Try the following:

# workers2.properties
[shm]
file=/var/log/httpd/jk2.shm
size=1048576

[channel.socket:localhost:8009]
tomcatId=tomcat1

[ajp13:localhost:8009]
channel=channel.socket:localhost:8009

[status:status]

[uri:/examples/*]
group=ajp13:localhost:8009

[uri:/jkstatus/*]
group=status:status

--

# jk2.properties
# no entries here

--

In server.xml add jvmRoute in Engine-Tag like this:

Engine jvmRoute=tomcat1 name=Standalone defaultHost=localhost
debug=0



Klaus

- Original Message - 
From: Mario Juric [EMAIL PROTECTED]
To: Tomcat User [EMAIL PROTECTED]
Sent: Wednesday, October 22, 2003 8:20 AM
Subject: shared memory problem in Tomcat 4.1.24/Apache 2.0.47/mod_jk2
connection


 I need some help in solving the following problem.



 I am trying to establish a simple Tomcat 4.1.24/Apache 2.0.47/mod_jk2
 connection using the standard Tomcat examples webapp. The browser waits
 forever when I try to access http://localhost/examples/. I also get the
the
 following errors two times in my /var/lo/httpd/error_log:



 [error] jk2_init() Can't find child XXX in scoreboard

 [error] mod_jk child init 1 -2



 Similar problem descriptions I found in the Tomcat User mailing archive
 indicate that this may have something to do with the shared memory file
 (shm). I have setup up read/write permission for this file.



 Note that http://localhost/ (Apache default page) and
 http://localhost:8009/examples/ (Tomcat examples) work as expected.



 My OS is Mandrake Linux 9.1 and I use the following setup files:



 # workers2.properties



 [shm]

 file=/var/log/httpd/jk2.shm

 size=1048576



 [channel.socket:localhost:8009]

 tomcatId=localhost:8009

 port=8009

 host=127.0.0.1



 [ajp13:localhost:8009]

 channel=channel.socket:localhost:8009



 [uri:/examples/*]

 worker=ajp13:localhost:8009



 # jk2.properties



 handler.list=request,container,channelSocket



 channelSocket.port=8009



 shm.file=/var/log/httpd/jk2.shm




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: shared memory problem in Tomcat 4.1.24/Apache 2.0.47/mod_jk2 connection

2003-10-23 Thread Mario Juric
Sorry,

It looks as if html attachements are not accepted by the list server. I try
to attach it as a zip-file.


-Original Message-
From: Mario Juric [mailto:[EMAIL PROTECTED] 
Sent: 23. oktober 2003 08:59
To: 'Tomcat Users List'
Subject: RE: shared memory problem in Tomcat 4.1.24/Apache 2.0.47/mod_jk2
connection

I still have the same problem. This time I attached the status HTML page. It
may provide a clue to the source of the problem. I thank you for the help.

Cheers
Mario

-Original Message-
From: Klaus Wienert [mailto:[EMAIL PROTECTED] 
Sent: 22. oktober 2003 18:18
To: Tomcat Users List
Cc: [EMAIL PROTECTED]
Subject: Re: shared memory problem in Tomcat 4.1.24/Apache 2.0.47/mod_jk2
connection

Try the following:

# workers2.properties
[shm]
file=/var/log/httpd/jk2.shm
size=1048576

[channel.socket:localhost:8009]
tomcatId=tomcat1

[ajp13:localhost:8009]
channel=channel.socket:localhost:8009

[status:status]

[uri:/examples/*]
group=ajp13:localhost:8009

[uri:/jkstatus/*]
group=status:status

--

# jk2.properties
# no entries here

--

In server.xml add jvmRoute in Engine-Tag like this:

Engine jvmRoute=tomcat1 name=Standalone defaultHost=localhost
debug=0



Klaus

- Original Message - 
From: Mario Juric [EMAIL PROTECTED]
To: Tomcat User [EMAIL PROTECTED]
Sent: Wednesday, October 22, 2003 8:20 AM
Subject: shared memory problem in Tomcat 4.1.24/Apache 2.0.47/mod_jk2
connection


 I need some help in solving the following problem.



 I am trying to establish a simple Tomcat 4.1.24/Apache 2.0.47/mod_jk2
 connection using the standard Tomcat examples webapp. The browser waits
 forever when I try to access http://localhost/examples/. I also get the
the
 following errors two times in my /var/lo/httpd/error_log:



 [error] jk2_init() Can't find child XXX in scoreboard

 [error] mod_jk child init 1 -2



 Similar problem descriptions I found in the Tomcat User mailing archive
 indicate that this may have something to do with the shared memory file
 (shm). I have setup up read/write permission for this file.



 Note that http://localhost/ (Apache default page) and
 http://localhost:8009/examples/ (Tomcat examples) work as expected.



 My OS is Mandrake Linux 9.1 and I use the following setup files:



 # workers2.properties



 [shm]

 file=/var/log/httpd/jk2.shm

 size=1048576



 [channel.socket:localhost:8009]

 tomcatId=localhost:8009

 port=8009

 host=127.0.0.1



 [ajp13:localhost:8009]

 channel=channel.socket:localhost:8009



 [uri:/examples/*]

 worker=ajp13:localhost:8009



 # jk2.properties



 handler.list=request,container,channelSocket



 channelSocket.port=8009



 shm.file=/var/log/httpd/jk2.shm




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



jkstatus.zip
Description: Zip compressed data
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

shared memory problem in Tomcat 4.1.24/Apache 2.0.47/mod_jk2 connection

2003-10-22 Thread Mario Juric
I need some help in solving the following problem.

 

I am trying to establish a simple Tomcat 4.1.24/Apache 2.0.47/mod_jk2
connection using the standard Tomcat examples webapp. The browser waits
forever when I try to access http://localhost/examples/. I also get the the
following errors two times in my /var/lo/httpd/error_log:

 

[error] jk2_init() Can't find child XXX in scoreboard

[error] mod_jk child init 1 -2

 

Similar problem descriptions I found in the Tomcat User mailing archive
indicate that this may have something to do with the shared memory file
(shm). I have setup up read/write permission for this file.

 

Note that http://localhost/ (Apache default page) and
http://localhost:8009/examples/ (Tomcat examples) work as expected.

 

My OS is Mandrake Linux 9.1 and I use the following setup files:

 

# workers2.properties

 

[shm]

file=/var/log/httpd/jk2.shm

size=1048576

 

[channel.socket:localhost:8009]

tomcatId=localhost:8009

port=8009

host=127.0.0.1

 

[ajp13:localhost:8009]

channel=channel.socket:localhost:8009

 

[uri:/examples/*]

worker=ajp13:localhost:8009

 

# jk2.properties

 

handler.list=request,container,channelSocket

 

channelSocket.port=8009

 

shm.file=/var/log/httpd/jk2.shm



RE: Download jk2 for apache2 and linux

2003-10-13 Thread Mario Juric
Hi Chap,

Do not know where the binaries went, but the source code is here:

http://mirrors.ccs.neu.edu/Apache/dist/jakarta/tomcat-4/source/

Equivalent binaries should otherwise be here:

http://mirrors.ccs.neu.edu/Apache/dist/jakarta/tomcat-4/binaries/

...but the connectors are absent. I had a lot of trouble figuring out how to
compile this, but I finally succeeded. If you have similar problems
yourself, you are welcome to ask me, I might be able to spare you the agony
I went through. I am now facing agonizing grsecurity problems...

Connecting Apache and Tomcat is not for sissies...

Cheers
Mario

-Original Message-
From: Anthony Gray [mailto:[EMAIL PROTECTED] 
Sent: 13. oktober 2003 14:31
To: [EMAIL PROTECTED]
Subject: Download jk2 for apache2 and linux

Hi,

I am trying to download the Apache-Tomcat connector for Apache2, however I
can't find the linux version.  I've tried the following links, but have had
no luck (even jk):

http://apache.ausgamers.com/jakarta/tomcat-connectors/jk2/binaries/
http://apache.ausgamers.com/jakarta/tomcat-connectors/jk/binaries/linux/

I was able to download the jk about 1 month ago but now the linux version
seems to have gone.  Any Ideas?

Thanks
Anthony

_
Hot chart ringtones and polyphonics. Go to  
http://ninemsn.com.au/mobilemania/default.asp


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Getting segmentation faults with Apache 2.0.47/Tomcat 4.1.27/mod_jk2

2003-10-11 Thread Mario Juric
Hi,

I have a hard time configuring Apache 2.0.47 with Tomcat 4.1.27 using
mod_jk2/jni/jdk 1.4.2 on a Mandrake Linux 9.1 box. I compiled Apache and
tomcat connectors myself.

Both Apache and Tomcat work fine for them selves. Connecting them produces
the following output in /var/log/httpd/error_log:

[Sat Oct 11 09:03:16 2003] [error] jk2_init() Can't find child 30753 in
scoreboard
[Sat Oct 11 09:03:16 2003] [notice] Apache/2.0.47 (Unix) mod_jk2/2.0.3-dev
configured -- resuming normal operations
[Sat Oct 11 09:03:16 2003] [notice] child pid 562 exit signal Segmentation
fault (11)

and I get lots of

[Sat Oct 11 09:03:16 2003] [notice] child pid X exit signal Segmentation
fault (11)
[Sat Oct 11 09:03:16 2003] [error] jk2_init() Can't find child X in
scoreboard

In my /var/log/syslog I also get grsecurity warnings of the following kind:

Oct 11 14:33:59 blofeld kernel: grsec: signal 11 sent to (httpd:X)
UID(65534) EUID(65534), parent (httpd:5213) UID(0) EUID(0)

Before I even begin annoying someone with my configuration setup (and I
allready tried a lot), there might be someone who could answer the following
question first:

Is this an Apache/grsecurity problem or an Apache/Tomcat configuration issue
or both?

In the first case it might be better to address another mailing list.

I appreciate any input.

Cheers
Mario


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]