Tomcat 4.1.27 ana apache 2.0.47 with mod_jk

2004-11-15 Thread Venkat Reddy Valluri
Hi 
   I installed tomcat4.1.27 apache 2.0.47 on two diffrenet servers with 
mod_jk(ajp13)
   when I try to execute jsp's they processed  fine with tomcat.   But one of 
my jsp's having a import([EMAIL PROTECTED] import =Test%) of one java 
class(Test.java) which is not included in any package( I mean it is not having 
a package name. i.e dierectly placed under the root directory).  Here I am 
getting compilation error saying that it is expecting Test.; 
THe same jsp processed fine with tomcat 4.0.4, apache 2.0.40 with mod_jk

Can you please xplain me Why it is bahaving like this

 
Thks  
--Venkat


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

RE: Tomcat 4.1.27 ana apache 2.0.47 with mod_jk

2004-11-15 Thread Venkat Reddy Valluri
But it worked with tomcat 4.0.4 with out using any package
   Do you think is there nat option to set for this

Thks
--Venkat


-Original Message-
From:   Phillip Qin [mailto:[EMAIL PROTECTED]
Sent:   Mon 11/15/2004 4:15 PM
To: 'Tomcat Users List'
Cc: 
Subject:RE: Tomcat 4.1.27 ana apache 2.0.47 with mod_jk
I think you have to use package.

-Original Message-
From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED] 
Sent: November 15, 2004 4:04 PM
To: Tomcat Users List
Subject: Tomcat 4.1.27 ana apache 2.0.47 with mod_jk


Hi 
   I installed tomcat4.1.27 apache 2.0.47 on two diffrenet servers with
mod_jk(ajp13)
   when I try to execute jsp's they processed  fine with tomcat.   But one
of my jsp's having a import([EMAIL PROTECTED] import =Test%) of one java
class(Test.java) which is not included in any package( I mean it is not
having a package name. i.e dierectly placed under the root directory).  Here
I am getting compilation error saying that it is expecting Test.; 
THe same jsp processed fine with tomcat 4.0.4, apache 2.0.40 with mod_jk

Can you please xplain me Why it is bahaving like this

 
Thks  
--Venkat




!DSPAM:419919cd57631768811543!




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

RE: Tomcat 4.1.27 ana apache 2.0.47 with mod_jk

2004-11-15 Thread Venkat Reddy Valluri
Thank you very much for giving information markt
   
why Tomact 4.1.27 can't acess symblic link directories where as tomcat 4.0.4 
can acess those symbolic link directories








-Original Message-
From:   Mark Thomas [mailto:[EMAIL PROTECTED]
Sent:   Mon 11/15/2004 4:48 PM
To: 'Tomcat Users List'
Cc: 
Subject:RE: Tomcat 4.1.27 ana apache 2.0.47 with mod_jk
No. The spec requires this. 

 -Original Message-
 From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED] 
 Sent: Monday, November 15, 2004 9:19 PM
 To: Tomcat Users List
 Subject: RE: Tomcat 4.1.27 ana apache 2.0.47 with mod_jk
 
 But it worked with tomcat 4.0.4 with out using any package
Do you think is there nat option to set for this
 
 Thks
 --Venkat
 
 
 -Original Message-
 From: Phillip Qin [mailto:[EMAIL PROTECTED]
 Sent: Mon 11/15/2004 4:15 PM
 To:   'Tomcat Users List'
 Cc:   
 Subject:  RE: Tomcat 4.1.27 ana apache 2.0.47 with mod_jk
 I think you have to use package.
 
 -Original Message-
 From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED] 
 Sent: November 15, 2004 4:04 PM
 To: Tomcat Users List
 Subject: Tomcat 4.1.27 ana apache 2.0.47 with mod_jk
 
 
 Hi 
I installed tomcat4.1.27 apache 2.0.47 on two diffrenet 
 servers with
 mod_jk(ajp13)
when I try to execute jsp's they processed  fine with 
 tomcat.   But one
 of my jsp's having a import([EMAIL PROTECTED] import =Test%) of one java
 class(Test.java) which is not included in any package( I mean 
 it is not
 having a package name. i.e dierectly placed under the root 
 directory).  Here
 I am getting compilation error saying that it is expecting Test.; 
 THe same jsp processed fine with tomcat 4.0.4, apache 
 2.0.40 with mod_jk
 
 Can you please xplain me Why it is bahaving like this
 
  
 Thks  
 --Venkat
 
 
 
 
 !DSPAM:419919cd57631768811543!
 
 
 
 
 



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

Tomcat 4.1.27 can't access symbolink directories

2004-11-15 Thread Venkat Reddy Valluri
Hi,
 why Tomact 4.1.27 can't acess symbolic link directories while
  tomcat 4.0.4 can acess those symbolic link directories

can you please throw some light on this

Thks
--Venkat


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

RE: Tomcat 4.1.27 can't access symbolink directories

2004-11-15 Thread Venkat Reddy Valluri
Thank you mark


-Original Message-
From:   Mark Thomas [mailto:[EMAIL PROTECTED]
Sent:   Mon 11/15/2004 5:23 PM
To: 'Tomcat Users List'
Cc: 
Subject:RE: Tomcat 4.1.27 can't access symbolink directories
Have a look at http://www.jguru.com/faq/view.jsp?EID=1028397

Mark

 -Original Message-
 From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED] 
 Sent: Monday, November 15, 2004 10:16 PM
 To: Tomcat Users List
 Subject: Tomcat 4.1.27 can't access symbolink directories
 
 Hi,
  why Tomact 4.1.27 can't acess symbolic link directories while
   tomcat 4.0.4 can acess those symbolic link directories
 
 can you please throw some light on this
 
 Thks
 --Venkat
 
 
 



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

how to users let know application server is down

2003-01-08 Thread Venkat Reddy Valluri
Hi,
   I want to let users know thru html page saying that application server is down, 
when tomcat is down (here apache is connecting to  tomcat thru mod_jk)

Any help gr8ly appreciated
Thks,
--Venkat

winmail.dat--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


RE: how to users let know application server is down

2003-01-08 Thread Venkat Reddy Valluri
Thank you very much,
  I worked well
Thks,
--Venkat


-Original Message-
From:   Turoff, Steve [mailto:[EMAIL PROTECTED]]
Sent:   Wed 1/8/2003 2:55 PM
To: Tomcat Users List
Cc: 
Subject:RE: how to users let know application server is down
Venkat,

Here's one method:

1) Create an HTML Page, in Apache's html document root called something like 
error500.html. Note that this assumes that Apache is serving HTML pages and Tomcat is 
serving jsp pages.

2) Add the following line to your httpd.conf file, somewhere in the Main Server 
Configuration

ErrorDocument 500 /error500.html

3) Shutdown Tomcat and restart Apache.

4) Try browsing to a jsp page and you should see your error500.html page.

Steve

 -Original Message-
 From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 08, 2003 1:24 PM
 To: Tomcat Users List
 Subject: how to users let know application server is down
 
 
 Hi,
I want to let users know thru html page saying that 
 application server is down, when tomcat is down (here 
 apache is connecting to  tomcat thru mod_jk)
 
 Any help gr8ly appreciated
 Thks,
 --Venkat
 

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





winmail.dat--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


RE: [LAXMIAKNTH] - MEMORY USAGE

2003-01-07 Thread Venkat Reddy Valluri
Hi,
   You can try with IBM JVM, it works well on linux machines incase of performance as 
well as garbage collection of memory 


-Original Message-
From:   Laxmikanth M.S. [mailto:[EMAIL PROTECTED]]
Sent:   Tue 1/7/2003 4:56 AM
To: [EMAIL PROTECTED]
Cc: 
Subject:[LAXMIAKNTH] - MEMORY USAGE
Hi all,
I have installed jdk1.3/apache1.3.27/tomcat4.1.12 in RH Linux 7.1..
If I see the process most of the memory more than 80% is occupied by jdk1.3
and so the system is slow and sites which are running there is slowwhat
may be the reason
thanks in advance
Regards
Laxmikanth M S 
Off  : 91-80-6610330 extn 1256
http://www.sonata-software.com

 Coming together is the beginning, staying together is progress and working
 together is Success
What lies behind us and what lies before us are tiny matters compared to
what lies within us  - Emerson


*
Disclaimer: The information in this e-mail and any attachments is
confidential / privileged. It is intended solely for the addressee or
addressees. If you are not the addressee indicated in this message, you may
not copy or deliver this message to anyone. In such case, you should destroy
this message and kindly notify the sender by reply email. Please advise
immediately if you or your employer does not consent to Internet email for
messages of this kind.
*

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





winmail.dat--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


RE: HELP, PLEASE! Tomcat creates too many threads!

2003-01-07 Thread Venkat Reddy Valluri
Can you try with IBM JVM, as it works well on linux in cae of performance as well as 
memory usage 


-Original Message-
From:   Denise Mangano [mailto:[EMAIL PROTECTED]]
Sent:   Tue 1/7/2003 9:31 AM
To: 'Tomcat Users List'
Cc: 
Subject:RE: HELP, PLEASE! Tomcat creates too many threads!
I am curious about the same thing.  My app isn't fully up and operational
yet so I do not know for sure if I suffer from the same problem, but I have
noticed that while doing some testing new threads are getting started, and
it usually takes a restart to get rid of them.

I've seen this question posted a few times, but haven't noticed any
'resolution' or possible solutions.  Can anyone recommend things to check
for, settings to make, or perhaps any documentation on the issue?

Is it possible that this could be a JSDK 1.4 issue?  It's the only common
link I've noticed between my set up and other posters with this problem.

Thanks :)

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.


