Re: binary streaming / content-type problem with mod_jk ?

2005-07-21 Thread Jérôme Chauvin

Thanks for your answer Henri :)
I agree with you, finally I don't think the problem comes from mod_jk
It may be Apache (using mod_jk and Tomcat) like described by Stuart 
Hynd in his post on this page : http://www.junlu.com/msg/107218.html


Or, perhaps, QuickTime 6 which is more "weaker" than QT7 which doesn't 
care about the thing which makes the problem (and I would like to know 
where this thing comes from).


But the incredible thing is that, using this : 
http://localhost:8080/my_test/BinaryStreamingit works perfectly on 
QT6  (without the 8080 port, the latence problem appears -> QT6 or the 
servlet or Apache, is waiting for the video file entirely created 
before starting to play it)...



Any other suggestions or opinions about this mystery ? :)



Jérôme Chauvin

OPSOMAI
77, rue de Charonne
75011 Paris - France
Tél : +33 (0)1 58 39 38 22
Fax : +33 (0)1 43 70 70 72
@ : [EMAIL PROTECTED]
URL : http://www.opsomai.com

Le 20 juil. 05, à 23:24, Henri Gomez a écrit :

not true, mod_jk didn't change the mime type provided by servlet 
output.


I'm doing it on productions servers to handle on the fly generated PDFs

2005/7/20, Jérôme Chauvin <[EMAIL PROTECTED]>:

Any ideas ?
It would be helpful :)
Thanks,

Jérôme Chauvin

Le 19 juil. 05, à 10:09, Jérôme Chauvin a écrit :


Hi all !

I've developed a servlet ("BinaryStreaming" based on
"StreamingContent" by Raj Behera) which does a binary stream of a 
mpeg

video file which is created progressively (by another
servlet/software/Unix command/... not important ) and finally read 
and

played by Quicktime.
I use Apache and Tomcat so I've installed mod_jk

All work well (-> MacOS and Windows) but... :
If I go on http://localhost:8080/my_test/BinaryStreaming it
works well with QuickTime 7 and QuickTime 6 (6, 6.5, 6.5.2, ...).

I have mod_jk so I can go on
http://localhost/my_test/BinaryStreaming   and here it still 
works

well with QT7.
But QT6 seems to wait that the video file is entirely created to 
start

the viewing instead of starting to play the movie as soon as there is
data in it, progressively.
-> like it does with QT7 and QT6 with :8080  OR  when I use QT7
without :8080.

I think it's due to mod_jk but I've no idea to make it work


I've found that another person had a similar problem, but no answer
was given :
http://www.junlu.com/msg/107218.html

This message was posted in 09/2004 and it seems that Apache causes
problems with pre-defined MIME-Types.



Does someone have an answer or an idea ? :-)
I really need to fix this ! :(

Thanks in advance.  :o)

Regards,

Jérôme

---
Jérôme Chauvin

OPSOMAI
77, rue de Charonne
75011 Paris - France
Tél : +33 (0)1 58 39 38 22
Fax : +33 (0)1 43 70 70 72
@ : [EMAIL PROTECTED]
URL : http://www.opsomai.com




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



Re: binary streaming / content-type problem with mod_jk ?

2005-07-20 Thread Jérôme Chauvin

Any ideas ?
It would be helpful :)
Thanks,

Jérôme Chauvin

Le 19 juil. 05, à 10:09, Jérôme Chauvin a écrit :


Hi all !

I've developed a servlet ("BinaryStreaming" based on 
"StreamingContent" by Raj Behera) which does a binary stream of a mpeg 
video file which is created progressively (by another 
servlet/software/Unix command/... not important ) and finally read and 
played by Quicktime.

I use Apache and Tomcat so I've installed mod_jk

All work well (-> MacOS and Windows) but... :
If I go on http://localhost:8080/my_test/BinaryStreaming it 
works well with QuickTime 7 and QuickTime 6 (6, 6.5, 6.5.2, ...).


I have mod_jk so I can go on  
http://localhost/my_test/BinaryStreaming   and here it still works 
well with QT7.
But QT6 seems to wait that the video file is entirely created to start 
the viewing instead of starting to play the movie as soon as there is 
data in it, progressively.
-> like it does with QT7 and QT6 with :8080  OR  when I use QT7 
without :8080.


I think it's due to mod_jk but I've no idea to make it work


I've found that another person had a similar problem, but no answer 
was given :

http://www.junlu.com/msg/107218.html

This message was posted in 09/2004 and it seems that Apache causes 
problems with pre-defined MIME-Types.




Does someone have an answer or an idea ? :-)
I really need to fix this ! :(

Thanks in advance.  :o)

Regards,

Jérôme

---
Jérôme Chauvin

OPSOMAI
77, rue de Charonne
75011 Paris - France
Tél : +33 (0)1 58 39 38 22
Fax : +33 (0)1 43 70 70 72
@ : [EMAIL PROTECTED]
URL : http://www.opsomai.com

binary streaming / content-type problem with mod_jk ?

2005-07-19 Thread Jérôme Chauvin

Hi all !

I've developed a servlet ("BinaryStreaming" based on "StreamingContent" 
by Raj Behera) which does a binary stream of a mpeg video file which is 
created progressively (by another servlet/software/Unix command/... not 
important ) and finally read and played by Quicktime.

I use Apache and Tomcat so I've installed mod_jk

All work well (-> MacOS and Windows) but... :
If I go on http://localhost:8080/my_test/BinaryStreaming it 
works well with QuickTime 7 and QuickTime 6 (6, 6.5, 6.5.2, ...).


I have mod_jk so I can go on  
http://localhost/my_test/BinaryStreaming   and here it still works 
well with QT7.
But QT6 seems to wait that the video file is entirely created to start 
the viewing instead of starting to play the movie as soon as there is 
data in it, progressively.
-> like it does with QT7 and QT6 with :8080  OR  when I use QT7 without 
:8080.


I think it's due to mod_jk but I've no idea to make it work


I've found that another person had a similar problem, but no answer was 
given :

http://www.junlu.com/msg/107218.html

This message was posted in 09/2004 and it seems that Apache causes 
problems with pre-defined MIME-Types.




Does someone have an answer or an idea ? :-)
I really need to fix this ! :(

Thanks in advance.  :o)

Regards,

Jérôme

---
Jérôme Chauvin

OPSOMAI
77, rue de Charonne
75011 Paris - France
Tél : +33 (0)1 58 39 38 22
Fax : +33 (0)1 43 70 70 72
@ : [EMAIL PROTECTED]
URL : http://www.opsomai.com

Re: binary streaming / content-type problem with mod_jk

2005-07-18 Thread Jérôme Chauvin

Hi all !

I've developed a servlet which does a binary stream of a mpeg video file 
which is created progressively (by another servlet/software/Unix 
command/... ) and finally read and played by Quicktime.

I use Apache and Tomcat so I've installed mod_jk

All work well but... :
If I go on http://localhost:8080/my_test/BinaryStreaming it 
works well with QuickTime 7 and QuickTime 6 (6, 6.5, 6.5.2, ...).


I have mod_jk so I can go on  
http://localhost/my_test/BinaryStreaming   and here it still works 
well with QT7.
But QT6 seems to wait that the video file is entirely created to start 
the viewing instead of starting to play the movie as soon as there is 
data in it.
(-> like it does with QT7 and QT6 with :8080 or without :8080 and when I 
use QT7).


I think it's due to mod_jk but I've no idea to make it work


I've found that another person had a similar problem, but no answer was 
given :

http://www.junlu.com/msg/107218.html

This message was posted in 09/2004 and it seems that Apache causes 
problems with pre-defined MIME-Types.




Does someone have an answer or an idea ? :-)
Thanks in advance.

Regards,

Jérôme



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



Problem with mod_jk 1.2.8 (and 1.2.10) and Tomcat 4.0.4

2005-04-11 Thread Laurent LE PRIEUR
Hello,
I have a problem of ping pong between the connector mod_jk and tomcat 4.0.4 
which entraine a significant load network.

Sequence 1234 APACHE MOD_JK to TOMCAT
Response AB (TOMCAT to APACHE MOD_JK)
http://jakarta.apache.org/tomcat/connectors-doc-archive/jk2/common/AJPv13.html
I manage to reproduce the problem in the following way:  I have an 
application which allows me to send a file (I a file of 5 Mo takes for 
example) and I the transfer stops while close my navigator at this time 
there sequence AB/1234 never stops (infinite).  Useless to say to you that 
if 20 or 30 users make celà, one arrives at a load very significant network.

tcpdump on localhost showed me that there is continues traffic between
both the httpd/mod_jk and the tomcat server (ajpv13).  The traffic is
always the same.  A request from the container (AB -> in ajpv13
this means "Get Body Chunk") and a reply from the server (1234|00|00 ->
this is an 'empty packet' telling there is nothing more to be sent).
I found only one mail in this direction in mailing list archive.  And no 
response to this problem.  Can you help me?
http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg118112.html

Best Regards,
Laurent LE PRIEUR
Rectorat de Nancy Metz
Education Nationale - FRANCE
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Uppercase index.jsp problem with mod_jk 1.2.8 ?

2005-02-07 Thread Andre Schild
Hello,

we actually use mod_jk 1.2.5 with apache 2.0.52 under win32.
We tried to upgrade to mod_jk 1.2.8, but we get a problem with it.

When specifying a URL like http://www.client.com then
the request is forwarded to tomcat, but tomcat is asked for
the file Index.jsp, where on disk only a index.jsp exists.

So it looks like mod_jk always looks for a uppercase index file.

When we specify http://www.client.com/index.jsp then everything
works fine...

In the apache config we have this:

DirectoryIndex index.jsp Index.jsp index.html Index.html default.html
Default.html

In the tomcat config we have this:


index.html
index.htm
index.jsp




If I change the DirectoryIndex to be:

DirectoryIndex index.jsp index.html default.html

Then everything works fine. (But of course the Uppercase index files won't
be served any more)


André


aarboard ag - internet - networks - databases
Egliweg 10 - CH-2560 Nidau - Switzerland
Phone +41 32 332 97 14 Fax +41 32 332 97 15
Mail: [EMAIL PROTECTED]  


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



Re: Problem with mod_jk 1.2 - 500 Internal Server Error

2005-01-13 Thread Pat Maddox
Well, I managed to get it.  And I feel unbelievably stupid (as is the 
case with most problems).  The simple fix is
worker.list=default
rather than
workers.list=default

On Jan 13, 2005, at 11:03 AM, Mladen Turk wrote:
Pat Maddox wrote:
I'm using JBoss 4.0.1 with integrated Tomcat 5, and I'm trying to 
connect it to Apache 2.  Whenever I make a request to a resource that 
should be passed along to Tomcat, I get a 500 Internal Server error.  
Looking at the mod_jk.log shows:
[Thu Jan 13 13:45:34 2005]  [jk_worker.c (94)]: 
wc_get_worker_for_name, done did not find a worker
# Define worker
workers.list=default
worker.default.port=8009
worker.default.host=localhost
worker.default.type=ajp13

Can you resolve the 'localhost'?
See if you have localhost inside etc/hosts
or use 127.0.0.1 for host name.
Also, you can provide the mod_jk version used (1.2.8, etc.)
Mladen.
-
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: Problem with mod_jk 1.2 - 500 Internal Server Error

2005-01-13 Thread Mladen Turk
Pat Maddox wrote:
I'm using JBoss 4.0.1 with integrated Tomcat 5, and I'm trying to 
connect it to Apache 2.  Whenever I make a request to a resource that 
should be passed along to Tomcat, I get a 500 Internal Server error.  
Looking at the mod_jk.log shows:

[Thu Jan 13 13:45:34 2005]  [jk_worker.c (94)]: wc_get_worker_for_name, 
done did not find a worker

# Define worker
workers.list=default
worker.default.port=8009
worker.default.host=localhost
worker.default.type=ajp13
Can you resolve the 'localhost'?
See if you have localhost inside etc/hosts
or use 127.0.0.1 for host name.
Also, you can provide the mod_jk version used (1.2.8, etc.)
Mladen.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Problem with mod_jk 1.2 - 500 Internal Server Error

2005-01-13 Thread Pat Maddox
I'm using JBoss 4.0.1 with integrated Tomcat 5, and I'm trying to 
connect it to Apache 2.  Whenever I make a request to a resource that 
should be passed along to Tomcat, I get a 500 Internal Server error.  
Looking at the mod_jk.log shows:

[Thu Jan 13 13:45:34 2005]  [jk_uri_worker_map.c (445)]: Into 
jk_uri_worker_map_t::map_uri_to_worker
[Thu Jan 13 13:45:34 2005]  [jk_uri_worker_map.c (459)]: Attempting to 
map URI '/status'
[Thu Jan 13 13:45:34 2005]  [jk_uri_worker_map.c (473)]: 
jk_uri_worker_map_t::map_uri_to_worker, Found an exact match default -> 
/status
[Thu Jan 13 13:45:34 2005]  [mod_jk.c (1689)]: Into handler 
r->proxyreq=0 r->handler=jakarta-servlet r->notes=140779720 
worker=default
[Thu Jan 13 13:45:34 2005]  [jk_worker.c (90)]: Into 
wc_get_worker_for_name default
[Thu Jan 13 13:45:34 2005]  [jk_worker.c (94)]: wc_get_worker_for_name, 
done did not find a worker
[Thu Jan 13 13:45:34 2005]  [jk_uri_worker_map.c (445)]: Into 
jk_uri_worker_map_t::map_uri_to_worker


So it looks like it maps to the correct worker, but then can't find the 
worker.  I've got no clue why this is happening.

