Re: load test suite - apache-tomcat

2004-01-06 Thread Tim Funk
seige (www.joedog.org)
jmeter
-Tim

Steve wrote:

We are trying to run some load test on an app hitting apache-tomcat 
which also uses weblogic for its backend auth ejb to an oracle db.  
Currently we using loadrunner 7.51 to simulate a login to the app with 
about 200 virtual users..  LR is having lots of problems giving us many 
different results on the same test..  Looking for a opensource app or 
something light to simulate a same type of test to compare to the LR 
results..

Also a way to monitor the ejb transaction might be helpful..

We hit apache fine with 2k hits, we also hit apache-tomcat fine with 2k 
users just hitting a static jsp, once we try to simulate a login to our 
app the max vusers goes down to 100 or less.. which makes me think we 
could have a problem with our lr script..

Any other usefull opensource testing/monitor tools?



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


Re: load test suite - apache-tomcat

2004-01-06 Thread jean-philippe . belanger
Loadrunner is one nice tool for creating script for web load testing.
You can do absolutly anything with that tool.
I tried lots of other load testing suite opensource or not and I`m still 
having a hard time finding a tool as complet as LR. You can try openSTA. 
Havn't worked much with it but it's opensource.

Other than that, check you LR script and work thru it. It will be worth it.

Jean-Philippe Bélanger

Steve wrote:

We are trying to run some load test on an app hitting apache-tomcat 
which also uses weblogic for its backend auth ejb to an oracle db.  
Currently we using loadrunner 7.51 to simulate a login to the app with 
about 200 virtual users..  LR is having lots of problems giving us 
many different results on the same test..  Looking for a opensource 
app or something light to simulate a same type of test to compare to 
the LR results..

Also a way to monitor the ejb transaction might be helpful..

We hit apache fine with 2k hits, we also hit apache-tomcat fine with 
2k users just hitting a static jsp, once we try to simulate a login to 
our app the max vusers goes down to 100 or less.. which makes me think 
we could have a problem with our lr script..

Any other usefull opensource testing/monitor tools?

-s



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



--
Jean-Philippe Bélanger
(514)228-8800 ext 3060
111 Duke
CGI


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


RE: load test suite - apache-tomcat

2004-01-06 Thread Shapira, Yoav

Howdy,
I don't like LoadRunner as much.  I had a tough time getting authentication to work.  
I really like JMeter and some other tools, found them easier to use and nearly as 
comprehensive.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: [EMAIL PROTECTED] [mailto:jean-
[EMAIL PROTECTED]
Sent: Tuesday, January 06, 2004 2:48 PM
To: Tomcat Users List
Subject: Re: load test suite - apache-tomcat

Loadrunner is one nice tool for creating script for web load testing.
You can do absolutly anything with that tool.

I tried lots of other load testing suite opensource or not and I`m still
having a hard time finding a tool as complet as LR. You can try openSTA.
Havn't worked much with it but it's opensource.

Other than that, check you LR script and work thru it. It will be worth it.

Jean-Philippe Bélanger

Steve wrote:

 We are trying to run some load test on an app hitting apache-tomcat
 which also uses weblogic for its backend auth ejb to an oracle db.
 Currently we using loadrunner 7.51 to simulate a login to the app with
 about 200 virtual users..  LR is having lots of problems giving us
 many different results on the same test..  Looking for a opensource
 app or something light to simulate a same type of test to compare to
 the LR results..

 Also a way to monitor the ejb transaction might be helpful..

 We hit apache fine with 2k hits, we also hit apache-tomcat fine with
 2k users just hitting a static jsp, once we try to simulate a login to
 our app the max vusers goes down to 100 or less.. which makes me think
 we could have a problem with our lr script..

 Any other usefull opensource testing/monitor tools?

 -s



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




--
Jean-Philippe Bélanger
(514)228-8800 ext 3060
111 Duke
CGI



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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



!!apache + tomcat!!

2004-01-05 Thread FRANCOIS Dufour
a way too avoid running both apache and tomcat to save system resources
create your self a folder whit an web inf xml sheet that describe your 
content
put all your index there its running pretty well here

[EMAIL PROTECTED]
crazy-wilys webmaster
_
MSN Search, le moteur de recherche qui pense comme vous !  
http://fr.ca.search.msn.com/

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


Subject: HOWTO: Apache + Tomcat + mod_jk OR mod_jk2 even IIS

2003-12-31 Thread Lenny Sorey
For those seeking a solution to Integrating the following:

Tomcat 4(or 5) and mod_jk2 (Tomcat/Jk2Generic) 
Tomcat 4.1.x and Apache 2.0.x on Linux with mod_jk2 and IP sockets (LinuxJK2) 
Tomcat 4.1.x and Apache 2.0.x on Linux with mod_jk and IP sockets (LinuxJK) 
Tomcat 4.1.x and IIS on Windows/2000 Professional with mod_jk and IP sockets 
(WinJKIIS) 
Tomcat 4.1.x and IIS on Windows/2000 Professional with mod_jk2 and IP sockets 
(WinJK2IIs) 
Tomcat 4.1.x and Apache 2.0.x on Windows/2000 Professional with mod_jk and IP sockets 
(WinJKApache) 
Tomcat 4.1.x and Apache 2.0.x on Windows/2000 Professional with mod_jk2 and IP sockets 
(WinJK2Apache) 

I found the following site very helpful: I used this site to help me get up and going 
with Tomcat 4.1.29 + Apache 2.0.48 + mod_jk2


http://nagoya.apache.org/wiki/apachewiki.cgi?TomcatWeb


Happy New Year and Good Luck!!


Lenny Sorey



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



RE: Subject: HOWTO: Apache + Tomcat + mod_jk OR mod_jk2 even IIS

2003-12-31 Thread Enils Bashi
Hi,

I think most people including myself are having problems building mod_jk2.so
and not configuring it. The links you provided assume that mod_jk2.so is
created.

Sincerely,

Enils Bashi
Programmer - Chesapeake Bay Program
Veridyne Incorporated
Annapolis, Maryland: (410) 267-9833
www.chesapeakebay.net



-Original Message-
From: Lenny Sorey [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 31, 2003 9:14 AM
To: Tomcat Users Group
Cc: Apache HTTP Users List
Subject: Subject: HOWTO: Apache + Tomcat + mod_jk OR mod_jk2 even IIS


For those seeking a solution to Integrating the following:

Tomcat 4(or 5) and mod_jk2 (Tomcat/Jk2Generic) 
Tomcat 4.1.x and Apache 2.0.x on Linux with mod_jk2 and IP sockets
(LinuxJK2) 
Tomcat 4.1.x and Apache 2.0.x on Linux with mod_jk and IP sockets (LinuxJK) 
Tomcat 4.1.x and IIS on Windows/2000 Professional with mod_jk and IP sockets
(WinJKIIS) 
Tomcat 4.1.x and IIS on Windows/2000 Professional with mod_jk2 and IP
sockets (WinJK2IIs) 
Tomcat 4.1.x and Apache 2.0.x on Windows/2000 Professional with mod_jk and
IP sockets (WinJKApache) 
Tomcat 4.1.x and Apache 2.0.x on Windows/2000 Professional with mod_jk2 and
IP sockets (WinJK2Apache) 

I found the following site very helpful: I used this site to help me get up
and going with Tomcat 4.1.29 + Apache 2.0.48 + mod_jk2


http://nagoya.apache.org/wiki/apachewiki.cgi?TomcatWeb


Happy New Year and Good Luck!!


Lenny Sorey



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



Apache Tomcat and Context help

2003-12-31 Thread Douglas WF Acheson
Hello,

  I have successfully integrated Apache v2.0.40 with tomcat v5.0.12 using
jk2 under Linux RH9 :-)  Everything works fine using straight mapping.  So,
when I want to use the manager (just playing around for now) I enter
http://hostname/manager/html and I am presented with the Tomcat manager page
:)

NOW here comes the problem, I would like to reference the Tomcat manager
page as http://hostname/tomcat/manager and have the same page presented.
What I do not want to do is alter the webapp deployment descriptor (web.xml)
file.  I would like to alias (somehow) the context, or URI, in apache only.
I was thinking of something like this:

# Define the Manager proxy that comes with Tomcat
[uri:/tomcat/manager/*]
context=/manager
info=Manager prefix mapping

But, after frustrating attempts I cannot seem to get it correct.  I have
search the mail archives and a few people have asked similar questions, but
I have not see any replies.  Hope someone can help me ...

Here is my simple workers2.properties file:

[logger]
level=DEBUG

#[uriMap:]
#info=Maps the requests. Options: debug
#debug=0

# Alternate file logger
[logger.file:0]
level=DEBUG
file=/home/www/runtime/logs/jk2.log

[shm:]
info=Scoreboard. Required for reconfiguration and status with multiprocess
servers
file=/home/www/runtime/run/jk2.shm
size=100
debug=0
disabled=0

[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
debug=5
tomcatId=localhost:8009

[status:]
info=Status worker, displays runtime informations

[uri:/jkstatus/*]
info=Display status information and checks the config file for changes.
group=status:

# Define the servlet examples proxy that comes with Tomcat
[uri:/servlets-examples/*]
info=Servlet prefix mapping

# Define the JSP examples proxy that comes with Tomcat
[uri:/jsp-examples/*]
info=JSP prefix mapping

# Define the Administration proxy that comes with Tomcat
[uri:/admin/*]
info=Admin prefix mapping

# Define the Manager proxy that comes with Tomcat
[uri:/manager/*]
context=/manager
info=Manager prefix mapping


Regards,
Douglas WF Acheson
[EMAIL PROTECTED]



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



RE: Apache Tomcat and Context help

2003-12-31 Thread Shapira, Yoav

Howdy,
You probably already know this is easily done by modifying manager.xml
to use a different context path (/tomcat/manager instead of
/manager).  But you want to do it on the Apache side.  You could use
mod_rewrite to forward /manager to /tomcat/manager or vice versa.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Douglas WF Acheson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 31, 2003 1:41 PM
To: [EMAIL PROTECTED]
Subject: Apache Tomcat and Context help

Hello,

  I have successfully integrated Apache v2.0.40 with tomcat v5.0.12
using
jk2 under Linux RH9 :-)  Everything works fine using straight mapping.
So,
when I want to use the manager (just playing around for now) I enter
http://hostname/manager/html and I am presented with the Tomcat manager
page
:)

NOW here comes the problem, I would like to reference the Tomcat
manager
page as http://hostname/tomcat/manager and have the same page
presented.
What I do not want to do is alter the webapp deployment descriptor
(web.xml)
file.  I would like to alias (somehow) the context, or URI, in apache
only.
I was thinking of something like this:

# Define the Manager proxy that comes with Tomcat
[uri:/tomcat/manager/*]
context=/manager
info=Manager prefix mapping

But, after frustrating attempts I cannot seem to get it correct.  I
have
search the mail archives and a few people have asked similar questions,
but
I have not see any replies.  Hope someone can help me ...

Here is my simple workers2.properties file:

[logger]
level=DEBUG

#[uriMap:]
#info=Maps the requests. Options: debug
#debug=0

# Alternate file logger
[logger.file:0]
level=DEBUG
file=/home/www/runtime/logs/jk2.log

[shm:]
info=Scoreboard. Required for reconfiguration and status with
multiprocess
servers
file=/home/www/runtime/run/jk2.shm
size=100
debug=0
disabled=0

[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
debug=5
tomcatId=localhost:8009

[status:]
info=Status worker, displays runtime informations

[uri:/jkstatus/*]
info=Display status information and checks the config file for changes.
group=status:

# Define the servlet examples proxy that comes with Tomcat
[uri:/servlets-examples/*]
info=Servlet prefix mapping

# Define the JSP examples proxy that comes with Tomcat
[uri:/jsp-examples/*]
info=JSP prefix mapping

# Define the Administration proxy that comes with Tomcat
[uri:/admin/*]
info=Admin prefix mapping

# Define the Manager proxy that comes with Tomcat
[uri:/manager/*]
context=/manager
info=Manager prefix mapping


Regards,
Douglas WF Acheson
[EMAIL PROTECTED]



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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Apache Tomcat and Context help

2003-12-31 Thread Douglas WF Acheson
Thanks for the info!  You are correct I want to do it from the Apache side
(encapsulate and whatnot IMHO :-).  I have never used mod_rewrite - I will
look into it.  Thanks again ...

Regards,
Douglas WF Acheson 

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: December 31, 2003 1:52 PM
To: Tomcat Users List
Subject: RE: Apache Tomcat and Context help


Howdy,
You probably already know this is easily done by modifying manager.xml to
use a different context path (/tomcat/manager instead of /manager).  But
you want to do it on the Apache side.  You could use mod_rewrite to forward
/manager to /tomcat/manager or vice versa.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Douglas WF Acheson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 31, 2003 1:41 PM
To: [EMAIL PROTECTED]
Subject: Apache Tomcat and Context help

Hello,

  I have successfully integrated Apache v2.0.40 with tomcat v5.0.12
using
jk2 under Linux RH9 :-)  Everything works fine using straight mapping.
So,
when I want to use the manager (just playing around for now) I enter 
http://hostname/manager/html and I am presented with the Tomcat manager 
page
:)

NOW here comes the problem, I would like to reference the Tomcat
manager
page as http://hostname/tomcat/manager and have the same page
presented.
What I do not want to do is alter the webapp deployment descriptor
(web.xml)
file.  I would like to alias (somehow) the context, or URI, in apache
only.
I was thinking of something like this:

# Define the Manager proxy that comes with Tomcat 
[uri:/tomcat/manager/*] context=/manager info=Manager prefix mapping

But, after frustrating attempts I cannot seem to get it correct.  I
have
search the mail archives and a few people have asked similar questions,
but
I have not see any replies.  Hope someone can help me ...

Here is my simple workers2.properties file:

[logger]
level=DEBUG

#[uriMap:]
#info=Maps the requests. Options: debug #debug=0

# Alternate file logger
[logger.file:0]
level=DEBUG
file=/home/www/runtime/logs/jk2.log

[shm:]
info=Scoreboard. Required for reconfiguration and status with
multiprocess
servers
file=/home/www/runtime/run/jk2.shm
size=100
debug=0
disabled=0

[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
debug=5
tomcatId=localhost:8009

[status:]
info=Status worker, displays runtime informations

[uri:/jkstatus/*]
info=Display status information and checks the config file for changes.
group=status:

# Define the servlet examples proxy that comes with Tomcat 
[uri:/servlets-examples/*] info=Servlet prefix mapping

# Define the JSP examples proxy that comes with Tomcat 
[uri:/jsp-examples/*] info=JSP prefix mapping

# Define the Administration proxy that comes with Tomcat [uri:/admin/*] 
info=Admin prefix mapping

# Define the Manager proxy that comes with Tomcat [uri:/manager/*] 
context=/manager info=Manager prefix mapping


Regards,
Douglas WF Acheson
[EMAIL PROTECTED]



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




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


-
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: Apache Tomcat and Context help

2003-12-31 Thread Shapira, Yoav

Howdy,
Any particular reason you're using Apache at all, by the way, as opposed
to tomcat standalone?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Douglas WF Acheson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 31, 2003 1:58 PM
To: 'Tomcat Users List'
Subject: RE: Apache Tomcat and Context help

Thanks for the info!  You are correct I want to do it from the Apache
side
(encapsulate and whatnot IMHO :-).  I have never used mod_rewrite - I
will
look into it.  Thanks again ...

Regards,
Douglas WF Acheson

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: December 31, 2003 1:52 PM
To: Tomcat Users List
Subject: RE: Apache Tomcat and Context help


Howdy,
You probably already know this is easily done by modifying manager.xml
to
use a different context path (/tomcat/manager instead of /manager).
But
you want to do it on the Apache side.  You could use mod_rewrite to
forward
/manager to /tomcat/manager or vice versa.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Douglas WF Acheson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 31, 2003 1:41 PM
To: [EMAIL PROTECTED]
Subject: Apache Tomcat and Context help

Hello,

  I have successfully integrated Apache v2.0.40 with tomcat v5.0.12
using
jk2 under Linux RH9 :-)  Everything works fine using straight mapping.
So,
when I want to use the manager (just playing around for now) I enter
http://hostname/manager/html and I am presented with the Tomcat
manager
page
:)

NOW here comes the problem, I would like to reference the Tomcat
manager
page as http://hostname/tomcat/manager and have the same page
presented.
What I do not want to do is alter the webapp deployment descriptor
(web.xml)
file.  I would like to alias (somehow) the context, or URI, in apache
only.
I was thinking of something like this:

# Define the Manager proxy that comes with Tomcat
[uri:/tomcat/manager/*] context=/manager info=Manager prefix mapping

But, after frustrating attempts I cannot seem to get it correct.  I
have
search the mail archives and a few people have asked similar
questions,
but
I have not see any replies.  Hope someone can help me ...

Here is my simple workers2.properties file:

[logger]
level=DEBUG

#[uriMap:]
#info=Maps the requests. Options: debug #debug=0

# Alternate file logger
[logger.file:0]
level=DEBUG
file=/home/www/runtime/logs/jk2.log

[shm:]
info=Scoreboard. Required for reconfiguration and status with
multiprocess
servers
file=/home/www/runtime/run/jk2.shm
size=100
debug=0
disabled=0

[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
debug=5
tomcatId=localhost:8009

[status:]
info=Status worker, displays runtime informations

[uri:/jkstatus/*]
info=Display status information and checks the config file for
changes.
group=status:

# Define the servlet examples proxy that comes with Tomcat
[uri:/servlets-examples/*] info=Servlet prefix mapping

# Define the JSP examples proxy that comes with Tomcat
[uri:/jsp-examples/*] info=JSP prefix mapping

# Define the Administration proxy that comes with Tomcat
[uri:/admin/*]
info=Admin prefix mapping

# Define the Manager proxy that comes with Tomcat [uri:/manager/*]
context=/manager info=Manager prefix mapping


Regards,
Douglas WF Acheson
[EMAIL PROTECTED]



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




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential,
proprietary
and/or privileged.  This e-mail is intended only for the individual(s)
to
whom it is addressed, and may not be saved, copied, printed, disclosed
or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Apache Tomcat and Context help

2003-12-31 Thread Douglas WF Acheson
Hello,

I have played with the mod_rewrite a bit, no luck.  There is a good
possibility that I am doing something wrong.  This is a snippet of the
apache config I used.  Any feedback would be appreciated!

LoadModule rewrite_module modules/mod_rewrite.so

IfModule mod_rewrite.c
  RewriteEngine on
  RewriteRule   ^/tomcat/manager/* /manager [P]
/IfModule

BTW - I have tried many combinations of $ * $1 with no luck :-(

Regards,
Douglas WF Acheson
[EMAIL PROTECTED]
 

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: December 31, 2003 1:52 PM
To: Tomcat Users List
Subject: RE: Apache Tomcat and Context help


Howdy,
You probably already know this is easily done by modifying manager.xml to
use a different context path (/tomcat/manager instead of /manager).  But
you want to do it on the Apache side.  You could use mod_rewrite to forward
/manager to /tomcat/manager or vice versa.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Douglas WF Acheson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 31, 2003 1:41 PM
To: [EMAIL PROTECTED]
Subject: Apache Tomcat and Context help

Hello,

  I have successfully integrated Apache v2.0.40 with tomcat v5.0.12
using
jk2 under Linux RH9 :-)  Everything works fine using straight mapping.
So,
when I want to use the manager (just playing around for now) I enter 
http://hostname/manager/html and I am presented with the Tomcat manager 
page
:)

NOW here comes the problem, I would like to reference the Tomcat
manager
page as http://hostname/tomcat/manager and have the same page
presented.
What I do not want to do is alter the webapp deployment descriptor
(web.xml)
file.  I would like to alias (somehow) the context, or URI, in apache
only.
I was thinking of something like this:

# Define the Manager proxy that comes with Tomcat 
[uri:/tomcat/manager/*] context=/manager info=Manager prefix mapping

But, after frustrating attempts I cannot seem to get it correct.  I
have
search the mail archives and a few people have asked similar questions,
but
I have not see any replies.  Hope someone can help me ...

Here is my simple workers2.properties file:

[logger]
level=DEBUG

#[uriMap:]
#info=Maps the requests. Options: debug #debug=0

# Alternate file logger
[logger.file:0]
level=DEBUG
file=/home/www/runtime/logs/jk2.log

[shm:]
info=Scoreboard. Required for reconfiguration and status with
multiprocess
servers
file=/home/www/runtime/run/jk2.shm
size=100
debug=0
disabled=0

[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
debug=5
tomcatId=localhost:8009

[status:]
info=Status worker, displays runtime informations

[uri:/jkstatus/*]
info=Display status information and checks the config file for changes.
group=status:

# Define the servlet examples proxy that comes with Tomcat 
[uri:/servlets-examples/*] info=Servlet prefix mapping

# Define the JSP examples proxy that comes with Tomcat 
[uri:/jsp-examples/*] info=JSP prefix mapping

# Define the Administration proxy that comes with Tomcat [uri:/admin/*] 
info=Admin prefix mapping

# Define the Manager proxy that comes with Tomcat [uri:/manager/*] 
context=/manager info=Manager prefix mapping


Regards,
Douglas WF Acheson
[EMAIL PROTECTED]



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




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


-
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: Apache Tomcat and Context help

2003-12-31 Thread Ian Joyce
Hi,  give this untested rule a shot.  It _should_ work.

RewriteRule   ^/tomcat/manager/(.*)$ /manager/$1 [P]

 --Ian


 [EMAIL PROTECTED] 12/31/03 03:04PM 
Hello,

I have played with the mod_rewrite a bit, no luck.  There is a good
possibility that I am doing something wrong.  This is a snippet of the
apache config I used.  Any feedback would be appreciated!

LoadModule rewrite_module modules/mod_rewrite.so

IfModule mod_rewrite.c
  RewriteEngine on
  RewriteRule   ^/tomcat/manager/* /manager [P]
/IfModule

BTW - I have tried many combinations of $ * $1 with no luck :-(

Regards,
Douglas WF Acheson
[EMAIL PROTECTED] 
 

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: December 31, 2003 1:52 PM
To: Tomcat Users List
Subject: RE: Apache Tomcat and Context help


Howdy,
You probably already know this is easily done by modifying manager.xml to
use a different context path (/tomcat/manager instead of /manager).  But
you want to do it on the Apache side.  You could use mod_rewrite to forward
/manager to /tomcat/manager or vice versa.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Douglas WF Acheson [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 31, 2003 1:41 PM
To: [EMAIL PROTECTED] 
Subject: Apache Tomcat and Context help

Hello,

  I have successfully integrated Apache v2.0.40 with tomcat v5.0.12
using
jk2 under Linux RH9 :-)  Everything works fine using straight mapping.
So,
when I want to use the manager (just playing around for now) I enter 
http://hostname/manager/html and I am presented with the Tomcat manager 
page
:)

NOW here comes the problem, I would like to reference the Tomcat
manager
page as http://hostname/tomcat/manager and have the same page
presented.
What I do not want to do is alter the webapp deployment descriptor
(web.xml)
file.  I would like to alias (somehow) the context, or URI, in apache
only.
I was thinking of something like this:

# Define the Manager proxy that comes with Tomcat 
[uri:/tomcat/manager/*] context=/manager info=Manager prefix mapping

But, after frustrating attempts I cannot seem to get it correct.  I
have
search the mail archives and a few people have asked similar questions,
but
I have not see any replies.  Hope someone can help me ...

Here is my simple workers2.properties file:

[logger]
level=DEBUG

#[uriMap:]
#info=Maps the requests. Options: debug #debug=0

# Alternate file logger
[logger.file:0]
level=DEBUG
file=/home/www/runtime/logs/jk2.log

[shm:]
info=Scoreboard. Required for reconfiguration and status with
multiprocess
servers
file=/home/www/runtime/run/jk2.shm
size=100
debug=0
disabled=0

[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
debug=5
tomcatId=localhost:8009

[status:]
info=Status worker, displays runtime informations

[uri:/jkstatus/*]
info=Display status information and checks the config file for changes.
group=status:

# Define the servlet examples proxy that comes with Tomcat 
[uri:/servlets-examples/*] info=Servlet prefix mapping

# Define the JSP examples proxy that comes with Tomcat 
[uri:/jsp-examples/*] info=JSP prefix mapping

# Define the Administration proxy that comes with Tomcat [uri:/admin/*] 
info=Admin prefix mapping

# Define the Manager proxy that comes with Tomcat [uri:/manager/*] 
context=/manager info=Manager prefix mapping


Regards,
Douglas WF Acheson
[EMAIL PROTECTED] 



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




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


-
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: Apache Tomcat and Context help

2003-12-31 Thread Howard Watson
In my environment I would try something like this:

Apache.conf
---
##Alias should match Context in server.xml
Alias  /tomcat full directory path to manager/html
Directory full directory path to manager/html
  Options anyOptions
  DirectoryIndex probably index.jsp
  Order deny,allow
  Allow from all
/Directory

## Mount the JSPs
## Mount servlets found in Web-Inf/classes
JkMount /tomcat/*.jsp ajp13
JkMount /tomcat/servlet/* ajp13

I would probably disable the standalone service.

 [EMAIL PROTECTED] 12/31/03 11:41AM 
Hello,

  I have successfully integrated Apache v2.0.40 with tomcat v5.0.12 using
jk2 under Linux RH9 :-)  Everything works fine using straight mapping.  So,
when I want to use the manager (just playing around for now) I enter
http://hostname/manager/html and I am presented with the Tomcat manager page
:)

NOW here comes the problem, I would like to reference the Tomcat manager
page as http://hostname/tomcat/manager and have the same page presented.
What I do not want to do is alter the webapp deployment descriptor (web.xml)
file.  I would like to alias (somehow) the context, or URI, in apache only.
I was thinking of something like this:

# Define the Manager proxy that comes with Tomcat
[uri:/tomcat/manager/*]
context=/manager
info=Manager prefix mapping

But, after frustrating attempts I cannot seem to get it correct.  I have
search the mail archives and a few people have asked similar questions, but
I have not see any replies.  Hope someone can help me ...

Here is my simple workers2.properties file:

[logger]
level=DEBUG

#[uriMap:]
#info=Maps the requests. Options: debug
#debug=0

# Alternate file logger
[logger.file:0]
level=DEBUG
file=/home/www/runtime/logs/jk2.log

[shm:]
info=Scoreboard. Required for reconfiguration and status with multiprocess
servers
file=/home/www/runtime/run/jk2.shm
size=100
debug=0
disabled=0

[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
debug=5
tomcatId=localhost:8009

[status:]
info=Status worker, displays runtime informations

[uri:/jkstatus/*]
info=Display status information and checks the config file for changes.
group=status:

# Define the servlet examples proxy that comes with Tomcat
[uri:/servlets-examples/*]
info=Servlet prefix mapping

# Define the JSP examples proxy that comes with Tomcat
[uri:/jsp-examples/*]
info=JSP prefix mapping

# Define the Administration proxy that comes with Tomcat
[uri:/admin/*]
info=Admin prefix mapping

# Define the Manager proxy that comes with Tomcat
[uri:/manager/*]
context=/manager
info=Manager prefix mapping


Regards,
Douglas WF Acheson
[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: MOD_JK (Apache+Tomcat)

2003-12-30 Thread Hari Om
Thanks Jerry,

My Apache and Tomcat are working independently.ie when I run 
http://my.domain.name:8080/kuki or http://my.domain.name:8080/examples  
...it works just great problem only occurs when I use connector MOD_JK. 
Any related informaiton is appreciated..

HARI OM

Hello,

I am using APache 2.0.47 and Tomcat 4.1.27 on SuSE Linux 8.1

I am working on the Connector MOD_JK.SO which I build from the source and 
put in /modules directory. When I run my Tomcat first and then Apache and 
then acceess http://My.domian.name/kuki it does not work... it says Page 
cannot be found wonder why? I also try to see MOD_JK.LOG file but I cannot 
find this file anywhere.

Can anyone help me out in connecting Apache and Tomncat. Here are my Config 
Files:

---
SERVER.XML
---
# added following after Server Port=8005
Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
modJk=/usr/local/apache2/modules/mod_jk.so jkDebug=info
workersConfig=/usr/local/tomcat4/conf/jk/workers.properties
jkLog=/usr/local/tomcat4/logs/mod_jk.log/
Connector className=org.apache.ajp.tomcat4.Ajp13Connector
 port=8009 minProcessors=5 maxProcessors=75
 acceptCount=10 debug=0/
Host name=my.domain.name debug=0 appBase=webapps
 unpackWARs=true autoDeploy=true
 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
  append=true  /
Context path=/kuki docBase=/home/kuki/kuki/webapps/kuki 
reloadable=true
~~~

---
WORKERS.PROPERTIES
---
workers.CATALINA_HOME=/usr/local/tomcat4
workers.java_home=$(JAVA_HOME)
ps=/
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=my.domain.name
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=5
~~~
---
MOD_JK.CONF this file is AUTO GENERATED
---
## Auto generated on Mon Dec 29 14:10:45 MST 2003##
IfModule !mod_jk.c
LoadModule jk_module /usr/local/apache2/modules/mod_jk.so
/IfModule
JkWorkersFile /usr/local/tomcat4/conf/jk/workers.properties
JkLogFile /usr/local/tomcat4/logs/mod_jk.log
JkLogLevel info



VirtualHost my.domain.name
  ServerName my.domain.name
  JkMount /kuki ajp13
  JkMount /kuki/* ajp13
  JkMount /examples ajp13
  JkMount /examples/* ajp13
/VirtualHost
~~~

HTTPD.CONF

Listen My.IP.ADDR.ESS:80
IfModule !mod_jk.c
LoadModule jk_module modules/mod_jk.so
/IfModule
ServerName my.domain.name:80

JkWorkersFile /usr/local/tomcat4/conf/jk/workers.properties
JkLogFile /usr/local/apache2/logs/mod_jk.log
JkLogLevel debug

JkMount /examples ajp13
JkMount /examples/* ajp13
JkMount /kuki ajp13
JkMount /kuki/* ajp13
~~~
Can anyone please GUIDE me on this Connection Process?

THANKS! and HAPPY NEW YEAR!

HARI OM

_
Make your home warm and cozy this winter with tips from MSN House  Home.  
http://special.msn.com/home/warmhome.armx

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


MOD_JK (Apache+Tomcat)

2003-12-30 Thread HARI OM
Hello,

I am using APache 2.0.47 and Tomcat 4.1.27 on SuSE Linux 8.1

I am working on the Connector MOD_JK.SO which I build from the source and 
put in /modules directory. When I run my Tomcat first and then Apache and 
then acceess http://My.domian.name/kuki it does not work... it says Page 
cannot be found wonder why? I also try to see MOD_JK.LOG file but I cannot 
find this file anywhere.

Can anyone help me out in connecting Apache and Tomncat. Here are my Config 
Files:

---
SERVER.XML
---
# added following after Server Port=8005

Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
 modJk=/usr/local/apache2/modules/mod_jk.so jkDebug=info
 workersConfig=/usr/local/tomcat4/conf/jk/workers.properties
 jkLog=/usr/local/tomcat4/logs/mod_jk.log/

Connector className=org.apache.ajp.tomcat4.Ajp13Connector
  port=8009 minProcessors=5 maxProcessors=75
  acceptCount=10 debug=0/


Host name=my.domain.name debug=0 appBase=webapps
  unpackWARs=true autoDeploy=true

  Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
   append=true  /


Context path=/kuki docBase=/home/kuki/kuki/webapps/kuki 
reloadable=true
~~~

---
WORKERS.PROPERTIES
---
workers.CATALINA_HOME=/usr/local/tomcat4
workers.java_home=$(JAVA_HOME)
ps=/

worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=my.domain.name
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=5
~~~

---
MOD_JK.CONF this file is AUTO GENERATED
---
## Auto generated on Mon Dec 29 14:10:45 MST 2003##

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

JkWorkersFile /usr/local/tomcat4/conf/jk/workers.properties
JkLogFile /usr/local/tomcat4/logs/mod_jk.log

JkLogLevel info



VirtualHost my.domain.name
   ServerName my.domain.name

   JkMount /kuki ajp13
   JkMount /kuki/* ajp13

   JkMount /examples ajp13
   JkMount /examples/* ajp13
/VirtualHost
~~~


HTTPD.CONF

Listen My.IP.ADDR.ESS:80

IfModule !mod_jk.c
LoadModule jk_module modules/mod_jk.so
/IfModule

ServerName my.domain.name:80

JkWorkersFile /usr/local/tomcat4/conf/jk/workers.properties
JkLogFile /usr/local/apache2/logs/mod_jk.log

JkLogLevel debug

JkMount /examples ajp13
JkMount /examples/* ajp13

JkMount /kuki ajp13
JkMount /kuki/* ajp13
~~~

Can anyone please GUIDE me on this Connection Process?

THANKS! and HAPPY NEW YEAR!

HARI OM



Re: MOD_JK (Apache+Tomcat)

2003-12-30 Thread HARI OM
any update on this?

- Original Message -
From: HARI OM [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 30, 2003 10:16 AM
Subject: MOD_JK (Apache+Tomcat)


Hello,

I am using APache 2.0.47 and Tomcat 4.1.27 on SuSE Linux 8.1

I am working on the Connector MOD_JK.SO which I build from the source and
put in /modules directory. When I run my Tomcat first and then Apache and
then acceess http://My.domian.name/kuki it does not work... it says Page
cannot be found wonder why? I also try to see MOD_JK.LOG file but I cannot
find this file anywhere.

Can anyone help me out in connecting Apache and Tomncat. Here are my Config
Files:

---
SERVER.XML
---
# added following after Server Port=8005

Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
 modJk=/usr/local/apache2/modules/mod_jk.so jkDebug=info
 workersConfig=/usr/local/tomcat4/conf/jk/workers.properties
 jkLog=/usr/local/tomcat4/logs/mod_jk.log/

Connector className=org.apache.ajp.tomcat4.Ajp13Connector
  port=8009 minProcessors=5 maxProcessors=75
  acceptCount=10 debug=0/


Host name=my.domain.name debug=0 appBase=webapps
  unpackWARs=true autoDeploy=true

  Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
   append=true  /


Context path=/kuki docBase=/home/kuki/kuki/webapps/kuki
reloadable=true

~~~

---
WORKERS.PROPERTIES
---
workers.CATALINA_HOME=/usr/local/tomcat4
workers.java_home=$(JAVA_HOME)
ps=/

worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=my.domain.name
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=5

~~~

---
MOD_JK.CONF this file is AUTO GENERATED
---
## Auto generated on Mon Dec 29 14:10:45 MST 2003##

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

JkWorkersFile /usr/local/tomcat4/conf/jk/workers.properties
JkLogFile /usr/local/tomcat4/logs/mod_jk.log

JkLogLevel info



VirtualHost my.domain.name
   ServerName my.domain.name

   JkMount /kuki ajp13
   JkMount /kuki/* ajp13

   JkMount /examples ajp13
   JkMount /examples/* ajp13
/VirtualHost

~~~


HTTPD.CONF

Listen My.IP.ADDR.ESS:80

IfModule !mod_jk.c
LoadModule jk_module modules/mod_jk.so
/IfModule

ServerName my.domain.name:80

JkWorkersFile /usr/local/tomcat4/conf/jk/workers.properties
JkLogFile /usr/local/apache2/logs/mod_jk.log

JkLogLevel debug

JkMount /examples ajp13
JkMount /examples/* ajp13

JkMount /kuki ajp13
JkMount /kuki/* ajp13

~~~

Can anyone please GUIDE me on this Connection Process?

THANKS! and HAPPY NEW YEAR!

HARI OM



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



Re: MOD_JK (Apache+Tomcat)

2003-12-30 Thread Jerry Ford
Here's how I did it:

http://www.katzenjammer.us/~jford/apache/tomcat/connectors/mod_jk_setup.shtml

Not exactly your setup (I use Apache 1.3.27 and Red Hat 9.0) but maybe 
it will help.

Jerry

HARI OM wrote:

any update on this?

- Original Message -
From: HARI OM [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 30, 2003 10:16 AM
Subject: MOD_JK (Apache+Tomcat)
Hello,

I am using APache 2.0.47 and Tomcat 4.1.27 on SuSE Linux 8.1

I am working on the Connector MOD_JK.SO which I build from the source and
put in /modules directory. When I run my Tomcat first and then Apache and
then acceess http://My.domian.name/kuki it does not work... it says Page
cannot be found wonder why? I also try to see MOD_JK.LOG file but I cannot
find this file anywhere.
Can anyone help me out in connecting Apache and Tomncat. Here are my Config
Files:
---
SERVER.XML
---
# added following after Server Port=8005
Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
modJk=/usr/local/apache2/modules/mod_jk.so jkDebug=info
workersConfig=/usr/local/tomcat4/conf/jk/workers.properties
jkLog=/usr/local/tomcat4/logs/mod_jk.log/
Connector className=org.apache.ajp.tomcat4.Ajp13Connector
 port=8009 minProcessors=5 maxProcessors=75
 acceptCount=10 debug=0/
Host name=my.domain.name debug=0 appBase=webapps
 unpackWARs=true autoDeploy=true
 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
  append=true  /
Context path=/kuki docBase=/home/kuki/kuki/webapps/kuki
reloadable=true

~~~
---
WORKERS.PROPERTIES
---
workers.CATALINA_HOME=/usr/local/tomcat4
workers.java_home=$(JAVA_HOME)
ps=/
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=my.domain.name
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=5

~~~
---
MOD_JK.CONF this file is AUTO GENERATED
---
## Auto generated on Mon Dec 29 14:10:45 MST 2003##
IfModule !mod_jk.c
LoadModule jk_module /usr/local/apache2/modules/mod_jk.so
/IfModule
JkWorkersFile /usr/local/tomcat4/conf/jk/workers.properties
JkLogFile /usr/local/tomcat4/logs/mod_jk.log
JkLogLevel info



VirtualHost my.domain.name
  ServerName my.domain.name
  JkMount /kuki ajp13
  JkMount /kuki/* ajp13
  JkMount /examples ajp13
  JkMount /examples/* ajp13
/VirtualHost

~~~

HTTPD.CONF

Listen My.IP.ADDR.ESS:80
IfModule !mod_jk.c
LoadModule jk_module modules/mod_jk.so
/IfModule
ServerName my.domain.name:80

JkWorkersFile /usr/local/tomcat4/conf/jk/workers.properties
JkLogFile /usr/local/apache2/logs/mod_jk.log
JkLogLevel debug

JkMount /examples ajp13
JkMount /examples/* ajp13
JkMount /kuki ajp13
JkMount /kuki/* ajp13

~~~
Can anyone please GUIDE me on this Connection Process?

THANKS! and HAPPY NEW YEAR!

HARI OM



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


MOD_JK (Apache+Tomcat)

2003-12-29 Thread Hari Om
Hello,

I am using APache 2.0.47 and Tomcat 4.1.27 on SuSE Linux 8.1

I am working on the Connector MOD_JK.SO which I build from the source and 
put in /modules directory. When I run my Tomcat first and then Apache and 
then acceess http://My.domian.name/kuki it does not work... it says Page 
cannot be found wonder why? I also try to see MOD_JK.LOG file but I cannot 
find this file anywhere.

Can anyone help me out in connecting Apache and Tomncat. Here are my Config 
Files:

---
SERVER.XML
---
# added following after Server Port=8005
Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
 modJk=/usr/local/apache2/modules/mod_jk.so jkDebug=info
 workersConfig=/usr/local/tomcat4/conf/jk/workers.properties
 jkLog=/usr/local/tomcat4/logs/mod_jk.log/
Connector className=org.apache.ajp.tomcat4.Ajp13Connector
  port=8009 minProcessors=5 maxProcessors=75
  acceptCount=10 debug=0/
Host name=my.domain.name debug=0 appBase=webapps
  unpackWARs=true autoDeploy=true
  Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
   append=true  /
Context path=/kuki docBase=/home/kuki/kuki/webapps/kuki 
reloadable=true
~~~

---
WORKERS.PROPERTIES
---
workers.CATALINA_HOME=/usr/local/tomcat4
workers.java_home=$(JAVA_HOME)
ps=/
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=my.domain.name
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=5
~~~
---
MOD_JK.CONF this file is AUTO GENERATED
---
## Auto generated on Mon Dec 29 14:10:45 MST 2003##
IfModule !mod_jk.c
 LoadModule jk_module /usr/local/apache2/modules/mod_jk.so
/IfModule
JkWorkersFile /usr/local/tomcat4/conf/jk/workers.properties
JkLogFile /usr/local/tomcat4/logs/mod_jk.log
JkLogLevel info



VirtualHost my.domain.name
   ServerName my.domain.name
   JkMount /kuki ajp13
   JkMount /kuki/* ajp13
   JkMount /examples ajp13
   JkMount /examples/* ajp13
/VirtualHost
~~~

HTTPD.CONF

Listen My.IP.ADDR.ESS:80
IfModule !mod_jk.c
 LoadModule jk_module modules/mod_jk.so
/IfModule
ServerName my.domain.name:80

JkWorkersFile /usr/local/tomcat4/conf/jk/workers.properties
JkLogFile /usr/local/apache2/logs/mod_jk.log
JkLogLevel debug

JkMount /examples ajp13
JkMount /examples/* ajp13
JkMount /kuki ajp13
JkMount /kuki/* ajp13
~~~
Can anyone please GUIDE me on this Connection Process?

THANKS! and HAPPY NEW YEAR!

HARI OM

_
Get reliable dial-up Internet access now with our limited-time introductory 
offer.  http://join.msn.com/?page=dept/dialup

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


Re: MOD_JK (Apache+Tomcat)

2003-12-29 Thread Jerry Ford
Hari:

You're trying to do too much too soon. 

Get the Apache - Tomcat connection through mod_jk to work before you 
try to get your own webapp to work.  Use the Tomcat example servlets to 
verify that mod_jk is correctly installed and functional.  If you can 
run the servlets through Apache (without :8080 in the URL) then you know 
mod_jk is okay, and you can focus exclusively on your webapp.

Webapp deployment and mod_jk are both complicated enough on their own 
without trying to mix the issues together.

Jerry

Hari Om wrote:

Hello,

I am using APache 2.0.47 and Tomcat 4.1.27 on SuSE Linux 8.1

I am working on the Connector MOD_JK.SO which I build from the source 
and put in /modules directory. When I run my Tomcat first and then 
Apache and then acceess http://My.domian.name/kuki it does not work... 
it says Page cannot be found wonder why? I also try to see 
MOD_JK.LOG file but I cannot find this file anywhere.

Can anyone help me out in connecting Apache and Tomncat. Here are my 
Config Files:

---
SERVER.XML
---
# added following after Server Port=8005
Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
 modJk=/usr/local/apache2/modules/mod_jk.so jkDebug=info
 workersConfig=/usr/local/tomcat4/conf/jk/workers.properties
 jkLog=/usr/local/tomcat4/logs/mod_jk.log/
Connector className=org.apache.ajp.tomcat4.Ajp13Connector
  port=8009 minProcessors=5 maxProcessors=75
  acceptCount=10 debug=0/
Host name=my.domain.name debug=0 appBase=webapps
  unpackWARs=true autoDeploy=true
  Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
   append=true  /
Context path=/kuki docBase=/home/kuki/kuki/webapps/kuki 
reloadable=true
~~~ 

---
WORKERS.PROPERTIES
---
workers.CATALINA_HOME=/usr/local/tomcat4
workers.java_home=$(JAVA_HOME)
ps=/
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=my.domain.name
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=5
~~~ 

---
MOD_JK.CONF this file is AUTO GENERATED
---
## Auto generated on Mon Dec 29 14:10:45 MST 2003##
IfModule !mod_jk.c
 LoadModule jk_module /usr/local/apache2/modules/mod_jk.so
/IfModule
JkWorkersFile /usr/local/tomcat4/conf/jk/workers.properties
JkLogFile /usr/local/tomcat4/logs/mod_jk.log
JkLogLevel info



VirtualHost my.domain.name
   ServerName my.domain.name
   JkMount /kuki ajp13
   JkMount /kuki/* ajp13
   JkMount /examples ajp13
   JkMount /examples/* ajp13
/VirtualHost
~~~ 


HTTPD.CONF

Listen My.IP.ADDR.ESS:80
IfModule !mod_jk.c
 LoadModule jk_module modules/mod_jk.so
/IfModule
ServerName my.domain.name:80

JkWorkersFile /usr/local/tomcat4/conf/jk/workers.properties
JkLogFile /usr/local/apache2/logs/mod_jk.log
JkLogLevel debug

JkMount /examples ajp13
JkMount /examples/* ajp13
JkMount /kuki ajp13
JkMount /kuki/* ajp13
~~~ 

Can anyone please GUIDE me on this Connection Process?

THANKS! and HAPPY NEW YEAR!

HARI OM

_
Get reliable dial-up Internet access now with our limited-time 
introductory offer.  http://join.msn.com/?page=dept/dialup

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


Apache + Tomcat + MOD_JK

2003-12-24 Thread Hari Om
Hello,

I am using Apache 2.0.47 and Tomcat 4.1.27 on SuSE 8.0 box on same machine.
I am trying to make use of MOD_JK.SO (jk connector)which I build it from 
source.
I have 2 different Users to the system httpd and jakarta with respective 
directories as /usr/local/httpd and /usr/local/jakarta

/usr/local/httpd has httpd:httpd as owner and group
/usr/local/jakarta has jakarta:jakarta as owner and group
I have following files:
FILENAME OWNERGROUP   DIRECTORY
-
workers.properties   jakarta   jakarta/usr/local/jakarta/conf/jk/
server.xml   jakarta   jakarta/usr/local/jakarta/conf/
mod_jk.so   httpd httpd  /usr/local/httpd/modules/
mod_jk.log  jakarta   jakarta/usr/local/jakarta/logs
I was wondering if the above files are placed under the correct directories 
and if there would be any issues as far as RIGHTS/PERMISSIONS are concerned.

EXAMPLE: MOD_JK.LOG is placed under jakarta directoryand so Apache would 
NOT be able to write (if it needs to)
same thing applies to MOD_JK.SO.

Any realted information on above is appreciated.

HARI OM

_
Have fun customizing MSN Messenger — learn how here!  
http://www.msnmessenger-download.com/tracking/reach_customize

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


Re: Apache + Tomcat + MOD_JK

2003-12-24 Thread Ben Ricker
On Wed, 2003-12-24 at 10:05, Hari Om wrote:
 Hello,
 
 I am using Apache 2.0.47 and Tomcat 4.1.27 on SuSE 8.0 box on same machine.
 I am trying to make use of MOD_JK.SO (jk connector)which I build it from 
 source.
 I have 2 different Users to the system httpd and jakarta with respective 
 directories as /usr/local/httpd and /usr/local/jakarta
 
 /usr/local/httpd has httpd:httpd as owner and group
 /usr/local/jakarta has jakarta:jakarta as owner and group
 
 I have following files:
 FILENAME OWNERGROUP   DIRECTORY
 -
 workers.properties   jakarta   jakarta/usr/local/jakarta/conf/jk/

This needs to be accessible by http. i have mine in the
$APACHE_HOME/conf directory.

 server.xml   jakarta   jakarta/usr/local/jakarta/conf/
 mod_jk.so   httpd httpd  /usr/local/httpd/modules/

This is Ok.

 mod_jk.log  jakarta   jakarta/usr/local/jakarta/logs

Needs to be in the $APACHE_HOME/logs directory, or a place that the
httpd user can write to.

Ben Ricker
Wellinx, inc.


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



Re: Apache-tomcat via mod_jk configuration

2003-12-18 Thread Oscar Carrillo
Are you sure you meant httpd1?

The daemon script on my site is httpd.

The website explains a setup for Tomcat 4, not Tomcat 5. I don't know if 
there's any difference, but there may be.

I'm also confused as you apparently didn't copy your configuration into 
this post, you just copied most of the contents of my web page into it.

Oscar
http://daydream.stanford.edu/tomcat/install_web_services.html

On Wed, 17 Dec 2003 [EMAIL PROTECTED] wrote:

 Hi all,
 
  I've read a configuration of tomcat and apache
 (http://daydream.stanford.edu/tomcat/install_web_services.html ) over
 the last 4 days, and I've found much of what I need to be lacking
 
  After reading full documentation on the jakarta website about how the  server.xml 
 is organized for tomcat 4, I still have some
 questions...
 
  I will first explain the desired setup, then I will show what I have.  
 If you gracious folks can help me set this up, I will GLADLY set up a
 complete HOW-TO replicating the solution on my website for all the world
 to see. you knows you probably get a lot of questions about this.  My
 hope is to guide the user by the hand step by step for this complex
 process.  I have been using Tomcat 3 for a long time with mod_jk and
 have been very happy, but I now need the newer features of Tomcat 4.
 
  Here's the setup (everywhere hereafter, I've replaced the actual domain
 names with domainname for privacy...just know that everytime you see
 that, its actually a domain name, and ignore the   brackets
 
  Redhat Linux 9
  httpd-2.0.48
  / usr/loca/apache2
  Java   JDK 1.4.2_03 
---/usr/lcoal/java
  Tomcat 5.0.16  Light Edition (since I have jdk 1.4.2_03) .--/usr/local/tomcat
 mod_jk   
 /usr/lcoal/src/mod_jk
 
 my question is  there is httpd in linux 9 and postgresql  and i installed apache and 
 tomcat and psotgresql i added the httpd1 and tomcat  in sbin/chkconfig --add httpd1 
 amd tomcatd by using the configuration given in   
 http://daydream.stanford.edu/tomcat/install_web_services.html  site fullythen i 
 started the catalina_home /bin/startup.sh which was started in  command line  but i 
 am not able to get test page in Browser it tells that connection refused 
 
 i start by using httpd1 and tomcatd it shows that unreconized service
 
 please help to solve the problem  as soon as possible
 
 
 Thakning You
 Dhayalan.G
 
 
 #
 Configure Environment Variables
 Edit and add the lines below to /etc/profile
 Make sure you logout and login for this to take effect. If you're in XWindow you 
 might need to quit out of XWindow and exit primary shell. Then login again and start 
 XWindow again (startx). It's really good to get this straight from the beginning.
 JAVA_HOME=/usr/local/java/java
 CATALINA_HOME=/usr/local/tomcat
 PATH=$JAVA_HOME/bin:$PATH:$HOME/bin:/sbin:/usr/sbin
 CLASSPATH=$CATALINA_HOME/bin/bootstrap.jar:$JAVA_HOME/lib/tools.jar:$CATALINA_HOME/common/lib/servlet.jar:/usr/local/pgsql/share/java/postgresql.jar:../lib/struts.jar:.
 Now add the PATH JAVA_HOME CATALINA_HOME  CLASSPATH if any aren't in the export line
 export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC JAVA_HOME CATALINA_HOME 
 CLASSPATH
 This will output your environment variables
 env
 Install JAVA
 mkdir /usr/local/java
 cd /usr/local/java
 sh j2sdk-1_4_2-linux-i586.bin
 The jdk directory is then extracted
 mv j2sdk-1.4.2 /usr/local/java
 ln -s j2sdk1.4.2 java
 Now the java directory will be in /usr/local/java/java. I do it like this so I can 
 keep all my different JDKs/JREs in one directory and then just change the symbolic 
 link to point to the current one.
 Install Jakarta TOMCAT
 tar xvfz jakarta-tomcat-4.1.27.tar.gz
 mv jakarta-tomcat-4.1.27 /usr/local/
 cd /usr/local
 ln -s jakarta-tomcat-4.1.27 tomcat
 Install Jakarta ANT
 tar xvfz jakarta-ant-1.5.4
 mv jakarta-ant-1.5.4 /usr/local
 cd /usr/local
 ln -s jakarta-ant-1.5.4 ant
 ln -s /usr/local/ant/bin/ant /usr/local/bin/ant
 Install OPENSSL
 tar xvfz openssl-0.9.7c.tar.gz
 mv openssl-0.9.7c /usr/local/src/
 cd /usr/local/src/
 ln -s /usr/local/openssl-0.9.7c openssl
 cd openssl-0.9.7c
 ./config
 make
 make test
 make install #This will install in /usr/local/ssl
 Install APACHE
 tar xvfz httpd-2.0.47.tar.Z
 cd httpd-2.0.47
 ./configure --prefix=/usr/local/apache2 --enable-so --enable-rewrite \
 --enable-ssl --with-ssl=/usr/local/ssl --enable-proxy
 make
 make install #(places in /usr/local/apache2)
 Build/Install MOD_JK Connector
 Build mod_jk
 cd /usr/local/src/jakarta-tomcat-connectors-jk-1.2.4-src/jk/native
 ./buildconf.sh
 ./configure --with-apxs=/usr/local/apache2/bin/apxs
 make
 cp apache-2.0/mod_jk.so /usr/local/apache2/modules Installs mod_jk in correct 

RE: [SPAM] Re: Apache-tomcat via mod_jk configuration

2003-12-18 Thread dhayalan

Thats fine  Rethat hava its own httpd that why i  added in services httpd1 in 
/sbib/chkconfig  and tomcatd  but it tells that unregaconized service .

what can i do that for  

Can i delete httpd  

i can start in terminal $CATALINA/bin/startup.sh
but i am not able to do service httpd1 start
and service tomcatd start

which gives unregconzied services


pls help me resolve the problem


Thaking You
Dhayalan


  Original Message 
 Subject: [SPAM] Re: Apache-tomcat via mod_jk configuration
 From: Oscar Carrillo [EMAIL PROTECTED]
 Date: Wed, December 17, 2003 11:42 pm
 To: Tomcat Users List [EMAIL PROTECTED]
 
 Are you sure you meant httpd1?
 
 The daemon script on my site is httpd.
 
 The website explains a setup for Tomcat 4, not Tomcat 5. I don't know
 if 
 there's any difference, but there may be.
 
 I'm also confused as you apparently didn't copy your configuration into
 
 this post, you just copied most of the contents of my web page into
 it.
 
 Oscar
 http://daydream.stanford.edu/tomcat/install_web_services.html
 
 On Wed, 17 Dec 2003 [EMAIL PROTECTED] wrote:
 
  Hi all,
  
   I've read a configuration of tomcat and apache
  (http://daydream.stanford.edu/tomcat/install_web_services.html )
 over
  the last 4 days, and I've found much of what I need to be
 lacking
  
   After reading full documentation on the jakarta website about how
 the  server.xml is organized for tomcat 4, I still have some
  questions...
  
   I will first explain the desired setup, then I will show what I
 have.  
  If you gracious folks can help me set this up, I will GLADLY set up
 a
  complete HOW-TO replicating the solution on my website for all the
 world
  to see. you knows you probably get a lot of questions about this. 
 My
  hope is to guide the user by the hand step by step for this complex
  process.  I have been using Tomcat 3 for a long time with mod_jk and
  have been very happy, but I now need the newer features of Tomcat 4.
  
   Here's the setup (everywhere hereafter, I've replaced the actual
 domain
  names with domainname for privacy...just know that everytime you
 see
  that, its actually a domain name, and ignore the   brackets
  
   Redhat Linux 9
   httpd-2.0.48
 / usr/loca/apache2
   Java   JDK 1.4.2_03 
   ---/usr/lcoal/java
   Tomcat 5.0.16  Light Edition (since I have jdk 1.4.2_03)
 .--/usr/local/tomcat
  mod_jk   
/usr/lcoal/src/mod_jk
  
  my question is  there is httpd in linux 9 and postgresql  and i
 installed apache and tomcat and psotgresql i added the httpd1 and
 tomcat  in sbin/chkconfig --add httpd1 amd tomcatd by using the
 configuration given in  
 http://daydream.stanford.edu/tomcat/install_web_services.html  site
 fullythen i started the catalina_home /bin/startup.sh which was
 started in  command line  but i am not able to get test page in Browser
 it tells that connection refused 
  
  i start by using httpd1 and tomcatd it shows that unreconized
 service
  
  please help to solve the problem  as soon as possible
  
  
  Thakning You
  Dhayalan.G
  
  
  #
  Configure Environment Variables
  Edit and add the lines below to /etc/profile
  Make sure you logout and login for this to take effect. If you're in
 XWindow you might need to quit out of XWindow and exit primary shell.
 Then login again and start XWindow again (startx). It's really good to
 get this straight from the beginning.
  JAVA_HOME=/usr/local/java/java
  CATALINA_HOME=/usr/local/tomcat
  PATH=$JAVA_HOME/bin:$PATH:$HOME/bin:/sbin:/usr/sbin
 
 CLASSPATH=$CATALINA_HOME/bin/bootstrap.jar:$JAVA_HOME/lib/tools.jar:$CATALINA_HOME/common/lib/servlet.jar:/usr/local/pgsql/share/java/postgresql.jar:../lib/struts.jar:.
  Now add the PATH JAVA_HOME CATALINA_HOME  CLASSPATH if any aren't in
 the export line
  export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC JAVA_HOME
 CATALINA_HOME CLASSPATH
  This will output your environment variables
  env
  Install JAVA
  mkdir /usr/local/java
  cd /usr/local/java
  sh j2sdk-1_4_2-linux-i586.bin
  The jdk directory is then extracted
  mv j2sdk-1.4.2 /usr/local/java
  ln -s j2sdk1.4.2 java
  Now the java directory will be in /usr/local/java/java. I do it like
 this so I can keep all my different JDKs/JREs in one directory and then
 just change the symbolic link to point to the current one.
  Install Jakarta TOMCAT
  tar xvfz jakarta-tomcat-4.1.27.tar.gz
  mv jakarta-tomcat-4.1.27 /usr/local/
  cd /usr/local
  ln -s jakarta-tomcat-4.1.27 tomcat
  Install Jakarta ANT
  tar xvfz jakarta-ant-1.5.4
  mv jakarta-ant-1.5.4 /usr/local
  cd /usr/local
  ln -s jakarta-ant-1.5.4 ant
  ln -s /usr/local/ant/bin/ant /usr/local/bin/ant
  Install OPENSSL
  tar xvfz openssl

Apache + Tomcat

2003-12-18 Thread Walter do Valle
Is there anyone in the list using sucessfully Apache 2.0.40 or greater and Tomcat 
5.0.16 with mod_jk2 v 2.0.2 connector in a linux box?
Is so, then what's the secret to compile a functional version of mod_jk2?

I downloaded the sources and compiled them. 
When I try to use the generated files jkjni.so and mod_jk2.so two problems ocurr: 

- When tomcat starts: 
INFO: APR not loaded, disabling jni components: java.io.IOException: 
java.lang.UnsatisfiedLinkError: /usr/lib/httpd/modules/jkjni.so: 
/usr/lib/httpd/modules/jkjni.so: undefined symbol: apr_md5_final

-When apache starts:
[Thu Dec 18 14:27:42 2003] [notice] Digest: generating secret for digest 
authentication ...
[Thu Dec 18 14:27:42 2003] [notice] Digest: done
[Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19850 in scoreboard
[Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2
[Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19852 in scoreboard
[Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2
[Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19853 in scoreboard
[Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2
[Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19854 in scoreboard
[Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2
[Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19856 in scoreboard
[Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2
[Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19857 in scoreboard
[Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2
[Thu Dec 18 14:27:43 2003] [notice] Apache/2.0.40 (Red Hat Linux) configured -- 
resuming normal operations
[Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19855 in scoreboard
[Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2

Any help is welcome.

RE: Apache + Tomcat

2003-12-18 Thread Asif Chowdhary
To compile mod_jk2 on linux you require:

Apache Portable Runtime (APR)   apr-0.9.4.tar.gzhttp://apr.apache.org/
Apache Portable Runtime Utility (APR)   apr-util-0.9.4.tar.gz   http://apr.apache.org/


During the build process if you see the error shown in Table 2?5:
Table 2?5:make Error
[so] stdErr[so] /usr/bin/ld: cannot fine -lapr  [so] collect2: ld returned 1 exit 
status

Create a symbolic link libapr-0.so in /usr/lib from /usr/local/apr/lib.
 ln -s /usr/local/apr/lib/libapr-0.so /usr/lib/libapr-0.so 




-Original Message-
From: Walter do Valle [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 18, 2003 1:41 PM
To: [EMAIL PROTECTED]
Subject: Apache + Tomcat


Is there anyone in the list using sucessfully Apache 2.0.40 or greater and Tomcat 
5.0.16 with mod_jk2 v 2.0.2 connector in a linux box?
Is so, then what's the secret to compile a functional version of mod_jk2?

I downloaded the sources and compiled them. 
When I try to use the generated files jkjni.so and mod_jk2.so two problems ocurr: 

- When tomcat starts: 
INFO: APR not loaded, disabling jni components: java.io.IOException: 
java.lang.UnsatisfiedLinkError: /usr/lib/httpd/modules/jkjni.so: 
/usr/lib/httpd/modules/jkjni.so: undefined symbol: apr_md5_final

-When apache starts:
[Thu Dec 18 14:27:42 2003] [notice] Digest: generating secret for digest 
authentication ...
[Thu Dec 18 14:27:42 2003] [notice] Digest: done
[Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19850 in scoreboard
[Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2
[Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19852 in scoreboard
[Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2
[Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19853 in scoreboard
[Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2
[Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19854 in scoreboard
[Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2
[Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19856 in scoreboard
[Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2
[Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19857 in scoreboard
[Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2
[Thu Dec 18 14:27:43 2003] [notice] Apache/2.0.40 (Red Hat Linux) configured -- 
resuming normal operations
[Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19855 in scoreboard
[Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2

Any help is welcome.

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



Re: Apache + Tomcat

2003-12-18 Thread Walter do Valle
I have this

[EMAIL PROTECTED] apache2]# ls -l /usr/lib/libapr*
-rw-r--r--1 root root   169320 Jan 25  2003 /usr/lib/libapr-0.a
-rw-r--r--1 root root  707 Jan 25  2003 /usr/lib/libapr-0.la
- lrwxrwxrwx1 root root   26 Dec 18 14:16 /usr/lib/libapr-0.so - 
/usr/lib/libapr-0.so.0.9.2
lrwxrwxrwx1 root root   17 Dec 18 09:38 /usr/lib/libapr-0.so.0 - 
libapr-0.so.0.9.2
-rwxr-xr-x1 root root   122648 Jan 25  2003 /usr/lib/libapr-0.so.0.9.2
lrwxrwxrwx1 root root   15 Dec 18 13:58 /usr/lib/libapr.so - 
libapr.so.0.0.0
lrwxrwxrwx1 root root   15 Dec 15 13:07 /usr/lib/libapr.so.0 - 
libapr.so.0.0.0
-rwxr-xr-x1 root root   118328 Feb 25  2003 /usr/lib/libapr.so.0.0.0
-rw-r--r--1 root root   117652 Jan 25  2003 /usr/lib/libaprutil-0.a
-rw-r--r--1 root root  735 Jan 25  2003 /usr/lib/libaprutil-0.la
lrwxrwxrwx1 root root   21 Dec 18 09:38 /usr/lib/libaprutil-0.so.0 - 
libaprutil-0.so.0.9.2
-rwxr-xr-x1 root root85200 Jan 25  2003 /usr/lib/libaprutil-0.so.0.9.2
lrwxrwxrwx1 root root   19 Dec 18 13:58 /usr/lib/libaprutil.so - 
libaprutil.so.0.0.0
lrwxrwxrwx1 root root   19 Dec 15 13:07 /usr/lib/libaprutil.so.0 - 
libaprutil.so.0.0.0
-rwxr-xr-x1 root root82868 Feb 25  2003 /usr/lib/libaprutil.so.0.0.0

The link marked with a - was created by me because when I ran 'make', it stops with 
an error like this:
i386-redhat-linux-gcc: /usr/lib/libapr-0.so: No such file or directory
make[1]: *** [../../../build/jk2/apache2/jkjni.la] Error 1 
  - Original Message - 
  From: Asif Chowdhary 
  To: Tomcat Users List ; Walter do Valle 
  Sent: Thursday, December 18, 2003 2:48 PM
  Subject: RE: Apache + Tomcat


  To compile mod_jk2 on linux you require:

  Apache Portable Runtime (APR) apr-0.9.4.tar.gz http://apr.apache.org/
  Apache Portable Runtime Utility (APR) apr-util-0.9.4.tar.gz http://apr.apache.org/


  During the build process if you see the error shown in Table 2?5:
  Table 2?5:make Error
  [so] stdErr[so] /usr/bin/ld: cannot fine -lapr  [so] collect2: ld returned 1 
exit status

  Create a symbolic link libapr-0.so in /usr/lib from /usr/local/apr/lib.
   ln -s /usr/local/apr/lib/libapr-0.so /usr/lib/libapr-0.so 




  -Original Message-
  From: Walter do Valle [mailto:[EMAIL PROTECTED]
  Sent: Thursday, December 18, 2003 1:41 PM
  To: [EMAIL PROTECTED]
  Subject: Apache + Tomcat


  Is there anyone in the list using sucessfully Apache 2.0.40 or greater and Tomcat 
5.0.16 with mod_jk2 v 2.0.2 connector in a linux box?
  Is so, then what's the secret to compile a functional version of mod_jk2?

  I downloaded the sources and compiled them. 
  When I try to use the generated files jkjni.so and mod_jk2.so two problems ocurr: 

  - When tomcat starts: 
  INFO: APR not loaded, disabling jni components: java.io.IOException: 
java.lang.UnsatisfiedLinkError: /usr/lib/httpd/modules/jkjni.so: 
/usr/lib/httpd/modules/jkjni.so: undefined symbol: apr_md5_final

  -When apache starts:
  [Thu Dec 18 14:27:42 2003] [notice] Digest: generating secret for digest 
authentication ...
  [Thu Dec 18 14:27:42 2003] [notice] Digest: done
  [Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19850 in scoreboard
  [Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2
  [Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19852 in scoreboard
  [Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2
  [Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19853 in scoreboard
  [Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2
  [Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19854 in scoreboard
  [Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2
  [Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19856 in scoreboard
  [Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2
  [Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19857 in scoreboard
  [Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2
  [Thu Dec 18 14:27:43 2003] [notice] Apache/2.0.40 (Red Hat Linux) configured -- 
resuming normal operations
  [Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19855 in scoreboard
  [Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2

  Any help is welcome.

Re: Apache + Tomcat

2003-12-18 Thread Walter do Valle
I downloaded, compiled and intalled apr from apache. 
The error persists.




  - Original Message - 
  From: Asif Chowdhary 
  To: Tomcat Users List ; Walter do Valle 
  Sent: Thursday, December 18, 2003 2:48 PM
  Subject: RE: Apache + Tomcat


  To compile mod_jk2 on linux you require:

  Apache Portable Runtime (APR) apr-0.9.4.tar.gz http://apr.apache.org/
  Apache Portable Runtime Utility (APR) apr-util-0.9.4.tar.gz http://apr.apache.org/


  During the build process if you see the error shown in Table 2?5:
  Table 2?5:make Error
  [so] stdErr[so] /usr/bin/ld: cannot fine -lapr  [so] collect2: ld returned 1 
exit status

  Create a symbolic link libapr-0.so in /usr/lib from /usr/local/apr/lib.
   ln -s /usr/local/apr/lib/libapr-0.so /usr/lib/libapr-0.so 




  -Original Message-
  From: Walter do Valle [mailto:[EMAIL PROTECTED]
  Sent: Thursday, December 18, 2003 1:41 PM
  To: [EMAIL PROTECTED]
  Subject: Apache + Tomcat


  Is there anyone in the list using sucessfully Apache 2.0.40 or greater and Tomcat 
5.0.16 with mod_jk2 v 2.0.2 connector in a linux box?
  Is so, then what's the secret to compile a functional version of mod_jk2?

  I downloaded the sources and compiled them. 
  When I try to use the generated files jkjni.so and mod_jk2.so two problems ocurr: 

  - When tomcat starts: 
  INFO: APR not loaded, disabling jni components: java.io.IOException: 
java.lang.UnsatisfiedLinkError: /usr/lib/httpd/modules/jkjni.so: 
/usr/lib/httpd/modules/jkjni.so: undefined symbol: apr_md5_final

  -When apache starts:
  [Thu Dec 18 14:27:42 2003] [notice] Digest: generating secret for digest 
authentication ...
  [Thu Dec 18 14:27:42 2003] [notice] Digest: done
  [Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19850 in scoreboard
  [Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2
  [Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19852 in scoreboard
  [Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2
  [Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19853 in scoreboard
  [Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2
  [Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19854 in scoreboard
  [Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2
  [Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19856 in scoreboard
  [Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2
  [Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19857 in scoreboard
  [Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2
  [Thu Dec 18 14:27:43 2003] [notice] Apache/2.0.40 (Red Hat Linux) configured -- 
resuming normal operations
  [Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19855 in scoreboard
  [Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2

  Any help is welcome.

RE: Apache-Tomcat connectors... why??

2003-12-17 Thread Scott, Sean
If your application is using the HTTPSession, then you will want apache to
stick you to the same instance of tomcat on the backend for all requests
for that session. mod_jk and mod_jk2 both support this. Forgive me if I am
wrong, but I dont think mod_proxy will do this for you. 

-sean

 -Original Message-
 From: Wesley Hall [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, December 16, 2003 12:54 PM
 To: Tomcat Users List
 Subject: RE: Apache-Tomcat connectors... why??
 
 
 Thank you Howard and Jim,
 
 I will look into mod_proxy. Things seem a little more 
 complicated because I
 am attempted to integrate with the JBoss tomcat bundle. Obviously the
 configuration is a little different here and most howto's 
 require a little
 bit more thinking about as to where to find the files etc...
 
 Im not sure about using tomcat as a static content server. 
 Apache has many
 features that tomcat doesnt as it is designed for this task. 
 It might solve
 the problem, but the powers-that-be are quite keen on full 
 integration.
 
 Im not sure that servlets do require anything extra at HTTP 
 level. Perhaps I
 am missing something but due to the relative simplicity of 
 HTTP and the fact
 its stateless I would assume that the servlet container cant require
 anything extra. From the browsers perspective it is 
 requesting a static
 resource, by name, from a domain.
 
 The proxying route would have the added advantage of not having to
 reconfigure mod_jk(2) everytime a new web app is added. The 
 browser says
 Give me /index.jsp, apache says I cant find index.jsp, but 
 i know about
 THIS http server (tomcat), that might, tomcat says yup, i 
 can do that for
 you, here it is, apache says Here you go... i found it 
 eventually... all
 over HTTP.
 
 It seems to make a lot of sense to me, but as you say, if this simple
 solution has not been shouted about, it will mean there is a 
 fundemental
 flaw... lots of smarter guys than me working on this stuff =o)
 
 Thanks again for your help!
 
 
  -Original Message-
  From: Howard Jim [mailto:[EMAIL PROTECTED]
  Sent: 16 December 2003 19:34
  To: Tomcat Users List
  Subject: RE: Apache-Tomcat connectors... why??
 
 
  I believe what you are referring to is the ProxyPass Directive
 
  http://httpd.apache.org/docs-2.0/mod/mod_proxy.html#proxypass
 
  I have used this before, but haven't played with it as a way to
  reference the app server.  If it were that simple, I imagine it
  would have already been done.  I am just getting going with the
  connectors, but things like parameters, servlets, and the like
  have their own needs which may require a closer integration with
  the webserver than can be provided by a simple reverse proxy
  setup.  If all you need is the reverse proxy setup, then perhaps
  you don't even need the webserver.  Just let tomcat serve it all,
  then all your connector worries are moot.
 
  Jim
 
 
  -Original Message-
  From: Wesley Hall [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, December 16, 2003 1:27 PM
  To: [EMAIL PROTECTED]
  Subject: Apache-Tomcat connectors... why??
 
 
  Hello all,
 
  Hopefully I picked a good list to bring this topic up on. There
  were several
  candidates.
 
  I have spent some time today attempting to perform the 
 non-trival task of
  configuring communication between the apache web server and 
 the tomcat
  servlet engine. This seems to be a fairly complicated 
 process involving
  quite a lot of configuration and some degree of black magic.
 
  It occured to me that a simpler approch would be to simply 
 have apache
  forward requests at HTTP level to a list of slave servers 
 in the form of
  Cant find this resource!! Can you??. Before apache returns a
  404 error it
  could consult some form of list and ask other servers on the
  network (tomcat
  for instance ;o)) to attempt to find the resource via HTTP. 
 I dont see a
  reason why this would perform particually badly in the most
  common set up of
  apache + tomcat.
 
  Presumably there is a way to configure apache to do this already
  (if anyone
  could point me to the write manaual page I would be grateful),
  but it doesnt
  seem to be offered up a simple solution to a complex 
 problem on the tomcat
  integration pages.
 
  My question... why is this solution not mentioned more 
 often given the
  number of how do i configure mod_jk2?? results on google 
 and would their
  be any serious disadvantages with such an approch?
 
  Thanks
 
  Wesley Hall
 
 
 
  
 -
  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

Apache-tomcat via mod_jk configuration

2003-12-17 Thread dhayalan
Hi all,

 I've read a  configuration of tomcat and apache 
(http://daydream.stanford.edu/tomcat/install_web_services.html ) over the last 4 days, 
and I've found much of  what I need to be lacking

 After reading full documentation on the jakarta website about how the  server.xml is 
organized for tomcat 4, I still have some
questions...

 I will first explain the desired setup, then I will show what I have.  If you 
gracious folks can help me set this up, I will GLADLY
set up a  complete HOW-TO replicating the solution on my website for all the world to  
see. you knows you probably get a lot of questions about this.  My hope is  to guide 
the user by the hand step by step for this complex process.  I have  been using Tomcat 
3 for a long time with mod_jk and have been very happy,  but I now need the newer 
features of Tomcat 4.

 Here's the setup (everywhere hereafter, I've replaced the  actual domain  names with 
domainname for privacy...just know that everytime you see that, its actually a 
domain name, and ignore the   brackets

 Redhat Linux 9
 httpd-2.0.48  
   / usr/loca/apache2
 Java   JDK 1.4.2_03   
 ---/usr/lcoal/java
 Tomcat 5.0.16  Light Edition (since I have jdk 1.4.2_03) .--/usr/local/tomcat
mod_jk 
  /usr/lcoal/src/mod_jk

my question is  there is httpd in linux 9 and postgresql  and i installed apache and 
tomcat and psotgresql i added the httpd1 and tomcat  in sbin/chkconfig --add httpd1 
amd tomcatd by using the configuration given in   
http://daydream.stanford.edu/tomcat/install_web_services.html  site fullythen i 
started the catalina_home /bin/startup.sh which was started in  command line  but i am 
not able to get test page in Browser it tells that connection refused 

i start by using httpd1 and tomcatd it shows that unreconized service

please help to solve the problem  as soon as possible


Thakning You
Dhayalan.G


#
Configure Environment Variables
Edit and add the lines below to /etc/profile
Make sure you logout and login for this to take effect. If you're in XWindow you might 
need to quit out of XWindow and exit primary shell. Then login again and start XWindow 
again (startx). It's really good to get this straight from the beginning.
JAVA_HOME=/usr/local/java/java
CATALINA_HOME=/usr/local/tomcat
PATH=$JAVA_HOME/bin:$PATH:$HOME/bin:/sbin:/usr/sbin
CLASSPATH=$CATALINA_HOME/bin/bootstrap.jar:$JAVA_HOME/lib/tools.jar:$CATALINA_HOME/common/lib/servlet.jar:/usr/local/pgsql/share/java/postgresql.jar:../lib/struts.jar:.
Now add the PATH JAVA_HOME CATALINA_HOME  CLASSPATH if any aren't in the export line
export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC JAVA_HOME CATALINA_HOME 
CLASSPATH
This will output your environment variables
env
Install JAVA
mkdir /usr/local/java
cd /usr/local/java
sh j2sdk-1_4_2-linux-i586.bin
The jdk directory is then extracted
mv j2sdk-1.4.2 /usr/local/java
ln -s j2sdk1.4.2 java
Now the java directory will be in /usr/local/java/java. I do it like this so I can 
keep all my different JDKs/JREs in one directory and then just change the symbolic 
link to point to the current one.
Install Jakarta TOMCAT
tar xvfz jakarta-tomcat-4.1.27.tar.gz
mv jakarta-tomcat-4.1.27 /usr/local/
cd /usr/local
ln -s jakarta-tomcat-4.1.27 tomcat
Install Jakarta ANT
tar xvfz jakarta-ant-1.5.4
mv jakarta-ant-1.5.4 /usr/local
cd /usr/local
ln -s jakarta-ant-1.5.4 ant
ln -s /usr/local/ant/bin/ant /usr/local/bin/ant
Install OPENSSL
tar xvfz openssl-0.9.7c.tar.gz
mv openssl-0.9.7c /usr/local/src/
cd /usr/local/src/
ln -s /usr/local/openssl-0.9.7c openssl
cd openssl-0.9.7c
./config
make
make test
make install #This will install in /usr/local/ssl
Install APACHE
tar xvfz httpd-2.0.47.tar.Z
cd httpd-2.0.47
./configure --prefix=/usr/local/apache2 --enable-so --enable-rewrite \
--enable-ssl --with-ssl=/usr/local/ssl --enable-proxy
make
make install #(places in /usr/local/apache2)
Build/Install MOD_JK Connector
Build mod_jk
cd /usr/local/src/jakarta-tomcat-connectors-jk-1.2.4-src/jk/native
./buildconf.sh
./configure --with-apxs=/usr/local/apache2/bin/apxs
make
cp apache-2.0/mod_jk.so /usr/local/apache2/modules Installs mod_jk in correct location
Configure Apache for mod_jk
I put these lines in http.conf just before NameVirtualHost
IfModule !mod_jk.c
  LoadModule jk_module modules/mod_jk.so
/IfModule
Configure APACHE/NON-SSL

   1. mkdir /usr/local/http_nonsecure 

* #Look for similar lines.
* #Make sure you have lines that say this in conf/http.conf:
* Listen myhost.mydomain:80

* #Same with this line:
* #Make sure you do this line because it will listen
* #and try to do http on the https port as well.
* ServerName myhost.mydomain:80


Apache-Tomcat connectors... why??

2003-12-16 Thread Wesley Hall
Hello all,

Hopefully I picked a good list to bring this topic up on. There were several
candidates.

I have spent some time today attempting to perform the non-trival task of
configuring communication between the apache web server and the tomcat
servlet engine. This seems to be a fairly complicated process involving
quite a lot of configuration and some degree of black magic.

It occured to me that a simpler approch would be to simply have apache
forward requests at HTTP level to a list of slave servers in the form of
Cant find this resource!! Can you??. Before apache returns a 404 error it
could consult some form of list and ask other servers on the network (tomcat
for instance ;o)) to attempt to find the resource via HTTP. I dont see a
reason why this would perform particually badly in the most common set up of
apache + tomcat.

Presumably there is a way to configure apache to do this already (if anyone
could point me to the write manaual page I would be grateful), but it doesnt
seem to be offered up a simple solution to a complex problem on the tomcat
integration pages.

My question... why is this solution not mentioned more often given the
number of how do i configure mod_jk2?? results on google and would their
be any serious disadvantages with such an approch?

Thanks

Wesley Hall



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



Re: Apache-Tomcat connectors... why??

2003-12-16 Thread Tim Funk
http://jakarta.apache.org/tomcat/faq/connectors.html

In a nutshell, tomcat anc apache talk to each via the AJP protocol. The AJP 
protocol is like the HTTP protocol but more efficient for various reasons.

An alternative to having apache talk to tomcat via AJP can also be mod_proxy 
sounds similar to your situation below.

mod_jk and mod_jk2 are both modules written in C to be used by apache (or 
insert server here) jk2 is a rewrite of jk but for the same protocol. So the 
configuration of the jk vs jk2 is different. On the tomcat side, it really 
doesn't know that the apache instance is using mod_jk or mod_jk2.

-Tim

Wesley Hall wrote:

Hello all,

Hopefully I picked a good list to bring this topic up on. There were several
candidates.
I have spent some time today attempting to perform the non-trival task of
configuring communication between the apache web server and the tomcat
servlet engine. This seems to be a fairly complicated process involving
quite a lot of configuration and some degree of black magic.
It occured to me that a simpler approch would be to simply have apache
forward requests at HTTP level to a list of slave servers in the form of
Cant find this resource!! Can you??. Before apache returns a 404 error it
could consult some form of list and ask other servers on the network (tomcat
for instance ;o)) to attempt to find the resource via HTTP. I dont see a
reason why this would perform particually badly in the most common set up of
apache + tomcat.
Presumably there is a way to configure apache to do this already (if anyone
could point me to the write manaual page I would be grateful), but it doesnt
seem to be offered up a simple solution to a complex problem on the tomcat
integration pages.
My question... why is this solution not mentioned more often given the
number of how do i configure mod_jk2?? results on google and would their
be any serious disadvantages with such an approch?
 


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


RE: Apache-Tomcat connectors... why??

2003-12-16 Thread Howard Jim
I believe what you are referring to is the ProxyPass Directive

http://httpd.apache.org/docs-2.0/mod/mod_proxy.html#proxypass

I have used this before, but haven't played with it as a way to reference the app 
server.  If it were that simple, I imagine it would have already been done.  I am just 
getting going with the connectors, but things like parameters, servlets, and the like 
have their own needs which may require a closer integration with the webserver than 
can be provided by a simple reverse proxy setup.  If all you need is the reverse proxy 
setup, then perhaps you don't even need the webserver.  Just let tomcat serve it all, 
then all your connector worries are moot.

Jim


-Original Message-
From: Wesley Hall [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 16, 2003 1:27 PM
To: [EMAIL PROTECTED]
Subject: Apache-Tomcat connectors... why??


Hello all,

Hopefully I picked a good list to bring this topic up on. There were several
candidates.

I have spent some time today attempting to perform the non-trival task of
configuring communication between the apache web server and the tomcat
servlet engine. This seems to be a fairly complicated process involving
quite a lot of configuration and some degree of black magic.

It occured to me that a simpler approch would be to simply have apache
forward requests at HTTP level to a list of slave servers in the form of
Cant find this resource!! Can you??. Before apache returns a 404 error it
could consult some form of list and ask other servers on the network (tomcat
for instance ;o)) to attempt to find the resource via HTTP. I dont see a
reason why this would perform particually badly in the most common set up of
apache + tomcat.

Presumably there is a way to configure apache to do this already (if anyone
could point me to the write manaual page I would be grateful), but it doesnt
seem to be offered up a simple solution to a complex problem on the tomcat
integration pages.

My question... why is this solution not mentioned more often given the
number of how do i configure mod_jk2?? results on google and would their
be any serious disadvantages with such an approch?

Thanks

Wesley Hall



-
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: Apache-Tomcat connectors... why??

2003-12-16 Thread Wesley Hall
Thank you Howard and Jim,

I will look into mod_proxy. Things seem a little more complicated because I
am attempted to integrate with the JBoss tomcat bundle. Obviously the
configuration is a little different here and most howto's require a little
bit more thinking about as to where to find the files etc...

Im not sure about using tomcat as a static content server. Apache has many
features that tomcat doesnt as it is designed for this task. It might solve
the problem, but the powers-that-be are quite keen on full integration.

Im not sure that servlets do require anything extra at HTTP level. Perhaps I
am missing something but due to the relative simplicity of HTTP and the fact
its stateless I would assume that the servlet container cant require
anything extra. From the browsers perspective it is requesting a static
resource, by name, from a domain.

The proxying route would have the added advantage of not having to
reconfigure mod_jk(2) everytime a new web app is added. The browser says
Give me /index.jsp, apache says I cant find index.jsp, but i know about
THIS http server (tomcat), that might, tomcat says yup, i can do that for
you, here it is, apache says Here you go... i found it eventually... all
over HTTP.

It seems to make a lot of sense to me, but as you say, if this simple
solution has not been shouted about, it will mean there is a fundemental
flaw... lots of smarter guys than me working on this stuff =o)

Thanks again for your help!


 -Original Message-
 From: Howard Jim [mailto:[EMAIL PROTECTED]
 Sent: 16 December 2003 19:34
 To: Tomcat Users List
 Subject: RE: Apache-Tomcat connectors... why??


 I believe what you are referring to is the ProxyPass Directive

 http://httpd.apache.org/docs-2.0/mod/mod_proxy.html#proxypass

 I have used this before, but haven't played with it as a way to
 reference the app server.  If it were that simple, I imagine it
 would have already been done.  I am just getting going with the
 connectors, but things like parameters, servlets, and the like
 have their own needs which may require a closer integration with
 the webserver than can be provided by a simple reverse proxy
 setup.  If all you need is the reverse proxy setup, then perhaps
 you don't even need the webserver.  Just let tomcat serve it all,
 then all your connector worries are moot.

 Jim


 -Original Message-
 From: Wesley Hall [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, December 16, 2003 1:27 PM
 To: [EMAIL PROTECTED]
 Subject: Apache-Tomcat connectors... why??


 Hello all,

 Hopefully I picked a good list to bring this topic up on. There
 were several
 candidates.

 I have spent some time today attempting to perform the non-trival task of
 configuring communication between the apache web server and the tomcat
 servlet engine. This seems to be a fairly complicated process involving
 quite a lot of configuration and some degree of black magic.

 It occured to me that a simpler approch would be to simply have apache
 forward requests at HTTP level to a list of slave servers in the form of
 Cant find this resource!! Can you??. Before apache returns a
 404 error it
 could consult some form of list and ask other servers on the
 network (tomcat
 for instance ;o)) to attempt to find the resource via HTTP. I dont see a
 reason why this would perform particually badly in the most
 common set up of
 apache + tomcat.

 Presumably there is a way to configure apache to do this already
 (if anyone
 could point me to the write manaual page I would be grateful),
 but it doesnt
 seem to be offered up a simple solution to a complex problem on the tomcat
 integration pages.

 My question... why is this solution not mentioned more often given the
 number of how do i configure mod_jk2?? results on google and would their
 be any serious disadvantages with such an approch?

 Thanks

 Wesley Hall



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



Apache Tomcat jk2... is it possible?

2003-12-11 Thread Federico Fernandez Cruz
Hi all!

I am using tomcat 5 and I want to do some integration work with Apache 
and mod_jk2.

Is there a direct way to map a whole web application in apache? It works 
but I have to write a lot of  [uri:*] commands in mi 
workers2.properties file.

I have tried WebXml2Jk but when I insert the file (using Include) I get 
a lot of errors about Alias first and  JkUriSet Host later...

I am planning to do some work with Apache SSL. Will I be able to read 
all those SSL variables from Tomcat?

Any help will be appreciated! TIA




smime.p7s
Description: S/MIME Cryptographic Signature


Re: Apache Tomcat jk2... is it possible?

2003-12-11 Thread Nikola Milutinovic
Federico Fernandez Cruz wrote:

Hi all!

I am using tomcat 5 and I want to do some integration work with Apache 
and mod_jk2.

Is there a direct way to map a whole web application in apache? It works 
but I have to write a lot of  [uri:*] commands in mi 
workers2.properties file.
What do you mean by whole web application?

That URI mapping IS mapping one whole web-app.

I am planning to do some work with Apache SSL. Will I be able to read 
all those SSL variables from Tomcat?
You should be able to access client certificate via HttpRequest object.

Nix.

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


Re: Apache Tomcat jk2... is it possible?

2003-12-11 Thread Federico Fernandez Cruz
By whole web application I mean the entire application... well...

I have a context inside Tomcat called UserMan. I want to map an Apache 
URL to this application...

In my workers2.properties I put these lines...

[uri:/UserMan]
info=Example webapp in the default context.
context=/UserMan
debug=0
[uri:/UserMan/*]
info=Extension mapping
But my JSPs redirect to /UserMan/nav/ and I get errors about resource 
not available...  then I have to put another lines

[uri:/UserMan/nav/*.jsp]
info=Extension mapping
I think that this method is  error prone so that was my question. How to 
map the whole web application?
Maybe I am doing something wrong.. (sure!)

Thanks!



Nikola Milutinovic wrote:

Federico Fernandez Cruz wrote:

Hi all!

I am using tomcat 5 and I want to do some integration work with 
Apache and mod_jk2.

Is there a direct way to map a whole web application in apache? It 
works but I have to write a lot of  [uri:*] commands in mi 
workers2.properties file.


What do you mean by whole web application?

That URI mapping IS mapping one whole web-app.

I am planning to do some work with Apache SSL. Will I be able to read 
all those SSL variables from Tomcat?


You should be able to access client certificate via HttpRequest object.

Nix.

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




smime.p7s
Description: S/MIME Cryptographic Signature


Re: Apache Tomcat jk2... is it possible?

2003-12-11 Thread Nikola Milutinovic
Federico Fernandez Cruz wrote:

By whole web application I mean the entire application... well...

I have a context inside Tomcat called UserMan. I want to map an Apache 
URL to this application...

In my workers2.properties I put these lines...

[uri:/UserMan]
info=Example webapp in the default context.
context=/UserMan
debug=0
This should suffice, although you haven't specified a worker for this context.

[uri:/UserMan/*]
info=Extension mapping
But my JSPs redirect to /UserMan/nav/ and I get errors about resource 
not available...  then I have to put another lines

[uri:/UserMan/nav/*.jsp]
info=Extension mapping
I think that this method is  error prone so that was my question. How to 
map the whole web application?
Maybe I am doing something wrong.. (sure!)
Here is mine (although I haven't tried accessing in subdir):

[logger]
level=DEBUG
[config:]
debug=0
debugEnv=0
[uriMap:]
info=Maps the requests. Options: debug
debug=0
# Alternate file logger
[logger.file:0]
level=DEBUG
file=/var/log/httpd/mod_jk2.log
[workerEnv:]
info=Global server options
timing=1
debug=0
[channel.un:unixsock]
info=Main socket to Tomcat engine
file=/var/tomcat4/work/tomcat.sock
[status:]
info=Status worker, displays runtime informations
[ajp13:unixsock]
info=Default AJP 1.3 worker
channel=channel.un:unixsock
[uri:/jkstatus/*]
info=Display status information and checks the config file for changes.
group=status:
[uri:www.elektrovojvodina.co.yu/racun]
info=Consumer bill
group=ajp13:unixsock
context=/racun
Nix.

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


Re: Apache Tomcat jk2... is it possible?

2003-12-11 Thread Jrg Werner
Hello!

Please take a look at this thread
http://www.mail-archive.com/[EMAIL PROTECTED]/msg110822.html

In short, the solution is to build mod_jk2 from 
jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz and not from the sources 
bundled with tomcat. I had the same problem and it now works.

Jörg
-- 
Dipl-Phys. Jörg Werner  [EMAIL PROTECTED]
Universität Stuttgart
5. physikalisches Institut  Telefon: 0711/685-4951
Pfaffenwaldring 57  Telefax: 0711/685-3810
D-70550 Stuttgart
Visit our Homepage: http://www.physik.uni-stuttgart.de/institute/pi/5/
index.html
My private Homepage: http://schreibubi.pi5.physik.uni-stuttgart.de/
GPG-Key fingerprint: 6630 6A73 7725 483C 1594  1D64 3F92 5251 8710 EDF6



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



Re: Apache Tomcat jk2... is it possible?

2003-12-11 Thread Federico Fernandez Cruz
Thanks! Now it works! :-)

I can access my web application through SSL. How can I get all those SSL 
variables that apache has already set ? Should I tell something more to JK?

Thanks!
Jörg Werner wrote:
Hello!

Please take a look at this thread
http://www.mail-archive.com/[EMAIL PROTECTED]/msg110822.html
In short, the solution is to build mod_jk2 from 
jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz and not from the sources 
bundled with tomcat. I had the same problem and it now works.

Jörg
 




smime.p7s
Description: S/MIME Cryptographic Signature


Integrating Apache + Tomcat 5 + jk2

2003-12-10 Thread Mike Nguyen






Hi, I am trying to integrating Apache + Tomcat5+ jk2 on Solaris 9. Does anyone have an example of jk2.properties and workers2.properties file for this configuration? I appreciate it. Thanks.
Mike







 IncrediMail - Email has finally evolved - Click Here

Re: Integrating Apache + Tomcat 5 + jk2

2003-12-10 Thread Martin Kuba
Mike Nguyen wrote:
Hi, I am trying to integrating Apache + Tomcat5+ jk2 on Solaris 9. Does 
anyone have an example of jk2.properties and workers2.properties file 
for this configuration? I appreciate it. Thanks.
Mike
This information is not sufficient, as you can connect mod_jk2
and Tomact in several ways: TCP sockets, unix sockets and JNI.
A basic guide is available in JK documentation:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/confighowto.html
I am using TCP sockets (easiest option).
I have following in httpd.conf:
LoadModule jk2_module libexec/mod_jk2.so
IfModule mod_jk2.c
  JkSet config:file /etc/httpd/workers2.properties
/IfModule
and following in workers2.properties:

[logger.file:]
level=DEBUG
file=/var/log/httpd/mod_jk2.log
[shm:]
file=/var/log/httpd/jk2.shm
size=100
[channel.socket:localhost:8009]
[uri:/mywebapp/*]
info=maps mywebapp to default channel
I hope this helps ...

Martin
--
~~
Supercomputing Center Brno Martin Kuba
Institute of Computer Scienceemail: [EMAIL PROTECTED]
Masaryk University http://www.ics.muni.cz/~makub/
Botanicka 68a, 60200 Brno, CZ mobil: +420-603-533775
--


smime.p7s
Description: S/MIME Cryptographic Signature


RE: [ANN] Apache Tomcat 5.0.16 Stable released

2003-12-07 Thread Lukas Bradley
Congratulations to all those involved.  This is a huge release, in my book.

Lukas




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



Apache, Tomcat and authentication appear to be working correctly%String uName = request.getRemoteUs

2003-12-04 Thread Howard Watson
Apache, Tomcat and authentication appear to be working correctly%String uName = 
request.getRemoteUser();% //returns nullNetware 6 sp3Apache 2.0.48Tomcat 4.1.29mod_jk 
1.2.5more info: 
http://developer-forums.novell.com/group/novell.devsup.webserver.apache2/readerNoFrame.tpt/@[EMAIL
 PROTECTED]@[EMAIL PROTECTED]@D-,[EMAIL PROTECTED]/@[EMAIL PROTECTED] 


apache, tomcat wan't run ROOT/index.jsp

2003-12-03 Thread Matthias Teege
Moin,

I've setup apache 2.0.48 and tomcat/4.1.29 sucessfully. I also
setup a demo application (JSPWiki) on a virtual host like this:

server.xml
Host name=doc.mteege.de address=192.168.18.184
   Context path= docBase=/opt/tomcat/webapps/JSPWiki debug=0 /
   ApacheConfig forwardAll=true noRoot=false /
/Host

httpd.conf
VirtualHost *:80
DocumentRoot /opt/tomcat/webapps/JSPWiki
DirectoryIndex Wiki.jsp
ServerName doc.mteege.de
IfModule mod_jk.c
   JkMount /*.jsp ajp13
/IfModule
/VirtualHost

This works great and I try to setup another virtual host which
serve the default tomcat index.jsp and the demo apps.

server.xml
Host name=cat.mteege.de address=192.168.18.184
  Context path= docBase=webapps/ROOT debug=0 /
  ApacheConfig forwardAll=true noRoot=false /
/Host

httpd.conf
VirtualHost *:80
DocumentRoot /opt/tomcat/webapps
DirectoryIndex index.jsp
ServerName cat.mteege.de
IfModule mod_jk.c
   JkMount /*.jsp ajp13
/IfModule
/VirtualHost

I get the get the index.jsp but if I try to load the demo app
folder I get a 404 error from tomcat. I think there is a mismatch
between the apache DocumentRoot and the Tomcat docBase but If I use
docBase=webapps I only get a indexview of the webapps folder.

What do I missing?

Many thanks
Matthias

-- 
Matthias Teege -- http://www.mteege.de
make world not war


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



Re: [ANN] Apache Tomcat 5.0.16 Stable released

2003-12-03 Thread Adam Hardy
On 12/03/2003 11:24 PM Remy Maucherat wrote:
The Tomcat Team announces the immediate availability of Apache Tomcat 
5.0.16 Stable.

Please refer to the changelog for the list of changes.

Downloads:
Binaries: http://jakarta.apache.org/site/binindex.cgi
Sources: http://jakarta.apache.org/site/sourceindex.cgi
The Apache Tomcat Team


Excellent! Congratulations to the Tomcat team.

Thanks,
Adam
--
struts 1.1 + tomcat 5.0.16! + java 1.4.2
Linux 2.4.20 Debian
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: [ANN] Apache Tomcat 5.0.16 Stable released

2003-12-03 Thread Schalk
There seems to be a problem with the .exe installer. Even when pointed
directly to the jre (j2sdk1.4.2/lib/tools.jar) I still get the message, No
virtual machine found.

Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.CEO
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za
 
This message contains information that is considered to be sensitive or
confidential and may not be forwarded or disclosed to any other party
without the permission of the sender. If you received this message in error,
please notify me immediately so that I can correct and delete the original
email. Thank you. 

:: -Original Message-
:: From: Adam Hardy [mailto:[EMAIL PROTECTED]
:: Sent: Thursday, December 04, 2003 1:24 AM
:: To: Tomcat Users List
:: Subject: Re: [ANN] Apache Tomcat 5.0.16 Stable released
:: 
:: On 12/03/2003 11:24 PM Remy Maucherat wrote:
::  The Tomcat Team announces the immediate availability of Apache Tomcat
::  5.0.16 Stable.
:: 
::  Please refer to the changelog for the list of changes.
:: 
::  Downloads:
::  Binaries: http://jakarta.apache.org/site/binindex.cgi
::  Sources: http://jakarta.apache.org/site/sourceindex.cgi
:: 
::  The Apache Tomcat Team
:: 
:: 
:: Excellent! Congratulations to the Tomcat team.
:: 
:: Thanks,
:: Adam
:: --
:: struts 1.1 + tomcat 5.0.16! + java 1.4.2
:: Linux 2.4.20 Debian
:: 
:: -
:: 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]



[ANN] Apache Tomcat 5.0.16 Stable released

2003-12-03 Thread Remy Maucherat
The Tomcat Team announces the immediate availability of Apache Tomcat 
5.0.16 Stable.

Please refer to the changelog for the list of changes.

Downloads:
Binaries: http://jakarta.apache.org/site/binindex.cgi
Sources: http://jakarta.apache.org/site/sourceindex.cgi
The Apache Tomcat Team



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


Apache Tomcat/4.1.18 Upload a WAR file

2003-11-30 Thread Juan Ignacio Garcia
Hello, I have suse 9.0 which cames with tomcat/4.1.18. The problem is 
that the form that appears in others version to upload war files in the 
manager doesn't appear in this one. What's wrong in the configuration. 
How can I change that?

Thanks,

Ignacio



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


Re: Apache Tomcat connector FAQ admin?

2003-11-24 Thread Tim Funk
Its already on the Wiki (Which is linked by the FAQ)
http://nagoya.apache.org/wiki/apachewiki.cgi?Tomcat/Links
Since the links are so many links on the connectors page and many are dups of 
the Links above - I'll probably shorten the connectors list and reorg the 
Wiki Link above. (When I have time)

-Tim

Oscar Carrillo wrote:

Hi,

I have to move my tutorial listed on the Apache Tomcat Connector FAQ page.

I'm wondering who I should contact. I couldn't find the contact info on
the FAQ. I guess it's not Frequent enough:) I believe I remember Tim
Funk starting it, but maybe it's changed now. I don't have a new URL yet,
but will shortly. Just wanted to get a contact so it doesn't have down
time.
An email or web page that has the contact info would be great.

Thanks so much,
Oscar Carrillo
http://daydream.stanford.edu/tomcat/install_web_services.html
 


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


Apache Tomcat connector FAQ admin?

2003-11-23 Thread Oscar Carrillo
Hi,

I have to move my tutorial listed on the Apache Tomcat Connector FAQ page.

I'm wondering who I should contact. I couldn't find the contact info on
the FAQ. I guess it's not Frequent enough:) I believe I remember Tim
Funk starting it, but maybe it's changed now. I don't have a new URL yet,
but will shortly. Just wanted to get a contact so it doesn't have down
time.

An email or web page that has the contact info would be great.

Thanks so much,
Oscar Carrillo
http://daydream.stanford.edu/tomcat/install_web_services.html


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



Apache Tomcat/ 4.0.1 /HTTP Status 503 / Servlet constructurl is currently unavailabe

2003-11-21 Thread Oliver Baecker
Hi,

i am using the Tomcat in combination with the iROS meta-OS. If i try to create a 
servlet for displaying URLs on multiple clients with the iROS tool i get the message 
you can see in the subject of this mail. Any ideas why this might happen?

Thanks a lot!

Best Regards,

Oliver


My hosting company upgraded to the Apache Tomcat/4.1.27

2003-11-21 Thread Kent Gilley
and my jsp pages aren't working.  They say it's simple syntax error on 
my part.

I've loaded a page with only two lines of code in them, and the problem 
is with calling the driver.

Example:
 http://www.azlehornets.com/apps/g092603.jsp 
old code

!--
%//Class.forName(org.gjt.mm.mysql.Driver);%
--

new code that I have tried.
!--
Class.forName(com.mysql.jdbc.Driver);
Class.forName(com.mysql.jdbc.Driver).newInstance();

--




RE: My hosting company upgraded to the Apache Tomcat/4.1.27

2003-11-21 Thread Goehring, Chuck Mr., RCI - San Diego



Kent,

The jar containing the driver would have to be in the JAVA_HOME\jre\lib\ext
or probably preferably in WEB-INF\lib so Java can find it.

Probably have to re-start Tomcat as well.

You can view the contents of the jar with WinZip to make sure the package name matches 
and is in the jar.

Chuck  


-Original Message-
From: Kent Gilley [mailto:[EMAIL PROTECTED]
Sent: Friday, November 21, 2003 11:03 AM
To: [EMAIL PROTECTED]
Subject: My hosting company upgraded to the Apache Tomcat/4.1.27


and my jsp pages aren't working.  They say it's simple syntax error on 
my part.

I've loaded a page with only two lines of code in them, and the problem 
is with calling the driver.

Example:
 http://www.azlehornets.com/apps/g092603.jsp 

old code

!--
%//Class.forName(org.gjt.mm.mysql.Driver);%

--

new code that I have tried.
!--
Class.forName(com.mysql.jdbc.Driver);

Class.forName(com.mysql.jdbc.Driver).newInstance();

--



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



RE: Win2k+Apache+Tomcat Problems

2003-11-12 Thread Goehring, Chuck Mr., RCI - San Diego
Steve,

Tomcat has to be started first because it generates a conf file that Apache will read.

Note that on the referenced link there are two (different) items that contain the word 
ApacheConfig.  They both need to be in there.  This causes the config file to be 
generated.  Tomcat may take a while to do all this so, you need to wait 10 seconds or 
so before starting apache.

Once everything works properly, you can disable the generation of the conf and 
continue using the one that that was last generated.   Then the 10 second wait is no 
longer needed.

The file generated is:
%CATALINA_HOME\conf\auto\mod_jk.conf

Chuck






-Original Message-
From: Steve Milner [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 11, 2003 7:51 AM
To: Tomcat Users List
Subject: Re: Win2k+Apache+Tomcat Problems


Out of curiosity why would 4.1.24/27 be any easier than 4.1.29? Is 
there currently issues with 4.1.29?

Thanks,
Steve


On Nov 10, 2003, at 11:19 PM, kgsat wrote:

 why donot u try reading logs and make sure u make all the entries in 
 conf
 files as they are supposed to be.
 If u can not spot the culprit change to 4.1.24/27 to work with.I am 
 sure
 this will do
 good luck
 sat
 - Original Message -
 From: Steve Milner [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, November 11, 2003 11:13 AM
 Subject: Win2k+Apache+Tomcat Problems


 I have installed Apache and Tomcat-4.1.29 on my Windows 2000 server. I
 have followed the instructions from
 http://www.johnturner.com/howto/winxp-howto.html (a how-to I was
 pointed to by other admins) to a T and I can't get it to work. I can
 point my browser to port 8080 of my server and get tomcat, but I get
 nothing but an Apache error message not being able to find the file
 when trying to get the same jsp from port 80 (Apache is using JKMount
 directives which I was told to add later). One thing I noticed is that
 Tomcat didn't make a apache-tomcat.conf file for me like the how-to
 said it would. I tried starting apache first, and then second. I tried
 restarting one or the other but they don't seem to communicate. I am
 using mod_jk 1.2 , apache 1.3.x and Tomcat 4.1.29 with Tomcat and
 mod_jk coming directly from the Jakarta binary site.

 Basically, I'm not sure where or what is going wrong and what I should
 do next. All help is greatly appreciated.

 Steve


 -
 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: Apache+Tomcat+Windows, how?

2003-11-11 Thread Bill Barker
Go to http://jakarta.apache.org/site/binindex.cgi, scroll down to Tomcat
WebServer Connectors, click on JK 1.2 Binary Releases, click on win32,
and, what do you know ;-).

Yeray Santana Borges [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hi all,

 I´m a spanish newbie using Tomcat. My enviroment: Apache HTTP Server
2.0.48,
 Jakarta Tomcat 4.1 and w2000 Server.

 I can´t connected the Apache Server and Tomcat. I get the binary
 distribution and i can´t find the mod_jk.so that i must include in the
 Apache web with LoadModule directive.
 I get the mod_jk.dll bat after edit http.conf my server don´t start
because
 can find API in mod_jk.dll. I know that i must use Loadmodule something
  but i don´t know what.

 Anybody help me with this configuration? how can i do it?

 Thanks, sorry if my english is not correct, i´m a spanish student from
 Canary Island.




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



Re: Apache+Tomcat+Windows, how?

2003-11-11 Thread adriacom6340
The best how to:
www.gregoire.org/howto/Apache2_Jk2_TC4.1.x_JSDK1.4.x.html

or:
http://johnturner.com/howto/winxp-howto.html

Mike

Found in jakarta

Scrive Bill Barker [EMAIL PROTECTED]:

 Go to http://jakarta.apache.org/site/binindex.cgi, scroll down to Tomcat
 WebServer Connectors, click on JK 1.2 Binary Releases, click on win32,
 and, what do you know ;-).
 
 Yeray Santana Borges [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
  Hi all,
 
  I´m a spanish newbie using Tomcat. My enviroment: Apache HTTP Server
 2.0.48,
  Jakarta Tomcat 4.1 and w2000 Server.
 
  I can´t connected the Apache Server and Tomcat. I get the binary
  distribution and i can´t find the mod_jk.so that i must include in the
  Apache web with LoadModule directive.
  I get the mod_jk.dll bat after edit http.conf my server don´t start
 because
  can find API in mod_jk.dll. I know that i must use Loadmodule something
   but i don´t know what.
 
  Anybody help me with this configuration? how can i do it?
 
  Thanks, sorry if my english is not correct, i´m a spanish student from
  Canary Island.
 
 
 
 
 -
 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: Apache+Tomcat+Windows, how?

2003-11-11 Thread Yeray Santana Borges
ok, thanks all

My problem is that i have apache web server 2.0.48 and the mod_jk.dll is
only for apache 2.0.43. I´m searching for other version of mod_jk.dll for
2.0.48 but i can´t find it. Other solution is download another version of
apache server that work with that dll.

Thanks for help me, at least i have could know what was my problem.

-Mensaje original-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Enviado el: martes, 11 de noviembre de 2003 8:55
Para: Tomcat Users List
Asunto: Re: Apache+Tomcat+Windows, how?


The best how to:
www.gregoire.org/howto/Apache2_Jk2_TC4.1.x_JSDK1.4.x.html

or:
http://johnturner.com/howto/winxp-howto.html

Mike

Found in jakarta

Scrive Bill Barker [EMAIL PROTECTED]:

 Go to http://jakarta.apache.org/site/binindex.cgi, scroll down to Tomcat
 WebServer Connectors, click on JK 1.2 Binary Releases, click on
win32,
 and, what do you know ;-).

 Yeray Santana Borges [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
  Hi all,
 
  I´m a spanish newbie using Tomcat. My enviroment: Apache HTTP Server
 2.0.48,
  Jakarta Tomcat 4.1 and w2000 Server.
 
  I can´t connected the Apache Server and Tomcat. I get the binary
  distribution and i can´t find the mod_jk.so that i must include in the
  Apache web with LoadModule directive.
  I get the mod_jk.dll bat after edit http.conf my server don´t start
 because
  can find API in mod_jk.dll. I know that i must use Loadmodule
something
   but i don´t know what.
 
  Anybody help me with this configuration? how can i do it?
 
  Thanks, sorry if my english is not correct, i´m a spanish student from
  Canary Island.




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



AW: Apache+Tomcat+Windows, how?

2003-11-11 Thread Nitschke Michael
Did you tried it?
I think and i read it on this list, that this is a bug/mistake in the description and 
it should mean 2.0.43 and above.
But read the archive before you try it.

Mike

-Ursprüngliche Nachricht-
Von: Yeray Santana Borges [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 11. November 2003 13:27
An: Tomcat Users List
Betreff: RE: Apache+Tomcat+Windows, how?

ok, thanks all

My problem is that i have apache web server 2.0.48 and the mod_jk.dll is
only for apache 2.0.43. I´m searching for other version of mod_jk.dll for
2.0.48 but i can´t find it. Other solution is download another version of
apache server that work with that dll.

Thanks for help me, at least i have could know what was my problem.

-Mensaje original-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Enviado el: martes, 11 de noviembre de 2003 8:55
Para: Tomcat Users List
Asunto: Re: Apache+Tomcat+Windows, how?


The best how to:
www.gregoire.org/howto/Apache2_Jk2_TC4.1.x_JSDK1.4.x.html

or:
http://johnturner.com/howto/winxp-howto.html

Mike

Found in jakarta

Scrive Bill Barker [EMAIL PROTECTED]:

 Go to http://jakarta.apache.org/site/binindex.cgi, scroll down to Tomcat
 WebServer Connectors, click on JK 1.2 Binary Releases, click on
win32,
 and, what do you know ;-).

 Yeray Santana Borges [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
  Hi all,
 
  I´m a spanish newbie using Tomcat. My enviroment: Apache HTTP Server
 2.0.48,
  Jakarta Tomcat 4.1 and w2000 Server.
 
  I can´t connected the Apache Server and Tomcat. I get the binary
  distribution and i can´t find the mod_jk.so that i must include in the
  Apache web with LoadModule directive.
  I get the mod_jk.dll bat after edit http.conf my server don´t start
 because
  can find API in mod_jk.dll. I know that i must use Loadmodule
something
   but i don´t know what.
 
  Anybody help me with this configuration? how can i do it?
 
  Thanks, sorry if my english is not correct, i´m a spanish student from
  Canary Island.




 -
 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: Apache+Tomcat+Windows, how?

2003-11-11 Thread Yeray Santana Borges
ok, well, i can't use mod_jk2-2.0.43.dll with Apache Web Server 2.0.48.
After edit http.conf i get this sintax error:

Syntax error on line 971 of httpd.conf:
Can't locate API module structure `jk_module' in file
/modules/mod_jk-2.2.0.43.dll:
 No error

no exist the jk_module in mod_jk-2.2.0.43.dll, what is this?, must compile i
and make my owner mod_jk.dll for work with this environment?, has anybody
work with this version of dll with Apache 2.0.48?

note: When i use the mod_jk1.2.5_2.0.47.dll with apache 2.0.48, it return
sintax ok from http.conf test and i can start apache web server


-Mensaje original-
De: Nitschke Michael [mailto:[EMAIL PROTECTED]
Enviado el: martes, 11 de noviembre de 2003 12:32
Para: Tomcat Users List
Asunto: AW: Apache+Tomcat+Windows, how?


Did you tried it?
I think and i read it on this list, that this is a bug/mistake in the
description and it should mean 2.0.43 and above.
But read the archive before you try it.

Mike

-Ursprüngliche Nachricht-
Von: Yeray Santana Borges [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 11. November 2003 13:27
An: Tomcat Users List
Betreff: RE: Apache+Tomcat+Windows, how?

ok, thanks all

My problem is that i have apache web server 2.0.48 and the mod_jk.dll is
only for apache 2.0.43. I´m searching for other version of mod_jk.dll for
2.0.48 but i can´t find it. Other solution is download another version of
apache server that work with that dll.

Thanks for help me, at least i have could know what was my problem.

-Mensaje original-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Enviado el: martes, 11 de noviembre de 2003 8:55
Para: Tomcat Users List
Asunto: Re: Apache+Tomcat+Windows, how?


The best how to:
www.gregoire.org/howto/Apache2_Jk2_TC4.1.x_JSDK1.4.x.html

or:
http://johnturner.com/howto/winxp-howto.html

Mike

Found in jakarta

Scrive Bill Barker [EMAIL PROTECTED]:

 Go to http://jakarta.apache.org/site/binindex.cgi, scroll down to Tomcat
 WebServer Connectors, click on JK 1.2 Binary Releases, click on
win32,
 and, what do you know ;-).

 Yeray Santana Borges [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
  Hi all,
 
  I´m a spanish newbie using Tomcat. My enviroment: Apache HTTP Server
 2.0.48,
  Jakarta Tomcat 4.1 and w2000 Server.
 
  I can´t connected the Apache Server and Tomcat. I get the binary
  distribution and i can´t find the mod_jk.so that i must include in the
  Apache web with LoadModule directive.
  I get the mod_jk.dll bat after edit http.conf my server don´t start
 because
  can find API in mod_jk.dll. I know that i must use Loadmodule
something
   but i don´t know what.
 
  Anybody help me with this configuration? how can i do it?
 
  Thanks, sorry if my english is not correct, i´m a spanish student from
  Canary Island.




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



apache + tomcat Jsp not working

2003-11-11 Thread Omkar Joshi
hi,

I have linux 9 with apache 2 preloaded and running applications,  I have 
tomcat 4.1.27 running stad alone.

i have installed mod_jk connector. and loaded in httpd.conf

created workers.properties

but the jsp dont work.

pease help me with exact configurations.

_
Access Hotmail from your mobile now. 
http://server1.msn.co.in/sp03/mobilesms/ Click here.

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


RE: Apache+Tomcat+Windows, how?

2003-11-11 Thread Asif Chowdhary
This will solve your problems.
The internal module name is different with modjk2 and 
the commands are different.

Below you have the config file you need to make it work.



I installed the mod_jk2-2.0.43.dll in apache/modules. Here is what I put 
into the diffrent config files:

httpd.conf: just one single row like this:
LoadModule jk2_module modules/mod_jk2-2.0.43.dll

Then I added a worker2.properties in Apache/conf/ like this:

[logger]
level=DEBUG
file=c:/programme/apache group/apache2/logs/jk2.log
[config]
file=c:/programme/apache group/apache2/conf/workers2.properties
debug=0
debugEnv=0
# Shared memory handling. Needs to be set.
[shm]
file=c:/programme/apache group/apache2/logs/shm.file
size=1048576
debug=0
#disabled=0

[channel.socket:localhost:8010]
port=8010
host=127.0.0.1
debug=0

# Example socket channel, explicitly set port and host.
# [channel.socket:localhost:8009]
# port=8009
# host=127.0.0.1
# Example UNIX domain socket
# [channel.un:/usr/local/tomcat/work/jk2.socket]
# tomcatId=localhost:8009
# debug=0
# define the worker
[ajp13:localhost:8010]
#channel=channel.un:/usr/local/pds/tomcat/work/jk2.socket
# To use the TCP/IP socket instead, just comment out the above
# line, and uncomment the one below
channel=channel.socket:localhost:8010

# define the worker
# Announce a status worker
# Uri mapping


[uri:/examples/*]
worker=ajp13:localhost:8010

[uri:/javaroom/*]
worker=ajp13:localhost:8010


[status:status]

[status:]
info=Status worker,displays run time informations

[uri:/jkstatus/*]
info=Display status information and checks the config file for changes.
worker=status:status

[uri:/status/*]
worker=status:status

# end of workers2.properties


-Original Message-
From: Yeray Santana Borges [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 11, 2003 8:21 AM
To: Tomcat Users List
Subject: RE: Apache+Tomcat+Windows, how?


ok, well, i can't use mod_jk2-2.0.43.dll with Apache Web Server 2.0.48.
After edit http.conf i get this sintax error:

Syntax error on line 971 of httpd.conf:
Can't locate API module structure `jk_module' in file
/modules/mod_jk-2.2.0.43.dll:
 No error

no exist the jk_module in mod_jk-2.2.0.43.dll, what is this?, must compile i
and make my owner mod_jk.dll for work with this environment?, has anybody
work with this version of dll with Apache 2.0.48?

note: When i use the mod_jk1.2.5_2.0.47.dll with apache 2.0.48, it return
sintax ok from http.conf test and i can start apache web server


-Mensaje original-
De: Nitschke Michael [mailto:[EMAIL PROTECTED]
Enviado el: martes, 11 de noviembre de 2003 12:32
Para: Tomcat Users List
Asunto: AW: Apache+Tomcat+Windows, how?


Did you tried it?
I think and i read it on this list, that this is a bug/mistake in the
description and it should mean 2.0.43 and above.
But read the archive before you try it.

Mike

-Ursprüngliche Nachricht-
Von: Yeray Santana Borges [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 11. November 2003 13:27
An: Tomcat Users List
Betreff: RE: Apache+Tomcat+Windows, how?

ok, thanks all

My problem is that i have apache web server 2.0.48 and the mod_jk.dll is
only for apache 2.0.43. I´m searching for other version of mod_jk.dll for
2.0.48 but i can´t find it. Other solution is download another version of
apache server that work with that dll.

Thanks for help me, at least i have could know what was my problem.

-Mensaje original-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Enviado el: martes, 11 de noviembre de 2003 8:55
Para: Tomcat Users List
Asunto: Re: Apache+Tomcat+Windows, how?


The best how to:
www.gregoire.org/howto/Apache2_Jk2_TC4.1.x_JSDK1.4.x.html

or:
http://johnturner.com/howto/winxp-howto.html

Mike

Found in jakarta

Scrive Bill Barker [EMAIL PROTECTED]:

 Go to http://jakarta.apache.org/site/binindex.cgi, scroll down to Tomcat
 WebServer Connectors, click on JK 1.2 Binary Releases, click on
win32,
 and, what do you know ;-).

 Yeray Santana Borges [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
  Hi all,
 
  I´m a spanish newbie using Tomcat. My enviroment: Apache HTTP Server
 2.0.48,
  Jakarta Tomcat 4.1 and w2000 Server.
 
  I can´t connected the Apache Server and Tomcat. I get the binary
  distribution and i can´t find the mod_jk.so that i must include in the
  Apache web with LoadModule directive.
  I get the mod_jk.dll bat after edit http.conf my server don´t start
 because
  can find API in mod_jk.dll. I know that i must use Loadmodule
something
   but i don´t know what.
 
  Anybody help me with this configuration? how can i do it?
 
  Thanks, sorry if my english is not correct, i´m a spanish student from
  Canary Island.




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






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

Re: Win2k+Apache+Tomcat Problems

2003-11-11 Thread Steve Milner
Out of curiosity why would 4.1.24/27 be any easier than 4.1.29? Is 
there currently issues with 4.1.29?

Thanks,
Steve
On Nov 10, 2003, at 11:19 PM, kgsat wrote:

why donot u try reading logs and make sure u make all the entries in 
conf
files as they are supposed to be.
If u can not spot the culprit change to 4.1.24/27 to work with.I am 
sure
this will do
good luck
sat
- Original Message -
From: Steve Milner [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, November 11, 2003 11:13 AM
Subject: Win2k+Apache+Tomcat Problems


I have installed Apache and Tomcat-4.1.29 on my Windows 2000 server. I
have followed the instructions from
http://www.johnturner.com/howto/winxp-howto.html (a how-to I was
pointed to by other admins) to a T and I can't get it to work. I can
point my browser to port 8080 of my server and get tomcat, but I get
nothing but an Apache error message not being able to find the file
when trying to get the same jsp from port 80 (Apache is using JKMount
directives which I was told to add later). One thing I noticed is that
Tomcat didn't make a apache-tomcat.conf file for me like the how-to
said it would. I tried starting apache first, and then second. I tried
restarting one or the other but they don't seem to communicate. I am
using mod_jk 1.2 , apache 1.3.x and Tomcat 4.1.29 with Tomcat and
mod_jk coming directly from the Jakarta binary site.
Basically, I'm not sure where or what is going wrong and what I should
do next. All help is greatly appreciated.
Steve


-
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: Apache+Tomcat+Windows, how?

2003-11-11 Thread Yeray Santana Borges
ok, thanks, i am working apache+tomcat over w2000 server. Thanks all again.

-Mensaje original-
De: Asif Chowdhary [mailto:[EMAIL PROTECTED]
Enviado el: martes, 11 de noviembre de 2003 14:05
Para: Tomcat Users List
Asunto: RE: Apache+Tomcat+Windows, how?


This will solve your problems.
The internal module name is different with modjk2 and
the commands are different.

Below you have the config file you need to make it work.



I installed the mod_jk2-2.0.43.dll in apache/modules. Here is what I put
into the diffrent config files:

httpd.conf: just one single row like this:
LoadModule jk2_module modules/mod_jk2-2.0.43.dll

Then I added a worker2.properties in Apache/conf/ like this:

[logger]
level=DEBUG
file=c:/programme/apache group/apache2/logs/jk2.log
[config]
file=c:/programme/apache group/apache2/conf/workers2.properties
debug=0
debugEnv=0
# Shared memory handling. Needs to be set.
[shm]
file=c:/programme/apache group/apache2/logs/shm.file
size=1048576
debug=0
#disabled=0

[channel.socket:localhost:8010]
port=8010
host=127.0.0.1
debug=0

# Example socket channel, explicitly set port and host.
# [channel.socket:localhost:8009]
# port=8009
# host=127.0.0.1
# Example UNIX domain socket
# [channel.un:/usr/local/tomcat/work/jk2.socket]
# tomcatId=localhost:8009
# debug=0
# define the worker
[ajp13:localhost:8010]
#channel=channel.un:/usr/local/pds/tomcat/work/jk2.socket
# To use the TCP/IP socket instead, just comment out the above
# line, and uncomment the one below
channel=channel.socket:localhost:8010

# define the worker
# Announce a status worker
# Uri mapping


[uri:/examples/*]
worker=ajp13:localhost:8010

[uri:/javaroom/*]
worker=ajp13:localhost:8010


[status:status]

[status:]
info=Status worker,displays run time informations

[uri:/jkstatus/*]
info=Display status information and checks the config file for changes.
worker=status:status

[uri:/status/*]
worker=status:status

# end of workers2.properties


-Original Message-
From: Yeray Santana Borges [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 11, 2003 8:21 AM
To: Tomcat Users List
Subject: RE: Apache+Tomcat+Windows, how?


ok, well, i can't use mod_jk2-2.0.43.dll with Apache Web Server 2.0.48.
After edit http.conf i get this sintax error:

Syntax error on line 971 of httpd.conf:
Can't locate API module structure `jk_module' in file
/modules/mod_jk-2.2.0.43.dll:
 No error

no exist the jk_module in mod_jk-2.2.0.43.dll, what is this?, must compile i
and make my owner mod_jk.dll for work with this environment?, has anybody
work with this version of dll with Apache 2.0.48?

note: When i use the mod_jk1.2.5_2.0.47.dll with apache 2.0.48, it return
sintax ok from http.conf test and i can start apache web server


-Mensaje original-
De: Nitschke Michael [mailto:[EMAIL PROTECTED]
Enviado el: martes, 11 de noviembre de 2003 12:32
Para: Tomcat Users List
Asunto: AW: Apache+Tomcat+Windows, how?


Did you tried it?
I think and i read it on this list, that this is a bug/mistake in the
description and it should mean 2.0.43 and above.
But read the archive before you try it.

Mike

-Ursprüngliche Nachricht-
Von: Yeray Santana Borges [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 11. November 2003 13:27
An: Tomcat Users List
Betreff: RE: Apache+Tomcat+Windows, how?

ok, thanks all

My problem is that i have apache web server 2.0.48 and the mod_jk.dll is
only for apache 2.0.43. I´m searching for other version of mod_jk.dll for
2.0.48 but i can´t find it. Other solution is download another version of
apache server that work with that dll.

Thanks for help me, at least i have could know what was my problem.

-Mensaje original-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Enviado el: martes, 11 de noviembre de 2003 8:55
Para: Tomcat Users List
Asunto: Re: Apache+Tomcat+Windows, how?


The best how to:
www.gregoire.org/howto/Apache2_Jk2_TC4.1.x_JSDK1.4.x.html

or:
http://johnturner.com/howto/winxp-howto.html

Mike

Found in jakarta

Scrive Bill Barker [EMAIL PROTECTED]:

 Go to http://jakarta.apache.org/site/binindex.cgi, scroll down to Tomcat
 WebServer Connectors, click on JK 1.2 Binary Releases, click on
win32,
 and, what do you know ;-).

 Yeray Santana Borges [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
  Hi all,
 
  I´m a spanish newbie using Tomcat. My enviroment: Apache HTTP Server
 2.0.48,
  Jakarta Tomcat 4.1 and w2000 Server.
 
  I can´t connected the Apache Server and Tomcat. I get the binary
  distribution and i can´t find the mod_jk.so that i must include in the
  Apache web with LoadModule directive.
  I get the mod_jk.dll bat after edit http.conf my server don´t start
 because
  can find API in mod_jk.dll. I know that i must use Loadmodule
something
   but i don´t know what.
 
  Anybody help me with this configuration? how can i do it?
 
  Thanks, sorry if my english is not correct, i´m a spanish student from
  Canary Island

apache + tomcat jsp not working--need help

2003-11-11 Thread Omkar Joshi
After setting up the configuration, apache does not forward the request to 
tomcat.

it searchs the jsp file in /var/www/html  location.

need help

From: Omkar Joshi [EMAIL PROTECTED]
Subject: apache + tomcat Jsp not working
Date: Tue, 11 Nov 2003 19:13:57 +0530
Content-Type: text/plain; format=flowed
hi,

I have linux 9 with apache 2 preloaded and running applications,  I have
tomcat 4.1.27 running stad alone.
i have installed mod_jk connector. and loaded in httpd.conf

created workers.properties

but the jsp dont work.

pease help me with exact configurations.

_
Are you an Elvis fan? Want to visit Heartbreak Hotel? 
http://server1.msn.co.in/sp03/elvis/ Here's how you can win a trip!

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


Apache Tomcat How to - server.xml, httpd.conf configuration help

2003-11-10 Thread Omkar Joshi
Hi,

I Have  Apache 2.0.4 and tomcat 4.1.27 + mod_jk installed successfully.

I followed procedure on

http://www.meritonlinesystems.com/docs/apache_tomcat_redhat.html

Can some body tell me what exact settings required for

server.xml, httpd.conf  virtual hosts

help me

_
Discover digital jadoo! Enter this contest. 
http://server1.msn.co.in/sp03/mediacenter/index.asp Win cool prizes!

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


Apache+Tomcat+Windows, how?

2003-11-10 Thread Yeray Santana Borges
Hi all,

I´m a spanish newbie using Tomcat. My enviroment: Apache HTTP Server 2.0.48,
Jakarta Tomcat 4.1 and w2000 Server.

I can´t connected the Apache Server and Tomcat. I get the binary
distribution and i can´t find the mod_jk.so that i must include in the
Apache web with LoadModule directive.
I get the mod_jk.dll bat after edit http.conf my server don´t start because
can find API in mod_jk.dll. I know that i must use Loadmodule something
 but i don´t know what.

Anybody help me with this configuration? how can i do it?

Thanks, sorry if my english is not correct, i´m a spanish student from
Canary Island.


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



apache + tomcat + ssl + mod_rewrite

2003-11-10 Thread Andrew Davis
I have a test server setup with Apache 1.3.27, Tomcat 4.1.27, and 
mod_jk2. Its all running on RH Linux ES 2.1.

Apache is setup on ports 80  443. The port 80 config has only the 
basics defined, then has a mod_rewrite rule to send *ALL* traffic to the 
same URL but via https. It also has mod_jk2 setup to forward all .jsp  
.do requests to tomcat. Tomcat is listening on ports 8080 and 8009.

All seems to work fine, but there's a hole. If I go to http://qa-wap1, I 
am properly redirected to https://qa-wap1. As I login, follow links, 
etc., I stay on the secure URL. However, if get into a secure URL... say 
https://qa-wap1/submitProfile.jsp and change the URL in my browser to 
http://qa-wap1:80/submitProfile.jsp and refresh the browser, the entire 
page (content and images, both) reloads and looks perfect. The obvious 
problem is that I just circumvented the secure URL concept. There's a 
hole somewhere that I haven't been able to plug. This occurs with 
multiple browsers.

Interestingly, I have an almost identical setup using Apache 1.3.26 and 
Resin via mod_caucho. The mod_rewrite rule is the same, but if I try to 
substitute the URL as mentioned above, it immediately puts me back on 
the secure URL as it should.

The relevant portions of the config files are below. I'm hoping someone 
can help me get byond this.

Relevant portion of httpd.conf:

VirtualHost qa-wap1:80
ServerName qa-wap1
ServerAlias qa-wap1.my.domain.com
ServerAdmin [EMAIL PROTECTED]
ErrorLog /var/log/httpd/qa-wap1_error_log
TransferLog /var/log/httpd/qa-wap1_access_log
CustomLog /var/log/httpd/qa-wap1_referer_log referer
CustomLog /var/log/httpd/qa-wap1_agent_log agent
#
RewriteEngine on
RewriteLogLevel 0
RewriteRule ^(.*) https://qa-wap1$1 [R=301]
/VirtualHost
VirtualHost qa-wap1:443
ServerName qa-wap1
ServerAlias qa-wap1.my.domain.com
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /usr/tomcat/webapps/Genvault
ErrorLog /var/log/httpd/qa-wap1_ssl_error_log
TransferLog /var/log/httpd/qa-wap1_ssl_access_log
CustomLog /var/log/httpd/qa-wap1_ssl_referer_log referer
CustomLog /var/log/httpd/qa-wap1_ssl_agent_log agent
DirectoryIndex index.htm
# SSL Options
SSLEngine on
SSLCipherSuite ALL:!ADH:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile /etc/httpd/certs/qa-wap1.crt
SSLCertificateKeyFile /etc/httpd/certs/qa-wap1.key
# End SSL Options
/VirtualHost
# Load mod_jk2
LoadModule jk2_module modules/mod_jk2.so
AddModule mod_jk2.c
Relevant portion of workers2.properties

#[logger.apache13]
#level=DEBUG
[shm]
file=/var/log/httpd/shm.file
size=1048576
[workerEnv:]
info=Global server options
timing=1
debug=0
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1
# define the worker
[ajp13:localhost:8009]
channel=channel.socket.localhost:8009
# Uri mapping

[uri:/*.jsp]
worker=ajp13:localhost:8009
[uri:/*.do]
worker=ajp13:localhost:8009
[uri:/servlet/*]
worker=ajp13:localhost:8009
[uri:/services/*]
worker=ajp13:localhost:8009
I'm not including my server.xml as I don't think its necessary, but I 
can if it will help. Most interestingly, I decided to circumvent the 
problem by setting a different DocumentRoot for the port 80 vhost, and 
having only a single index.html in the folder and have it do an 
immediate refresh to the secure URL (https://qa-wap1), plus I removed 
the rewrite rules. I would think that in doing this, if I change the URL 
to http://qa-wap1:80/submitProfile.jsp that I should get a 404 error. 
Unfortunately, I got the same results as above... the page loaded 
perfectly on the non-secure URL, except for the images.

And since I know someone will ask, when I change the URL 
(https://qa-wap1/submitProfile.jsp) to 
http://qa-wap1:80/submitProfile.jsp and refresh the browser, yes, the 
lock icon goes away. So its not a client caching issue.

--
Andrew Davis, Founder
SoCalLinuxSolutions
[EMAIL PROTECTED]
760-525-4689
SoCalLinuxSolutions.com
Linux Consultation  Integration Services
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: apache + tomcat + ssl + mod_rewrite

2003-11-10 Thread Erik Wright
If you really believe your mod_rewrite rule is properly configured to 
send *ALL* traffic to the same URL  but via https then:

I would double/triple check the access.log files to see if the request 
is actually getting served from the port 80 server.

If I visit www.foo.com and then change the address to www.bar.com and 
then click 'reload' in IE, it reloads www.foo.com. So I suspect that 
what you are seeing is that the browser is not doing what you expect it 
to do.

Next, I would run a packet sniffer (install ethereal, it's pretty easy) 
and actually check out the request being sent by your browser to port 
80. That should give you a better idea what the problem is.

I mean, if you haven't configured your port 80 apache to talk to Tomcat, 
then the page you are seeing in your browser can't be arriving from port 
80... simple as that, no?

- Erik

Andrew Davis wrote:

I have a test server setup with Apache 1.3.27, Tomcat 4.1.27, and 
mod_jk2. Its all running on RH Linux ES 2.1.

Apache is setup on ports 80  443. The port 80 config has only the 
basics defined, then has a mod_rewrite rule to send *ALL* traffic to 
the same URL but via https. It also has mod_jk2 setup to forward all 
.jsp  .do requests to tomcat. Tomcat is listening on ports 8080 and 
8009.

All seems to work fine, but there's a hole. If I go to http://qa-wap1, 
I am properly redirected to https://qa-wap1. As I login, follow links, 
etc., I stay on the secure URL. However, if get into a secure URL... 
say https://qa-wap1/submitProfile.jsp and change the URL in my browser 
to http://qa-wap1:80/submitProfile.jsp and refresh the browser, the 
entire page (content and images, both) reloads and looks perfect. The 
obvious problem is that I just circumvented the secure URL concept. 
There's a hole somewhere that I haven't been able to plug. This occurs 
with multiple browsers.

Interestingly, I have an almost identical setup using Apache 1.3.26 
and Resin via mod_caucho. The mod_rewrite rule is the same, but if I 
try to substitute the URL as mentioned above, it immediately puts me 
back on the secure URL as it should.

The relevant portions of the config files are below. I'm hoping 
someone can help me get byond this.

Relevant portion of httpd.conf:

VirtualHost qa-wap1:80
ServerName qa-wap1
ServerAlias qa-wap1.my.domain.com
ServerAdmin [EMAIL PROTECTED]
ErrorLog /var/log/httpd/qa-wap1_error_log
TransferLog /var/log/httpd/qa-wap1_access_log
CustomLog /var/log/httpd/qa-wap1_referer_log referer
CustomLog /var/log/httpd/qa-wap1_agent_log agent
#
RewriteEngine on
RewriteLogLevel 0
RewriteRule ^(.*) https://qa-wap1$1 [R=301]
/VirtualHost
VirtualHost qa-wap1:443
ServerName qa-wap1
ServerAlias qa-wap1.my.domain.com
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /usr/tomcat/webapps/Genvault
ErrorLog /var/log/httpd/qa-wap1_ssl_error_log
TransferLog /var/log/httpd/qa-wap1_ssl_access_log
CustomLog /var/log/httpd/qa-wap1_ssl_referer_log referer
CustomLog /var/log/httpd/qa-wap1_ssl_agent_log agent
DirectoryIndex index.htm
# SSL Options
SSLEngine on
SSLCipherSuite ALL:!ADH:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile /etc/httpd/certs/qa-wap1.crt
SSLCertificateKeyFile /etc/httpd/certs/qa-wap1.key
# End SSL Options
/VirtualHost
# Load mod_jk2
LoadModule jk2_module modules/mod_jk2.so
AddModule mod_jk2.c
Relevant portion of workers2.properties

#[logger.apache13]
#level=DEBUG
[shm]
file=/var/log/httpd/shm.file
size=1048576
[workerEnv:]
info=Global server options
timing=1
debug=0
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1
# define the worker
[ajp13:localhost:8009]
channel=channel.socket.localhost:8009
# Uri mapping

[uri:/*.jsp]
worker=ajp13:localhost:8009
[uri:/*.do]
worker=ajp13:localhost:8009
[uri:/servlet/*]
worker=ajp13:localhost:8009
[uri:/services/*]
worker=ajp13:localhost:8009
I'm not including my server.xml as I don't think its necessary, but I 
can if it will help. Most interestingly, I decided to circumvent the 
problem by setting a different DocumentRoot for the port 80 vhost, and 
having only a single index.html in the folder and have it do an 
immediate refresh to the secure URL (https://qa-wap1), plus I removed 
the rewrite rules. I would think that in doing this, if I change the 
URL to http://qa-wap1:80/submitProfile.jsp that I should get a 404 
error. Unfortunately, I got the same results as above... the page 
loaded perfectly on the non-secure URL, except for the images.

And since I know someone will ask, when I change the URL 
(https://qa-wap1/submitProfile.jsp) to 
http://qa-wap1:80/submitProfile.jsp and refresh the browser, yes, the 
lock icon goes away. So its not a client caching issue.



--
http://www.spectacle.ca/
The Online Source for Live Music in Montreal
.::514.286.1699::.


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


Re: Apache Tomcat How to - server.xml, httpd.conf configuration help

2003-11-10 Thread Andrew Beames
On Monday 10 Nov 2003 2:19 pm, Omkar Joshi wrote:
 I Have  Apache 2.0.4 and tomcat 4.1.27 + mod_jk installed successfully.
 I followed procedure on
 http://www.meritonlinesystems.com/docs/apache_tomcat_redhat.html
 Can some body tell me what exact settings required for
 server.xml, httpd.conf  virtual hosts

The instructions look pretty comprehensive. Exactly what problem are you 
having?

Andrew

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



Re: apache + tomcat + ssl + mod_rewrite

2003-11-10 Thread Andrew Davis
Thank you. Ironically, I realized I had forgotten a test. After going to 
a URL the normal way (https://qa-wap1/submitProfile.jsp), then changing 
the URL in the web browser to http://qa-wap1:80/submitProfile.jsp and 
reloading, the URL worked. I've mentioned this already. What I hadn't 
tried was clicking a link within the page. Doing so either took me back 
to the login screen or generated a 404 error.

Interestingly, the actual solution was found from the apache modules 
mailing list at: [EMAIL PROTECTED] A few replies reminded me 
that the loading order of modules *is* important. Since modules are 
loaded from bottom-to-top, I put the mod_jk2 entry above mod_rewrite (so 
mod_rewrite would load first), then restarted httpd. It now works 
perfectly. If I change https://qa-wap1/submitProfile.jsp to 
http://qa-wap1:80/submitProfile.jsp and refresh the browser, it goes 
back to the https site.

AD

Erik Wright wrote:

If you really believe your mod_rewrite rule is properly configured to 
send *ALL* traffic to the same URL  but via https then:

I would double/triple check the access.log files to see if the request 
is actually getting served from the port 80 server.

If I visit www.foo.com and then change the address to www.bar.com and 
then click 'reload' in IE, it reloads www.foo.com. So I suspect that 
what you are seeing is that the browser is not doing what you expect it 
to do.

Next, I would run a packet sniffer (install ethereal, it's pretty easy) 
and actually check out the request being sent by your browser to port 
80. That should give you a better idea what the problem is.

I mean, if you haven't configured your port 80 apache to talk to Tomcat, 
then the page you are seeing in your browser can't be arriving from port 
80... simple as that, no?

- Erik

Andrew Davis wrote:

I have a test server setup with Apache 1.3.27, Tomcat 4.1.27, and 
mod_jk2. Its all running on RH Linux ES 2.1.

Apache is setup on ports 80  443. The port 80 config has only the 
basics defined, then has a mod_rewrite rule to send *ALL* traffic to 
the same URL but via https. It also has mod_jk2 setup to forward all 
.jsp  .do requests to tomcat. Tomcat is listening on ports 8080 and 
8009.

All seems to work fine, but there's a hole. If I go to http://qa-wap1, 
I am properly redirected to https://qa-wap1. As I login, follow links, 
etc., I stay on the secure URL. However, if get into a secure URL... 
say https://qa-wap1/submitProfile.jsp and change the URL in my browser 
to http://qa-wap1:80/submitProfile.jsp and refresh the browser, the 
entire page (content and images, both) reloads and looks perfect. The 
obvious problem is that I just circumvented the secure URL concept. 
There's a hole somewhere that I haven't been able to plug. This occurs 
with multiple browsers.

Interestingly, I have an almost identical setup using Apache 1.3.26 
and Resin via mod_caucho. The mod_rewrite rule is the same, but if I 
try to substitute the URL as mentioned above, it immediately puts me 
back on the secure URL as it should.

The relevant portions of the config files are below. I'm hoping 
someone can help me get byond this.

Relevant portion of httpd.conf:

VirtualHost qa-wap1:80
ServerName qa-wap1
ServerAlias qa-wap1.my.domain.com
ServerAdmin [EMAIL PROTECTED]
ErrorLog /var/log/httpd/qa-wap1_error_log
TransferLog /var/log/httpd/qa-wap1_access_log
CustomLog /var/log/httpd/qa-wap1_referer_log referer
CustomLog /var/log/httpd/qa-wap1_agent_log agent
#
RewriteEngine on
RewriteLogLevel 0
RewriteRule ^(.*) https://qa-wap1$1 [R=301]
/VirtualHost
VirtualHost qa-wap1:443
ServerName qa-wap1
ServerAlias qa-wap1.my.domain.com
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /usr/tomcat/webapps/Genvault
ErrorLog /var/log/httpd/qa-wap1_ssl_error_log
TransferLog /var/log/httpd/qa-wap1_ssl_access_log
CustomLog /var/log/httpd/qa-wap1_ssl_referer_log referer
CustomLog /var/log/httpd/qa-wap1_ssl_agent_log agent
DirectoryIndex index.htm
# SSL Options
SSLEngine on
SSLCipherSuite ALL:!ADH:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile /etc/httpd/certs/qa-wap1.crt
SSLCertificateKeyFile /etc/httpd/certs/qa-wap1.key
# End SSL Options
/VirtualHost
# Load mod_jk2
LoadModule jk2_module modules/mod_jk2.so
AddModule mod_jk2.c
Relevant portion of workers2.properties

#[logger.apache13]
#level=DEBUG
[shm]
file=/var/log/httpd/shm.file
size=1048576
[workerEnv:]
info=Global server options
timing=1
debug=0
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1
# define the worker
[ajp13:localhost:8009]
channel=channel.socket.localhost:8009
# Uri mapping

[uri:/*.jsp]
worker=ajp13:localhost:8009
[uri:/*.do]
worker=ajp13:localhost:8009
[uri:/servlet/*]
worker=ajp13:localhost:8009
[uri:/services/*]
worker=ajp13:localhost:8009
I'm not including my server.xml as I don't think its necessary, but I 
can if it will help. Most interestingly, I decided to circumvent the 
problem by setting a different DocumentRoot for the port 80 vhost, and 
having only a single 

Win2k+Apache+Tomcat Problems

2003-11-10 Thread Steve Milner
I have installed Apache and Tomcat-4.1.29 on my Windows 2000 server. I 
have followed the instructions from 
http://www.johnturner.com/howto/winxp-howto.html (a how-to I was 
pointed to by other admins) to a T and I can't get it to work. I can 
point my browser to port 8080 of my server and get tomcat, but I get 
nothing but an Apache error message not being able to find the file 
when trying to get the same jsp from port 80 (Apache is using JKMount 
directives which I was told to add later). One thing I noticed is that 
Tomcat didn't make a apache-tomcat.conf file for me like the how-to 
said it would. I tried starting apache first, and then second. I tried 
restarting one or the other but they don't seem to communicate. I am 
using mod_jk 1.2 , apache 1.3.x and Tomcat 4.1.29 with Tomcat and 
mod_jk coming directly from the Jakarta binary site.

Basically, I'm not sure where or what is going wrong and what I should 
do next. All help is greatly appreciated.

Steve

Re: Win2k+Apache+Tomcat Problems

2003-11-10 Thread kgsat
why donot u try reading logs and make sure u make all the entries in conf
files as they are supposed to be.
If u can not spot the culprit change to 4.1.24/27 to work with.I am sure
this will do
good luck
sat
- Original Message - 
From: Steve Milner [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, November 11, 2003 11:13 AM
Subject: Win2k+Apache+Tomcat Problems


 I have installed Apache and Tomcat-4.1.29 on my Windows 2000 server. I
 have followed the instructions from
 http://www.johnturner.com/howto/winxp-howto.html (a how-to I was
 pointed to by other admins) to a T and I can't get it to work. I can
 point my browser to port 8080 of my server and get tomcat, but I get
 nothing but an Apache error message not being able to find the file
 when trying to get the same jsp from port 80 (Apache is using JKMount
 directives which I was told to add later). One thing I noticed is that
 Tomcat didn't make a apache-tomcat.conf file for me like the how-to
 said it would. I tried starting apache first, and then second. I tried
 restarting one or the other but they don't seem to communicate. I am
 using mod_jk 1.2 , apache 1.3.x and Tomcat 4.1.29 with Tomcat and
 mod_jk coming directly from the Jakarta binary site.

 Basically, I'm not sure where or what is going wrong and what I should
 do next. All help is greatly appreciated.

 Steve


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



Preconfigured Apache + Tomcat 4.1.27 + mod_jk

2003-11-06 Thread Omkar Joshi
Hi,

I have linux with Apache running -preconfigured with applications running in 
/var/www...

also i have tomcat 4.1.27 running on 8080 port with jsp application.

I went through  
http://www.johnturner.com/howto/apache2-tomcat4127-jk-rh9-howto.html

but dont no how to do this in case of preconfigured apache ? where should  
install the mod_jk ?

please help me.

_
Contact brides  grooms FREE! Only on www.shaadi.com. 
http://www.shaadi.com/ptnr.php?ptnr=hmltag Register now!

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


RE: [ANN] Apache Tomcat 4.1.29 Stable and Apache Tomcat 5.0.14 Beta released

2003-11-03 Thread Shapira, Yoav

Hi,
FYI, people, please don't use [ANN] threads for problem discussion.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Sriram N [mailto:[EMAIL PROTECTED]
Sent: Sunday, November 02, 2003 9:24 PM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: Re: [ANN] Apache Tomcat 4.1.29 Stable and Apache Tomcat 5.0.14
Beta released

Luigi,

Creating a Maven script would be a great idea. Since I've never used
Maven
before, this should give me something to start learning Maven with.

-- Sriram

--- Luigi Bai [EMAIL PROTECTED] wrote:
 Sriram,

 I have to admit I'm impressed by how politely you said RTFM. :-)
You're
 right; I had gotten out of the habit of reading the BUILDING file,
and
 I'd forgotten it was there. I'll make sure all my dependencies match
up
 by version and will try again. My guess is that I won't need to
rebuild
 (this isn't C++, after all) but will likely just need to drop the
right
 jars into place.

 Still points out how useful Maven would be, though. I have to be able
to
 build the dist from source; if I can't, then I can't audit the app
 properly.

 Thanks;
 Luigi

 Sriram N wrote:

  Hi:
 
  HAve you looked at
 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/BUILDING.txt
  ? This file contains information on building against different
versions
of
  Xerces.
 
  I have a dim recollection that the Xerces was changed recently,
though
I
 dont'
  remember if I read this for the 5.x series or the 4.x series.
 
  As a last resort to get to the bottom of the matter, you could
download
the
  binary release, and check the changelog.
 
  -- SRiram
 

 --
 A HREF=http://www.focalpoint.com/;Home Page/A
 education is what's left after what is learned is forgotten.
 -- b f skinner
 Luigi P. Bai   Focal Point Software, Inc.
 [EMAIL PROTECTED] 3701 Kirby Drive, Suite 512
 turning data into information  Houston, TX   77098
 (713) 215-1600 x 33#



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



__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: [ANN] Apache Tomcat 4.1.29 Stable and Apache Tomcat 5.0.14 Beta released

2003-11-03 Thread Jean-Francois Arcand
BTW, if you are building using the CVS branch, just look at 
jakarta-tomcat-5/build.property.default and search for Xerces. You will 
get the version used.

-- Jeanfrancois

Sriram N wrote:

Luigi,

Creating a Maven script would be a great idea. Since I've never used Maven
before, this should give me something to start learning Maven with.
-- Sriram

--- Luigi Bai [EMAIL PROTECTED] wrote:
 

Sriram,

I have to admit I'm impressed by how politely you said RTFM. :-) You're 
right; I had gotten out of the habit of reading the BUILDING file, and 
I'd forgotten it was there. I'll make sure all my dependencies match up 
by version and will try again. My guess is that I won't need to rebuild 
(this isn't C++, after all) but will likely just need to drop the right 
jars into place.

Still points out how useful Maven would be, though. I have to be able to 
build the dist from source; if I can't, then I can't audit the app 
properly.

Thanks;
Luigi
Sriram N wrote:

   

Hi:

HAve you looked at
 

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/BUILDING.txt
   

? This file contains information on building against different versions of
Xerces.
I have a dim recollection that the Xerces was changed recently, though I
 

dont'
   

remember if I read this for the 5.x series or the 4.x series.

As a last resort to get to the bottom of the matter, you could download the
binary release, and check the changelog.
-- SRiram

 

--
A HREF=http://www.focalpoint.com/;Home Page/A
education is what's left after what is learned is forgotten.
   -- b f skinner
Luigi P. Bai   Focal Point Software, Inc.
[EMAIL PROTECTED] 3701 Kirby Drive, Suite 512
turning data into information  Houston, TX   77098
   (713) 215-1600 x 33#


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



__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
-
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: RE: Connection Apache - Tomcat

2003-11-03 Thread por
This is the workers.properties,

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

Where do I check the servlet mappings?

Thanks,
-Peter



-Original Message-
From: Asif Chowdhary [EMAIL PROTECTED]
Sent: Mon, 3 Nov 2003 10:18:01 -0500
To:   Tomcat Users List [EMAIL PROTECTED]
Subject:  RE: Connection Apache - Tomcat

Did you add the URI in workers2.properties.
You have to have this context in this file

Once you add it should solve your problem.
Also check the servlet mappings.



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, November 03, 2003 10:10 AM
To: [EMAIL PROTECTED]
Subject: Connection Apache - Tomcat


I followed this excellet HOWTO;
http://www.johnturner.com/howto/apache2-tomcat4127-jk-rh9-howto.html

Everything is tested correctly.  I can browse localhost port 80 and port 8080, and run 
the test servlets.
(I can also browse www.ip.com port 80 and port 8080, and run the test servlets.)

I can't get it working with my servlet and I'm not sure what else to try?

This is the error message.
The requested URL /servlet/DBServlet was not found on this server.

This is the web page html,

FORM NAME=sell_login METHOD=GET
ACTION=../servlet/BookDBServlet
ONSUBMIT=return runLogin(this)

This is the path on the server for the servlet...
/opt/tomcat/webapps/bd/WEB-INF/classes

Re-starting tomcat re-creates this file as expected, 
/opt/tomcat/conf/auto/mod_jk.conf

Workers.properties is located in ;
/opt/tomcat/conf/jk/Workers.properties


Thanks,
-Peter

-
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: RE: RE: Connection Apache - Tomcat

2003-11-03 Thread por

This is my web.xml entry..

servlet
servlet-namekDBServlet/servlet-name
servlet-class
  org.apache.catalina.servlets.DBServlet
/servlet-class
init-param
param-namedebug/param-name
param-value0/param-value
/init-param
init-param
param-namelistings/param-name
param-valuetrue/param-value
/init-param
load-on-startup1/load-on-startup
/servlet


How can I determine what a servlets are loaded?


-Peter



-Original Message-
From: Lee, PaulNYC [EMAIL PROTECTED]
Sent: Mon, 3 Nov 2003 10:47:03 -0500
To:   'Tomcat Users List' [EMAIL PROTECTED]
Subject:  RE: RE: Connection Apache - Tomcat

Look in your apps web.xml and make sure your servlet is defined and mapped
to your url.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 03, 2003 10:42 AM
To: [EMAIL PROTECTED]
Subject: RE: RE: Connection Apache - Tomcat


This is the workers.properties,

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

Where do I check the servlet mappings?

Thanks,
-Peter



-Original Message-
From: Asif Chowdhary [EMAIL PROTECTED]
Sent: Mon, 3 Nov 2003 10:18:01 -0500
To:   Tomcat Users List [EMAIL PROTECTED]
Subject:  RE: Connection Apache - Tomcat

Did you add the URI in workers2.properties.
You have to have this context in this file

Once you add it should solve your problem.
Also check the servlet mappings.



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, November 03, 2003 10:10 AM
To: [EMAIL PROTECTED]
Subject: Connection Apache - Tomcat


I followed this excellet HOWTO;
http://www.johnturner.com/howto/apache2-tomcat4127-jk-rh9-howto.html

Everything is tested correctly.  I can browse localhost port 80 and port
8080, and run the test servlets. (I can also browse www.ip.com port 80 and
port 8080, and run the test servlets.)

I can't get it working with my servlet and I'm not sure what else to try?

This is the error message.
The requested URL /servlet/DBServlet was not found on this server.

This is the web page html,

FORM NAME=sell_login METHOD=GET
ACTION=../servlet/BookDBServlet
ONSUBMIT=return runLogin(this)

This is the path on the server for the servlet...
/opt/tomcat/webapps/bd/WEB-INF/classes

Re-starting tomcat re-creates this file as expected, 
/opt/tomcat/conf/auto/mod_jk.conf

Workers.properties is located in ; /opt/tomcat/conf/jk/Workers.properties


Thanks,
-Peter

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



RE: RE: RE: Connection Apache - Tomcat

2003-11-03 Thread Asif Chowdhary
Add this to your workers.properties file

[uri:/kDBServlet/*]
info=My kDB Servlet Mapping
context=/kDBServlet
debug=20

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, November 03, 2003 11:19 AM
To: [EMAIL PROTECTED]
Subject: RE: RE: RE: Connection Apache - Tomcat



This is my web.xml entry..

servlet
servlet-namekDBServlet/servlet-name
servlet-class
  org.apache.catalina.servlets.DBServlet
/servlet-class
init-param
param-namedebug/param-name
param-value0/param-value
/init-param
init-param
param-namelistings/param-name
param-valuetrue/param-value
/init-param
load-on-startup1/load-on-startup
/servlet


How can I determine what a servlets are loaded?


-Peter



-Original Message-
From: Lee, PaulNYC [EMAIL PROTECTED]
Sent: Mon, 3 Nov 2003 10:47:03 -0500
To:   'Tomcat Users List' [EMAIL PROTECTED]
Subject:  RE: RE: Connection Apache - Tomcat

Look in your apps web.xml and make sure your servlet is defined and mapped
to your url.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 03, 2003 10:42 AM
To: [EMAIL PROTECTED]
Subject: RE: RE: Connection Apache - Tomcat


This is the workers.properties,

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

Where do I check the servlet mappings?

Thanks,
-Peter



-Original Message-
From: Asif Chowdhary [EMAIL PROTECTED]
Sent: Mon, 3 Nov 2003 10:18:01 -0500
To:   Tomcat Users List [EMAIL PROTECTED]
Subject:  RE: Connection Apache - Tomcat

Did you add the URI in workers2.properties.
You have to have this context in this file

Once you add it should solve your problem.
Also check the servlet mappings.



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, November 03, 2003 10:10 AM
To: [EMAIL PROTECTED]
Subject: Connection Apache - Tomcat


I followed this excellet HOWTO;
http://www.johnturner.com/howto/apache2-tomcat4127-jk-rh9-howto.html

Everything is tested correctly.  I can browse localhost port 80 and port
8080, and run the test servlets. (I can also browse www.ip.com port 80 and
port 8080, and run the test servlets.)

I can't get it working with my servlet and I'm not sure what else to try?

This is the error message.
The requested URL /servlet/DBServlet was not found on this server.

This is the web page html,

FORM NAME=sell_login METHOD=GET
ACTION=../servlet/BookDBServlet
ONSUBMIT=return runLogin(this)

This is the path on the server for the servlet...
/opt/tomcat/webapps/bd/WEB-INF/classes

Re-starting tomcat re-creates this file as expected, 
/opt/tomcat/conf/auto/mod_jk.conf

Workers.properties is located in ; /opt/tomcat/conf/jk/Workers.properties


Thanks,
-Peter

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


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



RE: RE: RE: Connection Apache - Tomcat

2003-11-03 Thread Lee, Paul NYC
You have to declare and map every servlet in web.xml like below.  Also,
check out the documentation and the tomcat examples for more info.

servlet
   servlet-name
  servletToJsp
   /servlet-name
   servlet-class
  servletToJsp
   /servlet-class
servlet-mapping
   servlet-name
  servletToJsp
   /servlet-name
   url-pattern
  /servletToJsp
   /url-pattern
/servlet-mapping

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 03, 2003 11:19 AM
To: [EMAIL PROTECTED]
Subject: RE: RE: RE: Connection Apache - Tomcat



This is my web.xml entry..

servlet
servlet-namekDBServlet/servlet-name
servlet-class
  org.apache.catalina.servlets.DBServlet
/servlet-class
init-param
param-namedebug/param-name
param-value0/param-value
/init-param
init-param
param-namelistings/param-name
param-valuetrue/param-value
/init-param
load-on-startup1/load-on-startup
/servlet


How can I determine what a servlets are loaded?


-Peter



-Original Message-
From: Lee, PaulNYC [EMAIL PROTECTED]
Sent: Mon, 3 Nov 2003 10:47:03 -0500
To:   'Tomcat Users List' [EMAIL PROTECTED]
Subject:  RE: RE: Connection Apache - Tomcat

Look in your apps web.xml and make sure your servlet is defined and mapped
to your url.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 03, 2003 10:42 AM
To: [EMAIL PROTECTED]
Subject: RE: RE: Connection Apache - Tomcat


This is the workers.properties,

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

Where do I check the servlet mappings?

Thanks,
-Peter



-Original Message-
From: Asif Chowdhary [EMAIL PROTECTED]
Sent: Mon, 3 Nov 2003 10:18:01 -0500
To:   Tomcat Users List [EMAIL PROTECTED]
Subject:  RE: Connection Apache - Tomcat

Did you add the URI in workers2.properties.
You have to have this context in this file

Once you add it should solve your problem.
Also check the servlet mappings.



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, November 03, 2003 10:10 AM
To: [EMAIL PROTECTED]
Subject: Connection Apache - Tomcat


I followed this excellet HOWTO;
http://www.johnturner.com/howto/apache2-tomcat4127-jk-rh9-howto.html

Everything is tested correctly.  I can browse localhost port 80 and port
8080, and run the test servlets. (I can also browse www.ip.com port 80 and
port 8080, and run the test servlets.)

I can't get it working with my servlet and I'm not sure what else to try?

This is the error message.
The requested URL /servlet/DBServlet was not found on this server.

This is the web page html,

FORM NAME=sell_login METHOD=GET
ACTION=../servlet/BookDBServlet
ONSUBMIT=return runLogin(this)

This is the path on the server for the servlet...
/opt/tomcat/webapps/bd/WEB-INF/classes

Re-starting tomcat re-creates this file as expected, 
/opt/tomcat/conf/auto/mod_jk.conf

Workers.properties is located in ; /opt/tomcat/conf/jk/Workers.properties


Thanks,
-Peter

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

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



RE: RE: RE: RE: Connection Apache - Tomcat

2003-11-03 Thread por
this is what I added...

servlet
  servlet-nameDBServlet/servlet-name
  servlet-classDBServlet/servlet-class
/servlet


servlet-mapping
  servlet-nameDBServlet/servlet-name
  url-pattern/servlet/WEB-INF/classes/url-pattern
/servlet-mapping

I also noticed this line in catalina.out.  Is this right?

INFO: JK2: ajp13 listening on /0.0.0.0:8009

Where does it get this IP address?

-Peter



-Original Message-
From: Lee, PaulNYC [EMAIL PROTECTED]
Sent: Mon, 3 Nov 2003 11:45:05 -0500
To:   'Tomcat Users List' [EMAIL PROTECTED]
Subject:  RE: RE: RE: Connection Apache - Tomcat

You have to declare and map every servlet in web.xml like below.  Also,
check out the documentation and the tomcat examples for more info.

servlet
   servlet-name
  servletToJsp
   /servlet-name
   servlet-class
  servletToJsp
   /servlet-class
servlet-mapping
   servlet-name
  servletToJsp
   /servlet-name
   url-pattern
  /servletToJsp
   /url-pattern
/servlet-mapping

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 03, 2003 11:19 AM
To: [EMAIL PROTECTED]
Subject: RE: RE: RE: Connection Apache - Tomcat



This is my web.xml entry..

servlet
servlet-namekDBServlet/servlet-name
servlet-class
  org.apache.catalina.servlets.DBServlet
/servlet-class
init-param
param-namedebug/param-name
param-value0/param-value
/init-param
init-param
param-namelistings/param-name
param-valuetrue/param-value
/init-param
load-on-startup1/load-on-startup
/servlet


How can I determine what a servlets are loaded?


-Peter



-Original Message-
From: Lee, PaulNYC [EMAIL PROTECTED]
Sent: Mon, 3 Nov 2003 10:47:03 -0500
To:   'Tomcat Users List' [EMAIL PROTECTED]
Subject:  RE: RE: Connection Apache - Tomcat

Look in your apps web.xml and make sure your servlet is defined and mapped
to your url.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 03, 2003 10:42 AM
To: [EMAIL PROTECTED]
Subject: RE: RE: Connection Apache - Tomcat


This is the workers.properties,

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

Where do I check the servlet mappings?

Thanks,
-Peter



-Original Message-
From: Asif Chowdhary [EMAIL PROTECTED]
Sent: Mon, 3 Nov 2003 10:18:01 -0500
To:   Tomcat Users List [EMAIL PROTECTED]
Subject:  RE: Connection Apache - Tomcat

Did you add the URI in workers2.properties.
You have to have this context in this file

Once you add it should solve your problem.
Also check the servlet mappings.



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, November 03, 2003 10:10 AM
To: [EMAIL PROTECTED]
Subject: Connection Apache - Tomcat


I followed this excellet HOWTO;
http://www.johnturner.com/howto/apache2-tomcat4127-jk-rh9-howto.html

Everything is tested correctly.  I can browse localhost port 80 and port
8080, and run the test servlets. (I can also browse www.ip.com port 80 and
port 8080, and run the test servlets.)

I can't get it working with my servlet and I'm not sure what else to try?

This is the error message.
The requested URL /servlet/DBServlet was not found on this server.

This is the web page html,

FORM NAME=sell_login METHOD=GET
ACTION=../servlet/BookDBServlet
ONSUBMIT=return runLogin(this)

This is the path on the server for the servlet...
/opt/tomcat/webapps/bd/WEB-INF/classes

Re-starting tomcat re-creates this file as expected, 
/opt/tomcat/conf/auto/mod_jk.conf

Workers.properties is located in ; /opt/tomcat/conf/jk/Workers.properties


Thanks,
-Peter

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

-
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: RE: RE: RE: Connection Apache - Tomcat

2003-11-03 Thread Lee, Paul NYC
Url-pattern is what you will type in your url to access the servlet.  So
according to your info below, you will access your servlet with something
like http://localhost:8080/servlet/WEB-INF/classes.  

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 03, 2003 11:59 AM
To: [EMAIL PROTECTED]
Subject: RE: RE: RE: RE: Connection Apache - Tomcat


this is what I added...

servlet
  servlet-nameDBServlet/servlet-name
  servlet-classDBServlet/servlet-class
/servlet


servlet-mapping
  servlet-nameDBServlet/servlet-name
  url-pattern/servlet/WEB-INF/classes/url-pattern
/servlet-mapping

I also noticed this line in catalina.out.  Is this right?

INFO: JK2: ajp13 listening on /0.0.0.0:8009

Where does it get this IP address?

-Peter



-Original Message-
From: Lee, PaulNYC [EMAIL PROTECTED]
Sent: Mon, 3 Nov 2003 11:45:05 -0500
To:   'Tomcat Users List' [EMAIL PROTECTED]
Subject:  RE: RE: RE: Connection Apache - Tomcat

You have to declare and map every servlet in web.xml like below.  Also,
check out the documentation and the tomcat examples for more info.

servlet
   servlet-name
  servletToJsp
   /servlet-name
   servlet-class
  servletToJsp
   /servlet-class
servlet-mapping
   servlet-name
  servletToJsp
   /servlet-name
   url-pattern
  /servletToJsp
   /url-pattern
/servlet-mapping

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 03, 2003 11:19 AM
To: [EMAIL PROTECTED]
Subject: RE: RE: RE: Connection Apache - Tomcat



This is my web.xml entry..

servlet
servlet-namekDBServlet/servlet-name
servlet-class
  org.apache.catalina.servlets.DBServlet
/servlet-class
init-param
param-namedebug/param-name
param-value0/param-value
/init-param
init-param
param-namelistings/param-name
param-valuetrue/param-value
/init-param
load-on-startup1/load-on-startup
/servlet


How can I determine what a servlets are loaded?


-Peter



-Original Message-
From: Lee, PaulNYC [EMAIL PROTECTED]
Sent: Mon, 3 Nov 2003 10:47:03 -0500
To:   'Tomcat Users List' [EMAIL PROTECTED]
Subject:  RE: RE: Connection Apache - Tomcat

Look in your apps web.xml and make sure your servlet is defined and mapped
to your url.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 03, 2003 10:42 AM
To: [EMAIL PROTECTED]
Subject: RE: RE: Connection Apache - Tomcat


This is the workers.properties,

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

Where do I check the servlet mappings?

Thanks,
-Peter



-Original Message-
From: Asif Chowdhary [EMAIL PROTECTED]
Sent: Mon, 3 Nov 2003 10:18:01 -0500
To:   Tomcat Users List [EMAIL PROTECTED]
Subject:  RE: Connection Apache - Tomcat

Did you add the URI in workers2.properties.
You have to have this context in this file

Once you add it should solve your problem.
Also check the servlet mappings.



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, November 03, 2003 10:10 AM
To: [EMAIL PROTECTED]
Subject: Connection Apache - Tomcat


I followed this excellet HOWTO;
http://www.johnturner.com/howto/apache2-tomcat4127-jk-rh9-howto.html

Everything is tested correctly.  I can browse localhost port 80 and port
8080, and run the test servlets. (I can also browse www.ip.com port 80 and
port 8080, and run the test servlets.)

I can't get it working with my servlet and I'm not sure what else to try?

This is the error message.
The requested URL /servlet/DBServlet was not found on this server.

This is the web page html,

FORM NAME=sell_login METHOD=GET
ACTION=../servlet/BookDBServlet
ONSUBMIT=return runLogin(this)

This is the path on the server for the servlet...
/opt/tomcat/webapps/bd/WEB-INF/classes

Re-starting tomcat re-creates this file as expected, 
/opt/tomcat/conf/auto/mod_jk.conf

Workers.properties is located in ; /opt/tomcat/conf/jk/Workers.properties


Thanks,
-Peter

-
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

RE: RE: RE: RE: Connection Apache - Tomcat

2003-11-03 Thread Peter O'Reilly
I was set up correctly so, www.ip.com:8080 always brought back the tomcat 
default page and the examples work.

I want to be able to click a submit button and run a servlet, I tried this,

P ALIGN=CENTERFONT SIZE=3 /FONT/P
FORM NAME=sell_login METHOD=GET
ACTION=../servlet/BookDBServlet
ONSUBMIT=return runLogin(this)
and this,

P ALIGN=CENTERFONT SIZE=3 /FONT/P
FORM NAME=sell_login METHOD=GET
ACTION=www.ip.com/WEB-INF/classes/DBServlet
ONSUBMIT=return runLogin(this)
and this is what gets returned,

The requested URL /WEB-INF/classes/DBServlet was not found on this server.

--
Apache/2.0.48 (Unix) mod_jk/1.2.5 Server at www.ip.com Port 80
It seems the connector's is up and running, but I can't seem to pass the 
web page to the connection on catalina.

What steps can I take to resolve this?

Thanks,
Peter
At 01:24 PM 11/3/2003, you wrote:
Url-pattern is what you will type in your url to access the servlet.  So
according to your info below, you will access your servlet with something
like http://localhost:8080/servlet/WEB-INF/classes.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, November 03, 2003 11:59 AM
To: [EMAIL PROTECTED]
Subject: RE: RE: RE: RE: Connection Apache - Tomcat
this is what I added...

servlet
  servlet-nameDBServlet/servlet-name
  servlet-classDBServlet/servlet-class
/servlet
servlet-mapping
  servlet-nameDBServlet/servlet-name
  url-pattern/servlet/WEB-INF/classes/url-pattern
/servlet-mapping
I also noticed this line in catalina.out.  Is this right?

INFO: JK2: ajp13 listening on /0.0.0.0:8009

Where does it get this IP address?

-Peter



-Original Message-
From: Lee, PaulNYC [EMAIL PROTECTED]
Sent: Mon, 3 Nov 2003 11:45:05 -0500
To:   'Tomcat Users List' [EMAIL PROTECTED]
Subject:  RE: RE: RE: Connection Apache - Tomcat
You have to declare and map every servlet in web.xml like below.  Also,
check out the documentation and the tomcat examples for more info.
servlet
   servlet-name
  servletToJsp
   /servlet-name
   servlet-class
  servletToJsp
   /servlet-class
servlet-mapping
   servlet-name
  servletToJsp
   /servlet-name
   url-pattern
  /servletToJsp
   /url-pattern
/servlet-mapping
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, November 03, 2003 11:19 AM
To: [EMAIL PROTECTED]
Subject: RE: RE: RE: Connection Apache - Tomcat


This is my web.xml entry..

servlet
servlet-namekDBServlet/servlet-name
servlet-class
  org.apache.catalina.servlets.DBServlet
/servlet-class
init-param
param-namedebug/param-name
param-value0/param-value
/init-param
init-param
param-namelistings/param-name
param-valuetrue/param-value
/init-param
load-on-startup1/load-on-startup
/servlet
How can I determine what a servlets are loaded?

-Peter



-Original Message-
From: Lee, PaulNYC [EMAIL PROTECTED]
Sent: Mon, 3 Nov 2003 10:47:03 -0500
To:   'Tomcat Users List' [EMAIL PROTECTED]
Subject:  RE: RE: Connection Apache - Tomcat
Look in your apps web.xml and make sure your servlet is defined and mapped
to your url.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, November 03, 2003 10:42 AM
To: [EMAIL PROTECTED]
Subject: RE: RE: Connection Apache - Tomcat
This is the workers.properties,

worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
Where do I check the servlet mappings?

Thanks,
-Peter


-Original Message-
From: Asif Chowdhary [EMAIL PROTECTED]
Sent: Mon, 3 Nov 2003 10:18:01 -0500
To:   Tomcat Users List [EMAIL PROTECTED]
Subject:  RE: Connection Apache - Tomcat
Did you add the URI in workers2.properties.
You have to have this context in this file
Once you add it should solve your problem.
Also check the servlet mappings.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, November 03, 2003 10:10 AM
To: [EMAIL PROTECTED]
Subject: Connection Apache - Tomcat
I followed this excellet HOWTO;
http://www.johnturner.com/howto/apache2-tomcat4127-jk-rh9-howto.html
Everything is tested correctly.  I can browse localhost port 80 and port
8080, and run the test servlets. (I can also browse www.ip.com port 80 and
port 8080, and run the test servlets.)
I can't get it working with my servlet and I'm not sure what else to try?

This is the error message.
The requested URL /servlet/DBServlet was not found on this server.
This is the web page html,

FORM NAME=sell_login METHOD=GET
ACTION=../servlet/BookDBServlet
ONSUBMIT=return runLogin(this)
This is the path on the server for the servlet...
/opt/tomcat/webapps/bd/WEB-INF/classes
Re-starting tomcat re-creates this file as expected,
/opt/tomcat/conf/auto/mod_jk.conf

Re: RE: RE: RE: Connection Apache - Tomcat

2003-11-03 Thread Lian Tsai
Did you try  ACTION=www.ip.com:8080/servlet/'servletname'/DBServlet

Regards,
Lian
- Original Message -
From: Peter O'Reilly [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, November 03, 2003 2:09 PM
Subject: RE: RE: RE: RE: Connection Apache - Tomcat


 I was set up correctly so, www.ip.com:8080 always brought back the tomcat
 default page and the examples work.

 I want to be able to click a submit button and run a servlet, I tried
this,

  P ALIGN=CENTERFONT SIZE=3 /FONT/P
  FORM NAME=sell_login METHOD=GET
  ACTION=../servlet/BookDBServlet
  ONSUBMIT=return runLogin(this)

 and this,

  P ALIGN=CENTERFONT SIZE=3 /FONT/P
  FORM NAME=sell_login METHOD=GET
  ACTION=www.ip.com/WEB-INF/classes/DBServlet
  ONSUBMIT=return runLogin(this)

 and this is what gets returned,

 The requested URL /WEB-INF/classes/DBServlet was not found on this server.

 --
 Apache/2.0.48 (Unix) mod_jk/1.2.5 Server at www.ip.com Port 80

 It seems the connector's is up and running, but I can't seem to pass the
 web page to the connection on catalina.

 What steps can I take to resolve this?

 Thanks,
 Peter


 At 01:24 PM 11/3/2003, you wrote:
 Url-pattern is what you will type in your url to access the servlet.  So
 according to your info below, you will access your servlet with something
 like http://localhost:8080/servlet/WEB-INF/classes.
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Monday, November 03, 2003 11:59 AM
 To: [EMAIL PROTECTED]
 Subject: RE: RE: RE: RE: Connection Apache - Tomcat
 
 
 this is what I added...
 
 servlet
servlet-nameDBServlet/servlet-name
servlet-classDBServlet/servlet-class
 /servlet
 
 
 servlet-mapping
servlet-nameDBServlet/servlet-name
url-pattern/servlet/WEB-INF/classes/url-pattern
 /servlet-mapping
 
 I also noticed this line in catalina.out.  Is this right?
 
 INFO: JK2: ajp13 listening on /0.0.0.0:8009
 
 Where does it get this IP address?
 
 -Peter
 
 
 
 -Original Message-
 From: Lee, PaulNYC [EMAIL PROTECTED]
 Sent: Mon, 3 Nov 2003 11:45:05 -0500
 To:   'Tomcat Users List' [EMAIL PROTECTED]
 Subject:  RE: RE: RE: Connection Apache - Tomcat
 
 You have to declare and map every servlet in web.xml like below.  Also,
 check out the documentation and the tomcat examples for more info.
 
 servlet
 servlet-name
servletToJsp
 /servlet-name
 servlet-class
servletToJsp
 /servlet-class
 servlet-mapping
 servlet-name
servletToJsp
 /servlet-name
 url-pattern
/servletToJsp
 /url-pattern
 /servlet-mapping
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Monday, November 03, 2003 11:19 AM
 To: [EMAIL PROTECTED]
 Subject: RE: RE: RE: Connection Apache - Tomcat
 
 
 
 This is my web.xml entry..
 
  servlet
  servlet-namekDBServlet/servlet-name
  servlet-class
org.apache.catalina.servlets.DBServlet
  /servlet-class
  init-param
  param-namedebug/param-name
  param-value0/param-value
  /init-param
  init-param
  param-namelistings/param-name
  param-valuetrue/param-value
  /init-param
  load-on-startup1/load-on-startup
  /servlet
 
 
 How can I determine what a servlets are loaded?
 
 
 -Peter
 
 
 
 -Original Message-
 From: Lee, PaulNYC [EMAIL PROTECTED]
 Sent: Mon, 3 Nov 2003 10:47:03 -0500
 To:   'Tomcat Users List' [EMAIL PROTECTED]
 Subject:  RE: RE: Connection Apache - Tomcat
 
 Look in your apps web.xml and make sure your servlet is defined and
mapped
 to your url.
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Monday, November 03, 2003 10:42 AM
 To: [EMAIL PROTECTED]
 Subject: RE: RE: Connection Apache - Tomcat
 
 
 This is the workers.properties,
 
 worker.list=ajp13
 worker.ajp13.port=8009
 worker.ajp13.host=localhost
 worker.ajp13.type=ajp13
 
 Where do I check the servlet mappings?
 
 Thanks,
 -Peter
 
 
 
 -Original Message-
 From: Asif Chowdhary [EMAIL PROTECTED]
 Sent: Mon, 3 Nov 2003 10:18:01 -0500
 To:   Tomcat Users List [EMAIL PROTECTED]
 Subject:  RE: Connection Apache - Tomcat
 
 Did you add the URI in workers2.properties.
 You have to have this context in this file
 
 Once you add it should solve your problem.
 Also check the servlet mappings.
 
 
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Monday, November 03, 2003 10:10 AM
 To: [EMAIL PROTECTED]
 Subject: Connection Apache - Tomcat
 
 
 I followed this excellet HOWTO;
 http://www.johnturner.com/howto/apache2-tomcat4127-jk-rh9-howto.html
 
 Everything is tested correctly.  I can browse localhost port 80 and port
 8080, and run the test servlets. (I can also browse www.ip.com port 80
and
 port

Re: [ANN] Apache Tomcat 4.1.29 Stable and Apache Tomcat 5.0.14 Beta released

2003-11-02 Thread Sriram N
Hi:

HAve you looked at http://jakarta.apache.org/tomcat/tomcat-4.1-doc/BUILDING.txt
? This file contains information on building against different versions of
Xerces.

I have a dim recollection that the Xerces was changed recently, though I dont'
remember if I read this for the 5.x series or the 4.x series.

As a last resort to get to the bottom of the matter, you could download the
binary release, and check the changelog.

-- SRiram

--- Luigi Bai [EMAIL PROTECTED] wrote:
 Sriram,
 
 It took me a while to figure out where you were going with your 
 question. No, I did not download a tar-gzip distribution; I built 4.1.29 
 from the (tagged) CVS source (which right there may be part of the 
 problem). I used the versions of commons-* etc from the 4.1.27 
 distribution that I had been using; it seems that making Tomcat build 
 with Maven (and its support for specific versions of third party jars) 
 would be really a big help here. And I confirmed that the DTDs in 
 servlet-api.jar are intact.
 
 What version of Xerces does 4.1.29 depend on? It may be that using the 
 Xerces parser from 4.1.27 is too old? I really can't think of any other 
 reason why Digester would barf on session-timeout with a parse error.
 
 Luigi
 
 Sriram N wrote:
 
  Hi,
  
  Have you downloaded a tgz by chance ?
  
  If you have, then use Winzip on windows, or the tar command from the
 command
  line, to uncompress Tomcat. Any other application may not uncompress the
 tgz
  correctly. e.g. I used the File Roller application that comes with Redhat
 9,
  and it does not extract all files correctly.
  
  The tar command you could use is
  
  tar -xzvf jakarta-tomcat4.1.29
  
  -- Sriram
  
  --- Luigi Bai [EMAIL PROTECTED] wrote:
  
 I'm using 4.1.29 as CATALINA_HOME, and am seeing a strange error. The 
 line in the default web.xml file points to the session-timeout 
 element; so does the referenced line in the application web.xml file. If 
 I comment out _both_ the context will start. I checked the DTD in 
 servlet-api.jar and it looks fine.
 
 In CATALINA_HOME/server/lib, the commons-logging.jar file has 
 impl.Log4jFactory.class and impl.Log4jLogger.class. These are loaded 
 because I have a copy of log4j-1.2.8 in the directory.
 
 Using 4.1.27 as CATALINA_HOME I have no problems either.
 
 Any ideas on where to look?
 
 Thanks;
 Luigi
 
 2003-10-31 21:02:32 ContextConfig[/blog] Parse error in default web.xml
 org.apache.commons.logging.LogConfigurationException: 
 java.lang.ClassNotFoundException: 
 org.apache.commons.logging.impl.Log4jFactory
 at 
 org.apache.commons.digester.Digester.createSAXException(Digester.java:2583)
 at 
 org.apache.commons.digester.Digester.createSAXException(Digester.java:2609)
 at org.apache.commons.digester.Digester.endElement(Digester.java:1061)
 at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
 at org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown 
 Source)
 at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown 
 Source)
 at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source)
 at 

org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown
 
 Source)
 at 
 
  
 

org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
  
 Source)
 at 
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
 Source)
 at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
 at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
 at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
 at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
 at org.apache.commons.digester.Digester.parse(Digester.java:1546)
 at 
 
  
 

org.apache.catalina.startup.ContextConfig.defaultConfig(ContextConfig.java:548)
  
 at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:638)
 at 
 
  
 

org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:243)
  
 at 
 
  
 

org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
  
 at 
 org.apache.catalina.core.StandardContext.start(StandardContext.java:3582)
 at 
 
  
 

org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)
  
 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
 at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
 at 
 
  
 

org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.java:700)
  
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at 

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at 
 
  
 

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  
 at java.lang.reflect.Method.invoke(Method.java:324)
 at 
 

Re: [ANN] Apache Tomcat 4.1.29 Stable and Apache Tomcat 5.0.14 Beta released

2003-11-02 Thread Luigi Bai
Sriram,

I have to admit I'm impressed by how politely you said RTFM. :-) You're 
right; I had gotten out of the habit of reading the BUILDING file, and 
I'd forgotten it was there. I'll make sure all my dependencies match up 
by version and will try again. My guess is that I won't need to rebuild 
(this isn't C++, after all) but will likely just need to drop the right 
jars into place.

Still points out how useful Maven would be, though. I have to be able to 
build the dist from source; if I can't, then I can't audit the app 
properly.

Thanks;
Luigi
Sriram N wrote:

Hi:

HAve you looked at http://jakarta.apache.org/tomcat/tomcat-4.1-doc/BUILDING.txt
? This file contains information on building against different versions of
Xerces.
I have a dim recollection that the Xerces was changed recently, though I dont'
remember if I read this for the 5.x series or the 4.x series.
As a last resort to get to the bottom of the matter, you could download the
binary release, and check the changelog.
-- SRiram

--
A HREF=http://www.focalpoint.com/;Home Page/A
education is what's left after what is learned is forgotten.
   -- b f skinner
Luigi P. Bai   Focal Point Software, Inc.
[EMAIL PROTECTED] 3701 Kirby Drive, Suite 512
turning data into information  Houston, TX   77098
   (713) 215-1600 x 33#


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


Re: [ANN] Apache Tomcat 4.1.29 Stable and Apache Tomcat 5.0.14 Beta released

2003-11-02 Thread Sriram N
Luigi,

Creating a Maven script would be a great idea. Since I've never used Maven
before, this should give me something to start learning Maven with.

-- Sriram

--- Luigi Bai [EMAIL PROTECTED] wrote:
 Sriram,
 
 I have to admit I'm impressed by how politely you said RTFM. :-) You're 
 right; I had gotten out of the habit of reading the BUILDING file, and 
 I'd forgotten it was there. I'll make sure all my dependencies match up 
 by version and will try again. My guess is that I won't need to rebuild 
 (this isn't C++, after all) but will likely just need to drop the right 
 jars into place.
 
 Still points out how useful Maven would be, though. I have to be able to 
 build the dist from source; if I can't, then I can't audit the app 
 properly.
 
 Thanks;
 Luigi
 
 Sriram N wrote:
 
  Hi:
  
  HAve you looked at
 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/BUILDING.txt
  ? This file contains information on building against different versions of
  Xerces.
  
  I have a dim recollection that the Xerces was changed recently, though I
 dont'
  remember if I read this for the 5.x series or the 4.x series.
  
  As a last resort to get to the bottom of the matter, you could download the
  binary release, and check the changelog.
  
  -- SRiram
  
 
 -- 
 A HREF=http://www.focalpoint.com/;Home Page/A
 education is what's left after what is learned is forgotten.
 -- b f skinner
 Luigi P. Bai   Focal Point Software, Inc.
 [EMAIL PROTECTED] 3701 Kirby Drive, Suite 512
 turning data into information  Houston, TX   77098
 (713) 215-1600 x 33#
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



Apache/Tomcat Tieing Issue Still Exists

2003-11-01 Thread mtorgler
Hi Again All

Thought I'd give this one more try.

I've tried a few more config changes, but went back to these original ones 
because nothing seems to work.  I'm still getting the shm.init error in my 
logs, and the apache and tomcat still aren't tieing together.

Does the shm.init error stop Apache from processing the rest of the 
workers2.properties, or does the server just keep on going?

I've got all my config info below, any  and all comments are appreciated.

Thanks Again.  

-- INFO ---

Apache 2.047 and Tomcat 4.1.27 configured on XP machine as a localhost 
service using jk2 configs. 

Followed the directions on the following page: 
http://www.greenfieldresearch.ca/te...jk2_config.html 

The two services work individually, all configs are done, but the two 
servers just don't tie together. 

My jk2.properties on Tomcat is a single line: 
 
#Shared memory directive 
shm.file=c:/Apache/Apache2/logs/jk2.shm 
 

My workers2.properties with Apache looks like the following: 
-
- 
#define the shared memory file 
[shm] 
file=c:/Apache/Apache2/logs/jk2.shm 
size=100 

# Define the communication channel 
[channel.socket:localhost:8009] 
port=8009 
#host=127.0.0.1 
tomcatId=localhost:8009 
debug=1 


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

# Map the Tomcat examples webapp to the Web server uri space 
[uri:/examples/*] 
info=C:/Apache/Tomcat/webapps/examples/ 

[uri:/servlet/*] 
info=C:/Apache/Tomcat/webapps/ 

[status:status] 
info=Status worker, displays runtime information 
channel=channel.socket:localhost:8009 

[uri:/jkstatus/*] 
info=Display status information and checks the config file for changes. 
group=status: 
worker=status:status 

[uri:/status/*] 
worker=status:localhost:8009 
group=status: 
 

For reference, I uploaded the bigger docs: 
servers.xml: http://torgler.net/docs/server.xml 
workers2.properties: http://torgler.net/docs/workers2.properties 
httpd.conf: http://torgler.net/docs/httpd.conf 

Not sure if these would help or not, the stderr.log outs from the Tomcat 
startup, which looked fine to me 

Created catalinaLoader in: C:\Apache\Tomcat\server\lib 
Oct 30, 2003 8:17:32 PM org.apache.commons.modeler.Registry loadRegistry 
INFO: Loading registry information 
Oct 30, 2003 8:17:32 PM org.apache.commons.modeler.Registry getRegistry 
INFO: Creating new Registry instance 
Oct 30, 2003 8:17:33 PM org.apache.commons.modeler.Registry getServer 
INFO: Creating MBeanServer 
Oct 30, 2003 8:17:35 PM org.apache.coyote.http11.Http11Protocol init 
INFO: Initializing Coyote HTTP/1.1 on port 8009 
Oct 30, 2003 8:17:39 PM org.apache.struts.util.PropertyMessageResources 
init 
INFO: Initializing, config='org.apache.struts.util.LocalStrings', 
returnNull=true 
Oct 30, 2003 8:17:39 PM org.apache.struts.util.PropertyMessageResources 
init 
INFO: Initializing, config='org.apache.struts.action.ActionResources', 
returnNull=true 
Oct 30, 2003 8:17:40 PM org.apache.struts.util.PropertyMessageResources 
init 
INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', 
returnNull=true 
Oct 30, 2003 8:17:45 PM org.apache.coyote.http11.Http11Protocol start 
INFO: Starting Coyote HTTP/1.1 on port 8009

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



Re: [ANN] Apache Tomcat 4.1.29 Stable and Apache Tomcat 5.0.14 Beta released

2003-11-01 Thread Luigi Bai
Sriram,

It took me a while to figure out where you were going with your 
question. No, I did not download a tar-gzip distribution; I built 4.1.29 
from the (tagged) CVS source (which right there may be part of the 
problem). I used the versions of commons-* etc from the 4.1.27 
distribution that I had been using; it seems that making Tomcat build 
with Maven (and its support for specific versions of third party jars) 
would be really a big help here. And I confirmed that the DTDs in 
servlet-api.jar are intact.

What version of Xerces does 4.1.29 depend on? It may be that using the 
Xerces parser from 4.1.27 is too old? I really can't think of any other 
reason why Digester would barf on session-timeout with a parse error.

Luigi

Sriram N wrote:

Hi,

Have you downloaded a tgz by chance ?

If you have, then use Winzip on windows, or the tar command from the command
line, to uncompress Tomcat. Any other application may not uncompress the tgz
correctly. e.g. I used the File Roller application that comes with Redhat 9,
and it does not extract all files correctly.
The tar command you could use is

tar -xzvf jakarta-tomcat4.1.29

-- Sriram

--- Luigi Bai [EMAIL PROTECTED] wrote:

I'm using 4.1.29 as CATALINA_HOME, and am seeing a strange error. The 
line in the default web.xml file points to the session-timeout 
element; so does the referenced line in the application web.xml file. If 
I comment out _both_ the context will start. I checked the DTD in 
servlet-api.jar and it looks fine.

In CATALINA_HOME/server/lib, the commons-logging.jar file has 
impl.Log4jFactory.class and impl.Log4jLogger.class. These are loaded 
because I have a copy of log4j-1.2.8 in the directory.

Using 4.1.27 as CATALINA_HOME I have no problems either.

Any ideas on where to look?

Thanks;
Luigi
2003-10-31 21:02:32 ContextConfig[/blog] Parse error in default web.xml
org.apache.commons.logging.LogConfigurationException: 
java.lang.ClassNotFoundException: 
org.apache.commons.logging.impl.Log4jFactory
	at 
org.apache.commons.digester.Digester.createSAXException(Digester.java:2583)
	at 
org.apache.commons.digester.Digester.createSAXException(Digester.java:2609)
	at org.apache.commons.digester.Digester.endElement(Digester.java:1061)
	at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
	at org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown 
Source)
	at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown 
Source)
	at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source)
	at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown 
Source)
	at 

org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown

Source)
	at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
	at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
	at org.apache.commons.digester.Digester.parse(Digester.java:1546)
	at 

org.apache.catalina.startup.ContextConfig.defaultConfig(ContextConfig.java:548)

	at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:638)
	at 

org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:243)

	at 

org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)

	at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:3582)
	at 

org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)

	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
	at 

org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.java:700)

	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at 

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

	at java.lang.reflect.Method.invoke(Method.java:324)
	at 
org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:258)
	at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256)
	at org.apache.commons.digester.Rule.end(Rule.java:276)
	at org.apache.commons.digester.Digester.endElement(Digester.java:1058)
	at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
	at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown 
Source)
	at 

org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown

Source)
	at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
	at 

Debug Help with Apache Tomcat, on WinXP

2003-10-31 Thread mtorgler
Hey All

I have both Apache 2.047 and Tomcat 4.1.27 configured on my XP machine as a 
localhost service using jk2 configs.  

I followed the directions on the following page:
http://www.greenfieldresearch.ca/technical/jk2_config.html

The two services work individually, all configs are done, but the two 
servers just don't tie together.

My thought is that there is a problem with the way I put together the shm 
file.  In my error.log, Apache is crapping on the shm.create() call:

[Thu Oct 30 20:17:38 2003] [error] shm.init(): No file

But the file is there, I'm not sure how to make it readable/writable to the 
service if that's the problem.

Any help someone could give would be greatly appreciated, THANKS!

Below here are my configs:

My jk2.properties on Tomcat is a single line:



#Shared memory directive
shm.file=c:/Apache/Apache2/logs/jk2.shm 



My workers2.properties with Apache looks like the following:

-
#define the shared memory file
[shm]
  file=c:/Apache/Apache2/logs/jk2.shm
  size=100

# Define the communication channel
[channel.socket:localhost:8009]
port=8009
#host=127.0.0.1
tomcatId=localhost:8009
debug=1

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

# Map the Tomcat examples webapp to the Web server uri space
[uri:/examples/*]
info=C:/Apache/Tomcat/webapps/examples/

[uri:/servlet/*]
info=C:/Apache/Tomcat/webapps/


[status:status]
info=Status worker, displays runtime information
channel=channel.socket:localhost:8009

[uri:/jkstatus/*]
info=Display status information and checks the config file for changes.
group=status:
worker=status:status

[uri:/status/*]
worker=status:localhost:8009
group=status: 


For reference, I uploaded the bigger docs:
servers.xml:  http://torgler.net/docs/server.xml

workers2.properties: http://torgler.net/docs/workers2.properties

httpd.conf: http://torgler.net/docs/httpd.conf

Also, not sure if these would help or not, the stderr.log outs from the 
Tomcat startup, which looked fine to me

Created catalinaLoader in: C:\Apache\Tomcat\server\lib
Oct 30, 2003 8:17:32 PM org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
Oct 30, 2003 8:17:32 PM org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
Oct 30, 2003 8:17:33 PM org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
Oct 30, 2003 8:17:35 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8009
Oct 30, 2003 8:17:39 PM org.apache.struts.util.PropertyMessageResources 
lt;initgt;
INFO: Initializing, config='org.apache.struts.util.LocalStrings', 
returnNull=true
Oct 30, 2003 8:17:39 PM org.apache.struts.util.PropertyMessageResources 
lt;initgt;
INFO: Initializing, config='org.apache.struts.action.ActionResources', 
returnNull=true
Oct 30, 2003 8:17:40 PM org.apache.struts.util.PropertyMessageResources 
lt;initgt;
INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', 
returnNull=true
Oct 30, 2003 8:17:45 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 8009/font/p



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



Re: [ANN] Apache Tomcat 4.1.29 Stable and Apache Tomcat 5.0.14 Beta released

2003-10-31 Thread Vic Cekvenich
I speak for many: THANK YOU

Remy Maucherat wrote:
The Tomcat Team announces the immediate availability of Apache Tomcat
4.1.29 Stable and Apache Tomcat 5.0.14 Beta.
Please refer to the changelog for the list of changes.

Downloads:
Binaries: http://jakarta.apache.org/site/binindex.cgi
Sources: http://jakarta.apache.org/site/sourceindex.cgi
The Apache Tomcat Team
--
Victor Cekvenich,
Struts Instructor
(215) 321-9146
Advanced Struts Training
http://basebeans.com/do/cmsPg?content=TRAINING Server Side Java
training with Rich UI, mentoring, designs, samples and project recovery
in North East.
Simple best practice basic Portal, a Struts CMS, Membership, Forums,
Shopping and Credit processing, http://basicportal.com software, ready
to develop/customize; requires a db to run.


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


Re: [ANN] Apache Tomcat 4.1.29 Stable and Apache Tomcat 5.0.14 Beta released

2003-10-31 Thread Remy Maucherat
Vic Cekvenich wrote:

I speak for many: THANK YOU
You're welcome :)
Hopefully 4.1.29 will be a good release.
--
x
Rémy Maucherat
Senior Developer  Consultant
JBoss Group (Europe) SàRL
x
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Apache Tomcat 4.1.29 and Sysdeo plugin

2003-10-31 Thread Carlos Cajina - Hotmail
Playing today with the new Apache Tomcat release I found that the plugin had
trouble starting Tomcat within the Eclipse IDE... but also found out that
the plugin must be configured to use Tomcat Version 5.x
(WindowsPreferencesTomcatTomcat versions radio buttons) instead of
version 4.1.x (even though you have 4.1.29 installed) to work as expected...

I allready sent this comment to the guys at Sysdeo, but just in case someone
here ran into the same problem the above setting will do the trick... If
anyone can shed some light on why could this be happening I would be very
happy :-)

God luck... have a nice weekend...

Regards,

Carlos

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



Re: [ANN] Apache Tomcat 4.1.29 Stable and Apache Tomcat 5.0.14 Beta released

2003-10-31 Thread Luigi Bai
)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
	at 
org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at 
org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245)
	at 
org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)

Remy Maucherat wrote:

The Tomcat Team announces the immediate availability of Apache Tomcat
4.1.29 Stable and Apache Tomcat 5.0.14 Beta.
Please refer to the changelog for the list of changes.

Downloads:
Binaries: http://jakarta.apache.org/site/binindex.cgi
Sources: http://jakarta.apache.org/site/sourceindex.cgi
The Apache Tomcat Team

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
A HREF=http://www.focalpoint.com/;Home Page/A
education is what's left after what is learned is forgotten.
   -- b f skinner
Luigi P. Bai   Focal Point Software, Inc.
[EMAIL PROTECTED] 3701 Kirby Drive, Suite 512
turning data into information  Houston, TX   77098
   (713) 215-1600 x 33#


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


Re: [ANN] Apache Tomcat 4.1.29 Stable and Apache Tomcat 5.0.14 Beta released

2003-10-31 Thread Sriram N
Hi,

Have you downloaded a tgz by chance ?

If you have, then use Winzip on windows, or the tar command from the command
line, to uncompress Tomcat. Any other application may not uncompress the tgz
correctly. e.g. I used the File Roller application that comes with Redhat 9,
and it does not extract all files correctly.

The tar command you could use is

tar -xzvf jakarta-tomcat4.1.29

-- Sriram

--- Luigi Bai [EMAIL PROTECTED] wrote:
 I'm using 4.1.29 as CATALINA_HOME, and am seeing a strange error. The 
 line in the default web.xml file points to the session-timeout 
 element; so does the referenced line in the application web.xml file. If 
 I comment out _both_ the context will start. I checked the DTD in 
 servlet-api.jar and it looks fine.
 
 In CATALINA_HOME/server/lib, the commons-logging.jar file has 
 impl.Log4jFactory.class and impl.Log4jLogger.class. These are loaded 
 because I have a copy of log4j-1.2.8 in the directory.
 
 Using 4.1.27 as CATALINA_HOME I have no problems either.
 
 Any ideas on where to look?
 
 Thanks;
 Luigi
 
 2003-10-31 21:02:32 ContextConfig[/blog] Parse error in default web.xml
 org.apache.commons.logging.LogConfigurationException: 
 java.lang.ClassNotFoundException: 
 org.apache.commons.logging.impl.Log4jFactory
   at 
 org.apache.commons.digester.Digester.createSAXException(Digester.java:2583)
   at 
 org.apache.commons.digester.Digester.createSAXException(Digester.java:2609)
   at org.apache.commons.digester.Digester.endElement(Digester.java:1061)
   at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
   at org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown 
 Source)
   at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown 
 Source)
   at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source)
   at 
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown 
 Source)
   at 

org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
 
 Source)
   at 
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
 Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
   at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
   at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
   at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
   at org.apache.commons.digester.Digester.parse(Digester.java:1546)
   at 

org.apache.catalina.startup.ContextConfig.defaultConfig(ContextConfig.java:548)
   at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:638)
   at 

org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:243)
   at 

org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
   at 
 org.apache.catalina.core.StandardContext.start(StandardContext.java:3582)
   at 

org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)
   at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
   at 

org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.java:700)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at 

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at 
 org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:258)
   at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256)
   at org.apache.commons.digester.Rule.end(Rule.java:276)
   at org.apache.commons.digester.Digester.endElement(Digester.java:1058)
   at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
   at 
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown 
 Source)
   at 

org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
 
 Source)
   at 
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
 Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
   at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
   at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
   at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
   at org.apache.commons.digester.Digester.parse(Digester.java:1565)
   at 

org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:385)
   at org.apache.catalina.core.StandardHost.install(StandardHost.java:819)
   at 
 

[ANN] Apache Tomcat 4.1.29 Stable and Apache Tomcat 5.0.14 Beta released

2003-10-31 Thread Remy Maucherat
The Tomcat Team announces the immediate availability of Apache Tomcat
4.1.29 Stable and Apache Tomcat 5.0.14 Beta.
Please refer to the changelog for the list of changes.

Downloads:
Binaries: http://jakarta.apache.org/site/binindex.cgi
Sources: http://jakarta.apache.org/site/sourceindex.cgi
The Apache Tomcat Team

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


Please, help with Jsp not working with Apache-Tomcat-mod_jk

2003-10-29 Thread Joaquin Corchero
Hello!

I just installed Apache (2.0.47), Tomcat (4.1.27) and mod_jk (1.2.5) in a redhat 
Machine following the instructions found in 
http://www.johnturner.com/howto/apache2-tomcat4127-jk-rh9-howto.html

Everything went perfect during the installations except that I configure the apache 
installation with the enable ssl because errors in the make, anyway I don't need it.

As I said everything went perfect, but when I call a jsp, it looks like apache doesn't 
go to Tomcat to execute the jsp.

Can anyone help me??

Thank you very much

Joaky

Number of processes and relationship to mod_jk, Apache, tomcat

2003-10-28 Thread Andrew Panagos
I am trying to understand the relationship between applications in Tomcat,
the number of Tomcat processes, Apache mod_jk and the number of threads.

For instance on a system I have the following
Apache 1.3.28, Tomcat 4.1.27, Java 1.4.2_02
I use the follow commands to see what is listening to different ports to get
an idea of what process or threads are running.
Apache: lsof -i tcp:80 | wc -l
This gives me 12 processes listening to port 80 (I checked these are related
to the number of Apache instances)

Tomcat direct port: lsof -i tcp:8080 | wc -l
This gives me 50 process that also correspond to the number of tomcat
instances running(i.e. the number of java instances I see in ps )

Tomcat mod_jk port:
lsof -i tcp:8009 | wc -l
gives me 550

I have included my condensed jk.properties and workers.properties files at
the end if that may help.
Now I now that these numbers will change depending on load but I am trying
to understand the relationship.

So my questions is how do the numbers relate to each other?
How does this effect performance?
How could I tune these numbers?

Now I have a vague understanding of how these relate but the numbers don't
add up for me. I have read the docs and searched for quite a while for a
better description.

Thanks

FILE: jk.properties

###
LoadModule jk_module libexec/mod_jk.so
JkWorkersFile /usr/local/tomcat/conf/workers.properties
JkLogFile /usr/local/tomcat/logs/mod_jk.log
JkLogLevel info
JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat %w %V %U %T %b

## /examples1
Alias /examples1 /usr/local/tomcat/webapps/examples1
Location /examples1/WEB-INF/
AllowOverride None
deny from all
/Location
JkMount /examples1/* worker1

## /ctrials
Alias /ctrials /usr/local/tomcat/webapps/ctrials
Location /ctrials/WEB-INF/
AllowOverride None
deny from all
/Location
JkMount /ctrials/* worker1

## /syndication
Alias /syndication /usr/local/tomcat/webapps/syndication
Location /syndication/WEB-INF/
AllowOverride None
deny from all
/Location
JkMount /syndication/* worker1

## /fellowship
Alias /fellowship /usr/local/tomcat/webapps/fellowship
Location /fellowship/WEB-INF/
AllowOverride None
deny from all
/Location
JkMount /fellowship/* worker1

## /test
Alias /test /usr/local/tomcat/webapps/test
Location /test/WEB-INF/
AllowOverride None
deny from all
/Location
JkMount /test/* worker1

# All jsp go to worker1
JkMount /*.jsp worker1
# All servlets goes to worker1
JkMount /*/servlet/ worker1


##

FILE: workers.properties

##
# Define some properties
workers.apache_log=/usr/local/apache/logs/
workers.tomcat_home=/usr/local/tomcat
workers.java_home=/usr/local/java/
ps=/

# Define workers
worker.list=worker1
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009
worker.worker1.lbfactor=1
#worker.worker1.cachesize=10
#worker.worker1.cache_timeout=300
worker.worker1.socket_keepalive=1
worker.worker1.socket_timeout=300

# how many ms to wait for PONG after sending a PING for connection
worker.worker1.connect_timeout=2000
# how many ms to wait for PONG after sending a PING before posting data
worker.worker1.prepost_timeout=2000
# how long to wait for a reply after sending data before server considers
connection dead
worker.worker1.reply_timeout=180


##


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



Re: Number of processes and relationship to mod_jk, Apache, tomcat

2003-10-28 Thread Christopher Schultz
Andrew,
I am trying to understand the relationship between applications in Tomcat,
the number of Tomcat processes, Apache mod_jk and the number of threads.

Apache: lsof -i tcp:80 | wc -l
This gives me 12 processes listening to port 80 (I checked these are related
to the number of Apache instances)
You should be able to predict this from the httpd.conf file. Do the 
numbers add up for Apache?

Tomcat direct port: lsof -i tcp:8080 | wc -l
This gives me 50 process that also correspond to the number of tomcat
instances running(i.e. the number of java instances I see in ps )
What UNIX flavor are you running? I know that in old versions of Linux, 
each pthread was shown as a separate process. Thus, it looked like many 
processes (really threads) all held the same resource. For example, they 
all had the same resident memory footprint (because the memory is 
shared) and they all were bound to the same ports.

In the later versions (mine being one of them, I've got kernel 2.4.20), 
they only show up as one process. Thus, I get this output:

[EMAIL PROTECTED] ]# /usr/sbin/lsof -i tcp:8009
COMMAND  PID   USER   FD   TYPE DEVICE SIZE NODE NAME
java9313 tomcat   15u  IPv4  69785   TCP *:8009 (LISTEN)
[EMAIL PROTECTED] ]#
I'm guessing that you're getting multiple lines that all look like this. 
Is this accurate? Only one process can bind to a port at any given time, 
so multiple processes (even with separate pids) might appear to be bound 
to that port.