-Original Message-
From: Wagner José Queiroz de Santana
[mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, January 07, 2003 6:47 AM
To: [EMAIL PROTECTED]
Subject: HELP, PLEASE! Tomcat creates too many threads!



Hello all,

Im running Apache and Tomcat in  a Linux machine, after a couple days
and several accesses to my applications, Tomcat creates several
threads/processes that stay sleeping, as you can see at the end of this
e-mail.
Im using Tomcat 4.0.4, Apache 1.3.26 with mod_webapp, and Java 1.4.0_01.
If I don't restart my tomcat, it will exceed the maximum number of
processes the user can execute and it will block, turning my applications
offline.
Is there any solution to this problem? How is it possible to avoid the
creation of so many processes?

I really appreciate any help you can give me.

These lines are only a few ones I get when I run the ps -elf command:

040 S root 13849  8678  0  60   0- 58223 tcp_re Jan06 ?
00:00:00 /usr/local/j2sdk1.4.0_01/bin/java
-Djava.endorsed.dirs=/usr/local/jakarta-tomcat
040 S root 13850  8678  0  60   0- 58223 tcp_re Jan06 ?
00:00:00 /usr/local/j2sdk1.4.0_01/bin/java
-Djava.endorsed.dirs=/usr/local/jakarta-tomcat
040 S root 19616  8678  0  60   0- 58223 tcp_re Jan06 ?
00:00:00 /usr/local/j2sdk1.4.0_01/bin/java
-Djava.endorsed.dirs=/usr/local/jakarta-tomcat
040 S root 19619  8678  0  60   0- 58223 tcp_re Jan06 ?
00:00:00 /usr/local/j2sdk1.4.0_01/bin/java
-Djava.endorsed.dirs=/usr/local/jakarta-tomcat
040 S root 19628  8678  0  60   0- 58223 tcp_re Jan06 ?
00:00:00 /usr/local/j2sdk1.4.0_01/bin/java
-Djava.endorsed.dirs=/usr/local/jakarta-tomcat
040 S root 26732  8678  0  60   0- 58223 tcp_re Jan06 ?
00:00:00 /usr/local/j2sdk1.4.0_01/bin/java
-Djava.endorsed.dirs=/usr/local/jakarta-tomcat
040 S root 26754  8678  0  60   0- 58223 tcp_re Jan06 ?
00:00:00 /usr/local/j2sdk1.4.0_01/bin/java
-Djava.endorsed.dirs=/usr/local/jakarta-tomcat
040 S root 31033  8678  0  60   0- 58223 tcp_re Jan06 ?
00:00:00 /usr/local/j2sdk1.4.0_01/bin/java
-Djava.endorsed.dirs=/usr/local/jakarta-tomcat
040 S root  4677  8678  0  60   0- 58223 tcp_re Jan06 ?
00:00:00 /usr/local/j2sdk1.4.0_01/bin/java
-Djava.endorsed.dirs=/usr/local/jakarta-tomcat
040 S root  4687  8678  0  60   0- 58223 tcp_re Jan06 ?
00:00:00 /usr/local/j2sdk1.4.0_01/bin/java
-Djava.endorsed.dirs=/usr/local/jakarta-tomcat
040 S root  5470  8678  0  60   0- 58223 tcp_re Jan06 ?
00:00:01 /usr/local/j2sdk1.4.0_01/bin/java
-Djava.endorsed.dirs=/usr/local/jakarta-tomcat
040 S root  6154  8678  0  60   0- 58223 tcp_re Jan06 ?
00:00:00 /usr/local/j2sdk1.4.0_01/bin/java
-Djava.endorsed.dirs=/usr/local/jakarta-tomcat
040 S root  6161  8678  0  60   0- 58223 tcp_re Jan06 ?
00:00:00 /usr/local/j2sdk1.4.0_01/bin/java
-Djava.endorsed.dirs=/usr/local/jakarta-tomcat
040 S root  6165  8678  0  60   0- 58223 tcp_re Jan06 ?
00:00:00 /usr/local/j2sdk1.4.0_01/bin/java
-Djava.endorsed.dirs=/usr/local/jakarta-tomcat








--
Wagner Santana
Analista de Sistemas - TIM
Av. Conde da Boa Vista, 800
081 3216-2713081 99136661




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

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





winmail.dat--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


showing progress bar while uploading file

2003-01-07 Thread Venkat Reddy Valluri

Hi
   I am uplaoding files to server thru oreilly's multipartrequest servlet, here I want 
to get some progress bar showing size of bytes uplaoded for every second thru  applet 
on browser
Any help gr8ly appreciated

Thks,
--Venkat

winmail.dat--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


RE: JK2/tomcat 4.1.18 - broken pipe problem

2003-01-03 Thread Venkat Reddy Valluri
I thought this could never be a problem(user htiing stop button), as I alreday mailed, 
I got it solved by relpacing sun jvm with ibm jvm, But I got it on redhat linux, but 
you are on solaris right, So what I am thinking is to  think this problem in different 
dimension, This is just my suggestion  


-Original Message-
From:   Jesper Birch [mailto:[EMAIL PROTECTED]]
Sent:   Fri 1/3/2003 6:58 AM
To: [EMAIL PROTECTED]
Cc: 
Subject:Re: JK2/tomcat 4.1.18 - broken pipe problem
Thx, Bill!

But how do I get rid of them in my catalina.out log file ?! Should I set
file logging in the worker2.properties ?! jk2.properties ?! Something
:-)

/Jesper Birch

The most common reason for this is that the user has hit the stop
button
in the browser before the page has been fully loaded.  The AJP13
protocol
(currently) doesn't support out-of-band messages to notify Tomcat of
this
fact, so mod_jk(2) simply drops the connection to Tomcat instead.

Jesper Birch [EMAIL PROTECTED] wrote in message
1041497967.27623.14.camel@wbirch">news:1041497967.27623.14.camel@wbirch...
 Hi,

 I have setup a environment with Apache 2.0.43, Tomcat 4.1.18 and JK2
 connector.

 Everything seems to work fine, except an error message I get time to
 time in my logs:

 2003-01-02 05:55:56,681 [Thread-49] ERROR
 org.apache.jk.server.JkCoyoteHandler - 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:435) 
at
 org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:627)   
at
 org.apache.jk.server.JkCoyoteHandler.action(JkCoyoteHandler.java:372)
at org.apache.coyote.Response.action(Response.java:222) at
org.apache.coyote.Response.finish(Response.java:343) at
org.apache.coyote.tomcat4.OutputBuffer.close(OutputBuffer.java:326)  at
org.apache.coyote.tomcat4.CoyoteResponse.finishResponse(CoyoteResponse.java:
500) at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:224)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:261)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:360) 
at
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:632)at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:590)
at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:707) 
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:530)   at java.lang.Thread.run(Thread.java:536)

 

 It does not seems like the users of my site has any problems when
using
 it. So I am not sure when exactly this is happening.

 Can somebody explain for me the condition for when this should happen
-
 so I can look into this error, or maybe somebody has an idea to what
the
 problem can be ?!

 I have built JK2 from the 4.1.18 connectors package..

 Thanks

 Jesper Birch


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





winmail.dat--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


RE: JK2/tomcat 4.1.18 - broken pipe problem

2003-01-02 Thread Venkat Reddy Valluri
Even I too got the same problem with configuraion of apache 2.0.40, tomcat 4.0.4 and  
j2sdk1.4.1(sun jvm) on redhat 7.3
 but when I replaced sun jvm with ibm jvm, surprisingly I didn't get this problem, 
I am not sure here but what I thought is sun jvm   can't support green threads on 
redhat linux but supports only native threads where as ibm jvm can support green 
threads on linux machines

Thks,
-Venkat

 

  
 


-Original Message-
From:   Jesper Birch [mailto:[EMAIL PROTECTED]]
Sent:   Thu 1/2/2003 6:01 AM
To: [EMAIL PROTECTED]
Cc: 
Subject:JK2/tomcat 4.1.18 - broken pipe problem
Hi, 

I have setup a environment with Apache 2.0.43, Tomcat 4.1.18 and JK2
connector. 

Everything seems to work fine, except an error message I get time to
time in my logs: 

2003-01-02 05:55:56,681 [Thread-49] ERROR
org.apache.jk.server.JkCoyoteHandler - 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:435)  at
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:627)at
org.apache.jk.server.JkCoyoteHandler.action(JkCoyoteHandler.java:372)at 
org.apache.coyote.Response.action(Response.java:222) at 
org.apache.coyote.Response.finish(Response.java:343) at 
org.apache.coyote.tomcat4.OutputBuffer.close(OutputBuffer.java:326)  at 
org.apache.coyote.tomcat4.CoyoteResponse.finishResponse(CoyoteResponse.java:500) 
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:224)  at 
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:261)at 
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:360)  at 
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:632)at 
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:590) at 
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:707)  at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530)   
at java.lang.Thread.run(Thread.java:536) 

 

It does not seems like the users on my site has any problems when it
appears. So I am not sure when exactly this is happening. 

Can somebody explain for me the condition for when this should happen -
so I can look into this error, or maybe somebody has an idea to what the
problem can be ?! Or it should be in that way ?! :-)

Thanks

Jesper Birch


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





winmail.dat--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


top command shows memory usage of java process is two times more than what actually java heap is taking

2003-01-02 Thread Venkat Reddy Valluri

Hi,
When I run top command on linux, it is showing  memory usage of java process is 
two times more than what java heap is taking, I got java heap size inside java program 
using Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory();
I didn't understand why it is showing like this, Can anybody explain me

Thks,
--Venkat  

winmail.dat--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


RE: Urgent - Issue with Tomcat/mod_jk?

2002-12-30 Thread Venkat Reddy Valluri
Hi,
   Here I am  getting kernel out of memery killing java process in  syslog 
messages(/var/log/messages)   not in catalina.out.  Here  I tried with max heap size 
too(-Xms256m -Xmx256m), ending with no result.
 What I thoght is sun jvm is not properly handling memory allocation/dealloctaion 
on redhat 7.2/7.3, so  I tried with IBM jvm 1.4 on redhat 7.2 with tomcat 4.0.4. 
Surprisingly I am not getting broken pipe errors as well as tomcat crashing problems

   Thank you very much for your response