Here's my workers.properties file:
# Define worker
workers.list=default
worker.default.port=8009
worker.default.host=localhost
worker.default.type=ajp13
And here's the section of httpd.conf where it's all set up
#
# mod_jk settings
#
JkWorkersFile "conf/workers.properties"
JkLogfile "logs/mod_jk.log"
JkLogLevel debug
JkMount /*.jsp default
JkMount /*.do default
JkMount /status default
# End of mod_jk settings
I'm really confused and frustrated with this...I'd appreciate any help.
Thanks, Pat
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Windows XP IIS 5.1 HTTP Post Problem with mod_jk

2004-08-18 Thread Eric Jacobson
Has anyone else run into a problem where mod_jk does not work right with IIS
5.1 on Windows XP Professional? I am trying to connect Tomcat to the IIS
that is part of XP Pro and it will work for HTTP GET requests but it does
not work for HTTP POST requests.

I can get this same configuration to work with multiple other flavors of
Windows (Win2k Pro, Win2k Server, Win2003 Server), but I have had the same
problem with XP on half a dozen machines.

Any help would be appreciated.

Thanks,
Eric Jacobson
Software Engineer
FileMaker Inc.




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



Re: New users Problem with mod_jk

2004-04-22 Thread staf wagemakers
On Thu, Apr 22, 2004 at 11:56:30AM +0700, Muhammad Reza wrote:
> 
> I'm interesting to integrating Apache Server and Tomcat so my 
> development team can host their jsp in my FreeBSD-4.9Stable machine.
> But I have some difficulties, here goes the detail.
> My httpd server is apache-2.0.47 (installed from FreeBSD-4.9Stable Port) 
> with  jakarta-tomcat-4.1.29.tar.gz  and mod_jk2-apache2-2.0.4 binary for 
> FreeBSD from http://jakarta.apache.org. and diablo-jdk1.31
> My configuration from Web Server side...
> 
> #cat httpd.conf
> --snip--
> LoadModule jk2_module libexec/apache2/mod_jk2.so
> Include /usr/local/etc/apache2/mod_jk.conf
> ---snap--
> 
> #cat /usr/local/etc/apache2/mod_jk.conf
> 
>JkWorkersFile /usr/local/etc/apache2/workers2.properties
>JkLogFile  logs/jk.log
>JkLogLevel warn
>JkSet config.file /usr/local/etc/apache2/workers2.properties
>JkMount /*.jsp localhost
>JkMount /servlet/* localhost
>JkMount /examples/* localhost
> 
>

You're trying to use mod_jk2 with the mod_jk1 syntax.

You must use the JkUriSet or uri mapping, take a look at jk2
documentation.

-- 
Staf Wagemakers

email:  staf at patat.org
homepage:   http://staf.patat.org

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



New users Problem with mod_jk

2004-04-21 Thread Muhammad Reza
Dear Lists,

I'm interesting to integrating Apache Server and Tomcat so my 
development team can host their jsp in my FreeBSD-4.9Stable machine.
But I have some difficulties, here goes the detail.
My httpd server is apache-2.0.47 (installed from FreeBSD-4.9Stable Port) 
with  jakarta-tomcat-4.1.29.tar.gz  and mod_jk2-apache2-2.0.4 binary for 
FreeBSD from http://jakarta.apache.org. and diablo-jdk1.31
My configuration from Web Server side...

#cat httpd.conf
--snip--
LoadModule jk2_module libexec/apache2/mod_jk2.so
Include /usr/local/etc/apache2/mod_jk.conf
---snap--
#cat /usr/local/etc/apache2/mod_jk.conf

   JkWorkersFile /usr/local/etc/apache2/workers2.properties
   JkLogFile  logs/jk.log
   JkLogLevel warn
   JkSet config.file /usr/local/etc/apache2/workers2.properties
   JkMount /*.jsp localhost
   JkMount /servlet/* localhost
   JkMount /examples/* localhost

#cat /usr/local/etc/apache2/workers2.properties
[shm]
info=Scoreboard. Requried for reconfiguration and status with 
multiprocess servers.
file=anon

# Defines a load balancer named lb. Use even if you only have one machine.
[lb:lb]
# Example socket channel, override port and host.
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1
# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
group=lb
# Map the Tomcat examples webapp to the Web server uri space
[uri:/examples/*]
group=lb
[status:]
info=Status worker, displays runtime information
[uri:/jkstatus/*]
info=The Tomcat /jkstatus handler
group=status:
And from Tomcat Side

#cat jk2.properties
handler.list=apr,request,channelJni
channelSocket.port=8019
shm.file=${jkHome}/work/jk2.shm
channelJni.disabled = 0
apr.jniModeSo=/usr/local/libexec/apache2/mod_jk2.so
#cat server.xml | grep mod_jk2


When i start tomcat (debug=1) here goes the result

#/usr/local/jakarta-tomcat/bin/shutdown.sh start
Using CATALINA_BASE:   /usr/local/jakarta-tomcat
Using CATALINA_HOME:   /usr/local/jakarta-tomcat
Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat/temp
Using JAVA_HOME:   /usr/local/java
[INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on port 8080
Starting service Tomcat-Standalone
Apache Tomcat/4.1.29
[INFO] PropertyMessageResources - -Initializing, 
config='org.apache.struts.util.LocalStrings', returnNull=true
[INFO] PropertyMessageResources - -Initializing, 
config='org.apache.struts.action.ActionResources', returnNull=true
[INFO] PropertyMessageResources - -Initializing, 
config='org.apache.webapp.admin.ApplicationResources', returnNull=true
[INFO] Http11Protocol - -Starting Coyote HTTP/1.1 on port 8080
[INFO] JkMain - -APR not loaded, disabling jni components: 
java.io.IOException: java.lang.UnsatisfiedLinkError: no jkjni in 
java.library.path
[INFO] ChannelSocket - -JK2: ajp13 listening on 0.0.0.0/0.0.0.0:8009
[INFO] JkMain - -Jk running ID=0 time=2/177  
config=/usr/local/jakarta-tomcat/conf/jk2.properties

i set CATALINA_HOME and JAVA_HOME in my env variable...
# env | grep java
JAVA_HOME=/usr/local/java
CATALINA_HOME=/usr/local/jakarta-tomcat
The problem is...
When i try to test the installation with browsing to 
http://localhost/example , the result is page not found 404 from apache :(
[Thu Apr 22 11:50:27 2004] [error] [client 127.0.0.1] File does not 
exist: /usr/local/www/data/examples

Is there something i missed ? how to workaround and fix  this problem ? 
does Tomcat work with Diablo-JDK ?
Please help me regarding this problem,

regards
.:TomBie:.


 

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


RE: problem with mod_jk 1.2: error in action code

2004-03-15 Thread Ralph Einfeldt
I don't see any reason why an object in the context
should have any thing to do with the stacktrace.

What makes you think that they are related ?

What makes you think that the pool is lost ?
(context.getAttribute("") == null ?)

Or do you just don't get connections from the pool ?

Or are the connections you get from your pool just invalid ?

Or what else happens ?


> -Original Message-
> From: Michael Görlich (CSC) [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 12, 2004 7:14 PM
> To: Tomcat Users List
> Subject: AW: problem with mod_jk 1.2: error in action code
> 
> I programmed a connection pool by myself as an object, that I 
> put into a
> global variable by  context.setAttribute(myConnectionPool).
> 
> The lost of the pool is a subsequent error, that occures as a 
> reason of the
> error in the action code of the coyote connector.
> 
> In the mysql logs there is nothing to see about errors.

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



RE: problem with mod_jk 1.2: error in action code

2004-03-12 Thread Mike Curwen
I don't deny the stacktraces the original poster included are from a
connector.

But... the original problem relates to loosing a 'database connection
pool', which should have nothing at all to do with the jk connector.  I
don't think it's very clear yet, what is *actually* going on.  
 
If you are correct, and the database thing is a red herring, then fine,
he can ignore that annoying (and common) jk message. I get them all the
time, I've asked a couple times for help in getting them shut off... oh
well. That's jk for you.

If, otoh, he's got a database problem, and while trying to diagnose the
trouble, noticed those common jk errors, and related the two (his
database trouble to the jk error messages), then his trouble is *not*
with jk, but with his connection pool. 
 
He did, after all, say "I think...".  I was attempting to eliminate a
very common cause of 'lost connections' to a mysql database.
 
> This is a Coyote connector exception -- which is the HTTP/1.1 protocol

> connector. It allows you to connect directly to Tomcat using a
browser, 
> instead of going through Apache.

And.. who first mentioned the Coyote HTTP connector ??  I see in the
original poster's server.xml:
protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"
 
that looks the configuration for an AJP 1.3 connection to Apache.



> -Original Message-
> From: Christopher Schultz [mailto:[EMAIL PROTECTED] 
> Sent: Friday, March 12, 2004 11:17 AM
> To: Tomcat Users List
> Subject: Re: problem with mod_jk 1.2: error in action code
> 
> 
> All,
> 
> > when you specify the connection to mysql, are you including the 
> > 'autoreconnect=true' parameter? If not, the connections 
> will be closed 
> > by mysql after (I think) 8 hrs.
> 
> I'm not sure why everyne's caught up in database connection 
> code. This 
> is a Coyote connector exception -- which is the HTTP/1.1 protocol 
> connector. It allows you to connect directly to Tomcat using 
> a browser, 
> instead of going through Apache.
> 
> Usually the "Broken Pipe" means the the client hung up before 
> listening 
> for all the data. That could mean pressing the STOP button on the 
> browser, following another link before the page fully loads, 
> or pressing 
> the back button.
> 
> I wouldn't worry too much about it, unless your users are 
> somehow being 
> affected.
> 
> -chris
> 
> > 
> > 
> >>-Original Message-
> >>From: Michael Görlich (CSC) [mailto:[EMAIL PROTECTED]
> >>Sent: Friday, March 12, 2004 9:53 AM
> >>To: Tomcat Mailinglist
> >>Subject: problem with mod_jk 1.2: error in action code
> >>
> >>
> >>Hello,
> >>
> >>I've got problems with a tomcat web application, that
> >>establishes a connection pool to a database (mysql). This 
> >>connection pool is lost after an unspecified period of time 
> >>the system wasn't used (f.e. 8 houres).
> >>
> >>I think the problem is due to the mod_jk connector between
> >>apache and tomcat.
> >>
> >>The web application is accessible over apache 1.3.27, that
> >>connects to tomcat 4.1.27 via jk connector mod_jk 1.2.25.
> >>
> >>The exception I got in catalina.out is:
> >>
> >>10.03.2004 15:59:58 org.apache.jk.server.JkCoyoteHandler action
> >>SCHWERWIEGEND: Error in action code
> >>java.net.SocketException: Broken pipe
> >>at java.net.SocketOutputStream.socketWrite0(Native Method)
> >>at 
> java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
> >>at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
> >>at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:407)
> >>at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:599)
> >>at
> >>org.apache.jk.server.JkCoyoteHandler.action(JkCoyoteHandler.
> java:385)
> >>at org.apache.coyote.Response.action(Response.java:222)
> >>at org.apache.coyote.Response.finish(Response.java:343)
> >>at 
> >>org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.
> java:268)
> >>at 
> org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:360)
> >>at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:604)
> >>at
> >>org.apache.jk.common.ChannelSocket.processConnection(ChannelSo
> >>cket.java:562)
> >>at 
> org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:679)
> >>at 
> >>org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> >>ThreadPool.ja

AW: problem with mod_jk 1.2: error in action code

2004-03-12 Thread Michael Görlich \(CSC\)
Hi,

I programmed a connection pool by myself as an object, that I put into a
global variable by  context.setAttribute(myConnectionPool).

The lost of the pool is a subsequent error, that occures as a reason of the
error in the action code of the coyote connector.

In the mysql logs there is nothing to see about errors.

By the way, my workers.properties are:

worker.list=worker1
worker.worker1.port=8009
worker.worker1.host=localhost
worker.worker1.type=ajp13
worker.worker1.lbfactor=50
worker.worker1.cachesize=100
#worker.worker1.cache_timeout=600
worker.worker1.socket_keepalive=1
#worker.worker1.socket_timeout=300

Great problem!!!

-Ursprüngliche Nachricht-
Von: Ralph Einfeldt [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 12. März 2004 17:14
An: Tomcat Users List
Betreff: RE: problem with mod_jk 1.2: error in action code


I don't think that this message has anything to with the lost
connection pool.

(Do you really mean 'connection pool' and not just 'connection' ?)

If you lose your connection, it may be caused by the databaseserver
that cancels idle connections after a while.
Look for validationQuery in:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-resources-howto.html

The message in the mod_jk.log is typically indication that a browser
was closed while tomcat was sending an answer.

I'm not shure if the message in catalina.out is related to that.

> -Original Message-
> From: Michael Görlich (CSC) [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 12, 2004 4:53 PM
> To: Tomcat Mailinglist
> Subject: problem with mod_jk 1.2: error in action code
>
> I've got problems with a tomcat web application, that establishes a
> connection pool to a database (mysql).
> This connection pool is lost after an unspecified period of
> time the system wasn't used (f.e. 8 houres).
>
> 10.03.2004 15:59:58 org.apache.jk.server.JkCoyoteHandler action
> SCHWERWIEGEND: Error in action code
> java.net.SocketException: Broken pipe

> The log in mod_jk.log shows the following:
>
> [Wed Mar 10 15:59:58 2004] [jk_ajp_common.c (1052)]: ERROR
> sending data to client. Connection aborted or network problems
> [Wed Mar 10 15:59:58 2004] [jk_ajp_common.c (1303)]: ERROR: Client
> connection aborted or network problems
>

-
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: problem with mod_jk 1.2: error in action code

2004-03-12 Thread Yiannis Mavroukakis
So is autoReconnectForPools a hack to use with autoReconnect?

-Original Message-
From: Mark Matthews [mailto:[EMAIL PROTECTED]
Sent: 12 March 2004 17:11
To: Tomcat Users List
Subject: Re: problem with mod_jk 1.2: error in action code


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Mike Curwen wrote:

> when you specify the connection to mysql, are you including the
> 'autoreconnect=true' parameter? If not, the connections will be closed
> by mysql after (I think) 8 hrs.
>

I wish I could kill the 'autoReconnect' feature. You shouldn't be using
it if you're using a connection pool :)

Use the correct properties on your connection pool and you should be
good to go.

For example, setting 'timeBetweenEvictionRunsMillis' (set to some
sensible number of milliseconds, I would suggest something around 5
minutes) and 'minEvictableIdleTimeMillis' (set to the number of
milliseconds you have 'wait_timeout' set to on the server minus some %)
 should catch MySQL closing idle connections.

Setting 'validationQuery' (set to 'SELECT 1') and 'testOnBorrow' or
'testOnReturn' should catch MySQL server restarts or general network
flakiness.

In any case, you should also see the new example in the troubleshooting
section of the Connector/J docs that shows how your code can also detect
whether a SQLException was caused by a lost connection, or some other
error (section 4.4 under the following link):

http://www.mysql.com/documentation/connector-j/index.html#id2803835


-Mark (the guy who wrote the 'autoReconnect' functionality, and now
wishes he could remove it from the JDBC driver)

- --
Mr. Mark Matthews
MySQL AB, Software Development Manager, J2EE and Windows Platforms
Office: +1 708 332 0507
www.mysql.com

Meet the MySQL Team! April 14-16, 2004 http://www.mysql.com/uc2004/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.3 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFAUe8FtvXNTca6JD8RAmpmAJ0Wq/1rT/Fcw40H4fB1/g8UmheonACbBYwU
mpRzou4Jb2yXUsGSNooLCKs=
=DW3u
-END PGP SIGNATURE-

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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

Re: problem with mod_jk 1.2: error in action code

2004-03-12 Thread Christopher Schultz
All,

when you specify the connection to mysql, are you including the
'autoreconnect=true' parameter? If not, the connections will be closed
by mysql after (I think) 8 hrs.
I'm not sure why everyne's caught up in database connection code. This 
is a Coyote connector exception -- which is the HTTP/1.1 protocol 
connector. It allows you to connect directly to Tomcat using a browser, 
instead of going through Apache.

Usually the "Broken Pipe" means the the client hung up before listening 
for all the data. That could mean pressing the STOP button on the 
browser, following another link before the page fully loads, or pressing 
the back button.

I wouldn't worry too much about it, unless your users are somehow being 
affected.

-chris



-Original Message-
From: Michael Görlich (CSC) [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 12, 2004 9:53 AM
To: Tomcat Mailinglist
Subject: problem with mod_jk 1.2: error in action code

Hello,

I've got problems with a tomcat web application, that 
establishes a connection pool to a database (mysql). This 
connection pool is lost after an unspecified period of time 
the system wasn't used (f.e. 8 houres).

I think the problem is due to the mod_jk connector between 
apache and tomcat.

The web application is accessible over apache 1.3.27, that 
connects to tomcat 4.1.27 via jk connector mod_jk 1.2.25.

The exception I got in catalina.out is:

10.03.2004 15:59:58 org.apache.jk.server.JkCoyoteHandler action
SCHWERWIEGEND: Error in action code
java.net.SocketException: Broken pipe
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:407)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:599)
at 
org.apache.jk.server.JkCoyoteHandler.action(JkCoyoteHandler.java:385)
at org.apache.coyote.Response.action(Response.java:222)
at org.apache.coyote.Response.finish(Response.java:343)
at 
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:268)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:360)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:604)
at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSo
cket.java:562)
at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:679)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
ThreadPool.jav
a:619)
at java.lang.Thread.run(Thread.java:534)
10.03.2004 15:59:58 org.apache.jk.common.ChannelSocket 
processConnection
INFO: server has been restarted or reset this connection

The HTTP connector defined in tomcats server.xml is:


port="8009" minProcessors="5" maxProcessors="75" 
enableLookups="false" redirectPort="8443" acceptCount="10" 
debug="5" connectionTimeout="0" useURIValidationHack="false" 
protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"
scheme="http"
secure="false" />

The log in mod_jk.log shows the following:

[Wed Mar 10 15:59:58 2004] [jk_ajp_common.c (1052)]: ERROR 
sending data to client. Connection aborted or network 
problems [Wed Mar 10 15:59:58 2004] [jk_ajp_common.c (1303)]: 
ERROR: Client connection aborted or network problems

Here is the summary of my environment options:
- tomcat 4.1.27
- apache 1.3.27
- mod_jk 1.2.25
- Suse Linux 7.2
- Java 2 RE Standard Edition, Version 1.4.1 (build Blackdown-1.4.1-01)
My special problem is, that I'm not able to reproduce the 
error, it occurs after an unspecified period of time. I found 
nothing related to this problem. Any ideas?

Thanks in advance
M.Goerlich
-
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]



signature.asc
Description: OpenPGP digital signature


Re: problem with mod_jk 1.2: error in action code

2004-03-12 Thread Mark Matthews
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Mike Curwen wrote:

> when you specify the connection to mysql, are you including the
> 'autoreconnect=true' parameter? If not, the connections will be closed
> by mysql after (I think) 8 hrs.
>

I wish I could kill the 'autoReconnect' feature. You shouldn't be using
it if you're using a connection pool :)

Use the correct properties on your connection pool and you should be
good to go.

For example, setting 'timeBetweenEvictionRunsMillis' (set to some
sensible number of milliseconds, I would suggest something around 5
minutes) and 'minEvictableIdleTimeMillis' (set to the number of
milliseconds you have 'wait_timeout' set to on the server minus some %)
 should catch MySQL closing idle connections.

Setting 'validationQuery' (set to 'SELECT 1') and 'testOnBorrow' or
'testOnReturn' should catch MySQL server restarts or general network
flakiness.

In any case, you should also see the new example in the troubleshooting
section of the Connector/J docs that shows how your code can also detect
whether a SQLException was caused by a lost connection, or some other
error (section 4.4 under the following link):

http://www.mysql.com/documentation/connector-j/index.html#id2803835


-Mark (the guy who wrote the 'autoReconnect' functionality, and now
wishes he could remove it from the JDBC driver)

- --
Mr. Mark Matthews
MySQL AB, Software Development Manager, J2EE and Windows Platforms
Office: +1 708 332 0507
www.mysql.com

Meet the MySQL Team! April 14-16, 2004 http://www.mysql.com/uc2004/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.3 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFAUe8FtvXNTca6JD8RAmpmAJ0Wq/1rT/Fcw40H4fB1/g8UmheonACbBYwU
mpRzou4Jb2yXUsGSNooLCKs=
=DW3u
-END PGP SIGNATURE-

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



RE: problem with mod_jk 1.2: error in action code

2004-03-12 Thread Mike Curwen
when you specify the connection to mysql, are you including the
'autoreconnect=true' parameter? If not, the connections will be closed
by mysql after (I think) 8 hrs.

> -Original Message-
> From: Michael Görlich (CSC) [mailto:[EMAIL PROTECTED] 
> Sent: Friday, March 12, 2004 9:53 AM
> To: Tomcat Mailinglist
> Subject: problem with mod_jk 1.2: error in action code
> 
> 
> Hello,
> 
> I've got problems with a tomcat web application, that 
> establishes a connection pool to a database (mysql). This 
> connection pool is lost after an unspecified period of time 
> the system wasn't used (f.e. 8 houres).
> 
> I think the problem is due to the mod_jk connector between 
> apache and tomcat.
> 
> The web application is accessible over apache 1.3.27, that 
> connects to tomcat 4.1.27 via jk connector mod_jk 1.2.25.
> 
> The exception I got in catalina.out is:
> 
> 10.03.2004 15:59:58 org.apache.jk.server.JkCoyoteHandler action
> SCHWERWIEGEND: Error in action code
> java.net.SocketException: Broken pipe
> at java.net.SocketOutputStream.socketWrite0(Native Method)
> at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
> at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
> at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:407)
> at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:599)
> at 
> org.apache.jk.server.JkCoyoteHandler.action(JkCoyoteHandler.java:385)
> at org.apache.coyote.Response.action(Response.java:222)
> at org.apache.coyote.Response.finish(Response.java:343)
> at 
> org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:268)
> at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:360)
> at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:604)
> at
> org.apache.jk.common.ChannelSocket.processConnection(ChannelSo
> cket.java:562)
> at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:679)
> at 
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> ThreadPool.jav
> a:619)
> at java.lang.Thread.run(Thread.java:534)
> 10.03.2004 15:59:58 org.apache.jk.common.ChannelSocket 
> processConnection
> INFO: server has been restarted or reset this connection
> 
> The HTTP connector defined in tomcats server.xml is:
> 
>  port="8009" minProcessors="5" maxProcessors="75" 
> enableLookups="false" redirectPort="8443" acceptCount="10" 
> debug="5" connectionTimeout="0" useURIValidationHack="false" 
> protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"
> scheme="http"
> secure="false" />
> 
> The log in mod_jk.log shows the following:
> 
> [Wed Mar 10 15:59:58 2004] [jk_ajp_common.c (1052)]: ERROR 
> sending data to client. Connection aborted or network 
> problems [Wed Mar 10 15:59:58 2004] [jk_ajp_common.c (1303)]: 
> ERROR: Client connection aborted or network problems
> 
> Here is the summary of my environment options:
> - tomcat 4.1.27
> - apache 1.3.27
> - mod_jk 1.2.25
> - Suse Linux 7.2
> - Java 2 RE Standard Edition, Version 1.4.1 (build Blackdown-1.4.1-01)
> 
> My special problem is, that I'm not able to reproduce the 
> error, it occurs after an unspecified period of time. I found 
> nothing related to this problem. Any ideas?
> 
> Thanks in advance
> M.Goerlich
> 
> 
> -
> 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: problem with mod_jk 1.2: error in action code

2004-03-12 Thread Yiannis Mavroukakis
Yep I get the same errors quite often, apart from being annoying they do not
cause any other issues, the error is what Ralph says it is.

-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]
Sent: 12 March 2004 16:14
To: Tomcat Users List
Subject: RE: problem with mod_jk 1.2: error in action code


I don't think that this message has anything to with the lost
connection pool. 

(Do you really mean 'connection pool' and not just 'connection' ?)

If you lose your connection, it may be caused by the databaseserver 
that cancels idle connections after a while. 
Look for validationQuery in:

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-resources-howto.html

The message in the mod_jk.log is typically indication that a browser 
was closed while tomcat was sending an answer.

I'm not shure if the message in catalina.out is related to that.

> -Original Message-
> From: Michael Görlich (CSC) [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 12, 2004 4:53 PM
> To: Tomcat Mailinglist
> Subject: problem with mod_jk 1.2: error in action code
> 
> I've got problems with a tomcat web application, that establishes a
> connection pool to a database (mysql).
> This connection pool is lost after an unspecified period of 
> time the system wasn't used (f.e. 8 houres).
> 
> 10.03.2004 15:59:58 org.apache.jk.server.JkCoyoteHandler action
> SCHWERWIEGEND: Error in action code
> java.net.SocketException: Broken pipe

> The log in mod_jk.log shows the following:
> 
> [Wed Mar 10 15:59:58 2004] [jk_ajp_common.c (1052)]: ERROR 
> sending data to client. Connection aborted or network problems
> [Wed Mar 10 15:59:58 2004] [jk_ajp_common.c (1303)]: ERROR: Client
> connection aborted or network problems
> 

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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

RE: problem with mod_jk 1.2: error in action code

2004-03-12 Thread Ralph Einfeldt
I don't think that this message has anything to with the lost
connection pool. 

(Do you really mean 'connection pool' and not just 'connection' ?)

If you lose your connection, it may be caused by the databaseserver 
that cancels idle connections after a while. 
Look for validationQuery in:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-resources-howto.html

The message in the mod_jk.log is typically indication that a browser 
was closed while tomcat was sending an answer.

I'm not shure if the message in catalina.out is related to that.

> -Original Message-
> From: Michael Görlich (CSC) [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 12, 2004 4:53 PM
> To: Tomcat Mailinglist
> Subject: problem with mod_jk 1.2: error in action code
> 
> I've got problems with a tomcat web application, that establishes a
> connection pool to a database (mysql).
> This connection pool is lost after an unspecified period of 
> time the system wasn't used (f.e. 8 houres).
> 
> 10.03.2004 15:59:58 org.apache.jk.server.JkCoyoteHandler action
> SCHWERWIEGEND: Error in action code
> java.net.SocketException: Broken pipe

> The log in mod_jk.log shows the following:
> 
> [Wed Mar 10 15:59:58 2004] [jk_ajp_common.c (1052)]: ERROR 
> sending data to client. Connection aborted or network problems
> [Wed Mar 10 15:59:58 2004] [jk_ajp_common.c (1303)]: ERROR: Client
> connection aborted or network problems
> 

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



Re: problem with mod_jk 1.2: error in action code

2004-03-12 Thread Adam Buglass
Well I run in exactly the same environment except it's a RedHat 6.2
(-ish) box

My server.xml is setup like so:




The connector is setup like so:
# BEGIN workers.properties
worker.list=ajp13
worker.ajp13.port=8009
# change this line to match apache ServerName and Host name in
server.xml
worker.ajp13.host=www.whatever.com
worker.ajp13.type=ajp13
# END workers.properties


HTH.

I can't see anything in your setup which instantly looks wrong but there
appear to be some parameters which are unnessecary, although I'm not
sure. Could it be anything to do with your timeout set to 0?

Apart from that it looks like it could be something on the SQL side
that's causing the problem.

IMHO, have a glance at the sql server logs.

Adam

On Fri, 2004-03-12 at 15:53, Michael GÃrlich (CSC) wrote:
> Hello,
> 
> I've got problems with a tomcat web application, that establishes a
> connection pool to a database (mysql).
> This connection pool is lost after an unspecified period of time the system
> wasn't used (f.e. 8 houres).
> 
> I think the problem is due to the mod_jk connector between apache and
> tomcat.
> 
> The web application is accessible over apache 1.3.27, that connects to
> tomcat 4.1.27 via jk connector mod_jk 1.2.25.
> 
> The exception I got in catalina.out is:
> 
> 10.03.2004 15:59:58 org.apache.jk.server.JkCoyoteHandler action
> SCHWERWIEGEND: Error in action code
> java.net.SocketException: Broken pipe
> at java.net.SocketOutputStream.socketWrite0(Native Method)
> at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
> at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
> at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:407)
> at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:599)
> at org.apache.jk.server.JkCoyoteHandler.action(JkCoyoteHandler.java:385)
> at org.apache.coyote.Response.action(Response.java:222)
> at org.apache.coyote.Response.finish(Response.java:343)
> at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:268)
> at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:360)
> at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:604)
> at
> org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:562)
> at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:679)
> at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
> a:619)
> at java.lang.Thread.run(Thread.java:534)
> 10.03.2004 15:59:58 org.apache.jk.common.ChannelSocket processConnection
> INFO: server has been restarted or reset this connection
> 
> The HTTP connector defined in tomcats server.xml is:
> 
>  port="8009" minProcessors="5" maxProcessors="75"
> enableLookups="false" redirectPort="8443"
> acceptCount="10" debug="5" connectionTimeout="0"
> useURIValidationHack="false"
> protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"
> scheme="http"
> secure="false" />
> 
> The log in mod_jk.log shows the following:
> 
> [Wed Mar 10 15:59:58 2004] [jk_ajp_common.c (1052)]: ERROR sending data to
> client. Connection aborted or network problems
> [Wed Mar 10 15:59:58 2004] [jk_ajp_common.c (1303)]: ERROR: Client
> connection aborted or network problems
> 
> Here is the summary of my environment options:
> - tomcat 4.1.27
> - apache 1.3.27
> - mod_jk 1.2.25
> - Suse Linux 7.2
> - Java 2 RE Standard Edition, Version 1.4.1 (build Blackdown-1.4.1-01)
> 
> My special problem is, that I'm not able to reproduce the error, it occurs
> after an unspecified period of time. I found nothing related to this
> problem. Any ideas?
> 
> Thanks in advance
> M.Goerlich
> 
> 
> -
> 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]



problem with mod_jk 1.2: error in action code

2004-03-12 Thread Michael Görlich \(CSC\)
Hello,

I've got problems with a tomcat web application, that establishes a
connection pool to a database (mysql).
This connection pool is lost after an unspecified period of time the system
wasn't used (f.e. 8 houres).

I think the problem is due to the mod_jk connector between apache and
tomcat.

The web application is accessible over apache 1.3.27, that connects to
tomcat 4.1.27 via jk connector mod_jk 1.2.25.

The exception I got in catalina.out is:

10.03.2004 15:59:58 org.apache.jk.server.JkCoyoteHandler action
SCHWERWIEGEND: Error in action code
java.net.SocketException: Broken pipe
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:407)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:599)
at org.apache.jk.server.JkCoyoteHandler.action(JkCoyoteHandler.java:385)
at org.apache.coyote.Response.action(Response.java:222)
at org.apache.coyote.Response.finish(Response.java:343)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:268)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:360)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:604)
at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:562)
at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:679)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:619)
at java.lang.Thread.run(Thread.java:534)
10.03.2004 15:59:58 org.apache.jk.common.ChannelSocket processConnection
INFO: server has been restarted or reset this connection

The HTTP connector defined in tomcats server.xml is:



The log in mod_jk.log shows the following:

[Wed Mar 10 15:59:58 2004] [jk_ajp_common.c (1052)]: ERROR sending data to
client. Connection aborted or network problems
[Wed Mar 10 15:59:58 2004] [jk_ajp_common.c (1303)]: ERROR: Client
connection aborted or network problems

Here is the summary of my environment options:
- tomcat 4.1.27
- apache 1.3.27
- mod_jk 1.2.25
- Suse Linux 7.2
- Java 2 RE Standard Edition, Version 1.4.1 (build Blackdown-1.4.1-01)

My special problem is, that I'm not able to reproduce the error, it occurs
after an unspecified period of time. I found nothing related to this
problem. Any ideas?

Thanks in advance
M.Goerlich


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



Problem with mod_jk spawning processes

2004-01-27 Thread KING,SETH (HP-Boise,ex1)
Hi all,

I am currently experiencing an issue with Apache 2.0/Tomcat 4.0.16. I am
using mod_jk to connect the two servers. The AJP13 processes are continually
being created until it reaches the MaxProcesses limit (set at 75) and then
the server becomes unresponsive. I restart the tomcat server and then after
ten or fifteen minutes the connector processes are back up to the maximum.
These servers have been working for over a year without this problem until
last Tuesday. Nothing has changed on the servers since October 2003. Does
anyone have any idea as to what is causing the AJP processes to spawn out of
control. I would appreciate any advise given.

Thanks in advance.

Seth

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



Re: Problem with mod_jk on RedHat 9

2003-11-05 Thread Mario A. Imperato
It's me again :-)
Well, I kept digging into it and here is what it came out.

The connector package I have been using is the one in
dist/jakarta/tomcat-4/v4.1.29/src
the same folder of the application server. (for the App server I actually
took the binaries)
As I already said I followed pretty much the howtos but with no avail. (I
tried also
the LD_ASSUME_KERNEL... just in case).

I then went to the archive.apache.org and downloaded the
jakarta-tomcat-connectors-jk-1.2-src-current... that appears to be the
1.2.5 version of the connector. I unpacked, buildconf-ed it, make, make
install.
Now I can happily click on the examples without problems (well, I may need
some more extensive testing).

To be sure I did everything up again and, apparently, there is some problem
with the 4.1.29. Don't know what but I would really appreciate if someone
could confirm on this or in case explain the source of the problem.. if
possible.
Thank you for the assistance
Mario

- Original Message -
From: "Mario A. Imperato" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 05, 2003 1:30 PM
Subject: Problem with mod_jk on RedHat 9


Hi, you out there,
I'm looking for help in setting an Apache/Tomcat configuration.
Apache: 2.0.48
Tomcat (server and connector): 4.1.29
RedHAT: 9.

I've been trying to follow a number of how tos, using the REDHAT
installed version of apache, building up my own version. Everything seems to
be OK:
I'm able to see tomcat through Apache but this is only for a couple of
JSPs (just testing with the examples). In fact after a few clicks everything
seems to be freezing
and if I put 'debug' on the mod_jk.so i can notice an endless list of
messages
like: jk_ajp_common.c (774): sending to ajp #.

When is that way I stop the browser and retry after a few seconds. SOmetimes
it does
other times with no avail.
Is there anybody who can shed some light on this? I'd really, really
appreciate.
Mario




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



Problem with mod_jk on RedHat 9

2003-11-05 Thread Mario A. Imperato
Hi, you out there,
I'm looking for help in setting an Apache/Tomcat configuration.
Apache: 2.0.48
Tomcat (server and connector): 4.1.29
RedHAT: 9.

I've been trying to follow a number of how tos, using the REDHAT
installed version of apache, building up my own version. Everything seems to be OK:
I'm able to see tomcat through Apache but this is only for a couple of
JSPs (just testing with the examples). In fact after a few clicks everything seems to 
be freezing 
and if I put 'debug' on the mod_jk.so i can notice an endless list of messages
like: jk_ajp_common.c (774): sending to ajp #.

When is that way I stop the browser and retry after a few seconds. SOmetimes it does
other times with no avail.
Is there anybody who can shed some light on this? I'd really, really appreciate.
Mario



RE: Problem with mod_jk and CoyoteConnector

2003-08-22 Thread J.P. Wadkin C9951627
Latest versions of everything: Apache 2.0.47, Tomcat 4.1.27, jk 1.2.4.
Apache and mod_jk both built from source. Apache 2 is configured to use
the worker mpm - which might well be the problem looking at the change
log for mod_jk. I'll try the pre-form mpm and if that fails I'll just
use Apache 1.3 with AJP13 connector.

John

-Original Message-
From: Jeff Tulley [mailto:[EMAIL PROTECTED] 
Sent: 21 August 2003 18:15
To: tomcat-user
Subject: RE: Problem with mod_jk and CoyoteConnector


Is it just me, or did he say he was using mod_jk?  That should work with
Apache 2 just fine.  (At least it does on my system, NetWare).

What is the exact Tomcat version?  Where did you get mod_jk, what
version is it?

Jeff Tulley  ([EMAIL PROTECTED])
(801)861-5322
Novell, Inc., The Leading Provider of Net Business Solutions
http://www.novell.com

>>> [EMAIL PROTECTED] 8/21/03 10:00:09 AM >>>
JK2 works with later versions of Apache 2.  Around 2.0.43 the version
of
JK2 you used was real picky about what version of Apache was being
used.


But anything after .43 should work with JK2.

-e

On Thu, 21 Aug 2003, Martin Smith wrote:

> Hi,
>
> I think I'm right in saying that mod_jk2 only works with Apache
2.0.43.
>
> What's your exact Apache version???
>
> Martin
>
> -Original Message-
> From: J.P. Wadkin C9951627 [mailto:[EMAIL PROTECTED] 
> Sent: 21 August 2003 15:57
> To: tomcat-user
> Subject: Problem with mod_jk and CoyoteConnector
>
>
> Apache 2
> Tomcat 4.1
> JDK 1.4
> Solaris 8
>
> I've configured a server to use mod_jk with the Coyote connector
> (mod_jk2 doesn't work for some reason):
>
>  port="8009" minProcessors="5" maxProcessors="75"
>enableLookups="false" redirectPort="8443"
>acceptCount="10" debug="9" connectionTimeout="0"
>useURIValidationHack="false"
>
> protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>
>
> I've noticed that after about 10 page requests the server randomly
> starts serving either half a page or no page at all (just blank). It
> becomes progressively worse. There are no error messages in any of
the
> logs. I've ruled out the Servlet that generates the pages - it works
> fine on another machine. Looking at the configuration of that other
> machine I note that the only main differences are that it's
configured
> to use the old AJP13 connector in Tomcat and it uses Apache 1.3
rather
> than 2.0.
>
> Is the Coyote connector stable with Apache 2 and/or mod_jk? I'm
> reluctant to use deprecated technologies but it looks like I'll have
to
> downgrade to Apache 1.3 and AJP13?
>
>
> Thanks
>
> John


-
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: Problem with mod_jk and CoyoteConnector

2003-08-21 Thread J.P. Wadkin C9951627
Apache 2.0.47 - mod_jk2 will compile as a DSO but Apache won't start due
to a symbol error. I _thought_ I'd got everything working fine with
mod_jk, then I ran into the response problem.

John

-Original Message-
From: Martin Smith [mailto:[EMAIL PROTECTED] 
Sent: 21 August 2003 16:50
To: Tomcat Users List
Subject: RE: Problem with mod_jk and CoyoteConnector


Hi,

I think I'm right in saying that mod_jk2 only works with Apache 2.0.43.

What's your exact Apache version???

Martin

-Original Message-
From: J.P. Wadkin C9951627 [mailto:[EMAIL PROTECTED]
Sent: 21 August 2003 15:57
To: tomcat-user
Subject: Problem with mod_jk and CoyoteConnector


Apache 2
Tomcat 4.1
JDK 1.4
Solaris 8

I've configured a server to use mod_jk with the Coyote connector
(mod_jk2 doesn't work for some reason):

 

I've noticed that after about 10 page requests the server randomly
starts serving either half a page or no page at all (just blank). It
becomes progressively worse. There are no error messages in any of the
logs. I've ruled out the Servlet that generates the pages - it works
fine on another machine. Looking at the configuration of that other
machine I note that the only main differences are that it's configured
to use the old AJP13 connector in Tomcat and it uses Apache 1.3 rather
than 2.0.

Is the Coyote connector stable with Apache 2 and/or mod_jk? I'm
reluctant to use deprecated technologies but it looks like I'll have to
downgrade to Apache 1.3 and AJP13?


Thanks

John

-
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]


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



RE: Problem with mod_jk and CoyoteConnector

2003-08-21 Thread Jeff Tulley
Is it just me, or did he say he was using mod_jk?  That should work with
Apache 2 just fine.  (At least it does on my system, NetWare).

What is the exact Tomcat version?  Where did you get mod_jk, what
version is it?

Jeff Tulley  ([EMAIL PROTECTED])
(801)861-5322
Novell, Inc., The Leading Provider of Net Business Solutions
http://www.novell.com

>>> [EMAIL PROTECTED] 8/21/03 10:00:09 AM >>>
JK2 works with later versions of Apache 2.  Around 2.0.43 the version
of
JK2 you used was real picky about what version of Apache was being
used.


But anything after .43 should work with JK2.

-e

On Thu, 21 Aug 2003, Martin Smith wrote:

> Hi,
>
> I think I'm right in saying that mod_jk2 only works with Apache
2.0.43.
>
> What's your exact Apache version???
>
> Martin
>
> -Original Message-
> From: J.P. Wadkin C9951627 [mailto:[EMAIL PROTECTED] 
> Sent: 21 August 2003 15:57
> To: tomcat-user
> Subject: Problem with mod_jk and CoyoteConnector
>
>
> Apache 2
> Tomcat 4.1
> JDK 1.4
> Solaris 8
>
> I've configured a server to use mod_jk with the Coyote connector
> (mod_jk2 doesn't work for some reason):
>
>  port="8009" minProcessors="5" maxProcessors="75"
>enableLookups="false" redirectPort="8443"
>acceptCount="10" debug="9" connectionTimeout="0"
>useURIValidationHack="false"
>
> protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>
>
> I've noticed that after about 10 page requests the server randomly
> starts serving either half a page or no page at all (just blank). It
> becomes progressively worse. There are no error messages in any of
the
> logs. I've ruled out the Servlet that generates the pages - it works
> fine on another machine. Looking at the configuration of that other
> machine I note that the only main differences are that it's
configured
> to use the old AJP13 connector in Tomcat and it uses Apache 1.3
rather
> than 2.0.
>
> Is the Coyote connector stable with Apache 2 and/or mod_jk? I'm
> reluctant to use deprecated technologies but it looks like I'll have
to
> downgrade to Apache 1.3 and AJP13?
>
>
> Thanks
>
> John


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



RE: Problem with mod_jk and CoyoteConnector

2003-08-21 Thread Eric J. Pinnell
JK2 works with later versions of Apache 2.  Around 2.0.43 the version of
JK2 you used was real picky about what version of Apache was being used.


But anything after .43 should work with JK2.

-e

On Thu, 21 Aug 2003, Martin Smith wrote:

> Hi,
>
> I think I'm right in saying that mod_jk2 only works with Apache 2.0.43.
>
> What's your exact Apache version???
>
> Martin
>
> -Original Message-
> From: J.P. Wadkin C9951627 [mailto:[EMAIL PROTECTED]
> Sent: 21 August 2003 15:57
> To: tomcat-user
> Subject: Problem with mod_jk and CoyoteConnector
>
>
> Apache 2
> Tomcat 4.1
> JDK 1.4
> Solaris 8
>
> I've configured a server to use mod_jk with the Coyote connector
> (mod_jk2 doesn't work for some reason):
>
>  port="8009" minProcessors="5" maxProcessors="75"
>enableLookups="false" redirectPort="8443"
>acceptCount="10" debug="9" connectionTimeout="0"
>useURIValidationHack="false"
>
> protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>
>
> I've noticed that after about 10 page requests the server randomly
> starts serving either half a page or no page at all (just blank). It
> becomes progressively worse. There are no error messages in any of the
> logs. I've ruled out the Servlet that generates the pages - it works
> fine on another machine. Looking at the configuration of that other
> machine I note that the only main differences are that it's configured
> to use the old AJP13 connector in Tomcat and it uses Apache 1.3 rather
> than 2.0.
>
> Is the Coyote connector stable with Apache 2 and/or mod_jk? I'm
> reluctant to use deprecated technologies but it looks like I'll have to
> downgrade to Apache 1.3 and AJP13?
>
>
> Thanks
>
> John
>
> -
> 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]
>
>

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



RE: Problem with mod_jk and CoyoteConnector

2003-08-21 Thread Martin Smith
Hi,

I think I'm right in saying that mod_jk2 only works with Apache 2.0.43.

What's your exact Apache version???

Martin

-Original Message-
From: J.P. Wadkin C9951627 [mailto:[EMAIL PROTECTED]
Sent: 21 August 2003 15:57
To: tomcat-user
Subject: Problem with mod_jk and CoyoteConnector


Apache 2
Tomcat 4.1
JDK 1.4
Solaris 8

I've configured a server to use mod_jk with the Coyote connector
(mod_jk2 doesn't work for some reason):

 

I've noticed that after about 10 page requests the server randomly
starts serving either half a page or no page at all (just blank). It
becomes progressively worse. There are no error messages in any of the
logs. I've ruled out the Servlet that generates the pages - it works
fine on another machine. Looking at the configuration of that other
machine I note that the only main differences are that it's configured
to use the old AJP13 connector in Tomcat and it uses Apache 1.3 rather
than 2.0.

Is the Coyote connector stable with Apache 2 and/or mod_jk? I'm
reluctant to use deprecated technologies but it looks like I'll have to
downgrade to Apache 1.3 and AJP13?


Thanks

John

-
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]



Problem with mod_jk and CoyoteConnector

2003-08-21 Thread J.P. Wadkin C9951627
Apache 2
Tomcat 4.1
JDK 1.4
Solaris 8

I've configured a server to use mod_jk with the Coyote connector
(mod_jk2 doesn't work for some reason):

 

I've noticed that after about 10 page requests the server randomly
starts serving either half a page or no page at all (just blank). It
becomes progressively worse. There are no error messages in any of the
logs. I've ruled out the Servlet that generates the pages - it works
fine on another machine. Looking at the configuration of that other
machine I note that the only main differences are that it's configured
to use the old AJP13 connector in Tomcat and it uses Apache 1.3 rather
than 2.0.

Is the Coyote connector stable with Apache 2 and/or mod_jk? I'm
reluctant to use deprecated technologies but it looks like I'll have to
downgrade to Apache 1.3 and AJP13?


Thanks

John

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



RE: Problem with mod_jk and admin application in Tomcat 4.1

2003-08-14 Thread J.P. Wadkin C9951627
Great - no more messing with damn mod_jk2. Relief!

Thanks

John

-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED] 
Sent: 14 August 2003 15:03
To: Tomcat Users List
Subject: Re: Problem with mod_jk and admin application in Tomcat 4.1



I didn't mean mod_jk2.

I meant CoyoteConnector in server.xml.

In server.xml, you have a connector listening on some port (like 8009) 
for communications from Apache.  This connector has a class parameter. 
In your case, the class is "org.apache.ajp.tomcat4.Ajp13Connector".

Make it "org.apache.coyote.tomcat4.CoyoteConnector" instead and you will

be able to use MBeans.

CoyoteConnector can handle AJP13 from either mod_jk or mod_jk2, as well 
as HTTP and HTTPS.

There are actually two Apache connectors in server.xml by default, one 
uses Ajp13Connector, one uses CoyoteConnector:

 
 

 
 

You want the first one, not the second one.

John

J.P. Wadkin C9951627 wrote:

> I would use JK2 if it worked on Solaris 8 with Apache 2, which it
> doesn't - or at least I haven't been able to get it to work and I've
> tried everything.
> 
> 
> John
> 
> -Original Message-
> From: John Turner [mailto:[EMAIL PROTECTED] 
> Sent: 14 August 2003 14:43
> To: Tomcat Users List
> Subject: Re: Problem with mod_jk and admin application in Tomcat 4.1
> 
> 
> 
> You're using a sledgehammer where a light tap will do fine.
> 
> Ajp13Connector doesn't like MBeans, or vice versa.
> 
> Either don't use MBeans, or use CoyoteConnector instead of 
> Ajp13Connector.  The latter is preferred and recommended,
Ajp13Connector
> 
> is deprecated.
> 
> John
> 
> J.P. Wadkin C9951627 wrote:
> 
> 
>>It seems that it's not possible to use mod_jk with the admin
> 
> application
> 
>>in Tomcat 4.1
>>
>>On startup this appears in catalina.out
>>
>>ServerLifecycleListener: Creating MBean for Service
>>StandardService[Tomcat-JK]
>>ServerLifecycleListener: Creating MBean for Connector
>>[EMAIL PROTECTED]
>>ServerLifecycleListener: createMBeans: MBeanException
>>java.lang.Exception: ManagedBean is not found with Ajp13Connector
>>   
>>
>>So I edited the mbeans-descriptors.xml file in the catalina.jar and
>>added an mbean for the Ajp13Connector. Tomcat started fine (no errors)
>>but mod_jk no longer works - any request to a webapp URL results in a
>>404 error. There's nothing in the logs - just the 404 errors. I'm not
>>sure why this is - there's a mbean for the Coyote/jk2 connector so
>>presumably this works?
>>
>>
>>Thanks
>>
>>John
>>
>>-
>>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]
> 
> 
> -
> 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]


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



Problem with mod_jk and admin application in Tomcat 4.1

2003-08-14 Thread J.P. Wadkin C9951627
It seems that it's not possible to use mod_jk with the admin application
in Tomcat 4.1

On startup this appears in catalina.out

ServerLifecycleListener: Creating MBean for Service
StandardService[Tomcat-JK]
ServerLifecycleListener: Creating MBean for Connector
[EMAIL PROTECTED]
ServerLifecycleListener: createMBeans: MBeanException
java.lang.Exception: ManagedBean is not found with Ajp13Connector
   

So I edited the mbeans-descriptors.xml file in the catalina.jar and
added an mbean for the Ajp13Connector. Tomcat started fine (no errors)
but mod_jk no longer works - any request to a webapp URL results in a
404 error. There's nothing in the logs - just the 404 errors. I'm not
sure why this is - there's a mbean for the Coyote/jk2 connector so
presumably this works?


Thanks

John

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



RE: Problem with mod_jk and admin application in Tomcat 4.1

2003-08-14 Thread J.P. Wadkin C9951627
I would use JK2 if it worked on Solaris 8 with Apache 2, which it
doesn't - or at least I haven't been able to get it to work and I've
tried everything.


John

-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED] 
Sent: 14 August 2003 14:43
To: Tomcat Users List
Subject: Re: Problem with mod_jk and admin application in Tomcat 4.1



You're using a sledgehammer where a light tap will do fine.

Ajp13Connector doesn't like MBeans, or vice versa.

Either don't use MBeans, or use CoyoteConnector instead of 
Ajp13Connector.  The latter is preferred and recommended, Ajp13Connector

is deprecated.

John

J.P. Wadkin C9951627 wrote:

> It seems that it's not possible to use mod_jk with the admin
application
> in Tomcat 4.1
> 
> On startup this appears in catalina.out
> 
> ServerLifecycleListener: Creating MBean for Service
> StandardService[Tomcat-JK]
> ServerLifecycleListener: Creating MBean for Connector
> [EMAIL PROTECTED]
> ServerLifecycleListener: createMBeans: MBeanException
> java.lang.Exception: ManagedBean is not found with Ajp13Connector
>
> 
> So I edited the mbeans-descriptors.xml file in the catalina.jar and
> added an mbean for the Ajp13Connector. Tomcat started fine (no errors)
> but mod_jk no longer works - any request to a webapp URL results in a
> 404 error. There's nothing in the logs - just the 404 errors. I'm not
> sure why this is - there's a mbean for the Coyote/jk2 connector so
> presumably this works?
> 
> 
> Thanks
> 
> John
> 
> -
> 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]


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



Re: Problem with mod_jk and admin application in Tomcat 4.1

2003-08-14 Thread John Turner
You're using a sledgehammer where a light tap will do fine.

Ajp13Connector doesn't like MBeans, or vice versa.

Either don't use MBeans, or use CoyoteConnector instead of 
Ajp13Connector.  The latter is preferred and recommended, Ajp13Connector 
is deprecated.

John

J.P. Wadkin C9951627 wrote:

It seems that it's not possible to use mod_jk with the admin application
in Tomcat 4.1
On startup this appears in catalina.out

ServerLifecycleListener: Creating MBean for Service
StandardService[Tomcat-JK]
ServerLifecycleListener: Creating MBean for Connector
[EMAIL PROTECTED]
ServerLifecycleListener: createMBeans: MBeanException
java.lang.Exception: ManagedBean is not found with Ajp13Connector
   
So I edited the mbeans-descriptors.xml file in the catalina.jar and
added an mbean for the Ajp13Connector. Tomcat started fine (no errors)
but mod_jk no longer works - any request to a webapp URL results in a
404 error. There's nothing in the logs - just the 404 errors. I'm not
sure why this is - there's a mbean for the Coyote/jk2 connector so
presumably this works?
Thanks

John

-
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: Problem with mod_jk and admin application in Tomcat 4.1

2003-08-14 Thread John Turner
I didn't mean mod_jk2.

I meant CoyoteConnector in server.xml.

In server.xml, you have a connector listening on some port (like 8009) 
for communications from Apache.  This connector has a class parameter. 
In your case, the class is "org.apache.ajp.tomcat4.Ajp13Connector".

Make it "org.apache.coyote.tomcat4.CoyoteConnector" instead and you will 
be able to use MBeans.

CoyoteConnector can handle AJP13 from either mod_jk or mod_jk2, as well 
as HTTP and HTTPS.

There are actually two Apache connectors in server.xml by default, one 
uses Ajp13Connector, one uses CoyoteConnector:



protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>



You want the first one, not the second one.

John

J.P. Wadkin C9951627 wrote:

I would use JK2 if it worked on Solaris 8 with Apache 2, which it
doesn't - or at least I haven't been able to get it to work and I've
tried everything.
John

-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED] 
Sent: 14 August 2003 14:43
To: Tomcat Users List
Subject: Re: Problem with mod_jk and admin application in Tomcat 4.1



You're using a sledgehammer where a light tap will do fine.

Ajp13Connector doesn't like MBeans, or vice versa.

Either don't use MBeans, or use CoyoteConnector instead of 
Ajp13Connector.  The latter is preferred and recommended, Ajp13Connector

is deprecated.

John

J.P. Wadkin C9951627 wrote:


It seems that it's not possible to use mod_jk with the admin
application

in Tomcat 4.1

On startup this appears in catalina.out

ServerLifecycleListener: Creating MBean for Service
StandardService[Tomcat-JK]
ServerLifecycleListener: Creating MBean for Connector
[EMAIL PROTECTED]
ServerLifecycleListener: createMBeans: MBeanException
java.lang.Exception: ManagedBean is not found with Ajp13Connector
  
So I edited the mbeans-descriptors.xml file in the catalina.jar and
added an mbean for the Ajp13Connector. Tomcat started fine (no errors)
but mod_jk no longer works - any request to a webapp URL results in a
404 error. There's nothing in the logs - just the 404 errors. I'm not
sure why this is - there's a mbean for the Coyote/jk2 connector so
presumably this works?
Thanks

John

-
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]
-
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: Problem with mod_jk, tomcat 4.1.18, apache 1.3.26, on FreeBSD 4.3

2003-02-03 Thread Benjamin Hart
I did try doing this as well, but ran in to problems with the linux
emulation libraries (I think, new to freebsd). Having followed the
instructions to make a diy mod_kj.so, this is the error I got:

Cannot load /home/y/libexec/mod_jk.so into server:
/home/y/libexec/mod_jk.so: Undefined symbol "jk_set_log_format"

Admittedly, I haven't hunted round very much for the causes of this error
yet. One thing that dissuaded me from doing so was the difference in the
file sizes, in case something was missing or had not compiled correctly: the
d'loaded ones were ~370kb, and mine was ~70k.

Cheers,

Ben

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 03, 2003 5:09 PM
To: 'Tomcat Users List'
Subject: RE: Problem with mod_jk, tomcat 4.1.18, apache 1.3.26, on
FreeBSD 4.3



Are you comfortable with rolling your own connector?  It's been years since
I messed with FreeBSD, but assuming that you have a "sane" dev environment,
compiling the .so is pretty straight-forward.

John


> -Original Message-
> From: Benjamin Hart [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 03, 2003 12:03 PM
> To: Tomcat Users List
> Subject: Problem with mod_jk, tomcat 4.1.18, apache 1.3.26, on FreeBSD
> 4.3
>
>
> Hi,
>
> I've been unable to set up the ajp13 redirect for servlets
> between my apache
> and tomcat on freebsd, despite trying everything! The error I
> am getting is:
>
> Cannot load /home/y/libexec/mod_jk.so into server:
> /home/y/libexec/mod_jk.so: Undefined symbol "ap_hook_post_config"
>
> Having looked around, this is highlighted for when migrating
> a module from
> apache 1.3 to 2, but I am not running 2 here. I have tried
> all versions of
> the mod_jk.so available from the jakarta site :(
>
> I have done this before fine on both solaris and linux, but am having
> problems here on freebsd. I am not desperate to use tomcat 4,
> so if somebody
> has got this running with tomcat 3.3 I am happy to use that.
> I have to use
> apache 1.3.26.
>
> Manks thanks in advance,
>
> Ben
>


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




RE: Problem with mod_jk, tomcat 4.1.18, apache 1.3.26, on FreeBSD 4.3

2003-02-03 Thread Turner, John

Are you comfortable with rolling your own connector?  It's been years since
I messed with FreeBSD, but assuming that you have a "sane" dev environment,
compiling the .so is pretty straight-forward.

John


> -Original Message-
> From: Benjamin Hart [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 03, 2003 12:03 PM
> To: Tomcat Users List
> Subject: Problem with mod_jk, tomcat 4.1.18, apache 1.3.26, on FreeBSD
> 4.3
> 
> 
> Hi,
> 
> I've been unable to set up the ajp13 redirect for servlets 
> between my apache
> and tomcat on freebsd, despite trying everything! The error I 
> am getting is:
> 
> Cannot load /home/y/libexec/mod_jk.so into server:
> /home/y/libexec/mod_jk.so: Undefined symbol "ap_hook_post_config"
> 
> Having looked around, this is highlighted for when migrating 
> a module from
> apache 1.3 to 2, but I am not running 2 here. I have tried 
> all versions of
> the mod_jk.so available from the jakarta site :(
> 
> I have done this before fine on both solaris and linux, but am having
> problems here on freebsd. I am not desperate to use tomcat 4, 
> so if somebody
> has got this running with tomcat 3.3 I am happy to use that. 
> I have to use
> apache 1.3.26.
> 
> Manks thanks in advance,
> 
> Ben
> 
> 
> -
> 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]




Problem with mod_jk, tomcat 4.1.18, apache 1.3.26, on FreeBSD 4.3

2003-02-03 Thread Benjamin Hart
Hi,

I've been unable to set up the ajp13 redirect for servlets between my apache
and tomcat on freebsd, despite trying everything! The error I am getting is:

Cannot load /home/y/libexec/mod_jk.so into server:
/home/y/libexec/mod_jk.so: Undefined symbol "ap_hook_post_config"

Having looked around, this is highlighted for when migrating a module from
apache 1.3 to 2, but I am not running 2 here. I have tried all versions of
the mod_jk.so available from the jakarta site :(

I have done this before fine on both solaris and linux, but am having
problems here on freebsd. I am not desperate to use tomcat 4, so if somebody
has got this running with tomcat 3.3 I am happy to use that. I have to use
apache 1.3.26.

Manks thanks in advance,

Ben


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




RE: session problem with mod_jk

2002-12-05 Thread Price, Erik


> -Original Message-
> From: Matthias Erche [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 05, 2002 7:34 AM
> To: [EMAIL PROTECTED]
> Subject: session problem with mod_jk
> 
[...]

> What we want to have (only with IE):
> 
> - login to first webapp per ssl
> - open new browser window so that it have the same session
> - typing the url of the second webapp so that we still have 
> the same session 
> for this application
> 
> What happens:
> 
> - if the webapps run on linux with the warp connector 
> everything works fine
> - on windows with mod_jk the session changes when typing the 
> url of the second 
> webapp

Can you not encode the URL for the session and pass this URL as the
argument to the JavaScript for opening the new browser window?  Presumably
the URL will be rewritten if necessary, or not if the user has accepted
the cookie...

??


Erik

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




Re: session problem with mod_jk

2002-12-05 Thread Matthias Erche
Hi Tom,

Am Donnerstag, 5. Dezember 2002 13:44 schrieb Tim Funk:
> The session cookie is probably NOT being propogated in IE's new window.

The cookie is being propagated. But it has a different content than this one 
that we get when using the warp connector.  Why?

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: session problem with mod_jk

2002-12-05 Thread Matthias Erche
Hi Tim,

thanks for your answer.

> The session cookie is probably NOT being propogated in IE's new window.
>
> If that is the case, then you need to add the session id to the url.
> (Via response.encodeURL( ... ) or response.encodeRedirectURL( ... ))

That is not possible I think. I have to type in the url by hand and it works 
with the arp connector.

I think the problem comes from the mod_jk. I searched the documentation for 
some options but found nothing.



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: session problem with mod_jk

2002-12-05 Thread Tim Funk
The session cookie is probably NOT being propogated in IE's new window.

If that is the case, then you need to add the session id to the url. 
(Via response.encodeURL( ... ) or response.encodeRedirectURL( ... ))

Matthias Erche wrote:
Hi all,

We have 2 webapps running in this environment:

- Win2k
- Tomcat 4.0.4
- Apache 1.3.26
- mod_jk (version ?)
- all on the same server

What we want to have (only with IE):

- login to first webapp per ssl
- open new browser window so that it have the same session
- typing the url of the second webapp so that we still have the same session 
for this application

What happens:

- if the webapps run on linux with the warp connector everything works fine
- on windows with mod_jk the session changes when typing the url of the second 
webapp

Can anyone give me an hint? 

Thanks Matthias


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




session problem with mod_jk

2002-12-05 Thread Matthias Erche
Hi all,

We have 2 webapps running in this environment:

- Win2k
- Tomcat 4.0.4
- Apache 1.3.26
- mod_jk (version ?)
- all on the same server

What we want to have (only with IE):

- login to first webapp per ssl
- open new browser window so that it have the same session
- typing the url of the second webapp so that we still have the same session 
for this application

What happens:

- if the webapps run on linux with the warp connector everything works fine
- on windows with mod_jk the session changes when typing the url of the second 
webapp

Can anyone give me an hint? 

Thanks Matthias


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: problem with mod_jk

2002-05-02 Thread @Basebeans.com

Subject: Re: problem with mod_jk
From: "Hyunjin Kim" <[EMAIL PROTECTED]>
 ===
Your apache server might not have support functionality for dynamic
modules.. try recompiling your apache with enable_module=so.. it might work.

as for the path stuff, you can give your apache the full path name, like
/usr/local/apache/libexec/ although I think the default path Apache-Win
should be /usr/local/apache/modules/.. (I am not sure though... i use
linux...)

Good luck!

"Christian" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> I check in to the freebsd ports but I not find jdk 1.3.1, for freebsd
> 4.5 I find only jdk1.1.8.
>
> I try to your configuration the error not change:
>
> Syntax error on line 1 of /usr/local/apache/conf/httpd.conf:
> Cannot load /usr/local/apache/libexec/apache/mod_jk.so into server:
> Cannot open "/usr/local/apache/libexec/apache/mod_jk.so"
> /bin/apachectl start: httpd could not be started
>
> naturally on line 1 there is the line that load mod_jk.so
>
>
>
> -Messaggio originale-
> Da: adrianthiele [mailto:[EMAIL PROTECTED]]
> Inviato: mercoledì 1 maggio 2002 19.55
> A: Tomcat Users List
> Oggetto: Re: R: problem with mod_jk
>
> Christian wrote:
>
> >FreeBSD 4.5 release
> >Jdk 1.1.8
> >Apache 1.3.24
> >Tomcat 3.2.4
> >
> >I use binary version, fount on the site for tomcat 2.3.4, jdk is a
> ports
> >of freebsd (java originally not support FreeBSD), apache 1.3.24 is a
> >source fount on apache web site.
> >For compile mod_jk I download source of tomcat 3.2.4, in this source
> >there is makefile.freebsd, they permits make source specific on
> freebsd.
> >
> >-Messaggio originale-
> >Da: adrianthiele [mailto:[EMAIL PROTECTED]]
> >Inviato: mercoledì 1 maggio 2002 18.58
> >A: Tomcat Users List
> >Oggetto: Re: R: problem with mod_jk
> >
> >Tell me your setup ? what version of Apache , what version of Tomcat,
> >did you build the mod_jk ? Are you using any of the ports to build this
>
> >? What jdk are you using?
> >
> >
> >
> >
> >Christian wrote:
> >
> >
> >
> >>mod_jk.so is in /usr/local/apache/libexec and I start first tomcat
> with
> >>shell script startup.sh and apache with apachectl when tomcat are
> >>started.
> >>
> >>The problem Isn't resolve.
> >>
> >>This is the usual error:
> >>Sintax error on line 8 of /usr/local/tomcat/conf/mod_jk.conf-auto:
> >>Cannot load /usr/local/apache/libexec/mod_jk.so into server:
> >>/usr/local/apache/libexec/mod_jk.so: Undefined symbol "map_name_at"
> >>/bin/apachectl start: http could not started
> >>
> >>HELP!!!
> >>
> >>
> >[EMAIL PROTECTED]>
> >
> >
> >--
> >To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> >For additional commands: <mailto:[EMAIL PROTECTED]>
> >Troubles with the list: <mailto:[EMAIL PROTECTED]>
> >
> >
> >
> >
> >
> Why aren`t you using the jdk1.3.1 for freeBSD ?
> Would you like to try mine (mod_jk) ?
>
> here`s my worker.properties
> workers.tomcat_home=$CATALINA_HOME
> workers.java_home=$JAVA_HOME
> ps=/
> worker.list=ajp12, ajp13
> worker.ajp13.port8009
> worker.ajp13.host=localhost
> worker.ajp13.type=ajp13
>
> Added to httpd.conf
> #
>
> LoadModule jk_module  libexec/apache/mod_jk.so
>
> AddModule mod_jk.c
>
>
>
> 
> JkWorkersFile /usr/local/tomcat/conf/workers.properties
> JkLogFile  logs/jk.log
> JkLogLevel warn
> JkMount /*.jsp ajp13
> JkMount /servlet/* ajp13
> JkMount /examples/* ajp13
>
> 
>
>
>
>
> ##
>
> Check yours to see if it jives. what does your auto .conf file look like
> ?
>
>
>
>
>
>
>
>
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>
>
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




R: problem with mod_jk

2002-05-02 Thread Christian

I check in to the freebsd ports but I not find jdk 1.3.1, for freebsd
4.5 I find only jdk1.1.8.

I try to your configuration the error not change:

Syntax error on line 1 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/apache/mod_jk.so into server:
Cannot open "/usr/local/apache/libexec/apache/mod_jk.so"
/bin/apachectl start: httpd could not be started

naturally on line 1 there is the line that load mod_jk.so

 

-Messaggio originale-
Da: adrianthiele [mailto:[EMAIL PROTECTED]] 
Inviato: mercoledì 1 maggio 2002 19.55
A: Tomcat Users List
Oggetto: Re: R: problem with mod_jk

Christian wrote:

>FreeBSD 4.5 release
>Jdk 1.1.8
>Apache 1.3.24
>Tomcat 3.2.4
>
>I use binary version, fount on the site for tomcat 2.3.4, jdk is a
ports
>of freebsd (java originally not support FreeBSD), apache 1.3.24 is a
>source fount on apache web site.
>For compile mod_jk I download source of tomcat 3.2.4, in this source
>there is makefile.freebsd, they permits make source specific on
freebsd.
>
>-Messaggio originale-
>Da: adrianthiele [mailto:[EMAIL PROTECTED]] 
>Inviato: mercoledì 1 maggio 2002 18.58
>A: Tomcat Users List
>Oggetto: Re: R: problem with mod_jk
>
>Tell me your setup ? what version of Apache , what version of Tomcat, 
>did you build the mod_jk ? Are you using any of the ports to build this

>? What jdk are you using?
>
>
>
>
>Christian wrote:
>
>  
>
>>mod_jk.so is in /usr/local/apache/libexec and I start first tomcat
with
>>shell script startup.sh and apache with apachectl when tomcat are
>>started.
>>
>>The problem Isn't resolve.
>>
>>This is the usual error:
>>Sintax error on line 8 of /usr/local/tomcat/conf/mod_jk.conf-auto:
>>Cannot load /usr/local/apache/libexec/mod_jk.so into server:
>>/usr/local/apache/libexec/mod_jk.so: Undefined symbol "map_name_at"
>>/bin/apachectl start: http could not started
>>
>>HELP!!!
>>
>>
>[EMAIL PROTECTED]>
>
>
>--
>To unsubscribe:   <mailto:[EMAIL PROTECTED]>
>For additional commands: <mailto:[EMAIL PROTECTED]>
>Troubles with the list: <mailto:[EMAIL PROTECTED]>
>
>
>
>  
>
Why aren`t you using the jdk1.3.1 for freeBSD ?
Would you like to try mine (mod_jk) ?

here`s my worker.properties
workers.tomcat_home=$CATALINA_HOME
workers.java_home=$JAVA_HOME
ps=/
worker.list=ajp12, ajp13
worker.ajp13.port8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13

Added to httpd.conf
#

LoadModule jk_module  libexec/apache/mod_jk.so

AddModule mod_jk.c




JkWorkersFile /usr/local/tomcat/conf/workers.properties
JkLogFile  logs/jk.log
JkLogLevel warn
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
JkMount /examples/* ajp13






##

Check yours to see if it jives. what does your auto .conf file look like
?








--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Re: R: problem with mod_jk

2002-05-01 Thread adrianthiele

Christian wrote:

>FreeBSD 4.5 release
>Jdk 1.1.8
>Apache 1.3.24
>Tomcat 3.2.4
>
>I use binary version, fount on the site for tomcat 2.3.4, jdk is a ports
>of freebsd (java originally not support FreeBSD), apache 1.3.24 is a
>source fount on apache web site.
>For compile mod_jk I download source of tomcat 3.2.4, in this source
>there is makefile.freebsd, they permits make source specific on freebsd.
>
>-Messaggio originale-
>Da: adrianthiele [mailto:[EMAIL PROTECTED]] 
>Inviato: mercoledì 1 maggio 2002 18.58
>A: Tomcat Users List
>Oggetto: Re: R: problem with mod_jk
>
>Tell me your setup ? what version of Apache , what version of Tomcat, 
>did you build the mod_jk ? Are you using any of the ports to build this 
>? What jdk are you using?
>
>
>
>
>Christian wrote:
>
>  
>
>>mod_jk.so is in /usr/local/apache/libexec and I start first tomcat with
>>shell script startup.sh and apache with apachectl when tomcat are
>>started.
>>
>>The problem Isn't resolve.
>>
>>This is the usual error:
>>Sintax error on line 8 of /usr/local/tomcat/conf/mod_jk.conf-auto:
>>Cannot load /usr/local/apache/libexec/mod_jk.so into server:
>>/usr/local/apache/libexec/mod_jk.so: Undefined symbol "map_name_at"
>>/bin/apachectl start: http could not started
>>
>>HELP!!!
>>
>>
>[EMAIL PROTECTED]>
>
>
>--
>To unsubscribe:   <mailto:[EMAIL PROTECTED]>
>For additional commands: <mailto:[EMAIL PROTECTED]>
>Troubles with the list: <mailto:[EMAIL PROTECTED]>
>
>
>
>  
>
Why aren`t you using the jdk1.3.1 for freeBSD ?
Would you like to try mine (mod_jk) ?

here`s my worker.properties
workers.tomcat_home=$CATALINA_HOME
workers.java_home=$JAVA_HOME
ps=/
worker.list=ajp12, ajp13
worker.ajp13.port8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13

Added to httpd.conf
#

LoadModule jk_module  libexec/apache/mod_jk.so

AddModule mod_jk.c




JkWorkersFile /usr/local/tomcat/conf/workers.properties
JkLogFile  logs/jk.log
JkLogLevel warn
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
JkMount /examples/* ajp13






##

Check yours to see if it jives. what does your auto .conf file look like ?








--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




R: problem with mod_jk

2002-05-01 Thread Christian

FreeBSD 4.5 release
Jdk 1.1.8
Apache 1.3.24
Tomcat 3.2.4

I use binary version, fount on the site for tomcat 2.3.4, jdk is a ports
of freebsd (java originally not support FreeBSD), apache 1.3.24 is a
source fount on apache web site.
For compile mod_jk I download source of tomcat 3.2.4, in this source
there is makefile.freebsd, they permits make source specific on freebsd.

-Messaggio originale-
Da: adrianthiele [mailto:[EMAIL PROTECTED]] 
Inviato: mercoledì 1 maggio 2002 18.58
A: Tomcat Users List
Oggetto: Re: R: problem with mod_jk

Tell me your setup ? what version of Apache , what version of Tomcat, 
did you build the mod_jk ? Are you using any of the ports to build this 
? What jdk are you using?




Christian wrote:

>mod_jk.so is in /usr/local/apache/libexec and I start first tomcat with
>shell script startup.sh and apache with apachectl when tomcat are
>started.
>
>The problem Isn't resolve.
>
>This is the usual error:
>Sintax error on line 8 of /usr/local/tomcat/conf/mod_jk.conf-auto:
>Cannot load /usr/local/apache/libexec/mod_jk.so into server:
>/usr/local/apache/libexec/mod_jk.so: Undefined symbol "map_name_at"
>/bin/apachectl start: http could not started
>
>HELP!!!
[EMAIL PROTECTED]>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Re: R: problem with mod_jk

2002-05-01 Thread adrianthiele

Tell me your setup ? what version of Apache , what version of Tomcat, 
did you build the mod_jk ? Are you using any of the ports to build this 
? What jdk are you using?




Christian wrote:

>mod_jk.so is in /usr/local/apache/libexec and I start first tomcat with
>shell script startup.sh and apache with apachectl when tomcat are
>started.
>
>The problem Isn't resolve.
>
>This is the usual error:
>Sintax error on line 8 of /usr/local/tomcat/conf/mod_jk.conf-auto:
>Cannot load /usr/local/apache/libexec/mod_jk.so into server:
>/usr/local/apache/libexec/mod_jk.so: Undefined symbol "map_name_at"
>/bin/apachectl start: http could not started
>
>HELP!!!
>
>-Messaggio originale-
>Da: adrianthiele [mailto:[EMAIL PROTECTED]] 
>Inviato: mercoledì 1 maggio 2002 10.39
>A: Tomcat Users List
>Oggetto: Re: problem with mod_jk
>
>Christian ,
>Are you sure mod_jk got to /usr/local/libexec/apache ?
>By default it goes to /usr/local/libexec .
>Ernst has a port build for mod_jk, however I use mod_webapp.
>Look and see if mod_jk is in /usr/local/libexec or
>/usr/local/libexec/apache
>
>also make sure to use apachectl stop , then start tomcat and then 
>apachectl start
>
>If you just want to build from the ports , it works fine.
>
>Adrian
>
>
>
>
>--
>To unsubscribe:   <mailto:[EMAIL PROTECTED]>
>For additional commands: <mailto:[EMAIL PROTECTED]>
>Troubles with the list: <mailto:[EMAIL PROTECTED]>
>
>
>
>  
>




--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




R: problem with mod_jk

2002-05-01 Thread Christian

mod_jk.so is in /usr/local/apache/libexec and I start first tomcat with
shell script startup.sh and apache with apachectl when tomcat are
started.

The problem Isn't resolve.

This is the usual error:
Sintax error on line 8 of /usr/local/tomcat/conf/mod_jk.conf-auto:
Cannot load /usr/local/apache/libexec/mod_jk.so into server:
/usr/local/apache/libexec/mod_jk.so: Undefined symbol "map_name_at"
/bin/apachectl start: http could not started

HELP!!!

-Messaggio originale-
Da: adrianthiele [mailto:[EMAIL PROTECTED]] 
Inviato: mercoledì 1 maggio 2002 10.39
A: Tomcat Users List
Oggetto: Re: problem with mod_jk

Christian ,
Are you sure mod_jk got to /usr/local/libexec/apache ?
By default it goes to /usr/local/libexec .
Ernst has a port build for mod_jk, however I use mod_webapp.
Look and see if mod_jk is in /usr/local/libexec or
/usr/local/libexec/apache

also make sure to use apachectl stop , then start tomcat and then 
apachectl start

If you just want to build from the ports , it works fine.

Adrian




--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Re: problem with mod_jk

2002-05-01 Thread adrianthiele

Christian ,
Are you sure mod_jk got to /usr/local/libexec/apache ?
By default it goes to /usr/local/libexec .
Ernst has a port build for mod_jk, however I use mod_webapp.
Look and see if mod_jk is in /usr/local/libexec or /usr/local/libexec/apache

also make sure to use apachectl stop , then start tomcat and then 
apachectl start

If you just want to build from the ports , it works fine.

Adrian




Christian wrote:

>I' ve a problem with mod_jk, i 've install jakarta-tomcat 3.2.4, apache
>1.3.24 and I compile mod_jk for my OS (Freebsd).
>
>I insert in my httpd.conf the following lines:
>
>Include /usr/local/tomcat/conf/mod_jk.conf-auto
>
>When I start apache with apachectl start, in my screen view the follow
>error:
>
>Sintax error on line 8 of /usr/local/tomcat/conf/mod_jk.conf-auto:
>Cannot load /usr/local/apache/libexec/mod_jk.so into server:
>/usr/local/apache/libexec/mod_jk.so: Undefined symbol "map_name_at"
>/bin/apachectl start: http could not started
>
>I read one mini How-to for this argoment, they suggest yhe follow
>procedure:
>
>Scompact apache files
>In apache directory run this command: ./configure --prefix=/web/apache
>--enable-module=so --enable-rule= SHARED_CORE=yes
>make 
>make install
>
>it's just?!
>How can resolve my problem?!
>
>P.S. excused for my understandable English
>
>
>--
>To unsubscribe:   <mailto:[EMAIL PROTECTED]>
>For additional commands: <mailto:[EMAIL PROTECTED]>
>Troubles with the list: <mailto:[EMAIL PROTECTED]>
>
>
>
>  
>




--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




problem with mod_jk

2002-05-01 Thread Christian

I' ve a problem with mod_jk, i 've install jakarta-tomcat 3.2.4, apache
1.3.24 and I compile mod_jk for my OS (Freebsd).

I insert in my httpd.conf the following lines:

Include /usr/local/tomcat/conf/mod_jk.conf-auto

When I start apache with apachectl start, in my screen view the follow
error:

Sintax error on line 8 of /usr/local/tomcat/conf/mod_jk.conf-auto:
Cannot load /usr/local/apache/libexec/mod_jk.so into server:
/usr/local/apache/libexec/mod_jk.so: Undefined symbol "map_name_at"
/bin/apachectl start: http could not started

I read one mini How-to for this argoment, they suggest yhe follow
procedure:

Scompact apache files
In apache directory run this command: ./configure --prefix=/web/apache
--enable-module=so --enable-rule= SHARED_CORE=yes
make 
make install

it's just?!
How can resolve my problem?!

P.S. excused for my understandable English


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Problem with mod_jk ajp13 talking to Tomcat 4, authentication always fails

2001-12-16 Thread Richard Sand

Hi all- I've encountered a potential bug in mod_jk.  I have a default
installtion of Apache 1.3.14, mod_jk, and Tomcat 4.0.1 on Windows 2000.
mod_jk is talking to Tomcat via ajp13.  Tomcat is (as default) listening on
8080 for its HTTP interface and on 8009 for ajp13.

The problem is this: when I access to Tomcat manager application, i.e.
http://myserver/manager/list, I get properly challenged to log in, but my
username and password never work, and Tomcat eventually says I am
unauthorized.  If I then access the same resource directly through Tomcat,
i.e. http://myserver:8080/manager/list, I get access with no problem.

The problem could be in mod_jk, although I suspect it may lie in Tomcat's
ajp13 listener (simply because mod_jk is older and more widely used, whereas
Tomcat 4 is newer).

Has anyone else seen this problem, or can someone else reproduce it?

Thanks!

Best regards,

Richard


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Strange problem with mod_jk (desperate for help)

2001-12-12 Thread Brandon Cruz

OK, that's what I was afraid you would say...I was hoping that if Apache
started, that meant I had a good mod_jk.

Brandon

-Original Message-
From: Renato [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 12, 2001 2:47 PM
To: Tomcat Users List
Subject: Re: Strange problem with mod_jk (desperate for help)


If you are using a different version, you should definitely try to
recompile, specially if glibc version is diferent.


>
>   I have installed mod_jk to connect Apache to Tomcat.  This was a
> module obtained from jakarta's web site.  Apache and Tomcat will both
start
> up with no problem, but I am getting a 404 error when trying to access a
> *.jsp page.
>
>   1)I have this exact same configuration with Tomcat 3.2.1, all I am
> trying to do is put Tomcat 3.2.4 into the same environment on a new
machine
> (newer version of Linux also).
>
>   2)My mod_jk.log is telling me that it finds a match for a worker,
> here is the output when I try to access the page...
>   [jk_uri_worker_map.c (344)]: Into
> jk_uri_worker_map_t::map_uri_to_worker
>   [jk_uri_worker_map.c (406)]: jk_uri_worker_map_t::map_uri_to_worker,
> Found a match ajp12
>   [jk_worker.c (123)]: Into wc_get_worker_for_name ajp12
>   [jk_worker.c (127)]: wc_get_worker_for_name, done  found a worker
>
>   3)My apache error_log is telling me something about a segmentation
> fault, which my properly working environment spits out sometimes (doesn't
> ever cause any problems that I know of).  Here is the output...
>   [Wed Dec 12 23:56:02 2001] [notice] child pid 7385 exit signal
> Segmentation fault (11)
>
>   4)Apache appears to be loading the mod_jk correctly on startup based
> on the information provided in the apache error_log provided below...
>   [Wed Dec 12 23:07:47 2001] [notice] Apache/1.3.19 (Unix) mod_jk
> mod_perl/1.24_01 mod_throttle/2.11 PHP/4.0.6 FrontPage/4.0.4.3
mod_ssl/2.8.3
> OpenSSL/0.9.6b configured -- resuming normal operations
>
>   5)To me, this appears to be a problem with specifying a wrong path
> for a context or something in server.xml, but I have checked that over and
> over and it all is correct, but here is the path to my vhost in case I am
> missing something.
>   
>
> docBase="/usr/local/psa/home/vhosts/cheapshotz.com/httpdocs">
>crossContext="false"
>debug="0"
>reloadable="true"
>
> 
>
>
>
>   I know this is long, but if anyone can point me in the right
> direction, I would REALLY appreciate it!  I have been working on this
> configuration for 2 days now, am so close to completion, but have come to
a
> dead end.  Should I try to compile mod_jk on my machine?  Every attempt at
> that has resulted in apache not starting up.
>
>
>   Brandon
>
>
>

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Re: Strange problem with mod_jk (desperate for help)

2001-12-12 Thread Renato

If you are using a different version, you should definitely try to 
recompile, specially if glibc version is diferent.


> 
>   I have installed mod_jk to connect Apache to Tomcat.  This was a
> module obtained from jakarta's web site.  Apache and Tomcat will both 
start
> up with no problem, but I am getting a 404 error when trying to access a
> *.jsp page.
> 
>   1)I have this exact same configuration with Tomcat 3.2.1, all I am
> trying to do is put Tomcat 3.2.4 into the same environment on a new 
machine
> (newer version of Linux also).  
> 
>   2)My mod_jk.log is telling me that it finds a match for a worker,
> here is the output when I try to access the page...
>   [jk_uri_worker_map.c (344)]: Into
> jk_uri_worker_map_t::map_uri_to_worker
>   [jk_uri_worker_map.c (406)]: jk_uri_worker_map_t::map_uri_to_worker,
> Found a match ajp12
>   [jk_worker.c (123)]: Into wc_get_worker_for_name ajp12
>   [jk_worker.c (127)]: wc_get_worker_for_name, done  found a worker
> 
>   3)My apache error_log is telling me something about a segmentation
> fault, which my properly working environment spits out sometimes (doesn't
> ever cause any problems that I know of).  Here is the output...
>   [Wed Dec 12 23:56:02 2001] [notice] child pid 7385 exit signal
> Segmentation fault (11)
> 
>   4)Apache appears to be loading the mod_jk correctly on startup based
> on the information provided in the apache error_log provided below...
>   [Wed Dec 12 23:07:47 2001] [notice] Apache/1.3.19 (Unix) mod_jk
> mod_perl/1.24_01 mod_throttle/2.11 PHP/4.0.6 FrontPage/4.0.4.3 
mod_ssl/2.8.3
> OpenSSL/0.9.6b configured -- resuming normal operations
> 
>   5)To me, this appears to be a problem with specifying a wrong path
> for a context or something in server.xml, but I have checked that over and
> over and it all is correct, but here is the path to my vhost in case I am
> missing something.
>   
>   
> docBase="/usr/local/psa/home/vhosts/cheapshotz.com/httpdocs">
>crossContext="false"
>debug="0"
>reloadable="true"
>
> 
> 
> 
> 
>   I know this is long, but if anyone can point me in the right
> direction, I would REALLY appreciate it!  I have been working on this
> configuration for 2 days now, am so close to completion, but have come to 
a
> dead end.  Should I try to compile mod_jk on my machine?  Every attempt at
> that has resulted in apache not starting up.
> 
> 
>   Brandon
> 
> 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Strange problem with mod_jk (desperate for help)

2001-12-12 Thread Brandon Cruz

I have installed mod_jk to connect Apache to Tomcat.  This was a
module obtained from jakarta's web site.  Apache and Tomcat will both start
up with no problem, but I am getting a 404 error when trying to access a
*.jsp page.

1)I have this exact same configuration with Tomcat 3.2.1, all I am
trying to do is put Tomcat 3.2.4 into the same environment on a new machine
(newer version of Linux also).  

2)My mod_jk.log is telling me that it finds a match for a worker,
here is the output when I try to access the page...
[jk_uri_worker_map.c (344)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[jk_uri_worker_map.c (406)]: jk_uri_worker_map_t::map_uri_to_worker,
Found a match ajp12
[jk_worker.c (123)]: Into wc_get_worker_for_name ajp12
[jk_worker.c (127)]: wc_get_worker_for_name, done  found a worker

3)My apache error_log is telling me something about a segmentation
fault, which my properly working environment spits out sometimes (doesn't
ever cause any problems that I know of).  Here is the output...
[Wed Dec 12 23:56:02 2001] [notice] child pid 7385 exit signal
Segmentation fault (11)

4)Apache appears to be loading the mod_jk correctly on startup based
on the information provided in the apache error_log provided below...
[Wed Dec 12 23:07:47 2001] [notice] Apache/1.3.19 (Unix) mod_jk
mod_perl/1.24_01 mod_throttle/2.11 PHP/4.0.6 FrontPage/4.0.4.3 mod_ssl/2.8.3
OpenSSL/0.9.6b configured -- resuming normal operations

5)To me, this appears to be a problem with specifying a wrong path
for a context or something in server.xml, but I have checked that over and
over and it all is correct, but here is the path to my vhost in case I am
missing something.

 
 crossContext="false"
 debug="0"
 reloadable="true"
 
  



I know this is long, but if anyone can point me in the right
direction, I would REALLY appreciate it!  I have been working on this
configuration for 2 days now, am so close to completion, but have come to a
dead end.  Should I try to compile mod_jk on my machine?  Every attempt at
that has resulted in apache not starting up.


Brandon




winmail.dat
Description: application/ms-tnef

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 


worker problem with mod_jk

2001-10-23 Thread Mradul Awasthi

hi,

I have installed and configured
Tomcat3.2.1 on Redhat Linux 6.2 .

when i start the tomcat (with mod_jk.so)

i got the following error in mod_jk.log file
[jk_worker.c (164)]: wc_create_worker validate failed for ajp12
[jk_worker.c (229)]: build_worker_map failed to create workerajp12
[jk_ajp12_worker.c (201)]: In jk_worker_t::validate, resolve failed
[jk_ajp12_worker.c (203)]: In jk_worker_t::validate, Error localhost 8007


also when i stop the tomcat i got the following error


Stop tomcat

at  java.net.InetAddress.getAllByName0(InetAddress.java:571)
at java.net.InetAddress.getAllByName0(InetAddress.java:540)
at java.net.InetAddress.getByName(InetAddress.java:449)
at java.net.Socket.  (Socket.java:100)
at org.apache.tomcat.task.StopTomcat.execute(StopTomcat.java:104)
at org.apache.tomcat.startup.Tomcat.stopTomcat(Tomcat.java:267)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:174)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
java.net.UnknownHostException: localhost


kindly suggest me some solution asap.

Mradul



problem with mod_jk

2001-08-24 Thread Nestor Coppolillo

My platform is ( load balancing with  tomcat ):
Solaris 2.6 ( Sparc )
Apache 1.3.12
Tomcat 3.3.1
mod_jk.
jdk1.3 + hotspot server


When I installed mod_jk module. My problem is ( the tomcat crash with
apache ) ? :

The Tomcat log file:

2001-08-23 12:34:48 - Ajp13Interceptor: Processing connection
org.apache.tomcat.util.net.TcpConnection@752b85 -
java.net.SocketException: Connection reset by peer: Connection reset by
peer
at java.net.SocketInputStream.socketRead(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:86)
at
org.apache.tomcat.modules.server.Ajp13.receive(Ajp13.java:647)
at
org.apache.tomcat.modules.server.Ajp13.receiveNextRequest(Ajp13.java:241

)
at
org.apache.tomcat.modules.server.Ajp13Request.receiveNextRequest(Ajp13In

terceptor.java:218)
at
org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(Ajp1

3Interceptor.java:153)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:43

8)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool

.java:505)
at java.lang.Thread.run(Thread.java:484)


The mod_jk log :


[Wed Aug 22 20:14:32 2001]  [jk_ajp13_worker.c (433)]: In
jk_worker_t::validate,
 resolve failed
[Wed Aug 22 20:14:32 2001]  [jk_ajp13_worker.c (435)]: In
jk_worker_t::validate,
 Error localhost*localhost 8011
[Wed Aug 22 20:14:32 2001]  [jk_worker.c (164)]: wc_create_worker
validate faile
d for djpa1
[Wed Aug 22 20:14:32 2001]  [jk_lb_worker.c (442)]: In
jk_worker_t::validate: Fa
iled to create worker djpa1
[Wed Aug 22 20:14:32 2001]  [jk_lb_worker.c (453)]: In
jk_worker_t::validate: NU
[Wed Aug 22 20:14:32 2001]  [jk_ajp13_worker.c (433)]: In
jk_worker_t::validate,
 resolve failed
[Wed Aug 22 20:14:32 2001]  [jk_ajp13_worker.c (435)]: In
jk_worker_t::validate,
 Error localhost*localhost 8011
[Wed Aug 22 20:14:32 2001]  [jk_worker.c (164)]: wc_create_worker
validate faile
d for djpa1
[Wed Aug 22 20:14:32 2001]  [jk_lb_worker.c (442)]: In
jk_worker_t::validate: Fa
iled to create worker djpa1
[Wed Aug 22 20:14:32 2001]  [jk_lb_worker.c (453)]: In
jk_worker_t::validate: NU
LL Parameters:No more workers in left
[Wed Aug 22 20:14:32 2001]  [jk_worker.c (164)]: wc_create_worker
validate faile
d for loadbalancerdjpa
[Wed Aug 22 20:14:32 2001]  [jk_worker.c (229)]: build_worker_map failed

to crea
te workerloadbalancerdjpa
[Wed Aug 22 20:16:28 2001]  [jk_ajp13_worker.c (433)]: In
jk_worker_t::validate,
 resolve failed
[Wed Aug 22 20:16:28 2001]  [jk_ajp13_worker.c (435)]: In
jk_worker_t::validate,
 Error localhost*localhost 8011
LL Parameters
[Wed Aug 22 20:14:32 2001]  [jk_worker.c (164)]: wc_create_worker
validate faile
d for loadbalancerdjpa
[Wed Aug 22 20:14:32 2001]  [jk_worker.c (229)]: build_worker_map failed

to crea
te workerloadbalancerdjpa



Any Help ? Thanks .








problem with mod_jk

2001-07-30 Thread Tsinwah Lee

Hi, my admin has config Apache to work with Tomcat, she said using Apache + Tomcat 
together, the jsp/servlets will load faster, but the static pages will "hesitate" for 
a fraction of a second and then the pages got load up. Also, the size of the log file 
for mod_jk has increased to 3MB by just using Apache + Tomcat for about 20 minutes. I 
checked with the mod_jk.conf and mod_jk.conf file, the jkLogLevel is "warn", and in 
the mod_jk.conf-auto file, the jkLogLevel is "error". Both of them are not on the 
"debug" level. I wonder why the size of mod_jk.log is that large.
So does anyone experience something like that? Or does anyone know how to optimize the 
performance for both static pages and servlet when using Apache + Tomcat? Thanks in 
advance.




Problem with mod_jk

2001-06-29 Thread Carlos López M.



Hi I keep geting 
this error on my mod_jk.log

[jk_ajp12_worker.c (596)]: ajpv12_handle_response, error writing 
back to server
and 

[jk_uri_worker_map.c (430)]: In 
jk_uri_worker_map_t::map_uri_to_worker, wrong parameters
does it has anithing 
to do with tomcat workers.
In the workers file, 
does this ones have to be declare as a unix or linux 
user


  
  

  

   

  Carlos 
  López Mendoza
  

  

  Consultor
  

  Convento 
  de Acolman # 70b
  

  Jardines 
  de Sta. Mónica
  

   

  tel/fax 
  (52) 5 365 23 40
 
 


RE: huge problem with mod_jk and Apache

2001-06-25 Thread GOMEZ Henri

Take a look at your mod_jk.conf.
For example check the JkMount command and LogLevel

-
Henri Gomez ___[_]
EMAIL : [EMAIL PROTECTED](. .) 
PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6 



>-Original Message-
>From: Nick Stoianov [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, June 26, 2001 6:22 AM
>To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
>Subject: Re: huge problem with mod_jk and Apache
>
>
>the problem is not only with the servlets - even HTML pages get loaded
>really slow
>
>- Original Message -
>From: "anil" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Monday, June 25, 2001 8:16 PM
>Subject: Re: huge problem with mod_jk and Apache
>
>
>> Hmm. That is strange. I run Tomcat 3.2.2 with
>> JBoss+postgreSQL+Apache+security on (every call gets autheticated) I
>> can't complain on Dell 800MHz server with 128MB of RAM with 
>RedHat 6.2.
>> The JDK is Sun JDK 1.3.1.
>> Apache connector is Mod_jk12.
>> Email me the the servlet and I will try to run on my server.
>>
>> anil
>>
>> Nick Stoianov wrote:
>>
>> > Hi, I have a Linux server running Apache and Tomcat 3.2.2 (using
>> > mod_jk). I noticed that when I run Apache with mod_jk - 
>Apache serves
>> > the html pages extremely slow (20 seconds for a simple page). If I
>> > disable mod_jk - it's  fast again. I will really appreciate if
>> > somebody helps me with this problem. ThanksNick
>



Re: huge problem with mod_jk and Apache

2001-06-25 Thread Nick Stoianov

the problem is not only with the servlets - even HTML pages get loaded
really slow

- Original Message -
From: "anil" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 25, 2001 8:16 PM
Subject: Re: huge problem with mod_jk and Apache


> Hmm. That is strange. I run Tomcat 3.2.2 with
> JBoss+postgreSQL+Apache+security on (every call gets autheticated) I
> can't complain on Dell 800MHz server with 128MB of RAM with RedHat 6.2.
> The JDK is Sun JDK 1.3.1.
> Apache connector is Mod_jk12.
> Email me the the servlet and I will try to run on my server.
>
> anil
>
> Nick Stoianov wrote:
>
> > Hi, I have a Linux server running Apache and Tomcat 3.2.2 (using
> > mod_jk). I noticed that when I run Apache with mod_jk - Apache serves
> > the html pages extremely slow (20 seconds for a simple page). If I
> > disable mod_jk - it's  fast again. I will really appreciate if
> > somebody helps me with this problem. ThanksNick




Re: huge problem with mod_jk and Apache

2001-06-25 Thread anil

Hmm. That is strange. I run Tomcat 3.2.2 with
JBoss+postgreSQL+Apache+security on (every call gets autheticated) I
can't complain on Dell 800MHz server with 128MB of RAM with RedHat 6.2.
The JDK is Sun JDK 1.3.1.
Apache connector is Mod_jk12.
Email me the the servlet and I will try to run on my server.

anil

Nick Stoianov wrote:

> Hi, I have a Linux server running Apache and Tomcat 3.2.2 (using
> mod_jk). I noticed that when I run Apache with mod_jk - Apache serves
> the html pages extremely slow (20 seconds for a simple page). If I
> disable mod_jk - it's  fast again. I will really appreciate if
> somebody helps me with this problem. ThanksNick




huge problem with mod_jk and Apache

2001-06-25 Thread Nick Stoianov



Hi,
 
I have a Linux server running Apache and Tomcat 
3.2.2 (using mod_jk). I noticed that when I run Apache with mod_jk - Apache 
serves the html pages extremely slow (20 seconds for a simple page). If I 
disable mod_jk - it's  fast again.
 
I will really appreciate if somebody helps me with 
this problem.
 
Thanks
Nick


Re: problem with mod_jk and Tomcat

2001-06-15 Thread Luba Powell

On 1.
Invoke servlet will go where you tell it to go.
Examine  URL-PATTERN under \conf\web.xml:

  
  
invoker
/servlet/*
  

Hope this helps





- Original Message -
From: "Nick Stoianov" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 15, 2001 7:20 PM
Subject: problem with mod_jk and Tomcat


> Hi,
>
> I have the following problem. I was running Apache JServ and decided to
> upgrade to Tomcat with mod_jk and Apache. The installation went well. The
> sample servlets and JSPs work well. But now I'm having the following
problems:
>
> 1. My old servlets that were working with Jserv don't work with Tomcat. I
> tried to find the reason and I found out that to invoke the servlets you
have
> to go to http://localhost/servlet/the_name_of_the_servlet
> Okbut my servlets have redirections to http://localhost/servlets (not
> servlet) .  I changed the JkMount in mod_jk.conf to mount /servlets for
the
> servlet files. But it still doesn't work.
> My question is: how can I make tomcat to look for servlets in /servlets
(not
> in /servlet)?
>
> 2. When I try to run the /admin JSP page I get ERROR 500:
> javax.servlet.ServletException: URL contains encoded special chars
>
>
> I will really appreciate if someone helps me with these problems.
>
> Nick Stoianov




problem with mod_jk and Tomcat

2001-06-15 Thread Nick Stoianov

Hi,

I have the following problem. I was running Apache JServ and decided to 
upgrade to Tomcat with mod_jk and Apache. The installation went well. The 
sample servlets and JSPs work well. But now I'm having the following problems:

1. My old servlets that were working with Jserv don't work with Tomcat. I 
tried to find the reason and I found out that to invoke the servlets you have 
to go to http://localhost/servlet/the_name_of_the_servlet
Okbut my servlets have redirections to http://localhost/servlets (not 
servlet) .  I changed the JkMount in mod_jk.conf to mount /servlets for the 
servlet files. But it still doesn't work. 
My question is: how can I make tomcat to look for servlets in /servlets (not 
in /servlet)?

2. When I try to run the /admin JSP page I get ERROR 500: 
javax.servlet.ServletException: URL contains encoded special chars


I will really appreciate if someone helps me with these problems.

Nick Stoianov



Re: Problem with mod_jk

2001-06-14 Thread tito santini

Hi,
I have had the same problem, with Apache 1.3.20 and Tomcat 3.2.2.
I recompiled Apache with "DSO support" and the error disappeared.

Hope this hint may help you.

Tito Santini

NETikos S.p.A.
Via Matteucci, 34 B
56124 PISA - ITALY
Tel.: + 39 050 968 671
Fax: + 39 050 968 626
mailto:[EMAIL PROTECTED]
www.netikos.com
- Original Message -
From: "Tomeu Bennàssar" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 13, 2001 3:13 PM
Subject: Problem with mod_jk


> Hi:
> I'm trying to connect Apache 1.3.4 with Tomcat 3.2.2 using mod_jk
> but I can't do it. I have configured the mod_jk as it is explanied in
> mod_jk-howto but when I try to restart the Apache server the next error
> comes out:
>
> Syntax error on line 8 of
> /usr/local/jakarta-tomcat-3.2.2/conf/mod_jk.conf-auto:
> Invalid command 'LoadModule', perhaps mis-spelled or defined by a module
> not included in the server configuration
>
> on line 8 of mod_jk.conf-auto file I have the next: LoadModule jk_module
> libexec/mod_jk.so
>
> I don't know how to solve it. Could anyone help me, please?
>
> Thanks
> Tomeu




Problem with mod_jk

2001-06-13 Thread Tomeu Bennàssar

Hi:
I'm trying to connect Apache 1.3.4 with Tomcat 3.2.2 using mod_jk
but I can't do it. I have configured the mod_jk as it is explanied in
mod_jk-howto but when I try to restart the Apache server the next error
comes out:

Syntax error on line 8 of
/usr/local/jakarta-tomcat-3.2.2/conf/mod_jk.conf-auto:
Invalid command 'LoadModule', perhaps mis-spelled or defined by a module
not included in the server configuration

on line 8 of mod_jk.conf-auto file I have the next: LoadModule jk_module
libexec/mod_jk.so

I don't know how to solve it. Could anyone help me, please?

Thanks
Tomeu




RE: lb-problem with mod_jk: high cpu load on apache when tomcat breaks down

2001-05-29 Thread GOMEZ Henri

>It seems to be a lifelock in mod_jk, because tomcat accepts the
>connection, but is not able to reply. I think its that while-loop in
>mod_jk:

That's all the magic of TCP IOs. You can connect, but you're not
sure that the remote server is ready to process your query.
Something which will be removed in AJP14 by the LOGIN feature.

Another "beauty" of socket API is that you couldn't be sure 
the write() call was really successfull before doing a read()
call.

Which make me think that when servicing a request we must add
somewhere a 'kind of timeout' in operation. But that complexify
also the process, since you had to play with NON-BLOCKED IO...


>static int ajpv12_handle_response(ajp12_endpoint_t *p,
>  jk_ws_service_t *s,
>  jk_logger_t *l)
>{
>while(1) {
>unsigned to_read = READ_BUF_SIZE;
>unsigned acc = 0;
>char *buf = NULL;
>
>if(!jk_sb_read(&p->sb, &buf, to_read, &acc)) {
>jk_log(l, JK_LOG_ERROR, "ajpv12_handle_response, error
>reading
> from \n"); return JK_FALSE;
>}
>
>if(!acc) {
>jk_log(l, JK_LOG_DEBUG, "ajpv12_handle_response, response
>body is
> done\n"); break;
>}
>
>if(write_to_ws) {
>if(!s->write(s, buf, acc)) {
>jk_log(l, JK_LOG_ERROR, "ajpv12_handle_response, error
> writing back to server\n"); write_to_ws = JK_FALSE;<<<<<<<<}
>}
>}
>---
>
>
>what do you think?
>
>Greetings,
>Timo
>
>Guido Medina wrote:
>> 
>> Yesd, I had, I changed to mod_jserv, I'm still waiting for 
>the same answer
>> as you do, for the high CPU request of mod_jk...
>> 
>> Guido.
>> - Original Message -
>> From: "Timo Carl" <[EMAIL PROTECTED]>
>> To: <[EMAIL PROTECTED]>
>> Sent: Wednesday, May 23, 2001 10:37 AM
>> Subject: lb-problem with mod_jk: high cpu load on apache 
>when tomcat breaks
>> down
>> 
>> > Hello tomcat-users,
>> >
>> > We are having a problem with mod_jk and load balancing.
>> > Does anyone else have had similar problems with that kind of
>> > architecture setup?
>> >
>> > Our System:
>> > ===
>> > Alteon switch (round robin)
>> > |
>> > |
>> > three Apache 1.3.19 on three SPARC-Servers (called 
>s1,s2,s3)(3 CPU, 3
>> > GB)
>> > |
>> > |each:
>> > mod_jk with lb (in case of s1: 1*s1,0.001*s2,0.001*s3)
>> > |
>> > |
>> > |
>> > two tomcats-3.2.1 on each server (jdk1.2.2, native threads, -Xms50M
>> > -Xoss4M -Xss4M -Xmx600M)
>> >
>> > We chose this architecture because the alteon is not able 
>to perform
>> > session tracking properly.
>> >
>> > The Problem:
>> > 
>> > On startup, the system works fine. Each java-Process has 
>about 1-8% CPU
>> > load.
>> > After one day or so, one tomcat takes 40% CPU load or 
>more. I think the
>> > reason is inside our applications. But thats not the error 
>I want to
>> > post:
>> >
>> > After the error of a tomcat, the httpd-processes on EACH 
>Server begin to
>> > take a lot of CPU time (8-30% each).
>> > In server-status I can see that the processes are waiting 
>for a response
>> > of that tomcat.
>> > Of course I want to have a fault tolerance, but when I 
>have a problem
>> > with one server, the other servers go down too.
>> >
>> >
>> > Did/Does anyone have the same problem and/or a similar system
>> > architecture?
>> > Maybe anyone solved that problem?
>> >
>> > Greetings and thanks in advance,
>> > Timo Carl
>
>-- 
>
>
>
>Timo Carl
>Technik & Programmierung
>
>travelchannel GmbH
>Kehrwieder 8
>D-20457 Hamburg
>Telefon +49/40/38617-275
>Telefax +49/40/38617-330
>
>http://www.travelchannel.de - das neue Reisen
>



RE: lb-problem with mod_jk: high cpu load on apache when tomcat breaks down

2001-05-28 Thread GOMEZ Henri

>The problem has been seen on both, ajp13 and ajp12. 
>We use tomcat-3.2.1.

Ok, I'm using TC 3.2.2b5 and 3.3m3.

>What do think about using mod_jserv again?

mod_jserv appears to be in end-of-life. No
more actively supported. I'd rather like see your
bug-report about the current apache tomcat connector
(mod_jk) 

>What kind of quality has the T3.3 cvs mod_jk? Is it possible to use it
>in a productive environment?

I used this one in production, it's stable and all
mod_jk bugs are fixed against this one since the
TC 3.2 is +/- closed for developpement (only fatal
bugs are to be fixed)


>Greetings,
>Timo
>
>GOMEZ Henri wrote:
>> 
>> Could you tell us if you're using ajp12 or ajp13 ?
>> 
>> The latest mod_jk in TC 3.3 cvs handle correctly the
>> case were on Tomcat failed or has been restarted 
>



Re: lb-problem with mod_jk: high cpu load on apache when tomcat breaks down

2001-05-28 Thread Timo Carl

The problem has been seen on both, ajp13 and ajp12. 
We use tomcat-3.2.1.

What do think about using mod_jserv again?
What kind of quality has the T3.3 cvs mod_jk? Is it possible to use it
in a productive environment?

Greetings,
Timo

GOMEZ Henri wrote:
> 
> Could you tell us if you're using ajp12 or ajp13 ?
> 
> The latest mod_jk in TC 3.3 cvs handle correctly the
> case were on Tomcat failed or has been restarted 

begin:vcard 
n:Carl;Timo
tel;fax:++49/40/3703-7759
tel;work:++49/40/3703-7275
x-mozilla-html:FALSE
url:http://www.travelchannel.de
org:G+J travelchannel;Technik
version:2.1
email;internet:[EMAIL PROTECTED]
adr;quoted-printable:;;Am Baumwall 11=0D=0AD-20459 Hamburg
fn:Timo Carl
end:vcard



RE: lb-problem with mod_jk: high cpu load on apache when tomcat breaks down

2001-05-28 Thread GOMEZ Henri

Could you tell us if you're using ajp12 or ajp13 ?

The latest mod_jk in TC 3.3 cvs handle correctly the
case were on Tomcat failed or has been restarted 

-
Henri Gomez ___[_]
EMAIL : [EMAIL PROTECTED](. .) 
PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6 



>-Original Message-
>From: Timo Carl [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, May 23, 2001 4:38 PM
>To: [EMAIL PROTECTED]
>Subject: lb-problem with mod_jk: high cpu load on apache when tomcat
>breaks down
>
>
>Hello tomcat-users,
>
>We are having a problem with mod_jk and load balancing. 
>Does anyone else have had similar problems with that kind of
>architecture setup?
>
>Our System:
>===
>Alteon switch (round robin)
>|
>|
>three Apache 1.3.19 on three SPARC-Servers (called s1,s2,s3)(3 CPU, 3
>GB)
>|
>|each:
>mod_jk with lb (in case of s1: 1*s1,0.001*s2,0.001*s3)
>|
>|
>|
>two tomcats-3.2.1 on each server (jdk1.2.2, native threads, -Xms50M
>-Xoss4M -Xss4M -Xmx600M)
>
>We chose this architecture because the alteon is not able to perform
>session tracking properly.
>
>The Problem:
>
>On startup, the system works fine. Each java-Process has about 1-8% CPU
>load.
>After one day or so, one tomcat takes 40% CPU load or more. I think the
>reason is inside our applications. But thats not the error I want to
>post:
>
>After the error of a tomcat, the httpd-processes on EACH 
>Server begin to
>take a lot of CPU time (8-30% each).
>In server-status I can see that the processes are waiting for 
>a response
>of that tomcat.
>Of course I want to have a fault tolerance, but when I have a problem
>with one server, the other servers go down too.
>
>
>Did/Does anyone have the same problem and/or a similar system
>architecture?
>Maybe anyone solved that problem?
>
>Greetings and thanks in advance,
>Timo Carl
>



Re: lb-problem with mod_jk: high cpu load on apache when tomcat breaks down

2001-05-25 Thread Timo Carl

>I'm still waiting for the same answer
>as you do, for the high CPU request of mod_jk...

Yes, so I do.
I did not find any article or post about that problem. So I did not
check out mod_jserv. Before tomcat, we use jserv without problems. I
think, we will give mod_jserv a chance.

It seems to be a lifelock in mod_jk, because tomcat accepts the
connection, but is not able to reply. I think its that while-loop in
mod_jk:

static int ajpv12_handle_response(ajp12_endpoint_t *p,
  jk_ws_service_t *s,
  jk_logger_t *l)
{
while(1) {
unsigned to_read = READ_BUF_SIZE;
unsigned acc = 0;
char *buf = NULL;

if(!jk_sb_read(&p->sb, &buf, to_read, &acc)) {
jk_log(l, JK_LOG_ERROR, "ajpv12_handle_response, error
reading
 from \n"); return JK_FALSE;
}

if(!acc) {
jk_log(l, JK_LOG_DEBUG, "ajpv12_handle_response, response
body is
 done\n"); break;
}

if(write_to_ws) {
if(!s->write(s, buf, acc)) {
jk_log(l, JK_LOG_ERROR, "ajpv12_handle_response, error
 writing back to server\n"); write_to_ws = JK_FALSE;<<<<<<<< 
> Yesd, I had, I changed to mod_jserv, I'm still waiting for the same answer
> as you do, for the high CPU request of mod_jk...
> 
> Guido.
> - Original Message -
> From: "Timo Carl" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, May 23, 2001 10:37 AM
> Subject: lb-problem with mod_jk: high cpu load on apache when tomcat breaks
> down
> 
> > Hello tomcat-users,
> >
> > We are having a problem with mod_jk and load balancing.
> > Does anyone else have had similar problems with that kind of
> > architecture setup?
> >
> > Our System:
> > ===
> > Alteon switch (round robin)
> > |
> > |
> > three Apache 1.3.19 on three SPARC-Servers (called s1,s2,s3)(3 CPU, 3
> > GB)
> > |
> > |each:
> > mod_jk with lb (in case of s1: 1*s1,0.001*s2,0.001*s3)
> > |
> > |
> > |
> > two tomcats-3.2.1 on each server (jdk1.2.2, native threads, -Xms50M
> > -Xoss4M -Xss4M -Xmx600M)
> >
> > We chose this architecture because the alteon is not able to perform
> > session tracking properly.
> >
> > The Problem:
> > 
> > On startup, the system works fine. Each java-Process has about 1-8% CPU
> > load.
> > After one day or so, one tomcat takes 40% CPU load or more. I think the
> > reason is inside our applications. But thats not the error I want to
> > post:
> >
> > After the error of a tomcat, the httpd-processes on EACH Server begin to
> > take a lot of CPU time (8-30% each).
> > In server-status I can see that the processes are waiting for a response
> > of that tomcat.
> > Of course I want to have a fault tolerance, but when I have a problem
> > with one server, the other servers go down too.
> >
> >
> > Did/Does anyone have the same problem and/or a similar system
> > architecture?
> > Maybe anyone solved that problem?
> >
> > Greetings and thanks in advance,
> > Timo Carl

-- 



Timo Carl
Technik & Programmierung

travelchannel GmbH
Kehrwieder 8
D-20457 Hamburg
Telefon +49/40/38617-275
Telefax +49/40/38617-330

http://www.travelchannel.de - das neue Reisen

begin:vcard 
n:Carl;Timo
tel;fax:++49/40/3703-7759
tel;work:++49/40/3703-7275
x-mozilla-html:FALSE
url:http://www.travelchannel.de
org:G+J travelchannel;Technik
version:2.1
email;internet:[EMAIL PROTECTED]
adr;quoted-printable:;;Am Baumwall 11=0D=0AD-20459 Hamburg
fn:Timo Carl
end:vcard



Re: lb-problem with mod_jk: high cpu load on apache when tomcat breaks down

2001-05-23 Thread Guido Medina

Yesd, I had, I changed to mod_jserv, I'm still waiting for the same answer
as you do, for the high CPU request of mod_jk...

Guido.
- Original Message -
From: "Timo Carl" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 23, 2001 10:37 AM
Subject: lb-problem with mod_jk: high cpu load on apache when tomcat breaks
down


> Hello tomcat-users,
>
> We are having a problem with mod_jk and load balancing.
> Does anyone else have had similar problems with that kind of
> architecture setup?
>
> Our System:
> ===
> Alteon switch (round robin)
> |
> |
> three Apache 1.3.19 on three SPARC-Servers (called s1,s2,s3)(3 CPU, 3
> GB)
> |
> |each:
> mod_jk with lb (in case of s1: 1*s1,0.001*s2,0.001*s3)
> |
> |
> |
> two tomcats-3.2.1 on each server (jdk1.2.2, native threads, -Xms50M
> -Xoss4M -Xss4M -Xmx600M)
>
> We chose this architecture because the alteon is not able to perform
> session tracking properly.
>
> The Problem:
> 
> On startup, the system works fine. Each java-Process has about 1-8% CPU
> load.
> After one day or so, one tomcat takes 40% CPU load or more. I think the
> reason is inside our applications. But thats not the error I want to
> post:
>
> After the error of a tomcat, the httpd-processes on EACH Server begin to
> take a lot of CPU time (8-30% each).
> In server-status I can see that the processes are waiting for a response
> of that tomcat.
> Of course I want to have a fault tolerance, but when I have a problem
> with one server, the other servers go down too.
>
>
> Did/Does anyone have the same problem and/or a similar system
> architecture?
> Maybe anyone solved that problem?
>
> Greetings and thanks in advance,
> Timo Carl




lb-problem with mod_jk: high cpu load on apache when tomcat breaks down

2001-05-23 Thread Timo Carl

Hello tomcat-users,

We are having a problem with mod_jk and load balancing. 
Does anyone else have had similar problems with that kind of
architecture setup?

Our System:
===
Alteon switch (round robin)
|
|
three Apache 1.3.19 on three SPARC-Servers (called s1,s2,s3)(3 CPU, 3
GB)
|
|each:
mod_jk with lb (in case of s1: 1*s1,0.001*s2,0.001*s3)
|
|
|
two tomcats-3.2.1 on each server (jdk1.2.2, native threads, -Xms50M
-Xoss4M -Xss4M -Xmx600M)

We chose this architecture because the alteon is not able to perform
session tracking properly.

The Problem:

On startup, the system works fine. Each java-Process has about 1-8% CPU
load.
After one day or so, one tomcat takes 40% CPU load or more. I think the
reason is inside our applications. But thats not the error I want to
post:

After the error of a tomcat, the httpd-processes on EACH Server begin to
take a lot of CPU time (8-30% each).
In server-status I can see that the processes are waiting for a response
of that tomcat.
Of course I want to have a fault tolerance, but when I have a problem
with one server, the other servers go down too.


Did/Does anyone have the same problem and/or a similar system
architecture?
Maybe anyone solved that problem?

Greetings and thanks in advance,
Timo Carl

begin:vcard 
n:Carl;Timo
tel;fax:++49/40/3703-7759
tel;work:++49/40/3703-7275
x-mozilla-html:FALSE
url:http://www.travelchannel.de
org:G+J travelchannel;Technik
version:2.1
email;internet:[EMAIL PROTECTED]
adr;quoted-printable:;;Am Baumwall 11=0D=0AD-20459 Hamburg
fn:Timo Carl
end:vcard



Re: ioctl problem with mod_jk

2001-04-20 Thread Daniel K

Solved,.. JkWorkersFile Sytanx must be placed outside outside
"",..but again another prob,..

I have to kill to shutdown tomcat running on other thread

(using :  shutdown.sh -f server_8008.xml)

> How did mod_jk.so get on your server? Many problems with downloaded
> mod_jk.so's seem to resolve when you compile and install on your own.
>
>




Re: ioctl problem with mod_jk

2001-04-19 Thread Mark Johnson

How did mod_jk.so get on your server? Many problems with downloaded
mod_jk.so's seem to resolve when you compile and install on your own.




ioctl problem with mod_jk

2001-04-19 Thread Daniel K

anyone has this prob while starting apache ?,

[Thu Apr 19 22:56:44 2001] [emerg] (25)Inappropriate ioctl for device: Error
while opening the workers

spec : RH7, mod_jk (compile / d/l from website), tomcat-3.2.1,
workers.properties

TIA




Re: Problem with mod_jk build

2001-04-06 Thread Jeff Kilbride

Hi Brandon,

First of all, did you download the *source* distribution for Jakarta? In
order to compile your own mod_jk.so, you need the source distribution --
jakarta-tomcat-3.2.1-src.tar.gz.

When you have the source untarred, cd into the source directory and then to:

src/native/apache1.3/

In there you will find Makefiles for different systems. Rename the correct
one for your system from Makefile.system to just Makefile. Then run the
command 'make' in that directory. If everything is ok, mod-jk.so will be
made for you in that directory. Copy it to your apache/libexec and update
your httpd.conf (or include mod_jk.conf into your httpd.conf...)

It's pretty easy and it worked for me the first time.

Thanks,
--jeff

- Original Message -
From: "Brandon Cruz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 06, 2001 5:11 PM
Subject: RE: Problem with mod_jk build


>
> I really need some help quick!!!  When it is telling me to use this
command
> to build mod_jk...
>
> apxs -o
>
mod_jk.so -I../jk -I/usr/local/jdk/include -I/usr/local/jdk/include/linux -c
> *.c ../jk/*.c
>
> Does that mean that I need to substitute something in for the *.c?  It
keeps
> telling me that  gcc: *.c no such file or directory
>
> If anyone knows what is going on, please help, I am very frustrated with
> this, have been working on it for 2 days.
>
> Thank you!
>
> Brandon Cruz
>
> -Original Message-
> From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 06, 2001 4:39 PM
> To: [EMAIL PROTECTED]
> Subject: Problem with mod_jk build
>
>
>
>
>
> Quick question...
> If I have a binary version of mod_jk.so, do I have to build it?  It said
it
> is already built for Linux, but I can't get apache to start when I put
that
> into apache's libexec directory and include the mod_jk.conf-auto.  What am
I
> doing wrong?  I have tried to build mod_jk, but get all kinds of errors
> telling me that files do not exist.
>
> Brandon Cruz
>
>
>




Re: Problem with mod_jk build

2001-04-06 Thread Scott Tatum

Do you have these lines, either in mod_jk.conf or httpd.conf

LoadModule jk_module  libexec/mod_jk.so
AddModule mod_jk.c

You shouldn't be able to start Apache without them. You should get unknown
directive errors. Make sure those are in there somewhere (I recommend putting
them in httpd.conf along with all the other module loads).

Also I recommend copying mod_jk.conf-auto to mod_jk.conf, and including that
file from httpd.conf.

What kind of errors are you getting on Apache startup?

-Scott
--
Scott Tatum | [EMAIL PROTECTED]
Senior Applications Developer, Special Projects
WorldCom | http://www.wcom.com/

Brandon Cruz wrote:

> Quick question...
> If I have a binary version of mod_jk.so, do I have to build it?  It said it
> is already built for Linux, but I can't get apache to start when I put that
> into apache's libexec directory and include the mod_jk.conf-auto.  What am I
> doing wrong?  I have tried to build mod_jk, but get all kinds of errors
> telling me that files do not exist.
>
> Brandon Cruz




RE: Problem with mod_jk build

2001-04-06 Thread Brandon Cruz


I really need some help quick!!!  When it is telling me to use this command
to build mod_jk...

apxs -o
mod_jk.so -I../jk -I/usr/local/jdk/include -I/usr/local/jdk/include/linux -c
*.c ../jk/*.c

Does that mean that I need to substitute something in for the *.c?  It keeps
telling me that  gcc: *.c no such file or directory

If anyone knows what is going on, please help, I am very frustrated with
this, have been working on it for 2 days.

Thank you!

Brandon Cruz

-Original Message-
From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 06, 2001 4:39 PM
To: [EMAIL PROTECTED]
Subject: Problem with mod_jk build





Quick question...
If I have a binary version of mod_jk.so, do I have to build it?  It said it
is already built for Linux, but I can't get apache to start when I put that
into apache's libexec directory and include the mod_jk.conf-auto.  What am I
doing wrong?  I have tried to build mod_jk, but get all kinds of errors
telling me that files do not exist.

Brandon Cruz






Problem with mod_jk build

2001-04-06 Thread Brandon Cruz




Quick question...
If I have a binary version of mod_jk.so, do I have to build it?  It said it
is already built for Linux, but I can't get apache to start when I put that
into apache's libexec directory and include the mod_jk.conf-auto.  What am I
doing wrong?  I have tried to build mod_jk, but get all kinds of errors
telling me that files do not exist.

Brandon Cruz





Re: Problem with mod_jk (resolved)

2001-03-16 Thread Philippe Lecler

Philippe Lecler wrote:
> 
> Hello,
>   I installed tomcat 3.2.1 on solaris 2.5.1, it's OK.
>   I compiled mod_jk with gcc-2.8.1, but when I trie to restart
>   apache 1.3.19 I have the following message :
> 
>   Cannot load /soft/apache/libexec/mod_jk.so into server: ld.so.1:
> /soft/apache/bin/httpd: fatal: relocation error: file
> /soft/apache/libexec/mod_jk.so: symbol snprintf: referenced symbol not
> found
> 
> snprintf is referenced in jk_util.c and is defined in libc.
> 
> Thanx in advance for any response.
> --
> Philippe
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

I tried to add -lresolv without success. Finally, I patched jk_util.c to
use ap_snprintf and ap_vsnprintf :
diff ../jk/jk_util.c.ORG ../jk/jk_util.c
212a213,214
> #elif defined(IRISA) //Pb edition de liens
>   used = ap_snprintf(buf, HUGE_BUFFER_SIZE, "[%s (%d)]: ", f, line);
224a227,228
> #elif defined(IRISA)  //Pb edition de liens
> used = ap_vsnprintf(buf + used, fmt, args);

Command line to compile :
apxs -o mod_jk.so -DSOLARIS -DEAPI -DIRISA -I../jk -I/soft/jdk/include
-I/soft/jdk/include/solaris -c *.c ../jk/*.c

It's ok now.
-- 
Philippe



Re: AW: AW: Problem with mod_jk

2001-03-14 Thread Philippe Lecler

Thomas Bezdicek wrote:
> 
> Hi,
> 
> One more point, did you compiled mod_jk with apxs?
> if not try it that way :
> 
> apxs -o
> mod_jk.so -DSOLARIS -I../jk -I/usr/java/include -I/usr/java/include/solaris
> -lposix4 -c *.c ../jk/*.c
> 
> in the mod_jk-howto.html it is mentioned and it worked
> for us (but Solaris 8)
> 
> regards, tom
> 

Yes, I used apxs with and without -lposix4 : same problem.
I found in archive a message about this problem (on alpha, not
sun-solaris), but no answer :-(
http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg09705.html

Thanx


-- 
Philippe

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




Problem with mod_jk

2001-03-14 Thread Philippe Lecler

Hello,
  I installed tomcat 3.2.1 on solaris 2.5.1, it's OK.
  I compiled mod_jk with gcc-2.8.1, but when I trie to restart
  apache 1.3.19 I have the following message :

  Cannot load /soft/apache/libexec/mod_jk.so into server: ld.so.1:
/soft/apache/bin/httpd: fatal: relocation error: file
/soft/apache/libexec/mod_jk.so: symbol snprintf: referenced symbol not
found

snprintf is referenced in jk_util.c and is defined in libc.

Thanx in advance for any response.
-- 
Philippe

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




RE: Problem with mod_jk

2001-02-21 Thread GOMEZ Henri

If you using mod_jk on Linux i386 there is allready built
binaries for std-api / ext-api (EAPI)

http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.3-m1/bin/linux/i3
86/

Built on Redhat Linux 6.2 :-)



La prise de conscience de votre propre ignorance est un grand pas vers la
connaissance.
-- Benjamin Disraeli
 

>-Original Message-
>From: John Towell [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, February 20, 2001 6:17 PM
>To: '[EMAIL PROTECTED]'
>Subject: RE: Problem with mod_jk
>
>
>Stephan
>
>Same thing happened to me.  It's been discussed here quite a 
>bit lately.
>Best thing to do is get the source from the tomcat site, 
>follow directions
>for building in the mod_jk howto ... 
>
>-Original Message-
>From: Stephan Lang
>To: [EMAIL PROTECTED]
>Sent: 2/20/01 11:09 AM
>Subject: Problem with mod_jk
>
>
>Hi,
>
>As a newbie concerning tomcat, I am facing some configuration-problems:
>
>I am trying to make tomcat work with apache on my linux-box.
>I wanted to use tomcat 3.2.1 and apache 1.3.14 with mod_jk.  So the
>problem is that
>the apache doesn't want to recognize the module (that I downloaded as a
>binary from
>the jakarta-site)  as an apache DSO.
>I followed the instructions from the mod_jk-how-to and  included the
>.conf-auto file,
>that is generated by tomcat after startup, into apache's httpd.conf.
>But when apache reaches the instruction, it exits with :
>
>API module structure `jk_module' in file
>/opt/apache_1.3.14/libexec/mod_jk.so is garbled - perhaps this 
>is not an
>Apache module DSO?
>
>What is wrong ? Are there any restrictions on versions that are not
>fitting together ?
>
>Stephan
>
>
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, email: [EMAIL PROTECTED]
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, email: [EMAIL PROTECTED]
>

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




Re: Problem with mod_jk

2001-02-20 Thread Jan Labanowski

You can also look at my notes at:

http://www.ccl.net/cca/software/UNIX/apache/


On Tue, 20 Feb 2001, Stephan Lang wrote:

> 
> Hi,
> 
> As a newbie concerning tomcat, I am facing some configuration-problems:
> 
> I am trying to make tomcat work with apache on my linux-box.
> I wanted to use tomcat 3.2.1 and apache 1.3.14 with mod_jk.  So the
> problem is that
> the apache doesn't want to recognize the module (that I downloaded as a
> binary from
> the jakarta-site)  as an apache DSO.
> I followed the instructions from the mod_jk-how-to and  included the
> .conf-auto file,
> that is generated by tomcat after startup, into apache's httpd.conf.
> But when apache reaches the instruction, it exits with :
> 
> API module structure `jk_module' in file
> /opt/apache_1.3.14/libexec/mod_jk.so is garbled - perhaps this is not an
> Apache module DSO?
> 
> What is wrong ? Are there any restrictions on versions that are not
> fitting together ?
> 
> Stephan
> 
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 

Jan K. Labanowski|phone: 614-292-9279,  FAX: 614-292-7168
Ohio Supercomputer Center|Internet: [EMAIL PROTECTED] 
1224 Kinnear Rd, |http://www.ccl.net/chemistry.html
Columbus, OH 43212-1163  |http://www.osc.edu/


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




RE: Problem with mod_jk

2001-02-20 Thread John Towell

Stephan

Same thing happened to me.  It's been discussed here quite a bit lately.
Best thing to do is get the source from the tomcat site, follow directions
for building in the mod_jk howto ... 

-Original Message-
From: Stephan Lang
To: [EMAIL PROTECTED]
Sent: 2/20/01 11:09 AM
Subject: Problem with mod_jk


Hi,

As a newbie concerning tomcat, I am facing some configuration-problems:

I am trying to make tomcat work with apache on my linux-box.
I wanted to use tomcat 3.2.1 and apache 1.3.14 with mod_jk.  So the
problem is that
the apache doesn't want to recognize the module (that I downloaded as a
binary from
the jakarta-site)  as an apache DSO.
I followed the instructions from the mod_jk-how-to and  included the
.conf-auto file,
that is generated by tomcat after startup, into apache's httpd.conf.
But when apache reaches the instruction, it exits with :

API module structure `jk_module' in file
/opt/apache_1.3.14/libexec/mod_jk.so is garbled - perhaps this is not an
Apache module DSO?

What is wrong ? Are there any restrictions on versions that are not
fitting together ?

Stephan





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

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




Problem with mod_jk

2001-02-20 Thread Stephan Lang


Hi,

As a newbie concerning tomcat, I am facing some configuration-problems:

I am trying to make tomcat work with apache on my linux-box.
I wanted to use tomcat 3.2.1 and apache 1.3.14 with mod_jk.  So the
problem is that
the apache doesn't want to recognize the module (that I downloaded as a
binary from
the jakarta-site)  as an apache DSO.
I followed the instructions from the mod_jk-how-to and  included the
.conf-auto file,
that is generated by tomcat after startup, into apache's httpd.conf.
But when apache reaches the instruction, it exits with :

API module structure `jk_module' in file
/opt/apache_1.3.14/libexec/mod_jk.so is garbled - perhaps this is not an
Apache module DSO?

What is wrong ? Are there any restrictions on versions that are not
fitting together ?

Stephan





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




Re: problem with mod_jk

2001-01-03 Thread Filip Hanik

JkMount does not work in the same way as ApjServMount

JkMount /context worker

worker != URL
take a look at the docs

Filip
http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/mod_jk-howto.html



- Original Message - 
From: "Victor Louis" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 03, 2001 6:10 AM
Subject: problem with mod_jk


> Hi,
> 
> I was using tomcat with apache+mod_jserv on Redhat 6.2. Now I upgraded to
> mod_jk from mod_jserv. The scenario is I am hosting multiple sites on my
> intranet server. Earlier I was was using ApJServMount for  mounting on
> different ports like in the following lines and each site had its own
> server.xml  (server_das.xml...) and tomcat startup files.
> ApJServMount /das   ajpv12://localhost:8009/das
> ApJServMount /formsajpv12://localhost:8012/forms
> ApJServMount /intranet ajpv12://localhost:8016/intranet
> 
> Now with mod_jk if I give the following line in mod_jk.conf it is not
> working.
> JkMount /das/* ajp13://localhost:8009das
> 
> Has anyone has any hints or solution regarding it ?. Please do mail to it
> me.
> 
> Thanks in advance
> 
> Best regards,
> 
> Victor Louis
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]


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




problem with mod_jk

2001-01-03 Thread Victor Louis

Hi,

I was using tomcat with apache+mod_jserv on Redhat 6.2. Now I upgraded to
mod_jk from mod_jserv. The scenario is I am hosting multiple sites on my
intranet server. Earlier I was was using ApJServMount for  mounting on
different ports like in the following lines and each site had its own
server.xml  (server_das.xml...) and tomcat startup files.
ApJServMount /das   ajpv12://localhost:8009/das
ApJServMount /formsajpv12://localhost:8012/forms
ApJServMount /intranet ajpv12://localhost:8016/intranet

Now with mod_jk if I give the following line in mod_jk.conf it is not
working.
JkMount /das/* ajp13://localhost:8009das

Has anyone has any hints or solution regarding it ?. Please do mail to it
me.

Thanks in advance

Best regards,

Victor Louis


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