Tomcat mod_jk port:
lsof -i tcp:8009 | wc -l
gives me 550
Again, see the discussion of the threads/processes above.

Also note that you may have many more threads that you thought you 
would. I recall that each (non-nio) stream in Java requires a separate 
thread, so System.in, System.out, and System.err already give you three 
threads. Then, you've got the main thread, plus the thread pool to serve 
requests from remote clients. That may be large, although having that 
number higher than your Apache request processor limit is probably a waste.

Now I know that these numbers will change depending on load but I am trying
to understand the relationship.
Well, some numbers should not change. For example, there should be a 
hard limit on the number of Apache threads/processes running. You can 
tune that in httpd.conf.

For the Java process, it's harder to predict because of the way the VM 
retires threads and when your server is creating them. Ideally, new 
threads wouldn't be created at all because there would be a closed 
thread pool (unless you have a min and max thread pool size and the 
number of threads depends on load).

So my questions is how do the numbers relate to each other?
The number of Apache processes is usually completely unrelated to the 
java process counts (except that there will be more java threads than 
Apache processes :).

How does this effect performance?
Most of the processes are very lightweight. Apache is a lean, mean, 
web-serving machine so don't worry about that. What you should worry 
about is if your thread count continually goes up and never comes back 
down. You'd have a nasty resource leak, then. If you avoid creating your 
own threads in your web application (which you should be avoiding 
anyway), you're generally okay.