Thks,
 --Venkat
 


-Original Message-
From:   Ben Ricker [mailto:[EMAIL PROTECTED]]
Sent:   Thu 12/26/2002 9:42 AM
To: Tomcat Users List
Cc: 
Subject:RE: Urgent - Issue with Tomcat/mod_jk?
I beleive we are dealing with a different problem. My app has been
running on Tomcat 4.0.6 for weeks until I had the problem recently.
There was no crash.

What happened was, it seems, a user REALLY fat-fingered the enter key or
some smart person sent the same request to the server 180 times within
one minute. I traced back through my access logs for Apache and caught
the massive number if requests for one URL at the same time I had the
problem.

All of these requests overwhelmed the number of AJP13 processors I had
configured (well, they are still at the default setting) and also caused
a massive opening of database connections.

Anyway, as to your problem: You may not have enough memory setup for
your JVM. Do you send amx -Xm and -Xs parameters to Tomcat using
JAVA_OPTS? You may be getting more load then Tomcat can handle due to a
RAM constraint.

Ben Ricker


On Tue, 2002-12-24 at 13:39, Venkat Reddy Valluri wrote:
 Hi ,
Even I too getting the same problem(lots of broken pipe errors )with catalina 
4.0.4(redhat 7.3, j2sdk1.4.1) connecting  apache 2.0.40(redat 7.3) on diffrenet 
machine with mod_jk,
  But what happened is after it ran for cuople of hours, tomcat crases,
  giving kernel out of memory error in syslog messages 
 
 Did you get any workaround for this
 Thks,
 --Venkat
   
 
 
 -Original Message-
 From: Ben Ricker [mailto:[EMAIL PROTECTED]]
 Sent: Mon 12/23/2002 5:49 PM
 To:   Tomcat Users List
 Cc:   
 Subject:  Re: Urgent - Issue with Tomcat/mod_jk?
 I had suspected that in the problem earlier in the day (the part of the
 email I posted at the end if the last email you replied to). However,
 what did not make sense was the connection pool woth the database also
 going up.
 
 If I understand the stuff below, after 85 concurrent connections (max
 connections + accept count) I would start getting the Out of
 Processors error. However, I cannot see how this would cause the
 DATABASE connection pool to grow as large as it did (we usually handle
 50k connections a business day with 5 pooled connections; during the
 earlier problem, the database connections went to *30*, our maximum).
 
 Additionally, why would we contine to get the following error:
 
 2002-12-23 09:07:28 Ajp13Processor[12009][18] process: invoke
 java.io.IOException: Broken pipe
 at java.net.SocketOutputStream.socketWrite(Native Method)
 at java.net.SocketOutputStream.write(SocketOutputStream.java:91)
 at org.apache.ajp.Ajp13.send(Ajp13.java:525)
 at org.apache.ajp.RequestHandler.finish(RequestHandler.java:501)
 at org.apache.ajp.Ajp13.finish(Ajp13.java:395)
 at 
org.apache.ajp.tomcat4.Ajp13Response.finishResponse(Ajp13Response.java:196)
 at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:464)
 at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
 at java.lang.Thread.run(Thread.java:479)
  
 without seeing the Out of Processor msgs? 
 
 I may be looking at two independent problems: one a scalability issue
 with the ajp13 processors (which are at the ddefault setting, btw) and
 some other issue I am in the dark about.
 
 Anyway, these questions are rhetorical. Thanks for the reply and do not
 feel obliged to answer back. I need to start putting pressure on the
 developers to help me out here.
 
 Thanks again,
 
 Ben Ricker
 
 On Mon, 2002-12-23 at 16:07, Mark Eggers wrote:
  Ben,
  
  Disclaimer:
  
  I'm not a Tomcat developer, but I do use it to develop
  software and integrate applications.
  
  In $CATALINA_HOME/conf/server.xml you should see an
  entry similar to the following:
  
  !-- Define an AJP 1.3 Connector on port 8009 --
  Connector 
   className=org.apache.ajp.tomcat4.Ajp13Connector
   port=8009
   minProcessors=5
   maxProcessors=75
   acceptCount=10 debug=0/
  
  I'm using 4.1.18, so your entry may be a bit
  different.  It looks like from your error messages
  that you may be running out of processors.
  
  The following information is taken from Tomcat's
  4.1.18 documentation.  If you have the documentation
  installed somewhere, the URL is:
  
  http://localhost/tomcat-docs/config/jk.html
  
  acceptCount:
  
  The maximum queue length for incoming

RE: Tomcat and Apache | Performance

2002-12-24 Thread Venkat Reddy Valluri

   There is a option in httpd.conf as well as server.xml(Ajp13Processor max 
processors) to set max clients to be served,
 incresing that size, may get it solved 
   Make sure max Ajp13processors should be greater than or equal to max clients in 
httpd.conf

Thks,
--Venkat


-Original Message-
From:   Rajesh B [mailto:[EMAIL PROTECTED]]
Sent:   Tue 12/24/2002 8:57 AM
To: Tomcat Users List
Cc: 
Subject:Tomcat and Apache | Performance
Hi All,
I am using tomcat 3.3.1 and apache 1.3.27 with mod_jk (ajp12
protocol). We are running it in Solaris 2.8 ( 4 CPU 4GB RAM ). At times
when the system is under heavy load, apache simply stops processessing
requests. And the hits/sec goes down. The system idle state is around
99%. At times , we get MaxClients reached error in error_logs. But
this happens rarely. 
After 10 or 15 minutes, apache is able to serve requests.
Has anyone expericed this kind of problem. Any pointers would be greatly
appreciated.


regards
Rajesh.B

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





winmail.dat--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


Can anyone running successfully tomcat and mod_jk on different machines with mod_jk for longtime

2002-12-24 Thread Venkat Reddy Valluri
Hi,
Can Any body be running tomcat 4.0.4(redaht 7.3, j2sdk1.4.1) and apache 2.0.40 on 
different machines with mod_jk successfully in production environment without giving 
problems(broken pipe etc... kernel out of memory error)

If anubody, could you please help in this regard
Thks,
--Venkat 




winmail.dat--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


RE: Urgent - Issue with Tomcat/mod_jk?

2002-12-24 Thread Venkat Reddy Valluri
Hi ,
   Even I too getting the same problem(lots of broken pipe errors )with catalina 
4.0.4(redhat 7.3, j2sdk1.4.1) connecting  apache 2.0.40(redat 7.3) on diffrenet 
machine with mod_jk,
 But what happened is after it ran for cuople of hours, tomcat crases,
 giving kernel out of memory error in syslog messages 

Did you get any workaround for this
Thks,
--Venkat
  


-Original Message-
From:   Ben Ricker [mailto:[EMAIL PROTECTED]]
Sent:   Mon 12/23/2002 5:49 PM
To: Tomcat Users List
Cc: 
Subject:Re: Urgent - Issue with Tomcat/mod_jk?
I had suspected that in the problem earlier in the day (the part of the
email I posted at the end if the last email you replied to). However,
what did not make sense was the connection pool woth the database also
going up.

If I understand the stuff below, after 85 concurrent connections (max
connections + accept count) I would start getting the Out of
Processors error. However, I cannot see how this would cause the
DATABASE connection pool to grow as large as it did (we usually handle
50k connections a business day with 5 pooled connections; during the
earlier problem, the database connections went to *30*, our maximum).

Additionally, why would we contine to get the following error:

2002-12-23 09:07:28 Ajp13Processor[12009][18] process: invoke
java.io.IOException: Broken pipe
at java.net.SocketOutputStream.socketWrite(Native Method)
at java.net.SocketOutputStream.write(SocketOutputStream.java:91)
at org.apache.ajp.Ajp13.send(Ajp13.java:525)
at org.apache.ajp.RequestHandler.finish(RequestHandler.java:501)
at org.apache.ajp.Ajp13.finish(Ajp13.java:395)
at org.apache.ajp.tomcat4.Ajp13Response.finishResponse(Ajp13Response.java:196)
at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:464)
at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
at java.lang.Thread.run(Thread.java:479)
 
without seeing the Out of Processor msgs? 

I may be looking at two independent problems: one a scalability issue
with the ajp13 processors (which are at the ddefault setting, btw) and
some other issue I am in the dark about.

Anyway, these questions are rhetorical. Thanks for the reply and do not
feel obliged to answer back. I need to start putting pressure on the
developers to help me out here.

Thanks again,

Ben Ricker

On Mon, 2002-12-23 at 16:07, Mark Eggers wrote:
 Ben,
 
 Disclaimer:
 
 I'm not a Tomcat developer, but I do use it to develop
 software and integrate applications.
 
 In $CATALINA_HOME/conf/server.xml you should see an
 entry similar to the following:
 
 !-- Define an AJP 1.3 Connector on port 8009 --
 Connector 
  className=org.apache.ajp.tomcat4.Ajp13Connector
  port=8009
  minProcessors=5
  maxProcessors=75
  acceptCount=10 debug=0/
 
 I'm using 4.1.18, so your entry may be a bit
 different.  It looks like from your error messages
 that you may be running out of processors.
 
 The following information is taken from Tomcat's
 4.1.18 documentation.  If you have the documentation
 installed somewhere, the URL is:
 
 http://localhost/tomcat-docs/config/jk.html
 
 acceptCount:
 
 The maximum queue length for incoming connection
 requests when all possible request processing threads
 are in use. Any requests received when the queue is
 full will be refused. The default value is 10.
 
 maxProcessors:
 
 The maximum number of request processing threads to be
 created by this Connector, which therefore determines
 the maximum number of simultaneous requests that can
 be handled. If not specified, this attribute is set to
 20.
 
 NOTE:For Apache 1.3 on Unix there is a 1 to 1 mapping
 between httpd processes and Ajp13Processors. You must
 configure maxProcessors to be greater than or equal to
 the maximum number of httpd processes your Apache web
 server spawns.
 
 minProcessors:
 
 The number of request processing threads that will be
 created when this Connector is first started. This
 attribute should be set to a value smaller than that
 set for maxProcessors. The default value is 5.
 
 I hope this gets you started on a productive path.
 
 /mde/
 
 just my two cents . . . .
 
 __
 Do you Yahoo!?
 Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
 http://mailplus.yahoo.com
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
-- 
Ben Ricker [EMAIL PROTECTED]
Wellinx.com


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





winmail.dat--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


Running tomcat 4.0.4 with j2sdk1.4.1 on redhat 7.3 dual processror gives out of memory error in syslog messages

2002-12-23 Thread Venkat Reddy Valluri

Hi,
  I am sorry, Iam posting  this question again, as I didn't get any response for this 
question 
  I am running tomcat 4.0.4 on redhat 7.3 dual processor machine(2-4-18-3SMP) with 
j2sdk1.4.1 for my web application,
 The problem is after  couple of hours(6 or 7 hours after 7 or more  users hit the 
system), tomcat crashes and I ened up finding kernel out of memory killing java 
process in syslog messages(/var/log/messages)
  It is not the problem with java heap size I think
  The same web application is running successfully on tomcat 4.0.4 on redat 7.3 
(2-4-18-3) single cpu machine with j2sdk1.4.0

  Here I didn't understand if multi processor redhat 7.3 matters with j2sdk1.4.1

Any help greatly apprecited

Thks
--Venkat



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




Running tomcat 4.0.4 with j2sdk1.4.1 on redhat 7.3 dual processror gives out of memory error in syslog messages

2002-12-20 Thread Venkat Reddy Valluri
Hi,
  I am running tomcat 4.0.4 on redhat 7.3 dual processor machine(2-4-18-3SMP) with 
j2sdk1.4.1 for my web application,
 The problem is after  couple of hours(6 or 7 hours after 7 or more  users hit the 
system), tomcat crashes and I ened up finding kernel out of memory killing java 
process in syslog messages(/var/log/messages)
  It is not the problem with java heap size I think
  The same web application is running successfully on tomcat 4.0.4 on redat 7.3 
(2-4-18-3) single cpu machine with j2sdk1.4.0

  Here I didn't understand if multi processor redhat 7.3 matters with j2sdk1.4.1

Any help greatly apprecited

Thks
--Venkat





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




How to run multiple applications on same tomcat server which is running on different box other than apache box

2002-10-15 Thread Venkat Reddy Valluri


Hi,
I am successfull to run tomcat and apache on diffrent boxes using mod_jk. but now 
I want to run multiple applications on same tomcat instance(I was successfull running 
multiple apps on multiple tomcat instances using different ajp13 ports)
  With apache there will be no problem, because we can create multiple virtual 
hosts for diffrent apps,
 but how to run multiple apps on same tomcat instance 
Can you help me or suggest me some documenataion

Thks in advance

--Venkat




winmail.dat
--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


RE: Error using ajp13 protocol

2002-10-08 Thread Venkat Reddy Valluri

Hi,
According to you, every thing is fine(i.e ajp13 is working fine and listeneing on 
8009), can you just verify your mod_jk.conf and check if you are using hostname as 
localhost and verify in server.xml if you use same name for host and engine 
(localhost)
   if you use same name then how do you configure your context and appbase?
if you send me details i may help you


-Original Message-
From:   Marc [mailto:[EMAIL PROTECTED]]
Sent:   Tue 10/8/2002 8:56 AM
To: Tomcat Users List
Cc: 
Subject:Re: Error using ajp13 protocol
Hi Raj (and thank you for your help yesterday)...
I tried to connect using telenet to localhost 8009 and... there wasn't connection
refused, but the connection wasn't accepted (showed the Escape character ... ),
finally I killed the telnet process because no response was given.
I think that the ajp13 connector (tomcat) is not running in the rigth way,
because, seems that apache finds the worker (the worker name is ok):

   [Tue Oct 08 02:49:21 2002]  [jk_worker.c (187)]:
  wc_create_worker, done
   [Tue Oct 08 02:49:21 2002]  [jk_worker.c (238)]:
  build_worker_map, removing old local_pt1 worker
   [Tue Oct 08 02:49:21 2002]  [jk_worker.c (250)]:
  build_worker_map, done
   [Tue Oct 08 02:49:21 2002]  [jk_worker.c (111)]: wc_open,
  done 1

My workers.properties is:
ps=/

worker.list=local_pt1

worker.local_pt1.port=8009
worker.local_pt1.host=localhost
worker.local_pt1.type=ajp13

worker.local_pt1.lbfactor=1

My server.xml:
!-- Define an AJP 1.3 Connector on port 8009 --
Connector className=org.apache.ajp.tomcat4.Ajp13Connector
   port=8009 minProcessors=5 maxProcessors=75
   acceptCount=10 debug=0/

And, in catalina_log, seems that the connector starts all threads:

2002-10-08 02:35:06 Ajp13Connector[8009] Opening server socket on all host IP
addresses
2002-10-08 02:35:06 Ajp13Connector[8009] Starting background thread
2002-10-08 02:35:06 Ajp13Processor[8009][0] Starting background thread
2002-10-08 02:35:06 Ajp13Processor[8009][1] Starting background thread
2002-10-08 02:35:06 Ajp13Processor[8009][2] Starting background thread
2002-10-08 02:35:06 Ajp13Processor[8009][3] Starting background thread
2002-10-08 02:35:06 Ajp13Processor[8009][4] Starting background thread


Any ideas?

Regards!

Marc