-chris

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


apache+tomcat+mod-jk2

2003-10-23 Thread Asif Chowdhary
Hi,

I am trying to setup apache with mod_jk2 and tomcat on Window.
Apache 2.0.43
and tomcat 4.1.18
and mod-jk2 2.0.43


If I use 
LoadModule jk2_module modules/mod_jk-2.0.43.dll


The module is loaded but does not recognize commands such as JkWorkersFile etc.

The log file says that the properties file is not set. I am attaching the log file 
from apache.

Your help is appreciated.

Thanks
Asif error.log 




Asif Chowdhary
System Analyst
x.eye incorporated
 
Phone: (905) 624-6608 ext. 280 
mailto:[EMAIL PROTECTED]  
www.xeye.com  


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

Re: apache+tomcat+mod-jk2

2003-10-23 Thread Daniel Gibby
JkWorkersFile is no longer a valid directive with mod_jk2. Read the 
documentation on how to configure mod_jk2. You don't do it the same way 
as mod_jk, and it is a pain since the documentation is poor.

Daniel

Asif Chowdhary wrote:

Hi,

I am trying to setup apache with mod_jk2 and tomcat on Window.
Apache 2.0.43
and tomcat 4.1.18
and mod-jk2 2.0.43
If I use 
LoadModule jk2_module modules/mod_jk-2.0.43.dll

The module is loaded but does not recognize commands such as JkWorkersFile etc.

The log file says that the properties file is not set. I am attaching the log file from apache.

Your help is appreciated.

Thanks
Asif error.log 



Asif Chowdhary
System Analyst
x.eye incorporated
Phone: (905) 624-6608 ext. 280 
mailto:[EMAIL PROTECTED]  
www.xeye.com  

 



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


<    1   2   3   4   5   6   7   8   9   10   >