Raj Saini wrote:

 Hi Marc,

 Though I am not expert in the JK Connectors, But it is very clear that
 mod_jk part at apache is not able to connect to the tomcat process.

 There may be three reason for this:-

 1. Your JK connector on tomcat is not listening on port 8009.
 2. The host name of the worker in worker.properties and tomcat does not
 match.
 3. Tomct is not running at all.

 Pleas double check your JK connector configuration in server.xml. Check
 the default host name in tomcat and worker.properties for the local_pt1
 match.

 Try telneting to the host and port you have configured in worker.properties.

 Raj

 Marc Vila Pérez wrote:
  Hi!
  I'm trying to connect apache with tomcat, using jk (ajp13), in my
  mod_jk.log (debug log level), I can read this:
 
  [Tue Oct 08 02:49:20 2002]  [jk_uri_worker_map.c (172)]: Into
  jk_uri_worker_map_t::uri_worker_map_alloc
  [Tue Oct 08 02:49:20 2002]  [jk_uri_worker_map.c (375)]: Into
  jk_uri_worker_map_t::uri_worker_map_open
  [Tue Oct 08 02:49:20 2002]  [jk_uri_worker_map.c (396)]:
  jk_uri_worker_map_t::uri_worker_map_open, rule map size is 1
  [Tue Oct 08 02:49:20 2002]  [jk_uri_worker_map.c (299)]: Into
  jk_uri_worker_map_t::uri_worker_map_open, suffix rule /.jsp=local_pt1
  was added
  [Tue Oct 08 02:49:20 2002]  [jk_uri_worker_map.c (408)]: Into
  jk_uri_worker_map_t::uri_worker_map_open, there are 1 rules
  [Tue Oct 08 02:49:20 2002]  [jk_uri_worker_map.c (422)]:
  jk_uri_worker_map_t::uri_worker_map_open, done
  [Tue Oct 08 02:49:20 2002]  [jk_worker.c (88)]: Into wc_open
  [Tue Oct 08 02:49:20 2002]  [jk_worker.c (222)]: Into build_worker_map,
  creating 1 workers
  [Tue Oct 08 02:49:20 2002]  [jk_worker.c (228)]: build_worker_map,
  creating worker local_pt1
  [Tue Oct 08 02:49:20 2002]  [jk_worker.c (148)]: Into wc_create_worker
  [Tue Oct 08 02:49:20 2002]  [jk_worker.c (162)]: wc_create_worker, about
  to create instance local_pt1 of ajp13
  [Tue Oct 08 02:49:20 2002]  [jk_ajp13_worker.c (108)]: Into
  ajp13_worker_factory
  [Tue Oct 08 02:49:20 2002]  [jk_worker.c (171)]: wc_create_worker, about
  to validate and init local_pt1
  [Tue Oct 08 02:49:20 2002]  [jk_ajp_common.c (1206)]: Into
  jk_worker_t::validate
  [Tue Oct 08 02:49:20 2002]  [jk_ajp_common.c (1226)]: In
  jk_worker_t::validate for worker local_pt1 contact is localhost:8009
  [Tue Oct 08 02:49:20 2002]  [jk_ajp_common.c (1254)]: Into
  jk_worker_t::init
  [Tue Oct 08 02:49:20 2002]  [jk_ajp_common.c (1274)]: In
  jk_worker_t::init, setting socket timeout to 0
  [Tue Oct 08 02:49:20 2002]  [jk_worker.c (187)]: wc_create_worker, done
  [Tue 

RE: How to create a connection pool

2002-10-03 Thread Venkat Reddy Valluri

You can use  OracleConnectionCacheImpl to implement connection pooling
you have to set the attributes for this  by getting them from web.xml
if you refer that class ou can understand



-Original Message-
From:   Kwok Peng Tuck [mailto:[EMAIL PROTECTED]]
Sent:   Thu 10/3/2002 2:19 AM
To: Tomcat Users List
Cc: 
Subject:Re: How to create a connection pool
Maybe you can use the connection pooling provided by tomcat. See the 
JNDI how-to in the docs.

phani wrote:

Hi,

I am using a bean to get connection for a db from my jsp page. But the problem is for 
each and every request the page fetches a connection from  the bean. This becomes a 
over head to the system.
What i want to do is i want to open n no (say 50 ) of connection when the server is 
started and any request must be routed through these connection only.

How to do this?

Thanks in advance.

phani

  




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





winmail.dat
--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


RE: TomCat java_home variable

2002-10-03 Thread Venkat Reddy Valluri




-Original Message-
From:   [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent:   Thu 10/3/2002 2:55 PM
To: Tomcat Users List
Cc: 
Subject:RE: TomCat java_home variable
While we are on the subject, I just upgraded from tomcat 4.1 to 4.1.12.
I'm on a  red-hat 7.something server.  When I installed 4.1 I defined a 
TOMCAT_HOME variable in my .profile.  I read something somewhere about
defining a 
CATLINA_HOME for new versions of Tomcat.  Do I need to define such a 
variable in the place of or along with TOMCAT_HOME? what's the difference?


--Monte Glenn Gardner


On Thu, 3 Oct 2002, Cox, Charlie wrote:

 try uppercase JAVA_HOME
 
 Charlie
 
  -Original Message-
  From: madhur jain [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, October 03, 2002 12:46 AM
  To: [EMAIL PROTECTED]
  Subject: TomCat java_home variable
  
  
  hi
  
  yesterday i downloaded the tomcat 4.0.5
  
  when i start startup.bat in the bibn dir.
  
  the dosprompt says Java_home env. varible is not defined 
  corrcetly
  
  but i have already set the variable in the autoexec.bat file 
  using
  set java_home=C:\jdk1.3.0_02
  
  executing set on the command prompt shows 
  java_home=C:\jdk1.3.0_02
  
  
  i am on win98.
  
  could u please help me to sort it out.
  
  thanx
  madhur
  
  --
  To unsubscribe, e-mail:   
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: 
  mailto:[EMAIL PROTECTED]
  
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 


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





winmail.dat
--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


RE: TomCat java_home variable

2002-10-03 Thread Venkat Reddy Valluri

It should be JAVA_HOME  not java_home


-Original Message-
From:   [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent:   Thu 10/3/2002 2:55 PM
To: Tomcat Users List
Cc: 
Subject:RE: TomCat java_home variable
While we are on the subject, I just upgraded from tomcat 4.1 to 4.1.12.
I'm on a  red-hat 7.something server.  When I installed 4.1 I defined a 
TOMCAT_HOME variable in my .profile.  I read something somewhere about
defining a 
CATLINA_HOME for new versions of Tomcat.  Do I need to define such a 
variable in the place of or along with TOMCAT_HOME? what's the difference?


--Monte Glenn Gardner


On Thu, 3 Oct 2002, Cox, Charlie wrote:

 try uppercase JAVA_HOME
 
 Charlie
 
  -Original Message-
  From: madhur jain [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, October 03, 2002 12:46 AM
  To: [EMAIL PROTECTED]
  Subject: TomCat java_home variable
  
  
  hi
  
  yesterday i downloaded the tomcat 4.0.5
  
  when i start startup.bat in the bibn dir.
  
  the dosprompt says Java_home env. varible is not defined 
  corrcetly
  
  but i have already set the variable in the autoexec.bat file 
  using
  set java_home=C:\jdk1.3.0_02
  
  executing set on the command prompt shows 
  java_home=C:\jdk1.3.0_02
  
  
  i am on win98.
  
  could u please help me to sort it out.
  
  thanx
  madhur
  
  --
  To unsubscribe, e-mail:   
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: 
  mailto:[EMAIL PROTECTED]
  
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 


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





winmail.dat
--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


RE: Apache2 and Tomcat4 on different boxes

2002-09-23 Thread Venkat Reddy Valluri

Thank you very much Raj,
  I was successfull to make apache connect to tomcat, Thank you very mcuh once again
--Venkat 


-Original Message-
From:   Raj Mettai [mailto:[EMAIL PROTECTED]]
Sent:   Fri 9/20/2002 7:18 PM
To: [EMAIL PROTECTED]
Cc: 
Subject:RE: Apache2 and Tomcat4 on different boxes
Hi Venkat,

Here it goes.

Machine  A (Apache), Machine B (tomcat)
—-

httpd.conf changes...
—-
Below # LoadModule foo_module modules/mod_foo.so

Add following lines
#
# Load mod_jk
#
 LoadModule jk_module libexec/mod_jk.so
#
# Configure mod_jk
#
JkWorkersFile conf/workers.properties
JkLogFile logs/mod_jk.log
JkLogLevel debug

Below DocumentRoot /usr/local/apache/htdocs

Add following lines...

JkMount /examples ajp13
JkMount /examples/* ajp13

(if you want to configure a application examples running under webapps
on tomcat, just specify  /examples, you need not sepcify the full path
of the application)

Then create workers.properties under $Apache_Home$/conf/  like this 

# In Unix, we use forward slashes:
ps=/

# list the workers by name
worker.list=ajp13

#
worker.ajp13.port=8009(ajp13 port from server.xml on tomcat machine)
worker.ajp13.host=hostname(Machine B)
worker.ajp13.type=ajp13

(no need to define tomcat_home and java_home parameters here, you define
them on catalina.sh on tomcat machine)

this is all you need to do on apache machine...

server.xml changes on  Machine B(tomcat machine)
—--

Set the required environment variables JAVA_HOME AND CATALINA_HOME in
$TOMCAT_HOME$/bin/catalina.sh

Commen out the Standalone HTTP port(port 8080) Connector. 

!--
Connector
className=org.apache.catalina.connector.http.HttpConnector
   port=8080 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=10 debug=0 connectionTimeout=6/
--


Also Comment out the WARP connector 

  Service name=Tomcat-Apache
!--
Connector
className=org.apache.catalina.connector.warp.WarpConnector
 port=8008 minProcessors=5 maxProcessors=75
 enableLookups=true appBase=webapps
 acceptCount=10 debug=0/
--


Change the both the Engine Tag and Host tag defaultHost to tomcat
hostName(ex: tomcat.apache.com) 
(This should match with your workers.properties host name.)

Engine name=Standalone defaultHost=tomcat.apache.com debug=0
  Host name=tomcat.apache.com debug=0 appBase=webapps
unpackWARs=true
  /Host
/Engine

start tomcat and apache, you should be able to access examples from
apache machine

I have pretty much followed the http://www.ubeans.com/tomcat/
documentation..many many thanks to Pascal Forget.


Let me know, how it goes...

-Raj








 [EMAIL PROTECTED] 09/20/02 06:08PM 
Hi Raj,
  you did  Excellent job,  can you pl explain me how you did, can
you answer for following questions
   1) I installed Apache 2.0.40 on Machine 'A' and built
  mod_jk.so module (./configure
  --with-apxs=/usr/local/apache2/bin/apxs
  --with-java-home=/usr/java/j2sdk1.4.0_01), It was suceesfully
  done and got mod_jk.so
 
 2)  I installed Tomcat 4.0.4 on machine 'B' and copied
  mod_jk.so from machine 'A'(Apache machine) to Machine 'B'
  (Tomcat machine),
 
  and modified server.xml as per the documenatation  
here is server.xml ---
Server port=8005 shutdown=SHUTDOWN debug=0
  Listener
className=org.apache.ajp.tomcat4.config.ApacheConfig
modJk=/opt/catalina/modules/mod_jk.so /

Host name=localhost debug=0 appBase=webapps unpackWARs=true
Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
append=true forwardAll=false modJk=/opt/catalina/modules/mod_jk.so
/






  here Upon start up of tomact I got mod_jk.conf, I copied
  it from machine B to Machine A(Apache Machine)   and included
  it in httpd.conf
 
  Here I did not understand Following things
  1) in mod_jk.conf  (on Machine 'A' Apache)
Alias /manager /opt/catalina/webapps/manager --
  here what I need to put,  because the path mentioned  is
  there on machine 'B'
 
   2)in workesr.properties (on machine 'A' Apache)
 worker.ajp13.host= machine 'B' I am sure This is ok
 workers.tomcat_home=/opt/catalina
 workers.java_home=/opt/java/j2sdk1.4.0_01,   here what
  I need to set up for these (because catalina_home and
  java_home are there in Machine 'B')
 
  here I didn't get any error in mod_jk.log (on machine 'A') 


Thks in advance
Venkat


at on a different
machine. The problem was on tomcat configuration,I had defaultHost
defined as localhost on Engine tag and actual hostName on Host tag,
Once I have changed the defaultHost on Engine tag to actual DNS name,
every thing worked fine.

-Raj

 [EMAIL PROTECTED] 09/20/02 04:42AM 
I have never run Tomcat under an Unix like OS, so I don't now.
The host neptune.broward.edu is declared in the network 

RE: Apache/Tomcat Configuration Question

2002-09-23 Thread Venkat Reddy Valluri

Did you change mod_jk.conf to point to document root where you are supposed to give 
apache doc root
  sample mod_jk.conf--

IfModule !mod_jk.c
  LoadModule jk_module /usr/local/apache2/modules/mod_jk.so
/IfModule

JkWorkersFile /tmp/workers.properties
JkLogFile /usr/local/apache2/logs/mod_jk.log

JkLogLevel debug


VirtualHost xxx.xx.xx.xx
ServerName www.xxx.com:80

 aurora.quinnfable.com:/manager 
DocumentRoot-- here you got to give your apache document root 
---
--
--
/virtulhost

-Original Message-
From:   John Green [mailto:[EMAIL PROTECTED]]
Sent:   Mon 9/23/2002 11:22 AM
To: [EMAIL PROTECTED]
Cc: 
Subject:Apache/Tomcat Configuration Question
All,

I have Apache and Tomcat integrated together using
mod_jk.  The problem is now when I hit my webserver,
it always defaults to the root context of tomcat.  No
matter what I set in my Apache httpd.conf file it gets
ignored.  I have tried to setup a virtual server in my
httpd.conf file to point to the docroot I want to
serve up as the default, but it is ignored. 
Originally I had my Apache working with PHP, but since
I installed Tomcat, I have been unable to figure out
how to serve up both.

Thanks,


John Green


__
Do you Yahoo!?
New DSL Internet Access from SBC  Yahoo!
http://sbc.yahoo.com

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





winmail.dat
--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


RE: unusual problem after installing mod_jk.so ???

2002-09-20 Thread Venkat Reddy Valluri

I too got the same problem, here I what I understood is , when you try to execute 
/examples/jsp/images/ you could see iamges, but you can't execute jsp's this means 
apache itself  is executing /examples/jsp/images/ but not tomcat,  because images can 
be viewed by apacahe but where as jsp's can't be executed by apache right,
 So here my conclusion is might be either you didn't configure mod_jk.so properly 
or workers.properties  and mod_jk.conf  properly
  better try to reconfigure mod_jk.so


-Original Message-
From:   Turner, John [mailto:[EMAIL PROTECTED]]
Sent:   Fri 9/20/2002 12:00 PM
To: 'Tomcat Users List'
Cc: 
Subject:RE: unusual problem after installing mod_jk.so ???

If exmaples are in /path/to/tomcat/examples and your Apache root is
/some/other/path/to/htdocs then yes, it sounds like you have mod_jk.so
installed.

From what you have said, it sounds like your JkMount directives are not
correct.

John


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 19, 2002 9:59 PM
 To: [EMAIL PROTECTED]
 Subject: unusual problem after installing mod_jk.so ???
 
 
 Hi All.
 I believe I might have installed mod_jk.so 
 Tomcat works fine : http://MyServer:8080/examples;.
 All executables in jsp/ and servlets/ work fine.
 From IE I entered http://MyServer/examples; ... 
 (1) list for images/ ; jsp/ and servlets/ comes up ;
 (2) all 3 images shown when clicked - fine ;
 (3) clicked and gone into jsp/ all the examples show up.
 (3.1) clicking on number guess, rate, snoop etc throws this 
 error : page
 cannot be found
 (3.2) clikcing on ErrorPage -- Select car / submit -- page cannot be
 found
 (4) Likewise servlets/ , can go in but cannot execute the examples.
 (5) All source codes can be displayed when clicked on.
 
 This is excruciating : 
 * Have I installed mod_jk.so sucessfully or not ???
 * Have I got Apache talking with Tomcat ???
 * How come most of the executables cannot be run ???
 
 Close yet so far
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

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





winmail.dat
--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


RE: Apache2 and Tomcat4 on different boxes

2002-09-20 Thread Venkat Reddy Valluri

Hi Raj,
  you did  Excellent job,  can you pl explain me how you did, can you answer for 
following questions
   1) I installed Apache 2.0.40 on Machine 'A' and built
  mod_jk.so module (./configure
  --with-apxs=/usr/local/apache2/bin/apxs
  --with-java-home=/usr/java/j2sdk1.4.0_01), It was suceesfully
  done and got mod_jk.so
 
 2)  I installed Tomcat 4.0.4 on machine 'B' and copied
  mod_jk.so from machine 'A'(Apache machine) to Machine 'B'
  (Tomcat machine),
 
  and modified server.xml as per the documenatation  
here is server.xml ---
Server port=8005 shutdown=SHUTDOWN debug=0
  Listener className=org.apache.ajp.tomcat4.config.ApacheConfig 
modJk=/opt/catalina/modules/mod_jk.so /

Host name=localhost debug=0 appBase=webapps unpackWARs=true
 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true 
forwardAll=false modJk=/opt/catalina/modules/mod_jk.so /






  here Upon start up of tomact I got mod_jk.conf, I copied
  it from machine B to Machine A(Apache Machine)   and included
  it in httpd.conf
 
  Here I did not understand Following things
  1) in mod_jk.conf  (on Machine 'A' Apache)
Alias /manager /opt/catalina/webapps/manager --
  here what I need to put,  because the path mentioned  is
  there on machine 'B'
 
   2)in workesr.properties (on machine 'A' Apache)
 worker.ajp13.host= machine 'B' I am sure This is ok
 workers.tomcat_home=/opt/catalina
 workers.java_home=/opt/java/j2sdk1.4.0_01,   here what
  I need to set up for these (because catalina_home and
  java_home are there in Machine 'B')
 
  here I didn't get any error in mod_jk.log (on machine 'A') 


Thks in advance
Venkat


at on a different
machine. The problem was on tomcat configuration,I had defaultHost
defined as localhost on Engine tag and actual hostName on Host tag,
Once I have changed the defaultHost on Engine tag to actual DNS name,
every thing worked fine.

-Raj

 [EMAIL PROTECTED] 09/20/02 04:42AM 
I have never run Tomcat under an Unix like OS, so I don't now.
The host neptune.broward.edu is declared in the network configuration
of
the machine? ping neptune.broward.edu works?

-Message d'origine-
De : Raj Mettai [mailto:[EMAIL PROTECTED]]
Envoy? : jeudi 19 septembre 2002 22:30
? : [EMAIL PROTECTED]
Objet : RE: Apache2 and Tomcat4 on different boxes


Hi Vincent,

I am running tomcat under root user, do you think it has anything to do
for the configuration not to work..


again here are my latest mod_jk.log..

[Thu Sep 19 15:28:02 2002]  [jk_uri_worker_map.c (172)]: Into
jk_uri_worker_map_t::uri_worker_map_alloc
[Thu Sep 19 15:28:02 2002]  [jk_uri_worker_map.c (375)]: Into
jk_uri_worker_map_t::uri_worker_map_open
[Thu Sep 19 15:28:02 2002]  [jk_uri_worker_map.c (396)]:
jk_uri_worker_map_t::uri_worker_map_open, rule map size is 0
[Thu Sep 19 15:28:02 2002]  [jk_uri_worker_map.c (422)]:
jk_uri_worker_map_t::uri_worker_map_open, done
[Thu Sep 19 15:28:02 2002]  [jk_worker.c (88)]: Into wc_open
[Thu Sep 19 15:28:02 2002]  [jk_worker.c (222)]: Into build_worker_map,
creating 1 workers
[Thu Sep 19 15:28:02 2002]  [jk_worker.c (228)]: build_worker_map,
creating worker ajp13
[Thu Sep 19 15:28:02 2002]  [jk_worker.c (148)]: Into wc_create_worker
[Thu Sep 19 15:28:02 2002]  [jk_worker.c (162)]: wc_create_worker, about
to create instance ajp13 of ajp13
[Thu Sep 19 15:28:02 2002]  [jk_ajp13_worker.c (108)]: Into
ajp13_worker_factory
[Thu Sep 19 15:28:02 2002]  [jk_worker.c (171)]: wc_create_worker, about
to validate and init ajp13
[Thu Sep 19 15:28:02 2002]  [jk_ajp_common.c (1178)]: Into
jk_worker_t::validate
[Thu Sep 19 15:28:02 2002]  [jk_ajp_common.c (1198)]: In
jk_worker_t::validate for worker ajp13 contact is
neptune.broward.edu:8009
[Thu Sep 19 15:28:02 2002]  [jk_ajp_common.c (1226)]: Into
jk_worker_t::init
[Thu Sep 19 15:28:02 2002]  [jk_worker.c (187)]: wc_create_worker, done
[Thu Sep 19 15:28:02 2002]  [jk_worker.c (238)]: build_worker_map,
removing old ajp13 worker
[Thu Sep 19 15:28:02 2002]  [jk_worker.c (250)]: build_worker_map, done
[Thu Sep 19 15:28:02 2002]  [jk_worker.c (111)]: wc_open, done 1


thanks a lot

-Raj
 [EMAIL PROTECTED] 09/19/02 03:58AM 
Sorry I look at your config files, but I see nothing bad (as you I think
;-) )

In your mod_jk logs, we can see that the ajp13 worker is not found first
then it's running and found by Apache. And then, it's closed during
request
processing.
That's a strange beaviours.

You run this configuration :
Apache/2.0.39 (Unix)
mod_ssl/2.0.39
OpenSSL/0.9.6g
mod_jk/1.2.0

What have you compile by your self?
If I were you, I will recompile Apache 2.0.39 (You can change to 2.0.40)
without mod_ssl, mod_jk 1.2.0 and Tomcat 4.0.4 on your machine, because
it'is so strange...
Try to restart your test in a clean environement. Save your config
files,
they seem to me not bad.
Try to do a working configuration without mod_ssl.

That's poor help... Sorry. But 

problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk

2002-09-19 Thread Venkat Reddy Valluri

Hi,
   I installed Apache 2.0.40 and Tomcat 4.0.4 on different Linux(RedHat) servers and 
tried to make apache connect to tomcat with mod_jk module,

   For this I did the following things
   1) I installed Apache 2.0.40 on Machine 'A' and built mod_jk.so module (./configure 
--with-apxs=/usr/local/apache2/bin/apxs --with-java-home=/usr/java/j2sdk1.4.0_01), It 
was suceesfully done and got mod_jk.so

   2)  I installed Tomcat 4.0.4 on machine 'B' and copied mod_jk.so from machine 
'A'(Apache machine) to Machine 'B' (Tomcat machine),

and modified server.xml as per the documenatation
here Upon start up of tomact I got mod_jk.conf, I copied it from machine B to 
Machine A(Apache Machine)   and included it in httpd.conf

Here I did not understand Following things
1) in mod_jk.conf  (on Machine 'A' Apache)
  Alias /manager /opt/catalina/webapps/manager --  here what I need to put,  
because the path mentioned  is there on machine 'B'

 2)in workesr.properties (on machine 'A' Apache)
   worker.ajp13.host= machine 'B' I am sure This is ok
   workers.tomcat_home=/opt/catalina
   workers.java_home=/opt/java/j2sdk1.4.0_01,   here what I need to set up for 
these (because catalina_home and java_home are there in Machine 'B')

here I didn't get any error in mod_jk.log (on machine 'A')

Any help greatly appreciated
ThksRgds
Venkat
 

  


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




RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk

2002-09-19 Thread Venkat Reddy Valluri

In tomcat box I added  following  lines as per documentation 
  Server port=8005 shutdown=SHUTDOWN debug=0
 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig 
modJk=/usr/local/apache2/modules/mod_jk.so /

Host name=machine 'B' debug=1 appBase=webapps unpackWARs=true
 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true 
forwardAll=false modJk=/usr/local/apache2/modules/mod_jk.so /
That's why I had to copy it from apache box to TOmcat box,
   Here When I tried apache tomcat on same box, they worked well, but when I tired on 
different boxes
   I understood that Apache is not at all connecting to TOmcat box,
 but in  mod_jk.log Every thing seems to be fine

Thanks in advance
Venkat






-Original Message-
From:   Turner, John [mailto:[EMAIL PROTECTED]]
Sent:   Thu 9/19/2002 11:26 AM
To: 'Tomcat Users List'
Cc: 
Subject:RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on 
diffrent machines with mod_jk

The lines like tomcat_home etc. in workers.properties are optional.
(thanks Milt!)  You only need the worker definitions (like port number,
etc).

I'm not sure about the Alias /manager question, that is a good question.

You don't need mod_jk.so on the Tomcat box, its an Apache module.

John


 -Original Message-
 From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 19, 2002 10:47 AM
 To: [EMAIL PROTECTED]
 Subject: problem with connecting Apache2.0.40 and Tomcat4.0.4 
 installed
 on diffrent machines with mod_jk
 
 
 Hi,
I installed Apache 2.0.40 and Tomcat 4.0.4 on different 
 Linux(RedHat) servers and tried to make apache connect to 
 tomcat with mod_jk module,
 
For this I did the following things
1) I installed Apache 2.0.40 on Machine 'A' and built 
 mod_jk.so module (./configure 
 --with-apxs=/usr/local/apache2/bin/apxs 
 --with-java-home=/usr/java/j2sdk1.4.0_01), It was suceesfully 
 done and got mod_jk.so
 
2)  I installed Tomcat 4.0.4 on machine 'B' and copied 
 mod_jk.so from machine 'A'(Apache machine) to Machine 'B' 
 (Tomcat machine),
 
 and modified server.xml as per the documenatation
 here Upon start up of tomact I got mod_jk.conf, I copied 
 it from machine B to Machine A(Apache Machine)   and included 
 it in httpd.conf
 
 Here I did not understand Following things
 1) in mod_jk.conf  (on Machine 'A' Apache)
   Alias /manager /opt/catalina/webapps/manager --  
 here what I need to put,  because the path mentioned  is 
 there on machine 'B'
 
  2)in workesr.properties (on machine 'A' Apache)
worker.ajp13.host= machine 'B' I am sure This is ok
workers.tomcat_home=/opt/catalina
workers.java_home=/opt/java/j2sdk1.4.0_01,   here what 
 I need to set up for these (because catalina_home and 
 java_home are there in Machine 'B')
 
 here I didn't get any error in mod_jk.log (on machine 'A')
 
 Any help greatly appreciated
 ThksRgds
 Venkat
  
 
   
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

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





winmail.dat
--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk

2002-09-19 Thread Venkat Reddy Valluri

Hi John,
 I followed your documenataion only, That is really awesome, so many of tomcat 
guys suggested your documentation
   Tnank you very much for great help,
Can you help me connecting apache and tomcat installed on differnet boxes
Thks in advance
Venkat

-Original Message-
From:   Venkat Reddy Valluri
Sent:   Thu 9/19/2002 11:39 AM
To: Tomcat Users List
Cc: 
Subject:RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on 
diffrent machines with mod_jk
In tomcat box I added  following  lines as per documentation 
  Server port=8005 shutdown=SHUTDOWN debug=0
 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig 
modJk=/usr/local/apache2/modules/mod_jk.so /

Host name=machine 'B' debug=1 appBase=webapps unpackWARs=true
 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true 
forwardAll=false modJk=/usr/local/apache2/modules/mod_jk.so /
That's why I had to copy it from apache box to TOmcat box,
   Here When I tried apache tomcat on same box, they worked well, but when I tired on 
different boxes
   I understood that Apache is not at all connecting to TOmcat box,
 but in  mod_jk.log Every thing seems to be fine

Thanks in advance
Venkat






-Original Message-
From:   Turner, John [mailto:[EMAIL PROTECTED]]
Sent:   Thu 9/19/2002 11:26 AM
To: 'Tomcat Users List'
Cc: 
Subject:RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on 
diffrent machines with mod_jk

The lines like tomcat_home etc. in workers.properties are optional.
(thanks Milt!)  You only need the worker definitions (like port number,
etc).

I'm not sure about the Alias /manager question, that is a good question.

You don't need mod_jk.so on the Tomcat box, its an Apache module.

John


 -Original Message-
 From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 19, 2002 10:47 AM
 To: [EMAIL PROTECTED]
 Subject: problem with connecting Apache2.0.40 and Tomcat4.0.4 
 installed
 on diffrent machines with mod_jk
 
 
 Hi,
I installed Apache 2.0.40 and Tomcat 4.0.4 on different 
 Linux(RedHat) servers and tried to make apache connect to 
 tomcat with mod_jk module,
 
For this I did the following things
1) I installed Apache 2.0.40 on Machine 'A' and built 
 mod_jk.so module (./configure 
 --with-apxs=/usr/local/apache2/bin/apxs 
 --with-java-home=/usr/java/j2sdk1.4.0_01), It was suceesfully 
 done and got mod_jk.so
 
2)  I installed Tomcat 4.0.4 on machine 'B' and copied 
 mod_jk.so from machine 'A'(Apache machine) to Machine 'B' 
 (Tomcat machine),
 
 and modified server.xml as per the documenatation
 here Upon start up of tomact I got mod_jk.conf, I copied 
 it from machine B to Machine A(Apache Machine)   and included 
 it in httpd.conf
 
 Here I did not understand Following things
 1) in mod_jk.conf  (on Machine 'A' Apache)
   Alias /manager /opt/catalina/webapps/manager --  
 here what I need to put,  because the path mentioned  is 
 there on machine 'B'
 
  2)in workesr.properties (on machine 'A' Apache)
worker.ajp13.host= machine 'B' I am sure This is ok
workers.tomcat_home=/opt/catalina
workers.java_home=/opt/java/j2sdk1.4.0_01,   here what 
 I need to set up for these (because catalina_home and 
 java_home are there in Machine 'B')
 
 here I didn't get any error in mod_jk.log (on machine 'A')
 
 Any help greatly appreciated
 ThksRgds
 Venkat
  
 
   
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

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






winmail.dat
--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk

2002-09-19 Thread Venkat Reddy Valluri

Even though I didn't copy, Atleast Apche should have connected to tomcat and I should 
have executed jsp pages existed on tomcat box, here apache is serving some static 
files which are existing on apache boxe, but when I tried to execute 
http://www.xxx.com/examples/(in mod_jk.conf  jkmount  /examples/* ajp13) it is 
supposed to connect to tomcat box and execute jsp's, but it is not recognising them, 
because it is not even connected to tomcat 


-Original Message-
From:   Michael Schulz [mailto:[EMAIL PROTECTED]]
Sent:   Thu 9/19/2002 11:46 AM
To: Tomcat Users List
Cc: 
Subject:RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on 
diffrent machines with mod_jk

If you want to put Apache and Tomcat on separate boxes, and still run the
Tomcat examples, you will have to copy the static (.html) files from the
tomcat box to the apache box so that apache can serve them.

-Mike Schulz


-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 19, 2002 10:26 AM
To: 'Tomcat Users List'
Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4
installed on diffrent machines with mod_jk



The lines like tomcat_home etc. in workers.properties are optional.
(thanks Milt!)  You only need the worker definitions (like port number,
etc).

I'm not sure about the Alias /manager question, that is a good question.

You don't need mod_jk.so on the Tomcat box, its an Apache module.

John


 -Original Message-
 From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 19, 2002 10:47 AM
 To: [EMAIL PROTECTED]
 Subject: problem with connecting Apache2.0.40 and Tomcat4.0.4
 installed
 on diffrent machines with mod_jk


 Hi,
I installed Apache 2.0.40 and Tomcat 4.0.4 on different
 Linux(RedHat) servers and tried to make apache connect to
 tomcat with mod_jk module,

For this I did the following things
1) I installed Apache 2.0.40 on Machine 'A' and built
 mod_jk.so module (./configure
 --with-apxs=/usr/local/apache2/bin/apxs
 --with-java-home=/usr/java/j2sdk1.4.0_01), It was suceesfully
 done and got mod_jk.so

2)  I installed Tomcat 4.0.4 on machine 'B' and copied
 mod_jk.so from machine 'A'(Apache machine) to Machine 'B'
 (Tomcat machine),

 and modified server.xml as per the documenatation
 here Upon start up of tomact I got mod_jk.conf, I copied
 it from machine B to Machine A(Apache Machine)   and included
 it in httpd.conf

 Here I did not understand Following things
 1) in mod_jk.conf  (on Machine 'A' Apache)
   Alias /manager /opt/catalina/webapps/manager --
 here what I need to put,  because the path mentioned  is
 there on machine 'B'

  2)in workesr.properties (on machine 'A' Apache)
worker.ajp13.host= machine 'B' I am sure This is ok
workers.tomcat_home=/opt/catalina
workers.java_home=/opt/java/j2sdk1.4.0_01,   here what
 I need to set up for these (because catalina_home and
 java_home are there in Machine 'B')

 here I didn't get any error in mod_jk.log (on machine 'A')

 Any help greatly appreciated
 ThksRgds
 Venkat





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

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


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





winmail.dat
--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk

2002-09-19 Thread Venkat Reddy Valluri


Thank you very much john,
  I wish you could havce been succesful
Thks
Venkat
 
-Original Message-
From:   Turner, John [mailto:[EMAIL PROTECTED]]
Sent:   Thu 9/19/2002 11:54 AM
To: 'Tomcat Users List'
Cc: 
Subject:RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on 
diffrent machines with mod_jk

I wish I could help more, but I haven't had the need to do separate-machine
Apache + Tomcat, so all I know is what's in the documentation and what's
been posted to the list.  I haven't tried it at all.

As far as I know, you set things up according to this URL:
http://www.ubeans.com/tomcat and then you just change the host parameter in
workers.properties to be the fully-qualified domain name of the Tomcat host
(or perhaps the IP address would be better, but then I'm not sure that
Tomcat would get the host header right).

Maybe this weekend I will give setting these up on different boxes a shot,
if I have time.  It would be an interesting experiment.

John

 -Original Message-
 From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 19, 2002 11:44 AM
 To: Tomcat Users List
 Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4
 installed on diffrent machines with mod_jk
 
 
 Hi John,
  I followed your documenataion only, That is really 
 awesome, so many of tomcat guys suggested your documentation
Tnank you very much for great help,
 Can you help me connecting apache and tomcat installed on 
 differnet boxes
 Thks in advance
 Venkat
 

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





winmail.dat
--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk

2002-09-19 Thread Venkat Reddy Valluri

Hi Michael,
Can you pl be more specific abou how to configure tomcat server.xml  and how to 
generate mod_jk.conf manually 
Thks in advance
Venkat


-Original Message-
From:   Michael Schulz [mailto:[EMAIL PROTECTED]]
Sent:   Thu 9/19/2002 12:23 PM
To: Tomcat Users List
Cc: 
Subject:RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on 
diffrent machines with mod_jk
I was getting to that, but I forget to mention it before I hit send. (:o)
-Mike


-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 19, 2002 11:22 AM
To: 'Tomcat Users List'
Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4
installed on diffrent machines with mod_jk



Any thoughts of compiling a HOWTO, by chance? Hint, hint. :)

John


 -Original Message-
 From: Michael Schulz [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 19, 2002 12:18 PM
 To: Tomcat Users List
 Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4
 installed on diffrent machines with mod_jk



 I *just* completed a successful configuration of Apache
 2.0.40 and Tomcat
 4.0.4 using the mod_jk.so connector (provided by John Turner,
 thanks John)
 on RedHat Linux 7.3 where Apache and Tomcat are running on separate
 machines.

 If Apache is not connecting to tomcat, then you should look
 on the Apache
 box for the cause (assuming that the Tomcat box is running! g).

 In your httpd.conf file, there should be two directives, JkLogFile and
 JkLogLevel.  Set the JkLogLevel value to debug and restart
 Apache.  Then
 when you make a request, you should be able to see what is
 happening via the
 log file.

 Note: If you followed John's instructions for configuring the
 system, you
 will have a problem because those instructions depend on the
 Tomcat listener
 (ApacheConfig) to generate the mod_jk.conf file.  This won't
 work if tomcat
 and apache are on separate boxes, so you'll have to do that
 part manually
 (or copy the generated file from the tomcat box to the apache box).

 If your httpd.conf file contains this directive:

   include /usr/local/tomcat/conf/auto/mod_jk.conf

 then you will have problems, because tomcat is not on the apache box.


 -Mike Schulz



 -Original Message-
 From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 19, 2002 10:56 AM
 To: Tomcat Users List
 Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4
 installed on diffrent machines with mod_jk


 Even though I didn't copy, Atleast Apche should have
 connected to tomcat and
 I should have executed jsp pages existed on tomcat box, here apache is
 serving some static files which are existing on apache boxe,
 but when I
 tried to execute http://www.xxx.com/examples/(in mod_jk.conf  jkmount
 /examples/* ajp13) it is supposed to connect to tomcat box and execute
 jsp's, but it is not recognising them, because it is not even
 connected to
 tomcat


 -Original Message-
 From: Michael Schulz [mailto:[EMAIL PROTECTED]]
 Sent: Thu 9/19/2002 11:46 AM
 To:   Tomcat Users List
 Cc:
 Subject:  RE: problem with connecting Apache2.0.40 and
 Tomcat4.0.4 installed
 on diffrent machines with mod_jk

 If you want to put Apache and Tomcat on separate boxes, and
 still run the
 Tomcat examples, you will have to copy the static (.html)
 files from the
 tomcat box to the apache box so that apache can serve them.

 -Mike Schulz


 -Original Message-
 From: Turner, John [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 19, 2002 10:26 AM
 To: 'Tomcat Users List'
 Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4
 installed on diffrent machines with mod_jk



 The lines like tomcat_home etc. in workers.properties are optional.
 (thanks Milt!)  You only need the worker definitions (like
 port number,
 etc).

 I'm not sure about the Alias /manager question, that is a
 good question.

 You don't need mod_jk.so on the Tomcat box, its an Apache module.

 John


  -Original Message-
  From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, September 19, 2002 10:47 AM
  To: [EMAIL PROTECTED]
  Subject: problem with connecting Apache2.0.40 and Tomcat4.0.4
  installed
  on diffrent machines with mod_jk
 
 
  Hi,
 I installed Apache 2.0.40 and Tomcat 4.0.4 on different
  Linux(RedHat) servers and tried to make apache connect to
  tomcat with mod_jk module,
 
 For this I did the following things
 1) I installed Apache 2.0.40 on Machine 'A' and built
  mod_jk.so module (./configure
  --with-apxs=/usr/local/apache2/bin/apxs
  --with-java-home=/usr/java/j2sdk1.4.0_01), It was suceesfully
  done and got mod_jk.so
 
 2)  I installed Tomcat 4.0.4 on machine 'B' and copied
  mod_jk.so from machine 'A'(Apache machine) to Machine 'B'
  (Tomcat machine),
 
  and modified server.xml as per the documenatation
  here Upon start up of tomact I got mod_jk.conf, I copied
  it from

RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk

2002-09-19 Thread Venkat Reddy Valluri

Thanks Mike
Venkat


-Original Message-
From:   Michael Schulz [mailto:[EMAIL PROTECTED]]
Sent:   Thu 9/19/2002 3:18 PM
To: Tomcat Users List
Cc: 
Subject:RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on 
diffrent machines with mod_jk
Venkat,

Yes, I will give you more details, however, I've got higher priority things
to do at this moment, so it will take me a few hours before I can document
the details.

-Mike Schulz


-Original Message-
From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 19, 2002 12:54 PM
To: Tomcat Users List
Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4
installed on diffrent machines with mod_jk


Hi Michael,
Can you pl be more specific abou how to configure tomcat server.xml  and
how to generate mod_jk.conf manually
Thks in advance
Venkat


-Original Message-
From:   Michael Schulz [mailto:[EMAIL PROTECTED]]
Sent:   Thu 9/19/2002 12:23 PM
To: Tomcat Users List
Cc:
Subject:RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed
on diffrent machines with mod_jk
I was getting to that, but I forget to mention it before I hit send. (:o)
-Mike


-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 19, 2002 11:22 AM
To: 'Tomcat Users List'
Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4
installed on diffrent machines with mod_jk



Any thoughts of compiling a HOWTO, by chance? Hint, hint. :)

John


 -Original Message-
 From: Michael Schulz [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 19, 2002 12:18 PM
 To: Tomcat Users List
 Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4
 installed on diffrent machines with mod_jk



 I *just* completed a successful configuration of Apache
 2.0.40 and Tomcat
 4.0.4 using the mod_jk.so connector (provided by John Turner,
 thanks John)
 on RedHat Linux 7.3 where Apache and Tomcat are running on separate
 machines.

 If Apache is not connecting to tomcat, then you should look
 on the Apache
 box for the cause (assuming that the Tomcat box is running! g).

 In your httpd.conf file, there should be two directives, JkLogFile and
 JkLogLevel.  Set the JkLogLevel value to debug and restart
 Apache.  Then
 when you make a request, you should be able to see what is
 happening via the
 log file.

 Note: If you followed John's instructions for configuring the
 system, you
 will have a problem because those instructions depend on the
 Tomcat listener
 (ApacheConfig) to generate the mod_jk.conf file.  This won't
 work if tomcat
 and apache are on separate boxes, so you'll have to do that
 part manually
 (or copy the generated file from the tomcat box to the apache box).

 If your httpd.conf file contains this directive:

   include /usr/local/tomcat/conf/auto/mod_jk.conf

 then you will have problems, because tomcat is not on the apache box.


 -Mike Schulz



 -Original Message-
 From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 19, 2002 10:56 AM
 To: Tomcat Users List
 Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4
 installed on diffrent machines with mod_jk


 Even though I didn't copy, Atleast Apche should have
 connected to tomcat and
 I should have executed jsp pages existed on tomcat box, here apache is
 serving some static files which are existing on apache boxe,
 but when I
 tried to execute http://www.xxx.com/examples/(in mod_jk.conf  jkmount
 /examples/* ajp13) it is supposed to connect to tomcat box and execute
 jsp's, but it is not recognising them, because it is not even
 connected to
 tomcat


 -Original Message-
 From: Michael Schulz [mailto:[EMAIL PROTECTED]]
 Sent: Thu 9/19/2002 11:46 AM
 To:   Tomcat Users List
 Cc:
 Subject:  RE: problem with connecting Apache2.0.40 and
 Tomcat4.0.4 installed
 on diffrent machines with mod_jk

 If you want to put Apache and Tomcat on separate boxes, and
 still run the
 Tomcat examples, you will have to copy the static (.html)
 files from the
 tomcat box to the apache box so that apache can serve them.

 -Mike Schulz


 -Original Message-
 From: Turner, John [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 19, 2002 10:26 AM
 To: 'Tomcat Users List'
 Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4
 installed on diffrent machines with mod_jk



 The lines like tomcat_home etc. in workers.properties are optional.
 (thanks Milt!)  You only need the worker definitions (like
 port number,
 etc).

 I'm not sure about the Alias /manager question, that is a
 good question.

 You don't need mod_jk.so on the Tomcat box, its an Apache module.

 John


  -Original Message-
  From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, September 19, 2002 10:47 AM
  To: [EMAIL PROTECTED]
  Subject: problem with connecting Apache2.0.40 and Tomcat4.0.4
  installed
  on diffrent