Re: Apache & Tomcat on different hosts

2002-10-23 Thread Raj Mettai
Hi Alan,
 

Here it goes.
 
Machine  A (Apache), Machine B (tomcat)  (both running on solaris)
—-
 
httpd.conf changes...
—-
Below # LoadModule foo_module modules/mod_foo.so
 
Add following lines
#
# Load mod_jk
#
 LoadModule jk_module libexec/mod_jk.so
#
# Configure mod_jk
#
JkWorkersFile conf/workers.properties
JkLogFile logs/mod_jk.log
JkLogLevel debug
 
Below DocumentRoot "/usr/local/apache/htdocs"
 
Add following lines...
 
JkMount /examples ajp13
JkMount /examples/* ajp13
 
(if you want to configure a application examples running under webapps on tomcat, just 
specify  /examples, you need not sepcify the full path of the application)
 
Then create workers.properties under $Apache_Home$/conf/  like this 
 
# In Unix, we use forward slashes:
ps=/
 
# list the workers by name
worker.list=ajp13
 
#
worker.ajp13.port=8009(ajp13 port from server.xml on tomcat machine)
worker.ajp13.host=hostname(Machine B)
worker.ajp13.type=ajp13

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

server.xml changes on  Machine B(tomcat machine)
—--
 
Set the required environment variables JAVA_HOME AND CATALINA_HOME in 
$TOMCAT_HOME$/bin/catalina.sh
 
Commen out the Standalone HTTP port(port 8080) Connector. 
 


 
Also Comment out the WARP connector 
 
  


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

  
  

 
start tomcat and apache, you should be able to access examples from apache machine
 
I have pretty much followed the http://www.ubeans.com/tomcat/ documentation..many 
many thanks to Pascal Forget.
 
 
Let me know, how it goes...
 
-Raj


>>> [EMAIL PROTECTED] 10/23/02 11:11AM >>>
All,

I am setting up a config where Apache and Tomcat are on different hosts. In
the Jakarta documentation, the worker.properties example describes the setup
for Apache and Tomcat on the same host. I have read John Turner's excellent
web page which also describes the setup for Apache and Tomcat on the same
host.

To configure the Apache workers.properties file to communicate with Tomcat
on different hosts, what are the crucial directives ?  I know it will be
something like this to connect with one host:

worker.list=ajp13
worker.ajp13.host="name of host with Tomcat"
worker.ajp13.type=ajp13

How do you configure to talk with multiple hosts ?


Thanks




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



RE: Index.jsp page in apache and tomcat config....

2002-10-23 Thread Raj Mettai
I don't have to worry about the javascript compatability now with browsers at all, 
thanks a lot John, that worked like a charm...

you make things really simple.

thanks again..
-Raj

>>> [EMAIL PROTECTED] 10/23/02 08:43AM >>>

No need to bust out the sledgehammer when a light tap will do. All you need
is a META tag in the head of your index.html...



The client browser will take care of resolving/translating "index.jsp" to
"http://some.domain.com/index.jsp";

John


> -Original Message-
> From: Raj Mettai [mailto:rmettai@;broward.edu]
> Sent: Tuesday, October 22, 2002 11:55 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Index.jsp page in apache and tomcat config
> 
> 
> I didn't configure apache to include mod_rewrite during 
> installation. I
> have to redo the whole process of apache setup again to use 
> mod_rewrite,
> Instead I have created an index.html with javascript code(see 
> below) in
> it to redirect to index.jsp, it is working for me well so for. 
> 
> 
> 
> <!--
> var path = "";
> wholeurl = document.location.href;
> x = wholeurl.length;
> while((wholeurl.substring(x,x-1)) != "/"){ x--; } clipstart = x;
> path = wholeurl.substring(0,wholeurl.length
> -(wholeurl.length-clipstart));
> path += 'index.jsp';
> location.href = path;
> //-->
> 
> 
> 
> thanks a lot to everybody who helped me with this issue..
> 
> -Raj
> 
> 
> >>> [EMAIL PROTECTED] 10/18/02 05:58PM >>>
> Just for clarification, 
> 
> Apache reads the LoadModule lines from the top down.  If you put the 
> LoadModule line for mod_jk to the end of that section then 
> mod_rewrite 
> will be loaded first.
> 
> rls
> 
> 
> 
> 
> 
> "Turner, John" <[EMAIL PROTECTED]>
> 10/18/2002 08:47 AM
> Please respond to "Tomcat Users List"
> 
> 
> To: 'Tomcat Users List' <[EMAIL PROTECTED]>
> cc: 
> Subject:RE: Index.jsp page in apache and tomcat
> config
> 
> 
> You could try a mod_rewrite rule for /online/ that translated to
> /online/index.jsp.  Whether that worked or not would depend on the 
> sequence
> of modules in Apache...would the rewrite rule happen before 
> or after the
> JkMount rule?  I'm not familiar enough with Apache module 
> internals to 
> know
> which would happen first...if the JkMount rule happened first, the
> mod_rewrite rule would have no effect.
> 
> John
> 
> 
> > -Original Message-
> > From: Raj Mettai [mailto:rmettai@;broward.edu]
> > Sent: Friday, October 18, 2002 11:41 AM
> > To: [EMAIL PROTECTED]
> > Subject: RE: Index.jsp page in apache and tomcat config
> > 
> > 
> > I have already defined index.jsp to DirectoryIndex 
> listingBut I am
> > wondering even if I have index.jsp in DirectoryIndex and 
> index.jsp is
> > not on apache web-app directory, how would apache know to bring up
> > index.jsp. I think I have to put some specific forwarding rules for
> > Directory links in httpd.conf or else I have to go with your idea of
> > putting index.html with a redirect to index.jsp.
> > 
> > thanks 
> > 
> > -Raj
> > 
> > 
> > 
> > 
> > 
> > >>> [EMAIL PROTECTED] 10/18/02 11:19AM >>>
> > 
> > I checked, it is currently set to "index.html index.htm index.jsp". 
> > 
> > John
> > 
> > 
> > > -Original Message-
> > > From: Mark Eggers [mailto:its_toasted@;yahoo.com]
> > > Sent: Friday, October 18, 2002 11:12 AM
> > > To: Tomcat Users List
> > > Subject: RE: Index.jsp page in apache and tomcat config
> > > 
> > > 
> > > There is a DirectoryIndex option in the configuration
> > > file.  Out of the box it's set to index.html.  Add
> > > index.jsp to the list.
> > > 
> > > /mde/
> > > 
> > > just my two cents . . . .
> > > 
> > > 
> > > __
> > > Do you Yahoo!?
> > > Faith Hill - Exclusive Performances, Videos & More
> > > http://faith.yahoo.com
> > > 
> > > --
> > > To unsubscribe, e-mail: 
> > > <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
> > > For additional commands, e-mail: 
> > > <mailto:tomcat-user-help@;jakarta.apache.org>
> > > 
> > 
> > --
> > To unsubscribe, e-mail: 
> > <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
> > For additional commands, e-mail:
> > <mailto:tomcat-user-help@;jakarta.apache.org>
> > 
> 
> --
> To unsubscribe, e-mail:  
> <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:tomcat-user-help@;jakarta.apache.org>
> 
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:  
> <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:tomcat-user-help@;jakarta.apache.org>
> 

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>



RE: Index.jsp page in apache and tomcat config....

2002-10-22 Thread Raj Mettai
I didn't configure apache to include mod_rewrite during installation. I
have to redo the whole process of apache setup again to use mod_rewrite,
Instead I have created an index.html with javascript code(see below) in
it to redirect to index.jsp, it is working for me well so for. 



<!--
var path = "";
wholeurl = document.location.href;
x = wholeurl.length;
while((wholeurl.substring(x,x-1)) != "/"){ x--; } clipstart = x;
path = wholeurl.substring(0,wholeurl.length
-(wholeurl.length-clipstart));
path += 'index.jsp';
location.href = path;
//-->



thanks a lot to everybody who helped me with this issue..

-Raj


>>> [EMAIL PROTECTED] 10/18/02 05:58PM >>>
Just for clarification, 

Apache reads the LoadModule lines from the top down.  If you put the 
LoadModule line for mod_jk to the end of that section then mod_rewrite 
will be loaded first.

rls





"Turner, John" <[EMAIL PROTECTED]>
10/18/2002 08:47 AM
Please respond to "Tomcat Users List"


To: 'Tomcat Users List' <[EMAIL PROTECTED]>
cc: 
Subject:RE: Index.jsp page in apache and tomcat
config


You could try a mod_rewrite rule for /online/ that translated to
/online/index.jsp.  Whether that worked or not would depend on the 
sequence
of modules in Apache...would the rewrite rule happen before or after the
JkMount rule?  I'm not familiar enough with Apache module internals to 
know
which would happen first...if the JkMount rule happened first, the
mod_rewrite rule would have no effect.

John


> -Original Message-
> From: Raj Mettai [mailto:rmettai@;broward.edu]
> Sent: Friday, October 18, 2002 11:41 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Index.jsp page in apache and tomcat config
> 
> 
> I have already defined index.jsp to DirectoryIndex listingBut I am
> wondering even if I have index.jsp in DirectoryIndex and index.jsp is
> not on apache web-app directory, how would apache know to bring up
> index.jsp. I think I have to put some specific forwarding rules for
> Directory links in httpd.conf or else I have to go with your idea of
> putting index.html with a redirect to index.jsp.
> 
> thanks 
> 
> -Raj
> 
> 
> 
> 
> 
> >>> [EMAIL PROTECTED] 10/18/02 11:19AM >>>
> 
> I checked, it is currently set to "index.html index.htm index.jsp". 
> 
> John
> 
> 
> > -Original Message-
> > From: Mark Eggers [mailto:its_toasted@;yahoo.com]
> > Sent: Friday, October 18, 2002 11:12 AM
> > To: Tomcat Users List
> > Subject: RE: Index.jsp page in apache and tomcat config
> > 
> > 
> > There is a DirectoryIndex option in the configuration
> > file.  Out of the box it's set to index.html.  Add
> > index.jsp to the list.
> > 
> > /mde/
> > 
> > just my two cents . . . .
> > 
> > 
> > __
> > Do you Yahoo!?
> > Faith Hill - Exclusive Performances, Videos & More
> > http://faith.yahoo.com
> > 
> > --
> > To unsubscribe, e-mail: 
> > <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
> > For additional commands, e-mail: 
> > <mailto:tomcat-user-help@;jakarta.apache.org>
> > 
> 
> --
> To unsubscribe, e-mail: 
> <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:tomcat-user-help@;jakarta.apache.org>
> 

--
To unsubscribe, e-mail:  
<mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail:
<mailto:tomcat-user-help@;jakarta.apache.org>





--
To unsubscribe, e-mail:  
<mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail:
<mailto:tomcat-user-help@;jakarta.apache.org>



RE: Index.jsp page in apache and tomcat config....

2002-10-18 Thread Raj Mettai
yes I did

-Raj

>>> [EMAIL PROTECTED] 10/18/02 12:46PM >>>
On Fri, 18 Oct 2002, Raj Mettai wrote:

> I have already defined index.jsp to DirectoryIndex listingBut I am
> wondering even if I have index.jsp in DirectoryIndex and index.jsp is
> not on apache web-app directory, how would apache know to bring up
> index.jsp. I think I have to put some specific forwarding rules for
> Directory links in httpd.conf or else I have to go with your idea of
> putting index.html with a redirect to index.jsp.

Did you define index.jsp as a welcome-file in the web.xml?



> >>> [EMAIL PROTECTED] 10/18/02 11:19AM >>>
>
> I checked, it is currently set to "index.html index.htm index.jsp".
>
> John
>
>
> > -Original Message-
> > From: Mark Eggers [mailto:its_toasted@;yahoo.com]
> > Sent: Friday, October 18, 2002 11:12 AM
> > To: Tomcat Users List
> > Subject: RE: Index.jsp page in apache and tomcat config
> >
> >
> > There is a DirectoryIndex option in the configuration
> > file.  Out of the box it's set to index.html.  Add
> > index.jsp to the list.
> >
> > /mde/
> >
> > just my two cents . . . .
> >
> >
> > __
> > Do you Yahoo!?
> > Faith Hill - Exclusive Performances, Videos & More
> > http://faith.yahoo.com
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
> > For additional commands, e-mail:
> > <mailto:tomcat-user-help@;jakarta.apache.org>
> >
>
> --
> To unsubscribe, e-mail:
> <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:tomcat-user-help@;jakarta.apache.org>
>

Milt Epstein
Research Programmer
Integration and Software Engineering (ISE)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]


--
To unsubscribe, e-mail:  
<mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail:
<mailto:tomcat-user-help@;jakarta.apache.org>



RE: Index.jsp page in apache and tomcat config....

2002-10-18 Thread Raj Mettai
I have already defined index.jsp to DirectoryIndex listingBut I am
wondering even if I have index.jsp in DirectoryIndex and index.jsp is
not on apache web-app directory, how would apache know to bring up
index.jsp. I think I have to put some specific forwarding rules for
Directory links in httpd.conf or else I have to go with your idea of
putting index.html with a redirect to index.jsp.

thanks 

-Raj





>>> [EMAIL PROTECTED] 10/18/02 11:19AM >>>

I checked, it is currently set to "index.html index.htm index.jsp".  

John


> -Original Message-
> From: Mark Eggers [mailto:its_toasted@;yahoo.com]
> Sent: Friday, October 18, 2002 11:12 AM
> To: Tomcat Users List
> Subject: RE: Index.jsp page in apache and tomcat config
> 
> 
> There is a DirectoryIndex option in the configuration
> file.  Out of the box it's set to index.html.  Add
> index.jsp to the list.
> 
> /mde/
> 
> just my two cents . . . .
> 
> 
> __
> Do you Yahoo!?
> Faith Hill - Exclusive Performances, Videos & More
> http://faith.yahoo.com
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 

--
To unsubscribe, e-mail:  

For additional commands, e-mail:




RE: Index.jsp page in apache and tomcat config....

2002-10-18 Thread Raj Mettai



that works great by serving only jsp's from tomcat and all static data from 
apache, but when I have a link like this http://myurl/online/  I get a 403 access 
forbidden it doesn't pick up index.jsp by default. How do I make apache to 
default to index.jsp for all directory browsing and automatically forward the 
request to tomcat.
 
find attached httpd.conf file...
 
thanks a lot
 
-Raj
 
>>> [EMAIL PROTECTED] 10/18/02 08:58AM >>>What 
about /online/*.jsp instead of /online/* ?John> 
-----Original Message-> From: Raj Mettai [mailto:[EMAIL PROTECTED]]> Sent: 
Thursday, October 17, 2002 4:11 PM> To: 
[EMAIL PROTECTED]> Subject: RE: Index.jsp page in apache and 
tomcat config> > > Hi John,> > thanks for 
your response, somehow I missed your response and > was waiting to hear 
on this ...anyway, as you said I have all > static data on apache and all 
dynamic data on tomcat. When I > do JkMount for /online/* and index.jsp 
in web.xml it works > great but Apache forwards all requests to tomcat 
even images > and include files will be looked under tomcat.> 
> is there anyway, to do jkmount  /* ajp13 and still have > 
apache serve static pages and images..> > thanks again> 
> -Raj> > > [EMAIL PROTECTED] 10/09/02 07:53AM 
>>>> > OK, if you have things separated like that, then 
all of your > static content> is on the apache server, and all of 
your dynamic content is > on the tomcat> server.  
Right?> > In that scenario, /online has only dynamic content, 
since > /online/index.jsp> needs to go to Tomcat.  My guess 
is you have static and > dynamic content in> /online, which means 
you should probably add a JkMount mapping for> /online/*.jsp, not just 
/*.jsp.> > If /online has only dynamic content, then add a JkMount 
for > /online/* to> Tomcat and setup a welcome file of index.jsp 
in your web.xml, > because in> that scenario (/online = Tomcat 
server) Apache has no way of > finding the> file.> > 
John> > > -Original Message-> > From: Raj 
Mettai [mailto:[EMAIL PROTECTED]]> > 
Sent: Tuesday, October 08, 2002 4:44 PM> > To: 
[EMAIL PROTECTED]> > Subject: Index.jsp page in apache 
and tomcat config> > > > > > Hi all,> 
> > > I have apache(2.0.39) and tomcat(4.0.4) configured on 
> > different solaris 8 machines using mod_jk such that apache 
> > servers all html and images while tomcat servers jsp and 
servlets.> > > > Here is my jkMount from httpd.conf > 
> JkMount /*.jsp tomcat1> > JkMount /servlet/* tomcat1> > 
> > I want to configure apache to default to index.jsp page when 
> > I try to access the directory (ex :  > > http://www.apacheserver.com/online/  
should go to > > http://www.apacheserver.com/online/index.jsp). 
How can I > > achieve this, the apache documentroot directory does not 
have > > any index.jsp's,so how can you make apache to defualt to 
index.jsp.> > > > I have modified DirectoryIndex also to 
include index.jsp, > > still apache gives 403(Access 
forbidden).> > > > I have lot of links in the site that are 
just linking to > > directory without index.jsp, I have to modify them 
all otherwise.> > > > any thoughts > > 
> > thanks> > > > -Raj> > > 
> --> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>For 
additional commands, e-mail:<mailto:[EMAIL PROTECTED]>--To 
unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>For 
additional commands, e-mail: <mailto:[EMAIL PROTECTED]>


httpd.conf
Description: Binary data
--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>


JkMount for Apache and Tomcat......

2002-10-18 Thread Raj Mettai
Hi all,

I have apache(2.0.39) and tomcat(4.0.4) configured on different solaris 8 machines 
using mod_jk, I want apache to serve all html and images while tomcat handles all jsp 
and servlets requests.

Here is my jkMount from httpd.conf 

JkMount /*.jsp tomcat1
JkMount /servlet/* tomcat1

This is working great, except that when I have a link to a directory I am getting 
forbidden access. I want apache to default to index.jsp for all directory accessing 
links. In other words http://www.apacheserver.com/online/  should go to 
http://www.apacheserver.com/online/index.jsp).

I have modified DirectoryIndex to include index.jsp, still apache gives 403(Access 
forbidden).

I have lot of links in the site that are just linking to directory without index.jsp, 
I have to modify them all otherwise.

anybody has come across with this issue...


-Raj



RE: Index.jsp page in apache and tomcat config....

2002-10-18 Thread Raj Mettai
Hi John,

thanks for your response, somehow I missed your response and was waiting to hear on 
this ...anyway, as you said I have all static data on apache and all dynamic data on 
tomcat. When I do JkMount for /online/* and index.jsp in web.xml it works great but 
Apache forwards all requests to tomcat even images and include files will be looked 
under tomcat.

is there anyway, to do jkmount  /* ajp13 and still have apache serve static pages and 
images..

thanks again

-Raj


[EMAIL PROTECTED] 10/09/02 07:53AM >>>

OK, if you have things separated like that, then all of your static content
is on the apache server, and all of your dynamic content is on the tomcat
server.  Right?

In that scenario, /online has only dynamic content, since /online/index.jsp
needs to go to Tomcat.  My guess is you have static and dynamic content in
/online, which means you should probably add a JkMount mapping for
/online/*.jsp, not just /*.jsp.

If /online has only dynamic content, then add a JkMount for /online/* to
Tomcat and setup a welcome file of index.jsp in your web.xml, because in
that scenario (/online = Tomcat server) Apache has no way of finding the
file.

John

> -Original Message-----
> From: Raj Mettai [mailto:rmettai@;broward.edu]
> Sent: Tuesday, October 08, 2002 4:44 PM
> To: [EMAIL PROTECTED]
> Subject: Index.jsp page in apache and tomcat config
> 
> 
> Hi all,
> 
> I have apache(2.0.39) and tomcat(4.0.4) configured on 
> different solaris 8 machines using mod_jk such that apache 
> servers all html and images while tomcat servers jsp and servlets.
> 
> Here is my jkMount from httpd.conf 
> JkMount /*.jsp tomcat1
> JkMount /servlet/* tomcat1
> 
> I want to configure apache to default to index.jsp page when 
> I try to access the directory (ex :  
> http://www.apacheserver.com/online/  should go to 
> http://www.apacheserver.com/online/index.jsp). How can I 
> achieve this, the apache documentroot directory does not have 
> any index.jsp's,so how can you make apache to defualt to index.jsp.
> 
> I have modified DirectoryIndex also to include index.jsp, 
> still apache gives 403(Access forbidden).
> 
> I have lot of links in the site that are just linking to 
> directory without index.jsp, I have to modify them all otherwise.
> 
> any thoughts 
> 
> thanks
> 
> -Raj
> 

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>



RE: static rules for jk/ajp13

2002-10-14 Thread Raj Mettai

how do I get apache to direct all directory links to tomcat for default document...

ex:  http://localhost/example  should go to http://localhost/example/index.jsp

I have following JkMount Config..

JkMount /example/*.jsp ajp13
JkMount /example/servlet/* ajp13

I want to use apache for html and images, so I dont want to use JkMount /example/* 
ajp13

any thoughts 

thanks

-Raj


>>> [EMAIL PROTECTED] 10/14/02 04:24PM >>>

Since Tomcat only deals with JSP and servlets, this should be all you need:

JkMount /*.jsp ajp13
JkMount /servlet/* ajp13

What else would Tomcat serve?  

John

> -Original Message-
> From: Frank Liu [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 14, 2002 4:07 PM
> To: [EMAIL PROTECTED]
> Subject: static rules for jk/ajp13
> 
> 
> 
> How do I config httpd.conf so that apache will pass everything
> to tomcat except *.gif and *.html/*.htm ?
> Basically I want apache to default to pass to tomcat unless 
> otherwise told.
> The docs I can find all talks the other way around: default to apache
> and only pass to tomcat when you explicitly ask for certain urls.
> 
> Frank
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 

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



multiple tomcat instances...

2002-10-14 Thread Raj Mettai

Hi,

I am running multiple tomcat instances with load balancing worker on solaris 8. How 
would you know, when one of the tomcat instances crashes other than doing "ps -ef|grep 
tomcat" or prstat quite often. Is there any automatic process to find that one of the 
tomcat process crashed.

(I am running tomcat4.1.12 and apache2.0.39 on solaris 8 using jdk1.3.1).

thanks

-Raj



Code of a method longer than 65535 bytes...

2002-10-11 Thread Raj Mettai

Hi,

I have recently moved from tomcat 4.0.4 to tomcat 4.1.2. I am getting "Code of a 
method longer than 65535 bytes" on some jsp pages. They use to work fine on 4.0.4. 

any thoughts 

Thanks
Raj



RE: tomcat4.1.2 - Servlet Error

2002-10-10 Thread Raj Mettai

thanks Yoav Shapira,

looks like I don't even have admin directory under webapps folder. I have downloaded 
binaries from apache site and Installed it under separate folder. Jsp pages are fine, 
when I access servlets from my application I am getting 404 page not found.
It works fine with 4.0.4. 

Here is my context Tag from server.xml 
 

thanks
Raj



>>> [EMAIL PROTECTED] 10/10/02 09:34AM >>>
Hi,
How did you install 4.1.12?  Did you copy it over the existing 4.0.4
installation?

The error indicates tomcat can't find its own admin webapp classes.
That shouldn't happen if you simply untar the distribution.  Look for
$CATALINA_HOME/server/webapps/admin/WEB-INF/classes/org/apache/webapp/ad
min to make sure it exists and has the .class files in it.

Or simply remove webapps/admin.xml if you don't want/need the admin
webapp ;)

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-
>From: Raj Mettai [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, October 09, 2002 7:01 PM
>To: [EMAIL PROTECTED]
>Subject: tomcat4.1.2 - Servlet Error
>
>Hi,
>
>I am running tomcat4.1.2 on solaris8. Tomcat is serving jsp pages fine
but
>when I access servlet I am getting HTTP Status 404 and I found
following
>exception in localhost_admin* log file.
>
>2002-10-09 18:31:50 ContextConfig[/admin]: Configured an authenticator
for
>method FORM
>2002-10-09 18:31:50 StandardManager[/admin]: Seeding random number
>generator class java.security.SecureRandom
>2002-10-09 18:31:50 StandardManager[/admin]: Seeding of random number
>generator has been completed
>2002-10-09 18:31:50 StandardWrapper[/admin:default]: Loading container
>servlet default
>2002-10-09 18:31:50 StandardWrapper[/admin:invoker]: Loading container
>servlet invoker
>2002-10-09 18:31:50 StandardWrapper[/admin:action]: Marking servlet
action
>as unavailable
>2002-10-09 18:31:50 StandardContext[/admin]: Servlet /admin threw
load()
>exception
>javax.servlet.ServletException: Wrapper cannot find servlet class
>org.apache.webapp.admin.ApplicationServlet or a class it depends on
>at
>org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.ja
va:8
>80)
>at
>org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:813)
>at
>org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.
java
>:3341)
>at
>org.apache.catalina.core.StandardContext.start(StandardContext.java:353
4)
>at
>org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.j
ava:
>821)
>at
>org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
>at
>org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
>at
>org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDepl
oyer
>.java:529)
>at java.lang.reflect.Method.invoke(Native Method)
>at
>org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:
228)
>at
>org.apache.commons.digester.SetNextRule.end(SetNextRule.java:260)
>at
>org.apache.commons.digester.Digester.endElement(Digester.java:1036)
>at
>org.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParse
r.ja
>va:579)
>at
>org.apache.xerces.impl.XMLNamespaceBinder.endElement(XMLNamespaceBinder
.jav
>a:646)
>at
>org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValid
ator
>.java:1972)
>at
>org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.j
ava:
>878)
>at
>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.handleEndElement(
XMLD
>ocumentFragmentScannerImpl.java:1144)
>at
>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XM
LDoc
>umentFragmentScannerImpl.java:987)
>at
>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDi
spat
>cher.dispatch(XMLDocumentFragmentScannerImpl.java:1445)
>at
>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLD
ocum
>entFragmentScannerImpl.java:333)
>at
>org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:
524)
>at
>org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:
580)
>at
org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
>at
>org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.jav
a:11
>69)
>at
org.apache.commons.digester.Digester.parse(Digester.java:1514)
>at
>org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeplo
yer.
>java:335)
>at
>org.apache.catalina.core.StandardHost.install(StandardHost.java:803)
>at
>org.apache.catalina.s

tomcat4.1.2 - Servlet Error

2002-10-09 Thread Raj Mettai

Hi,

I am running tomcat4.1.2 on solaris8. Tomcat is serving jsp pages fine but when I 
access servlet I am getting HTTP Status 404 and I found following exception in 
localhost_admin* log file. 

2002-10-09 18:31:50 ContextConfig[/admin]: Configured an authenticator for method FORM
2002-10-09 18:31:50 StandardManager[/admin]: Seeding random number generator class 
java.security.SecureRandom
2002-10-09 18:31:50 StandardManager[/admin]: Seeding of random number generator has 
been completed
2002-10-09 18:31:50 StandardWrapper[/admin:default]: Loading container servlet default
2002-10-09 18:31:50 StandardWrapper[/admin:invoker]: Loading container servlet invoker
2002-10-09 18:31:50 StandardWrapper[/admin:action]: Marking servlet action as 
unavailable
2002-10-09 18:31:50 StandardContext[/admin]: Servlet /admin threw load() exception
javax.servlet.ServletException: Wrapper cannot find servlet class 
org.apache.webapp.admin.ApplicationServlet or a class it depends on
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:880)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:813)
at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3341)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3534)
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:579)
at 
org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.java:529)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:228)
at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:260)
at org.apache.commons.digester.Digester.endElement(Digester.java:1036)
at 
org.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:579)
at 
org.apache.xerces.impl.XMLNamespaceBinder.endElement(XMLNamespaceBinder.java:646)
at 
org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator.java:1972)
at 
org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java:878)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.handleEndElement(XMLDocumentFragmentScannerImpl.java:1144)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:987)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1445)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:333)
at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:524)
at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:580)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at 
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1169)
at org.apache.commons.digester.Digester.parse(Digester.java:1514)
at 
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:335)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:803)
at 
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:452)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:409)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:879)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:368)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at org.apache.catalina.core.StandardService.start(StandardService.java:497)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
at org.apache.catalina.startup.Catalina.start(Catalina.java:510)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
- Root Cause -
java.lang.ClassNotFoundException: org.apache.webapp.admin.ApplicationServlet
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1428)
at 
org.apache.catalina.loader.WebappClassLoader.l

Re: java.lang.OutOfMemoryError - JDK1.3.1

2002-10-09 Thread Raj Mettai

Hi,

what version of mod_jk you are using with tomcat 4.1.12 ? 

thanks 
Raj

>>> [EMAIL PROTECTED] 10/09/02 04:07AM >>>
Hi,

I was using the tomcat 4.0.3 with JDK 1.4. Tomcat was integrated with 
apache using warp connector. I used to have the same problem you have 
now. I recently upgraded to Tomcat 4.1.12 and warp to mod_jk with load 
balancing with two instances of tomcat on the same server.

Memory usages which used to shoot upto 200 MB in a single day is now 
restricted to 3-4 MBs a day.

I cant not say surely my problem was due to warp or tomcat 4.0.3. Your 
can try upgrading to tomcat 4.1.12.

Raj

  earlier is now
> Hi all,
> 
> I have apache(2.0.39) and tomcat(4.0.4) configured on different solaris
> 8 machines using mod_jk. I have two instances of tomcat running, each
> serving different jsp/servlet/bean application. I see lot of OutOfMemory
> errors in tomcat logs after few hours, some times tomcat totally
> crashes, if I do not restart. I am pretty much monitor java process
> using prstat and if the memory reaches maximum value, I am restarting
> tomcat.
> 
> here is my jdk version...
> 
> java version "1.3.1"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24)
> Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode)
> 
> I have increased the heap size from 128M to 256M, it didn't help much
> other than running for few more hours.
> 
> and currently I have set up 256M min and 256M max values for heap size.
> 
> I am wondering, is there any known issues with running tomcat4.0.4 under
> jdk1.3.1(build 1.3.1-b24, mixed mode). ?
> 
> Is there any preferred jdk version(less memory leaks) for tomcat 4.0.4 ?
> 
> thanks in advance
> 
> Raj
> 



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



Re: java.lang.OutOfMemoryError

2002-10-09 Thread Raj Mettai

Hi Sonam Singh,
 
currently, I am passing the max and min values for the memory thru CATALINA_OPTS in 
catalina.sh (CATALINA_OPTS="-Xms256M -Xmx256M"; export CATALINA_OPTS)

I think this will increase the default memory right ?

thanks 
Raj


>>> [EMAIL PROTECTED] 10/09/02 08:39AM >>>
modify the catalina.sh because tomcat run with default
memory u have to increase it manually in the
catalina.sh as below

[ "$1" = "start" ] ; then

  shift
  touch "$CATALINA_BASE"/logs/catalina.out
  if [ "$1" = "-security" ] ; then
echo "Using Security Manager"
shift
"$_RUNJAVA" $JAVA_OPTS $CATALINA_OPTS \
  -Djava.endorsed.dirs="$JAVA_ENDORSED_DIRS"
-classpath "$CLASSPATH" \
  -Djava.security.manager \
 
-Djava.security.policy=="$CATALINA_BASE"/conf/catalina.policy
\
  -Dcatalina.base="$CATALINA_BASE" \
  -Dcatalina.home="$CATALINA_HOME" \
  -Djava.io.tmpdir="$CATALINA_TMPDIR" \
  org.apache.catalina.startup.Bootstrap "$@" start
\
  >> "$CATALINA_BASE"/logs/catalina.out 2>&1 &
  else
"$_RUNJAVA" $JAVA_OPTS $CATALINA_OPTS \
  -Djava.endorsed.dirs="$JAVA_ENDORSED_DIRS"
-classpath "$CLASSPATH" \
  -Dcatalina.base="$CATALINA_BASE" \
  -Dcatalina.home="$CATALINA_HOME" \
  -Djava.io.tmpdir="$CATALINA_TMPDIR" \
  org.apache.catalina.startup.Bootstrap "$@" start
\
  >> "$CATALINA_BASE"/logs/catalina.out 2>&1 &
  fi

change TO ...

[ "$1" = "start" ] ; then

  shift
  touch "$CATALINA_BASE"/logs/catalina.out
  if [ "$1" = "-security" ] ; then
echo "Using Security Manager"
shift
"$_RUNJAVA" $JAVA_OPTS $CATALINA_OPTS \
  -Djava.endorsed.dirs="$JAVA_ENDORSED_DIRS"
-classpath "$CLASSPATH" \
  -Djava.security.manager \
 
-Djava.security.policy=="$CATALINA_BASE"/conf/catalina.policy
\
  -Dcatalina.base="$CATALINA_BASE" \
  -Dcatalina.home="$CATALINA_HOME" \
  -Djava.io.tmpdir="$CATALINA_TMPDIR" \
  org.apache.catalina.startup.Bootstrap "$@" start
\
  >> "$CATALINA_BASE"/logs/catalina.out 2>&1 &
  else
"$_RUNJAVA" -Xmx400m...  $JAVA_OPTS
$CATALINA_OPTS \
  -Djava.endorsed.dirs="$JAVA_ENDORSED_DIRS"
-classpath "$CLASSPATH" \
  -Dcatalina.base="$CATALINA_BASE" \
  -Dcatalina.home="$CATALINA_HOME" \
  -Djava.io.tmpdir="$CATALINA_TMPDIR" \
  org.apache.catalina.startup.Bootstrap "$@" start
\
  >> "$CATALINA_BASE"/logs/catalina.out 2>&1 &
  fi

then it will not give u Error in then run the tomcat
sh catalina.sh start 

regards
Sonam Singh



--- Raj Saini <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> I was using the tomcat 4.0.3 with JDK 1.4. Tomcat
> was integrated with 
> apache using warp connector. I used to have the same
> problem you have 
> now. I recently upgraded to Tomcat 4.1.12 and warp
> to mod_jk with load 
> balancing with two instances of tomcat on the same
> server.
> 
> Memory usages which used to shoot upto 200 MB in a
> single day is now 
> restricted to 3-4 MBs a day.
> 
> I cant not say surely my problem was due to warp or
> tomcat 4.0.3. Your 
> can try upgrading to tomcat 4.1.12.
> 
> Raj
> 
>   earlier is now
> > Hi all,
> > 
> > I have apache(2.0.39) and tomcat(4.0.4) configured
> on different solaris
> > 8 machines using mod_jk. I have two instances of
> tomcat running, each
> > serving different jsp/servlet/bean application. I
> see lot of OutOfMemory
> > errors in tomcat logs after few hours, some times
> tomcat totally
> > crashes, if I do not restart. I am pretty much
> monitor java process
> > using prstat and if the memory reaches maximum
> value, I am restarting
> > tomcat.
> > 
> > here is my jdk version...
> > 
> > java version "1.3.1"
> > Java(TM) 2 Runtime Environment, Standard Edition
> (build 1.3.1-b24)
> > Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed
> mode)
> > 
> > I have increased the heap size from 128M to 256M,
> it didn't help much
> > other than running for few more hours.
> > 
> > and currently I have set up 256M min and 256M max
> values for heap size.
> > 
> > I am wondering, is there any known issues with
> running tomcat4.0.4 under
> > jdk1.3.1(build 1.3.1-b24, mixed mode). ?
> > 
> > Is there any preferred jdk version(less memory
> leaks) for tomcat 4.0.4 ?
> > 
> > thanks in advance
> > 
> > Raj
> > 
> 
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com

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



Index.jsp page in apache and tomcat config....

2002-10-08 Thread Raj Mettai

Hi all,

I have apache(2.0.39) and tomcat(4.0.4) configured on different solaris 8 machines 
using mod_jk such that apache servers all html and images while tomcat servers jsp and 
servlets.

Here is my jkMount from httpd.conf 
JkMount /*.jsp tomcat1
JkMount /servlet/* tomcat1

I want to configure apache to default to index.jsp page when I try to access the 
directory (ex :  http://www.apacheserver.com/online/  should go to 
http://www.apacheserver.com/online/index.jsp). How can I achieve this, the apache 
documentroot directory does not have any index.jsp's,so how can you make apache to 
defualt to index.jsp.

I have modified DirectoryIndex also to include index.jsp, still apache gives 
403(Access forbidden).

I have lot of links in the site that are just linking to directory without index.jsp, 
I have to modify them all otherwise.

any thoughts 

thanks

-Raj



java.lang.OutOfMemoryError

2002-10-08 Thread Raj Mettai

Hi all,

I have apache(2.0.39) and tomcat(4.0.4) configured on different solaris 8 machines 
using mod_jk. I have two instances of tomcat running, each serving different 
jsp/servlet/bean application. I see lot of OutOfMemory errors in tomcat logs after few 
hours, some times tomcat totally crashes, if I do not restart. I am pretty much 
monitor java process using prstat and if the memory reaches maximum value, I am 
restarting tomcat.

here is my jdk version...

java version "1.3.1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24)
Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode)

I have increased the heap size from 128M to 256M, it didn't help much other than 
running for few more hours.

and currently I have set up 256M min and 256M max values for heap size.

I am wondering, is there any known issues with running tomcat4.0.4 under 
jdk1.3.1(build 1.3.1-b24, mixed mode). ?

Is there any preferred jdk version(less memory leaks) for tomcat 4.0.4 ?

thanks in advance

Raj



Not enough space Error: on tomcat 4.0.4

2002-09-24 Thread Raj Mettai

I am running tomcat 4.0.4 on solaris8. I am getting Not enough space error after few 
days of running when I try to compile a jsp page, every thing works fine once I 
restart the tomcat. 

Is it the heap Issue ?  I am running tomcat with default values

any thoughts ?


Here is the error from log files.

java.io.IOException: Not enough space
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.(UNIXProcess.java:54)
at java.lang.Runtime.execInternal(Native Method)
at java.lang.Runtime.exec(Runtime.java:551)
at java.lang.Runtime.exec(Runtime.java:418)
at org.apache.catalina.servlets.CGIServlet$CGIRunner.run(CGIServlet.java:1585)
at org.apache.catalina.servlets.CGIServlet.doGet(CGIServlet.java:635)
at org.apache.catalina.servlets.CGIServlet.doPost(CGIServlet.java:597)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
at java.lang.Thread.run(Thread.java:484)


thanks

-Raj



RE: Running multiple tomcat instances ?????

2002-09-23 Thread Raj Mettai

Thanks John, I will read the doc and try to get that code working, 
meanwhile,  I have a found att version of ps under /usr/ucb/ps (solaris)

which will give you a whole lot of information about the processes...

example:

# /usr/ucb/ps -auxwww |grep tomcat   
root  5629  0.0  5.65760827824 ?S   Sep 20  0:27
/usr/java/bin/../bin/sparc/native_threads/java
-Djava.endorsed.dirs=/opt/tomcat2/bin:/opt/tomcat2/common/lib -classpath
/usr/java/lib/tools.jar:/opt/tomcat2/bin/bootstrap.jar
-Dcatalina.base=/opt/tomcat2 -Dcatalina.home=/opt/tomcat2
-Djava.io.tmpdir=/opt/tomcat2/temp org.apache.catalina.startup.Bootstrap
start

-Raj


>>> [EMAIL PROTECTED] 09/23/02 04:25PM >>>

Well, I can't really provide details, I was sharing something that I had
bookmarked, not something I've implemented.

Looking at the error, though, it would seem to me that you have to
declare
your class something like org.my.class.PidLifeCycle, not just
"PidLifeCycle".  Tim's post was an example, I don't know that he was
claiming that the code snippets he posted were exactly correct.

"ClassNotFoundException" is pretty basic, and self-explanatory.  Tomcat
is
just saying it can't find your class, and/or its declared incorrectly in
server.xml.

Check the docs:
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/context.html
especially the section entitled "Lifecycle Listeners".

When you get it working, how about posting a HOWTO?

John

> -Original Message-
> From: Raj Mettai [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 23, 2002 4:18 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Running multiple tomcat instances ?
> 
> 
> Hi John,
> 
> I have compiled the code and copied to $CATALINA_HOME$/bin
> then added the following snippet into server.xml
> 
>   
>   
> 
> 
> 
> 
> when I start the tomcat, I am not seeing any tomcat.pid and I 
> am getting
> the following error in catalina.out
> 
> ERROR reading /opt/tomcat1/conf/server.xml
> At Line 28 /Server/Service/Listener/ className=PidLifeCycle 
> 
> Catalina.start: java.lang.ClassNotFoundException: PidLifeCycle
> java.lang.ClassNotFoundException: PidLifeCycle
> at
> org.apache.catalina.loader.StandardClassLoader.loadClass(Stand
> ardClassLoader.java:1127)
> at
> org.apache.catalina.loader.StandardClassLoader.loadClass(Stand
> ardClassLoader.java:992)
> at 
> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:120)
> at
> org.apache.catalina.util.xml.ObjectCreate.start(XmlMapper.java:616)
> at
> org.apache.catalina.util.xml.XmlMapper.matchStart(XmlMapper.java:412)
> at
> org.apache.catalina.util.xml.XmlMapper.startElement(XmlMapper.java:91)
> at
> org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAda
> pter.java:329)
> at
> org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376)
> at
> org.apache.xerces.validators.common.XMLValidator.callStartElem
> ent(XMLValidator.java:1284)
> at
> org.apache.xerces.framework.XMLDocumentScanner.scanElement(XML
> DocumentScanner.java:1806)
> at
> org.apache.xerces.framework.XMLDocumentScanner$ContentDispatch
> er.dispatch(XMLDocumentScanner.java:1182)
> at
> org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDo
> cumentScanner.java:381)
> at
> org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
> at
> org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
> at javax.xml.parsers.SAXParser.parse(SAXParser.java:362)
> at javax.xml.parsers.SAXParser.parse(SAXParser.java:301)
> at
> org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:228)
> at 
> org.apache.catalina.startup.Catalina.start(Catalina.java:725)
> at
> org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
> at
> org.apache.catalina.startup.Catalina.process(Catalina.java:179)
> at java.lang.reflect.Method.invoke(Native Method)
> at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
> 
> 
> thanks 
> 
> -Raj
> 
> 
> >>> [EMAIL PROTECTED] 09/23/02 12:50PM >>>
> 
> Well, in that case, I will include here the content of a 
> message posted
> by
> Tim Funk on 6/13/2002, which has his solution for this, which I find
> pretty
> neat.  Hopefully Tim doesn't mind, and I should add that this would
> break
> portability, most notably on Windows machines.
> 
> On 6/13/2002, Tim Funk wrote:
> 
> For what its worth - I created (and 

RE: Running multiple tomcat instances ?????

2002-09-23 Thread Raj Mettai

Hi John,

I have compiled the code and copied to $CATALINA_HOME$/bin
then added the following snippet into server.xml

  
  




when I start the tomcat, I am not seeing any tomcat.pid and I am getting
the following error in catalina.out

ERROR reading /opt/tomcat1/conf/server.xml
At Line 28 /Server/Service/Listener/ className=PidLifeCycle 

Catalina.start: java.lang.ClassNotFoundException: PidLifeCycle
java.lang.ClassNotFoundException: PidLifeCycle
at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:1127)
at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:992)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at
org.apache.catalina.util.xml.ObjectCreate.start(XmlMapper.java:616)
at
org.apache.catalina.util.xml.XmlMapper.matchStart(XmlMapper.java:412)
at
org.apache.catalina.util.xml.XmlMapper.startElement(XmlMapper.java:91)
at
org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAdapter.java:329)
at
org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376)
at
org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidator.java:1284)
at
org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanner.java:1806)
at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1182)
at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
at
org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
at
org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:362)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:301)
at
org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:228)
at org.apache.catalina.startup.Catalina.start(Catalina.java:725)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native Method)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)


thanks 

-Raj


>>> [EMAIL PROTECTED] 09/23/02 12:50PM >>>

Well, in that case, I will include here the content of a message posted
by
Tim Funk on 6/13/2002, which has his solution for this, which I find
pretty
neat.  Hopefully Tim doesn't mind, and I should add that this would
break
portability, most notably on Windows machines.

On 6/13/2002, Tim Funk wrote:

For what its worth - I created (and use) a LifecycleListener that runs 
on startup which logs the process ID into a file called tomcat.pid. 
Which is created by a shell script called writepid.sh. Below is all the 
code to get this to work. This code also assumes your current working 
directory is $CATALINA_HOME.

--Begin code
import org.apache.catalina.LifecycleEvent;

/**
  * A helper for getting the PID of java so shutting down tomcat is MUCH
  * easier.
  */
public class PidLifeCycle implements
org.apache.catalina.LifecycleListener {
  public void lifecycleEvent(LifecycleEvent event)  {
 if ("start".equals(event.getType())) {
try {
 Runtime.getRuntime().exec("/bin/sh bin/writepid.sh");
} catch(Throwable e) {
   e.printStackTrace();
}
 }
  }
}
--End Code

The code above will launch the following shell script. Should be in the 
bin/ directory of your tomcat installation.
--Begin Shell script
echo $PPID > logs/tomcat.pid
--End Shell script

Then add the following into server.xml
--Begin server.xml snippet

--End server.xml snippet

-Tim

== end ===

Thanks, Tim!

John


> -Original Message-
> From: Anthony Milbourne [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 23, 2002 12:45 PM
> To: 'Tomcat Users List'
> Subject: RE: Running multiple tomcat instances ?
> 
> 
> Hi John
> 
> I don't think this option is available under Solaris :-(.
> 
> Anthony.
> 
> > -Original Message-
> > From:Turner, John [SMTP:[EMAIL PROTECTED]]
> > Sent:23 September 2002 16:17
> > To:'Tomcat Users List'
> > Subject:RE: Running multiple tomcat instances ?
> > 
> > 
> > Not sure about Solaris, but on Linux you can add 
> "--cols=XXX" to the "ps"
> > command, where "XXX" is a numeric column width.  So, while "ps -ef"
> > doesn't
> > show much, "ps -ef --cols=300" will show you everything you 
> need to know.
> > 
> > 
> > John
> > 
> > 
>

Running multiple tomcat instances ?????

2002-09-23 Thread Raj Mettai

Hi,

what is the best way to run multiple tomcat instances on single solaris
box ? 

1) Is it Installing multiple tomcats physically.

or else 

2) Installing once and use different server.xml files to start different
instances.

any advantages for one over the other ?

Also, if I do use 2nd process, and if one of the tomcat crashes, how
would I know which tomcat is 
running and which one crashed, because ps -ef|grep tomcat listing is
identical for both instances.

how do you know which instance is using which server.xml ?


thanks 

-Raj



RE: Apache2 and Tomcat4 on different boxes

2002-09-23 Thread Raj Mettai

yes, It was John, thanks to all the people who helped me wtih this

-Raj

>>> [EMAIL PROTECTED] 09/23/02 09:00AM >>>

Wow, that was a lot of effort!

John


> -Original Message-----
> From: Raj Mettai [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 20, 2002 5:02 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Apache2 and Tomcat4 on different boxes
> 
> 
> Hi,
> 
> Atlast, It's working, Apache is talking to remote tomcat on a 
> different
> machine. The problem was on tomcat configuration,I had defaultHost
> defined as localhost on  tag and actual hostName on 
>  tag,
> Once I have changed the defaultHost on  tag to actual 
> DNS name,
> every thing worked fine.
> 
> -Raj
> 
> >>> [EMAIL PROTECTED] 09/20/02 04:42AM >>>
> I have never run Tomcat under an Unix like OS, so I don't now.
> The host "neptune.broward.edu" is declared in the network 
> configuration
> of
> the machine? "ping neptune.broward.edu" works?
> 
> -Message d'origine-
> De : Raj Mettai [mailto:[EMAIL PROTECTED]]
> Envoy? : jeudi 19 septembre 2002 22:30
> ? : [EMAIL PROTECTED]
> Objet : RE: Apache2 and Tomcat4 on different boxes
> 
> 
> Hi Vincent,
> 
> I am running tomcat under root user, do you think it has 
> anything to do
> for the configuration not to work..
> 
> 
> again here are my latest mod_jk.log..
> 
> [Thu Sep 19 15:28:02 2002]  [jk_uri_worker_map.c (172)]: Into
> jk_uri_worker_map_t::uri_worker_map_alloc
> [Thu Sep 19 15:28:02 2002]  [jk_uri_worker_map.c (375)]: Into
> jk_uri_worker_map_t::uri_worker_map_open
> [Thu Sep 19 15:28:02 2002]  [jk_uri_worker_map.c (396)]:
> jk_uri_worker_map_t::uri_worker_map_open, rule map size is 0
> [Thu Sep 19 15:28:02 2002]  [jk_uri_worker_map.c (422)]:
> jk_uri_worker_map_t::uri_worker_map_open, done
> [Thu Sep 19 15:28:02 2002]  [jk_worker.c (88)]: Into wc_open
> [Thu Sep 19 15:28:02 2002]  [jk_worker.c (222)]: Into 
> build_worker_map,
> creating 1 workers
> [Thu Sep 19 15:28:02 2002]  [jk_worker.c (228)]: build_worker_map,
> creating worker ajp13
> [Thu Sep 19 15:28:02 2002]  [jk_worker.c (148)]: Into wc_create_worker
> [Thu Sep 19 15:28:02 2002]  [jk_worker.c (162)]: 
> wc_create_worker, about
> to create instance ajp13 of ajp13
> [Thu Sep 19 15:28:02 2002]  [jk_ajp13_worker.c (108)]: Into
> ajp13_worker_factory
> [Thu Sep 19 15:28:02 2002]  [jk_worker.c (171)]: 
> wc_create_worker, about
> to validate and init ajp13
> [Thu Sep 19 15:28:02 2002]  [jk_ajp_common.c (1178)]: Into
> jk_worker_t::validate
> [Thu Sep 19 15:28:02 2002]  [jk_ajp_common.c (1198)]: In
> jk_worker_t::validate for worker ajp13 contact is
> neptune.broward.edu:8009
> [Thu Sep 19 15:28:02 2002]  [jk_ajp_common.c (1226)]: Into
> jk_worker_t::init
> [Thu Sep 19 15:28:02 2002]  [jk_worker.c (187)]: 
> wc_create_worker, done
> [Thu Sep 19 15:28:02 2002]  [jk_worker.c (238)]: build_worker_map,
> removing old ajp13 worker
> [Thu Sep 19 15:28:02 2002]  [jk_worker.c (250)]: 
> build_worker_map, done
> [Thu Sep 19 15:28:02 2002]  [jk_worker.c (111)]: wc_open, done 1
> 
> 
> thanks a lot
> 
> -Raj
> >>> [EMAIL PROTECTED] 09/19/02 03:58AM >>>
> Sorry I look at your config files, but I see nothing bad (as 
> you I think
> ;-) )
> 
> In your mod_jk logs, we can see that the ajp13 worker is not 
> found first
> then it's running and found by Apache. And then, it's closed during
> request
> processing.
> That's a strange beaviours.
> 
> You run this configuration :
> Apache/2.0.39 (Unix)
> mod_ssl/2.0.39
> OpenSSL/0.9.6g
> mod_jk/1.2.0
> 
> What have you compile by your self?
> If I were you, I will recompile Apache 2.0.39 (You can change 
> to 2.0.40)
> without mod_ssl, mod_jk 1.2.0 and Tomcat 4.0.4 on your 
> machine, because
> it'is so strange...
> Try to restart your test in a clean environement. Save your config
> files,
> they seem to me not bad.
> Try to do a working configuration without mod_ssl.
> 
> That's poor help... Sorry. But at this step, I don't see anything.
> 
> -Message d'origine-
> De : Raj Mettai [mailto:[EMAIL PROTECTED]]
> Envoy? : mercredi 18 septembre 2002 22:12
> ? : [EMAIL PROTECTED]
> Objet : RE: Apache2 and Tomcat4 on different boxes
> 
> 
> These are yesterday logs...I dont see anything for today..
> 
> [Tue Sep 17 09:58:27 2002]  [jk_worker.c (132)]: Into
> wc_get_worker_for_name ajp13
> [Tue Sep 17 09:58:27 2002]  [jk_worker.c (136)]: 
> wc_get_worker_for_name,
> done did not found a worker
> [Tue Sep 17 09:58:27 2002]  [jk_uri_worker_m

Re: Apache2 and Tomcat4 on different boxes

2002-09-23 Thread Raj Mettai

I am referring to the top level container in container hierarchy...

-Raj

>>> [EMAIL PROTECTED] 09/21/02 12:34AM >>>

Raj Mettai wrote:
>
> server.xml changes on  Machine B(tomcat machine)
> ---
> Change the both the  Tag and  tag defaultHost to tomcat
> hostName(ex: tomcat.apache.com)
> (This should match with your workers.properties host name.)
> 
> 
>unpackWARs="true">
>   
> 

Hi All.
In above modification to  and  tags , R U referring to the
"top level container in the container hiararchy or the virtual host ???
THX

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



Re: Apache2 and Tomcat4 on different boxes

2002-09-20 Thread Raj Mettai

FQDN - full qualified domain name (ex: jakarta.apache.org)



>>> [EMAIL PROTECTED] 09/20/02 05:02AM >>>
Hi All.
Same here : got Apache2 and Tomcat404 collaborating thru mod_jk.20
today.
The new web-server has Apache2 and the old app-server has Apache 1.3.16
( I cannot change anything on the app-server), so I hope that won't
throw mod_jk.so
Also I am copying in the opposite direction to yours : from the Apache2
box to the Tomcat404 box.
Reading thru your email : John mentioned that we should change the HOST
value in workers.properties to point to FODN of machine hosting Tomcat.
What is FODN ???

--
To unsubscribe, e-mail:  

For additional commands, e-mail:




RE: Apache2 and Tomcat4 on different boxes

2002-09-20 Thread Raj Mettai

Hi Venkat,

Here it goes.

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

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

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

Below DocumentRoot "/usr/local/apache/htdocs"

Add following lines...

JkMount /examples ajp13
JkMount /examples/* ajp13

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

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

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

# list the workers by name
worker.list=ajp13

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

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

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

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

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

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




Also Comment out the WARP connector 

  



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


  
  


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

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


Let me know, how it goes...

-Raj








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

  









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


Thks in advance
Venkat


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

-Raj

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

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


Hi Vincent,

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


again here are my latest mod_jk.log..

[Thu Sep 19 15:28:02 2002]  [jk_uri_worker_map.c (172)]: Into
jk_uri_worker_map_t::uri_worker_map_alloc
[Thu Sep 19 15:28:02 2002]  [jk_uri_worker_map.c (375)]: Into
jk_uri_worker_map_t::uri_worker_map_open
[Thu Sep 19 15:28:02 2002]  [jk_uri_worker_map.c (396)]:
jk_uri_worker_map_t::uri_worker_map_open, rule map size is 0
[Thu Sep 19 15:28:02 2002]  [jk_uri_worker_map.c (422)]:
jk_uri_worker_map_t::uri_worker_map_ope

RE: Apache2 and Tomcat4 on different boxes

2002-09-20 Thread Raj Mettai

Hi,

Atlast, It's working, Apache is talking to remote tomcat on a different
machine. The problem was on tomcat configuration,I had defaultHost
defined as localhost on  tag and actual hostName on  tag,
Once I have changed the defaultHost on  tag to actual DNS name,
every thing worked fine.

-Raj

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

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


Hi Vincent,

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


again here are my latest mod_jk.log..

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


thanks a lot

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

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

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

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

That's poor help... Sorry. But at this step, I don't see anything.

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


These are yesterday logs...I dont see anything for today..

[Tue Sep 17 09:58:27 2002]  [jk_worker.c (132)]: Into
wc_get_worker_for_name ajp13
[Tue Sep 17 09:58:27 2002]  [jk_worker.c (136)]: wc_get_worker_for_name,
done did not found a worker
[Tue Sep 17 09:58:27 2002]  [jk_uri_worker_map.c (460)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Tue Sep 17 09:58:27 2002]  [jk_uri_worker_map.c (477)]: Attempting to
map URI '/error/HTTP_NOT_FOUND.html.var'
[Tue Sep 17 09:58:27 2002]  [jk_uri_worker_map.c (502)]:
jk_uri_worker_map_t::map_uri_to_worker, Found a context match ajp13 -> /
[Tue Sep 17 10:09:01 2002]  [jk_worker.c (118)]: Into wc_close
[Tue Sep 17 10:09:01 2002]  [jk_worker.c (199)]: close_workers got -1
workers to destroy
[Tue Sep 17 10:09:01 2002]  [jk_worker.c (120)]: wc_close, done
[Tue Sep 17 10:09:01 2002]  [jk_uri_worker_map.c (190)]: Into
jk_uri_worker_map_t::uri_worker_map_free
[Tue Sep 17 10:09:01 2002]  [jk_uri_worker_map.c (441)]: Into
jk_uri_worker_map_t::uri_worker_map_close

apache error logs...
—-

[Wed Sep 18 15:54:43 2002] [notice] Apache/2.0.39 (Unix) mod_ssl/2.0.39
OpenSSL/0.9.6g mod_jk/1.2.0 configured -- resuming normal operations


thanks vincent..

-Raj






: Raj Mettai [mailt

RE: Apache2 and Tomcat4 on different boxes

2002-09-19 Thread Raj Mettai

Hi Vincent,

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


again here are my latest mod_jk.log..

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


thanks a lot

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

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

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

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

That's poor help... Sorry. But at this step, I don't see anything.

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


These are yesterday logs...I dont see anything for today..

[Tue Sep 17 09:58:27 2002]  [jk_worker.c (132)]: Into
wc_get_worker_for_name ajp13
[Tue Sep 17 09:58:27 2002]  [jk_worker.c (136)]: wc_get_worker_for_name,
done did not found a worker
[Tue Sep 17 09:58:27 2002]  [jk_uri_worker_map.c (460)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Tue Sep 17 09:58:27 2002]  [jk_uri_worker_map.c (477)]: Attempting to
map URI '/error/HTTP_NOT_FOUND.html.var'
[Tue Sep 17 09:58:27 2002]  [jk_uri_worker_map.c (502)]:
jk_uri_worker_map_t::map_uri_to_worker, Found a context match ajp13 -> /
[Tue Sep 17 10:09:01 2002]  [jk_worker.c (118)]: Into wc_close
[Tue Sep 17 10:09:01 2002]  [jk_worker.c (199)]: close_workers got -1
workers to destroy
[Tue Sep 17 10:09:01 2002]  [jk_worker.c (120)]: wc_close, done
[Tue Sep 17 10:09:01 2002]  [jk_uri_worker_map.c (190)]: Into
jk_uri_worker_map_t::uri_worker_map_free
[Tue Sep 17 10:09:01 2002]  [jk_uri_worker_map.c (441)]: Into
jk_uri_worker_map_t::uri_worker_map_close

apache error logs...
—-

[Wed Sep 18 15:54:43 2002] [notice] Apache/2.0.39 (Unix) mod_ssl/2.0.39
OpenSSL/0.9.6g mod_jk/1.2.0 configured -- resuming normal operations


thanks vincent..

-Raj






: Raj Mettai [mailto:[EMAIL PROTECTED]]
Envoye : mercredi 18 septembre 2002 17:44
A : [EMAIL PROTECTED]
Objet : RE: Apache2 and Tomcat4 on different boxes


yes, I have tried both( name and Ip)  http://10.103.2.4/examples  and
http://morpheus.broward.edu/exampels  , for both of them I am getting
http 400 - Bad Request(it's not 404)

Raj



>>> [EMAIL PROTECTED] 09/18/02 11:41AM >>>
When you test, you enter this URL?
http://10.103.2.4/examples
  -Message d'origine-
  De : Raj Mettai [mailto:[EMAIL PROTECTED]]
  Envoye : mercredi 18 septembre 2002 16:42
  A : [EMAIL PROTECTED]
  Objet : RE: Apache2 and Tomcat4 on different boxes


  Hi Vincent,

  I had a typo in my servername and Ip address...

  apache server 10.103.2.4
  

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

2002-09-19 Thread Raj Mettai

I have been fighting to get this configuration work for weeks, I can't
wait to see howto for this..

-Raj

>>> [EMAIL PROTECTED] 09/19/02 03:18PM >>>
Venkat,

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

-Mike Schulz


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


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


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


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



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

John


> -Original Message-
> From: Michael Schulz [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 19, 2002 12:18 PM
> To: Tomcat Users List
> Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4
> installed on diffrent machines with mod_jk
>
>
>
> I *just* completed a successful configuration of Apache
> 2.0.40 and Tomcat
> 4.0.4 using the mod_jk.so connector (provided by John Turner,
> thanks John)
> on RedHat Linux 7.3 where Apache and Tomcat are running on separate
> machines.
>
> If Apache is not connecting to tomcat, then you should look
> on the Apache
> box for the cause (assuming that the Tomcat box is running! ).
>
> In your httpd.conf file, there should be two directives, JkLogFile and
> JkLogLevel.  Set the JkLogLevel value to "debug" and restart
> Apache.  Then
> when you make a request, you should be able to see what is
> happening via the
> log file.
>
> Note: If you followed John's instructions for configuring the
> system, you
> will have a problem because those instructions depend on the
> Tomcat listener
> (ApacheConfig) to generate the mod_jk.conf file.  This won't
> work if tomcat
> and apache are on separate boxes, so you'll have to do that
> part manually
> (or copy the generated file from the tomcat box to the apache box).
>
> If your httpd.conf file contains this directive:
>
> include /usr/local/tomcat/conf/auto/mod_jk.conf
>
> then you will have problems, because tomcat is not on the apache box.
>
>
> -Mike Schulz
>
>
>
> -Original Message-
> From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 19, 2002 10:56 AM
> To: Tomcat Users List
> Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4
> installed on diffrent machines with mod_jk
>
>
> Even though I didn't copy, Atleast Apche should have
> connected to tomcat and
> I should have executed jsp pages existed on tomcat box, here apache is
> serving some static files which are existing on apache boxe,
> but when I
> tried to execute http://www.xxx.com/examples/(in mod_jk.conf  jkmount
> /examples/* ajp13) it is supposed to connect to tomcat box and execute
> jsp's, but it is not recognising them, because it is not even
> connected to
> tomcat
>
>
> -Original Message-
> From:Michael Schulz [mailto:[EMAIL PROTECTED]]
> Sent:Thu 9/19/2002 11:46 AM
> To:Tomcat Users List
> Cc:
> Subject:RE: problem with connecting Apache2.0.40 and
> Tomcat4.0.4 installed
> on diffrent machines with mod_jk
>
> If you want to put Apache and Tomcat on separate boxes, and
> still run the
> Tomcat examples, you will have to copy the static (.html)
> files from the
> tomcat box to the apache box so that apache can serve them.
>
> -Mike Schulz
>
>
> -Original Message-
> From: Turner, John [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 19, 2002 10:26 AM
> To: 'Tomcat Users List'
> Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4
> installed on diffrent machines with mod_jk
>
>
>
> The lines like "tomcat_home" etc. in workers.properties are optional.
> (thanks Milt!)  You only need the worker definitions (like
> port number,
> etc).
>
> I'm not sure about the Alias /manager question, that is a
> good question.
>
> You don't need mod_jk.so on the Tomcat box, its an Apache module.
>
> John
>
>
> > -Original Message-
> > From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, September 19, 2002 10:47 AM
> > To: [EMAIL PROTECTED]
> > Subject: problem with connecting Apache2.0.40 and Tomcat4.0.4
> > installed
> > on diffrent mach

RE: Apache2 and Tomcat4 on different boxes

2002-09-18 Thread Raj Mettai

These are yesterday logs...I dont see anything for today..

[Tue Sep 17 09:58:27 2002]  [jk_worker.c (132)]: Into
wc_get_worker_for_name ajp13
[Tue Sep 17 09:58:27 2002]  [jk_worker.c (136)]: wc_get_worker_for_name,
done did not found a worker
[Tue Sep 17 09:58:27 2002]  [jk_uri_worker_map.c (460)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Tue Sep 17 09:58:27 2002]  [jk_uri_worker_map.c (477)]: Attempting to
map URI '/error/HTTP_NOT_FOUND.html.var'
[Tue Sep 17 09:58:27 2002]  [jk_uri_worker_map.c (502)]:
jk_uri_worker_map_t::map_uri_to_worker, Found a context match ajp13 -> /
[Tue Sep 17 10:09:01 2002]  [jk_worker.c (118)]: Into wc_close
[Tue Sep 17 10:09:01 2002]  [jk_worker.c (199)]: close_workers got -1
workers to destroy
[Tue Sep 17 10:09:01 2002]  [jk_worker.c (120)]: wc_close, done
[Tue Sep 17 10:09:01 2002]  [jk_uri_worker_map.c (190)]: Into
jk_uri_worker_map_t::uri_worker_map_free
[Tue Sep 17 10:09:01 2002]  [jk_uri_worker_map.c (441)]: Into
jk_uri_worker_map_t::uri_worker_map_close

apache error logs...
—-

[Wed Sep 18 15:54:43 2002] [notice] Apache/2.0.39 (Unix) mod_ssl/2.0.39
OpenSSL/0.9.6g mod_jk/1.2.0 configured -- resuming normal operations


thanks vincent..

-Raj






: Raj Mettai [mailto:[EMAIL PROTECTED]]
Envoye : mercredi 18 septembre 2002 17:44
A : [EMAIL PROTECTED]
Objet : RE: Apache2 and Tomcat4 on different boxes


yes, I have tried both( name and Ip)  http://10.103.2.4/examples  and
http://morpheus.broward.edu/exampels  , for both of them I am getting 
http 400 - Bad Request(it's not 404)

Raj



>>> [EMAIL PROTECTED] 09/18/02 11:41AM >>>
When you test, you enter this URL?
http://10.103.2.4/examples
  -----Message d'origine-
  De : Raj Mettai [mailto:[EMAIL PROTECTED]]
  Envoye : mercredi 18 septembre 2002 16:42
  A : [EMAIL PROTECTED]
  Objet : RE: Apache2 and Tomcat4 on different boxes


  Hi Vincent,

  I had a typo in my servername and Ip address...

  apache server 10.103.2.4
  tomcat server 10.103.2.30

  and attached are my latest conf files

  I am getting 400 Bad request error, when I try to access examples...I
have
modified virualhost ip...that didn't fix it.

  thanks
  Raj

  >>> [EMAIL PROTECTED] 09/18/02 10:07AM >>>
  When did you have this error? When you type this URL :
  http://10.103.2.4/examples ?

  If it is the case, I think it's normal, because your Apache Virtual
Host
is
  just defined for 10.103.2.30.
  And It seems to me strange, because you said that the @IP of the
Apache
  server is 10.103.2.4 and you have a virtual host listenning on the
  10.103.2.30 @IP.
  I don't understand what you want really do.

  Hopes, it's pointed on your problem...

-Message d'origine-
De : Raj Mettai [mailto:[EMAIL PROTECTED]]
Envoye : mercredi 18 septembre 2002 15:26
A : [EMAIL PROTECTED]
Objet : Re: Apache2 and Tomcat4 on different boxes


thanks David,

I have removed the workers.list parm from workers.properties and
also
  there was typo in my last email for DNS and IP address..

Apache server 10.103.2 4(morphues.broward.edu)
Tomcat server 10.103.2.30(neptune.broward.edu)

Still, I am getting object not found errorapache is looking
under
  htdocs directory usr/local/apache/htdocs for /examples

Attached are the latest conf files..

thanks
Raj





>>> [EMAIL PROTECTED] 09/18/02 05:08AM >>>
Raj,

I hope something fell out of your workers file on it's way to me ...

You define the workers.list as using ajp12 and ajp13
But there is no definition for ajp12...

Also the host IP you give from the list below is the apache box.

Your httpd.conf file seems OK though.

David


Raj Mettai wrote:

> thanks Daniel for you response, I have tried the options you
> suggested, tested telnet from apche to tomcat on port 8009, that
> worked fine and also configured apache/tomcat on each box(and they
are
> working fine), then I have changed the host in workers.properties
on
> apache box to point to tomcat box, but that didn't work for me.
Can
> you please send me the config files(httpd.conf,
workers.properties,
> mod_jk.conf and server.xml) from both machines, may be I am
missing
> some simpe thingAlso I am attaching my config
> files(httpd.conf,workers.properties from apache and server.xml
from
> tomcat box.
>
> apache server 10.103.2.30(neptune.broward.edu)
> tomcat server 10.103.2.4(morpheus.broward.edu)
> (both are running on solaris 8)
>
> thanks again
>
> -Raj
>
> >>> [EMAIL PROTECTED] 09/15/02 07:53AM >>>
> I had all kinds of problems getting apache to speak to a remote
tomcat,
  

RE: Apache2 and Tomcat4 on different boxes

2002-09-18 Thread Raj Mettai

yes, I have tried both( name and Ip)  http://10.103.2.4/examples  and
http://morpheus.broward.edu/exampels  , for both of them I am getting 
http 400 - Bad Request(it's not 404)

Raj



>>> [EMAIL PROTECTED] 09/18/02 11:41AM >>>
When you test, you enter this URL?
http://10.103.2.4/examples
  -Message d'origine-
  De : Raj Mettai [mailto:[EMAIL PROTECTED]]
  Envoye : mercredi 18 septembre 2002 16:42
  A : [EMAIL PROTECTED]
  Objet : RE: Apache2 and Tomcat4 on different boxes


  Hi Vincent,

  I had a typo in my servername and Ip address...

  apache server 10.103.2.4
  tomcat server 10.103.2.30

  and attached are my latest conf files

  I am getting 400 Bad request error, when I try to access examples...I
have
modified virualhost ip...that didn't fix it.

  thanks
  Raj

  >>> [EMAIL PROTECTED] 09/18/02 10:07AM >>>
  When did you have this error? When you type this URL :
  http://10.103.2.4/examples ?

  If it is the case, I think it's normal, because your Apache Virtual
Host
is
  just defined for 10.103.2.30.
  And It seems to me strange, because you said that the @IP of the
Apache
  server is 10.103.2.4 and you have a virtual host listenning on the
  10.103.2.30 @IP.
  I don't understand what you want really do.

  Hopes, it's pointed on your problem...

-Message d'origine-
De : Raj Mettai [mailto:[EMAIL PROTECTED]]
Envoye : mercredi 18 septembre 2002 15:26
A : [EMAIL PROTECTED]
Objet : Re: Apache2 and Tomcat4 on different boxes


thanks David,

I have removed the workers.list parm from workers.properties and
also
  there was typo in my last email for DNS and IP address..

Apache server 10.103.2 4(morphues.broward.edu)
Tomcat server 10.103.2.30(neptune.broward.edu)

Still, I am getting object not found errorapache is looking
under
  htdocs directory usr/local/apache/htdocs for /examples

Attached are the latest conf files..

thanks
Raj





>>> [EMAIL PROTECTED] 09/18/02 05:08AM >>>
Raj,

I hope something fell out of your workers file on it's way to me ...

You define the workers.list as using ajp12 and ajp13
But there is no definition for ajp12...

Also the host IP you give from the list below is the apache box.

Your httpd.conf file seems OK though.

David


Raj Mettai wrote:

> thanks Daniel for you response, I have tried the options you
> suggested, tested telnet from apche to tomcat on port 8009, that
> worked fine and also configured apache/tomcat on each box(and they
are
> working fine), then I have changed the host in workers.properties
on
> apache box to point to tomcat box, but that didn't work for me.
Can
> you please send me the config files(httpd.conf,
workers.properties,
> mod_jk.conf and server.xml) from both machines, may be I am
missing
> some simpe thingAlso I am attaching my config
> files(httpd.conf,workers.properties from apache and server.xml
from
> tomcat box.
>
> apache server 10.103.2.30(neptune.broward.edu)
> tomcat server 10.103.2.4(morpheus.broward.edu)
> (both are running on solaris 8)
>
> thanks again
>
> -Raj
>
> >>> [EMAIL PROTECTED] 09/15/02 07:53AM >>>
> I had all kinds of problems getting apache to speak to a remote
tomcat,
> and most of them were on the apache side.
> The only problem I had on the app (tomcat) server was having the
> firewalls (yes there are 2 firewalls between the web and app
server, a
> dedicated firewall box and the iptables/chains running on the
actual
app
> server) blocking port 8009.
> You should also make sure that port 8009 is not blocked on the
tomcat
> box. An easy way to test this is have tomcat running and from your
web
> server just telnet into port 8009 of your tomcat box. You should
> connect, otherwise you need to sort out firewall rules first.
>
> The problems I had on the apache side were basically not having
mod_jk
> work properly.
> I found out that the best way of approaching the apache/tomcat on
> different boxes task is to install and test apache/tomcat on each
box
> individually. When they both work, then just change your
apache-side
> workers.properties to point at the right host (by IP address
worked
for
> me).
>
> Also, try just JkMount'ing /examples outside the Virtual Server
block.
> It's best to troubleshoot a pure mod_jk connectivity issue,
excluding
> stuff like vhost context mismatches.
>
> I now have apache 2.0.40 speak with a remote tomcat 4.1.10 via
mod_jk2,
> which I must say was easier to accomplish, simply because the
4.1.10
> connectors

RE: Apache2 and Tomcat4 on different boxes

2002-09-18 Thread Raj Mettai

yes, you are right, I have installed and tested apache/tomcat on each
box
individually. When they both work, then just changed my apache-side
workers.properties to point at the right host(tomcat box IP). Tomcat is
not running on apache box now, I have stopped it.

Raj


>>> [EMAIL PROTECTED] 09/18/02 11:00AM >>>
You have specify that in your httpd.conf:

JkWorkersFile "/opt/tomcat4/conf/jk/workers.properties"
JkLogFile "/opt/tomcat4/logs/mod_jk.log"

you have another tomcat installed on your apache server?

  -Message d'origine-
  De : Raj Mettai [mailto:[EMAIL PROTECTED]]
  Envoye : mercredi 18 septembre 2002 16:42
  A : [EMAIL PROTECTED]
  Objet : RE: Apache2 and Tomcat4 on different boxes


  Hi Vincent,

  I had a typo in my servername and Ip address...

  apache server 10.103.2.4
  tomcat server 10.103.2.30

  and attached are my latest conf files

  I am getting 400 Bad request error, when I try to access examples...I
have
modified virualhost ip...that didn't fix it.

  thanks
  Raj

  >>> [EMAIL PROTECTED] 09/18/02 10:07AM >>>
  When did you have this error? When you type this URL :
  http://10.103.2.4/examples ?

  If it is the case, I think it's normal, because your Apache Virtual
Host
is
  just defined for 10.103.2.30.
  And It seems to me strange, because you said that the @IP of the
Apache
  server is 10.103.2.4 and you have a virtual host listenning on the
  10.103.2.30 @IP.
  I don't understand what you want really do.

  Hopes, it's pointed on your problem...

-Message d'origine-
De : Raj Mettai [mailto:[EMAIL PROTECTED]]
Envoye : mercredi 18 septembre 2002 15:26
A : [EMAIL PROTECTED]
Objet : Re: Apache2 and Tomcat4 on different boxes


thanks David,

I have removed the workers.list parm from workers.properties and
also
  there was typo in my last email for DNS and IP address..

Apache server 10.103.2 4(morphues.broward.edu)
Tomcat server 10.103.2.30(neptune.broward.edu)

Still, I am getting object not found errorapache is looking
under
  htdocs directory usr/local/apache/htdocs for /examples

Attached are the latest conf files..

thanks
Raj





>>> [EMAIL PROTECTED] 09/18/02 05:08AM >>>
Raj,

I hope something fell out of your workers file on it's way to me ...

You define the workers.list as using ajp12 and ajp13
But there is no definition for ajp12...

Also the host IP you give from the list below is the apache box.

Your httpd.conf file seems OK though.

David


Raj Mettai wrote:

> thanks Daniel for you response, I have tried the options you
> suggested, tested telnet from apche to tomcat on port 8009, that
> worked fine and also configured apache/tomcat on each box(and they
are
> working fine), then I have changed the host in workers.properties
on
> apache box to point to tomcat box, but that didn't work for me.
Can
> you please send me the config files(httpd.conf,
workers.properties,
> mod_jk.conf and server.xml) from both machines, may be I am
missing
> some simpe thingAlso I am attaching my config
> files(httpd.conf,workers.properties from apache and server.xml
from
> tomcat box.
>
> apache server 10.103.2.30(neptune.broward.edu)
> tomcat server 10.103.2.4(morpheus.broward.edu)
> (both are running on solaris 8)
>
> thanks again
>
> -Raj
>
> >>> [EMAIL PROTECTED] 09/15/02 07:53AM >>>
> I had all kinds of problems getting apache to speak to a remote
tomcat,
> and most of them were on the apache side.
> The only problem I had on the app (tomcat) server was having the
> firewalls (yes there are 2 firewalls between the web and app
server, a
> dedicated firewall box and the iptables/chains running on the
actual
app
> server) blocking port 8009.
> You should also make sure that port 8009 is not blocked on the
tomcat
> box. An easy way to test this is have tomcat running and from your
web
> server just telnet into port 8009 of your tomcat box. You should
> connect, otherwise you need to sort out firewall rules first.
>
> The problems I had on the apache side were basically not having
mod_jk
> work properly.
> I found out that the best way of approaching the apache/tomcat on
> different boxes task is to install and test apache/tomcat on each
box
> individually. When they both work, then just change your
apache-side
> workers.properties to point at the right host (by IP address
worked
for
> me).
>
> Also, try just JkMount'ing /examples outside the Virtual Server
block.
> It's best to troubleshoot a pure mod_jk connectivity issue,
excluding
   

RE: Apache2 and Tomcat4 on different boxes

2002-09-18 Thread Raj Mettai



Hi Vincent, 
 
I had a typo in my servername and Ip address...
 
apache server 10.103.2.4
tomcat server 10.103.2.30
 
and attached are my latest conf files
 
I am getting 400 Bad request error, when I try to access examples...I have 
modified virualhost ip...that didn't fix it.
 
thanks
Raj>>> [EMAIL PROTECTED] 09/18/02 10:07AM 
>>>When did you have this error? When you type this URL 
:    http://10.103.2.4/examples ?If it 
is the case, I think it's normal, because your Apache Virtual Host isjust 
defined for 10.103.2.30.And It seems to me strange, because you said that 
the @IP of the Apacheserver is 10.103.2.4 and you have a virtual host 
listenning on the10.103.2.30 @IP.I don't understand what you want really 
do.Hopes, it's pointed on your problem...  -Message 
d'origine-  De : Raj Mettai [mailto:[EMAIL PROTECTED]]  
Envoye : mercredi 18 septembre 2002 15:26  A : 
[EMAIL PROTECTED]  Objet : Re: Apache2 and Tomcat4 on 
different boxes  thanks David,  I have removed the 
workers.list parm from workers.properties and alsothere was typo in my last 
email for DNS and IP address..  Apache server 10.103.2 
4(morphues.broward.edu)  Tomcat server 
10.103.2.30(neptune.broward.edu)  Still, I am getting object not 
found errorapache is looking underhtdocs directory 
usr/local/apache/htdocs for /examples  Attached are the latest conf 
files..  thanks  Raj  
>>> [EMAIL PROTECTED] 09/18/02 05:08AM >>>  
Raj,  I hope something fell out of your workers file on it's way to 
me ...  You define the workers.list as using ajp12 and 
ajp13  But there is no definition for ajp12...  Also the 
host IP you give from the list below is the apache box.  Your 
httpd.conf file seems OK though.  David  Raj 
Mettai wrote:  > thanks Daniel for you response, I have tried 
the options you  > suggested, tested telnet from apche to tomcat on 
port 8009, that  > worked fine and also configured apache/tomcat on 
each box(and they are  > working fine), then I have changed the host 
in workers.properties on  > apache box to point to tomcat box, but 
that didn't work for me. Can  > you please send me the config 
files(httpd.conf, workers.properties,  > mod_jk.conf and server.xml) 
from both machines, may be I am missing  > some simpe thingAlso 
I am attaching my config  > files(httpd.conf,workers.properties from 
apache and server.xml from  > tomcat box.  >  
> apache server 10.103.2.30(neptune.broward.edu)  > tomcat server 
10.103.2.4(morpheus.broward.edu)  > (both are running on solaris 
8)  >  > thanks again  >  > 
-Raj  >  > >>> [EMAIL PROTECTED] 
09/15/02 07:53AM >>>  > I had all kinds of problems getting 
apache to speak to a remote tomcat,  > and most of them were on the 
apache side.  > The only problem I had on the app (tomcat) server 
was having the  > firewalls (yes there are 2 firewalls between the 
web and app server, a  > dedicated firewall box and the 
iptables/chains running on the actual app  > server) blocking port 
8009.  > You should also make sure that port 8009 is not blocked on 
the tomcat  > box. An easy way to test this is have tomcat running 
and from your web  > server just telnet into port 8009 of your 
tomcat box. You should  > connect, otherwise you need to sort out 
firewall rules first.  >  > The problems I had on the 
apache side were basically not having mod_jk  > work 
properly.  > I found out that the best way of approaching the 
apache/tomcat on  > different boxes task is to install and test 
apache/tomcat on each box  > individually. When they both work, then 
just change your apache-side  > workers.properties to point at the 
right host (by IP address worked for  > me).  
>  > Also, try just JkMount'ing /examples outside the Virtual 
Server block.  > It's best to troubleshoot a pure mod_jk 
connectivity issue, excluding  > stuff like vhost context 
mismatches.  >  > I now have apache 2.0.40 speak with a 
remote tomcat 4.1.10 via mod_jk2,  > which I must say was easier to 
accomplish, simply because the 4.1.10  > connectors source compiles 
a lot better.  >  > Regards  >  
> Daniel Farinha  >  > -Original 
Message-  > From: Raj Mettai [mailto:[EMAIL PROTECTED]]  
> <mailto:[EMAIL PROTECTED]%5D>  
> Sent: 13 September 2002 20:56  > To: 
[EMAIL PROTECTED]  > Subject: RE: Apache2 and Tomcat4 
on different boxes  >  >  > Hi,  
>  > I had hostname on server.xml and IP in workers.properties, I 
have  > changed both to IP. But still, apache does not talk to 
tomcat. They work  > fine when they are on the same box, also, do I 
need to stutdown port  > 8080 on tomcat, because tomcat is 
accessible thru his port.  >  > Here are my latest 
config files..  >  > workers.p

Re: Apache2 and Tomcat4 on different boxes

2002-09-18 Thread Raj Mettai



thanks David,
 
I have removed the workers.list parm from workers.properties and also there 
was typo in my last email for DNS and IP address..
 
Apache server 10.103.2 4(morphues.broward.edu)
Tomcat server 10.103.2.30(neptune.broward.edu)
 
Still, I am getting object not found errorapache is looking under 
htdocs directory usr/local/apache/htdocs for /examples
 
Attached are the latest conf files..
 
thanks
Raj
 
 
>>> [EMAIL PROTECTED] 09/18/02 05:08AM 
>>>Raj,I hope something fell out of your workers file on 
it's way to me ...You define the workers.list as using ajp12 and 
ajp13But there is no definition for ajp12...Also the host IP you 
give from the list below is the apache box.Your httpd.conf file seems OK 
though.DavidRaj Mettai wrote:> thanks Daniel for 
you response, I have tried the options you > suggested, tested telnet 
from apche to tomcat on port 8009, that > worked fine and also configured 
apache/tomcat on each box(and they are > working fine), then I have 
changed the host in workers.properties on > apache box to point to tomcat 
box, but that didn't work for me. Can > you please send me the config 
files(httpd.conf, workers.properties, > mod_jk.conf and server.xml) from 
both machines, may be I am missing > some simpe thingAlso I am 
attaching my config > files(httpd.conf,workers.properties from apache and 
server.xml from > tomcat box.>  > apache server 
10.103.2.30(neptune.broward.edu)> tomcat server 
10.103.2.4(morpheus.broward.edu)> (both are running on solaris 
8)>  > thanks again>  > 
-Raj>> >>> [EMAIL PROTECTED] 09/15/02 07:53AM 
>>>> I had all kinds of problems getting apache to speak to a 
remote tomcat,> and most of them were on the apache side.> The 
only problem I had on the app (tomcat) server was having the> firewalls 
(yes there are 2 firewalls between the web and app server, a> dedicated 
firewall box and the iptables/chains running on the actual app> server) 
blocking port 8009.> You should also make sure that port 8009 is not 
blocked on the tomcat> box. An easy way to test this is have tomcat 
running and from your web> server just telnet into port 8009 of your 
tomcat box. You should> connect, otherwise you need to sort out firewall 
rules first.>> The problems I had on the apache side were 
basically not having mod_jk> work properly.> I found out that the 
best way of approaching the apache/tomcat on> different boxes task is to 
install and test apache/tomcat on each box> individually. When they both 
work, then just change your apache-side> workers.properties to point at 
the right host (by IP address worked for> me).>> Also, try 
just JkMount'ing /examples outside the Virtual Server block.> It's best 
to troubleshoot a pure mod_jk connectivity issue, excluding> stuff like 
vhost context mismatches.>> I now have apache 2.0.40 speak with a 
remote tomcat 4.1.10 via mod_jk2,> which I must say was easier to 
accomplish, simply because the 4.1.10> connectors source compiles a lot 
better.>> Regards>> Daniel Farinha>> 
-Original Message-> From: Raj Mettai [mailto:[EMAIL PROTECTED]] > 
<mailto:[EMAIL PROTECTED]%5D>> 
Sent: 13 September 2002 20:56> To: [EMAIL PROTECTED]> 
Subject: RE: Apache2 and Tomcat4 on different boxes>>> 
Hi,>> I had hostname on server.xml and IP in workers.properties, I 
have> changed both to IP. But still, apache does not talk to tomcat. They 
work> fine when they are on the same box, also, do I need to stutdown 
port> 8080 on tomcat, because tomcat is accessible thru his 
port.>> Here are my latest config files..>> 
workers.properties> 
> 
--> worker.ajp13.port=8009> 
worker.ajp13.host=neptune.broward.edu> worker.ajp13.type=ajp13> 
> 
--> httpd.conf> 
> 
-> >   LoadModule 
jk_module /usr/local/apache/modules/mod_jk.so> 
>> JkWorkersFile 
"/usr/local/apache/conf/workers.properties"> JkLogFile 
"/usr/local/apache/logs/mod_jk.log">> JkLogLevel 
debug>> > 
ServerName morpheus.broward.edu>> JkMount /examples ajp13> 
JkMount /examples/* ajp13>> JkMount /manager ajp13> JkMount 
/manager/* ajp13>> JkMount /FCCSC ajp13> JkMount /FCCSC/* 
ajp13>> JkMount / ajp13> JkMount /* ajp13> 
> 
> 
->> server.xml(host param)> 
> 

RE: Apache2 and Tomcat4 on different boxes

2002-09-17 Thread Raj Mettai



thanks Daniel for you response, I have tried the options you suggested, 
tested telnet from apche to tomcat on port 8009, that worked fine and also 
configured apache/tomcat on each box(and they are working fine), then I have 
changed the host in workers.properties on apache box to point to tomcat box, but 
that didn't work for me. Can you please send me the config files(httpd.conf, 
workers.properties, mod_jk.conf and server.xml) from both machines, may be 
I am missing some simpe thingAlso I am attaching my config 
files(httpd.conf,workers.properties from apache and server.xml from tomcat 
box.
 
apache server 10.103.2.30(neptune.broward.edu)
tomcat server 10.103.2.4(morpheus.broward.edu)
(both are running on solaris 8)
 
thanks again
 
-Raj>>> [EMAIL PROTECTED] 09/15/02 07:53AM 
>>>I had all kinds of problems getting apache to speak to a remote 
tomcat,and most of them were on the apache side.The only problem I had 
on the app (tomcat) server was having thefirewalls (yes there are 2 
firewalls between the web and app server, adedicated firewall box and the 
iptables/chains running on the actual appserver) blocking port 8009.You 
should also make sure that port 8009 is not blocked on the tomcatbox. An 
easy way to test this is have tomcat running and from your webserver just 
telnet into port 8009 of your tomcat box. You shouldconnect, otherwise you 
need to sort out firewall rules first.The problems I had on the apache 
side were basically not having mod_jkwork properly.I found out that the 
best way of approaching the apache/tomcat ondifferent boxes task is to 
install and test apache/tomcat on each boxindividually. When they both work, 
then just change your apache-sideworkers.properties to point at the right 
host (by IP address worked forme).Also, try just JkMount'ing 
/examples outside the Virtual Server block.It's best to troubleshoot a pure 
mod_jk connectivity issue, excludingstuff like vhost context 
mismatches.I now have apache 2.0.40 speak with a remote tomcat 4.1.10 
via mod_jk2,which I must say was easier to accomplish, simply because the 
4.1.10connectors source compiles a lot better.RegardsDaniel 
Farinha-----Original Message-From: Raj Mettai [mailto:[EMAIL PROTECTED]] Sent: 13 
September 2002 20:56To: [EMAIL PROTECTED]Subject: RE: 
Apache2 and Tomcat4 on different boxesHi, I had hostname on 
server.xml and IP in workers.properties, I havechanged both to IP. But 
still, apache does not talk to tomcat. They workfine when they are on the 
same box, also, do I need to stutdown port8080 on tomcat, because tomcat is 
accessible thru his port.Here are my latest config 
files..workers.properties--worker.ajp13.port=8009worker.ajp13.host=neptune.broward.eduworker.ajp13.type=ajp13--httpd.conf-  LoadModule jk_module 
/usr/local/apache/modules/mod_jk.soJkWorkersFile 
"/usr/local/apache/conf/workers.properties"JkLogFile 
"/usr/local/apache/logs/mod_jk.log"JkLogLevel 
debugServerName 
morpheus.broward.eduJkMount /examples ajp13JkMount /examples/* 
ajp13JkMount /manager ajp13JkMount /manager/* ajp13JkMount 
/FCCSC ajp13JkMount /FCCSC/* ajp13JkMount / ajp13JkMount /* 
ajp13-server.xml(host 
param)-  
unpackWARs="true">    
append="true" 
/>-Thanks 
a lot-Raj>>> [EMAIL PROTECTED] 09/13/02 03:18PM 
>>>You have to have the hostnames the same, all the way 
through. Don't mixIP addresses and hostnames.Does worker.ajp13.host 
equal the Host element's name parameter inserver.xml on the Tomcat 
box?Also, does this app work with Tomcat on the same box?  
John> -Original Message-> From: Raj Mettai 
[mailto:[EMAIL PROTECTED]]> 
Sent: Friday, September 13, 2002 3:12 PM> To: 
[EMAIL PROTECTED]> Subject: Apache2 and Tomcat4 on different 
boxes> > > Hi all,> > Here is my apache and 
tomcat configuration.> > apache installed on 
morpheus.broward.edu(10.103.2.4) and tomcat on > 
neptune.broward.edu(10.103.2.30), I have copied the mod_jk.conf code > 
from tomcat machine to apache httd.conf and also copied > 
workers.properties to apache box and also modified the host parm to > 
tomcat server.(both are running on solaris 8 using connector mod_jk).> 
> when I try to access the page from apache box, I am getting> 404 
error...> > Here is worker.properties files> 
--->

Re: broken pipe and outof memory error

2002-09-12 Thread Raj Mettai

Hi,

If your servlets or JSP pages have any problems and you see
"java.lang.OutOfMemoryError" in your log files or in a stack trace
generated by the Java Virtual Machine (JVM), then you probably need to
increase the JVM's maximum heap size.

Solaris 1.2 and 1.3 JVMs have a default maximum heap size of 64 MB (and
a default minimum heap size of 1 MB). This is a more reasonable figure,
but most enterprise level, server-side Java applications require a much
higher setting. What setting you choose should be determined by testing
and trial and error. It is highly application and load dependent. A good
starter article that gives some pointers on how to estimate optimal heap
settings is here, at IBM's Java site:
"http://www-106.ibm.com/developerworks/library/tip-heap-size.html";. 

You should not try to catch OutOfMemoryErrors in your application. They
are not generally predictable. And when they do happen, there's nothing
to be done to recover, because by then the JVM is out of memory and the
garbage collector is unable to free any memory for further work. 

Increase the heap size to max value, also try to allocate same value
both for min and max parms(Xms512m -Xmx5128m) this should help 
decreasing heap problems.

Actually BrokenPipe errors indicate a networking problem. Data can be
sent across the network using pipes in Java. If the pipe suffers some
sort of problem an IO exception will be thrown. This are typically seen
when a networking problem exists that is serious. Also, could be the
result of a servlet timing out. If a servlet makes a connection to a
database and the query it requested exceeds the configured timeout
period, the thread will timeout and the socket will be closed. The
system will throw this exception when it tries to write out the results
of the query and discovers that the socket has been closed.


Hope this helps

-Raj








>>> [EMAIL PROTECTED] 09/12/02 04:30PM >>>
I've had a similar problem with Novell Portal Services on a Win2k/Apache
2.0.40/Tomcat 4.1.10/JDK 1.4 box... memory usage kept climbing and
eventually had to reboot system twice after memory usage got to 181M and
tomcat spit back a outofmemory error.  Tried adding -Xms64m to
catalina.bat to see if this would help.  Apache is the one that starts
Tomcat...  Then basically logged into the program found a page and held
the refresh key.  7 minutes and 200 megs of ram in use later, apache
took over almost all the processor time.  Though it looks like it locked
all the threads up for apache on the server in my case.

>>> [EMAIL PROTECTED] 09/12/02 12:24AM >>>

Hello,
Following error occurs when a JSP program accesed by number users, this 
program access information from database though JDBC. Sometime it works 
fine but when the no. of users accessing it increases , the tomcat
server crash 
with broken pipe or outofmemory error. We had increased the memory 
also using 
-Xms32m -Xmx256m
But still we are facing the same problem.

Error is as following:

2002-09-09 09:28:21 - /vtr: Broken pipe in R( /vtr + /jsp/checkin.jsp +
null)
- java.io.IOException: Broken pipe
at java.net.SocketOutputStream.socketWrite(Native Method)
at java.net.SocketOutputStream.socketWrite(Compiled Code)
at java.net.SocketOutputStream.write(Compiled Code)
at org.apache.tomcat.modules.server.Http10.sendHeaders(Compiled
Code)
at org.apache.tomcat.modules.server.HttpResponse.endHeaders(Compiled
Code)
at org.apache.tomcat.core.OutputBuffer.realWriteBytes(Compiled Code)
at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(Compiled Code)
at org.apache.tomcat.core.OutputBuffer.flush(Compiled Code)
at org.apache.tomcat.core.OutputBuffer.close(Compiled Code)
at org.apache.tomcat.core.Response.finish(Compiled Code)
at org.apache.tomcat.core.ContextManager.service(Compiled Code)
at
org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Compiled
Code)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Compiled Code)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Compiled
Code)
at java.lang.Thread.run(Thread.java:485)

2002-09-09 09:30:06 - /vtr: Broken pipe in R( /vtr +
/appl/Qual/jsp/reports.jsp + null) - java.io.IOException: Broken pipe
at java.net.SocketOutputStream.socketWrite(Native Method)
at java.net.SocketOutputStream.socketWrite(Compiled Code)
at java.net.SocketOutputStream.write(Compiled Code)
at org.apache.tomcat.modules.server.Http10.sendHeaders(Compiled
Code)
at org.apache.tomcat.modules.server.HttpResponse.endHeaders(Compiled
Code)
at org.apache.tomcat.core.OutputBuffer.realWriteBytes(Compiled Code)
at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(Compiled Code)
at org.apache.tomcat.core.OutputBuffer.flush(Compiled Code)
at org.apache.tomcat.core.OutputBuffer.close(Compiled Code)
at org.apache.tomcat.core.Response.finish(Compiled Code)
at org.apache.tomcat.core.ContextManager.service(Compiled Code)
at
org.apac

RE: Apache2 and Tomcat4 on different boxes using mod_sslconnector....

2002-09-12 Thread Raj Mettai



Hi John,
 
I have copied the mod_jk.conf  over to apache box (actually 
copied all code to the end of httpd.conf). Also, copied workers.properties onto 
apache box and modified the host on workers.properties to FQDN of tomcat. After 
all these, when I access the page from apache box, I am getting 400 - Bad 
request error. Also, nothing is written to either apache or tomcat logs. I am 
attaching both, httpd.conf and server.xml files and also 
workers.properties...can you give me any suggestions on this 
please...
 
thanks a lot
 
-Raj
 
>>> [EMAIL PROTECTED] 09/06/02 08:27AM 
>>>You don't, as far as I know.  You will need mod_jk.conf 
on the Apache box.In addition, you will need to change the "host" value in 
workers.propertiesto point to the FQDN of the machine hosting 
Tomcat.I guess you could always set up some sort of NFS share, and share 
out alocation on the Tomcat server so that the Apache server can see it, but 
thesimplest way is to start Tomcat, let it generate mod_jk.conf, and then 
justcopy it over to the Apache box and HUP 
Apache.John> -----Original Message-> From: Raj 
Mettai [mailto:[EMAIL PROTECTED]]> Sent: 
Thursday, September 05, 2002 5:46 PM> To: 
[EMAIL PROTECTED]> Subject: Apache2 and Tomcat4 or different 
machines...> > > Hi,> > I want to configure 
Apache2.0.39 with tomcat4.0.4 using > mod_jk both running on different 
machines (solaris8). How do > I specify the location of mod_jk.conf file 
in httpd.conf if > they are not on the same box.> > thanks 
> > -Raj> --To unsubscribe, e-mail:   
<mailto:[EMAIL PROTECTED]>For 
additional commands, e-mail: <mailto:[EMAIL PROTECTED]>


workers.properties
Description: Binary data


httpd.conf
Description: Binary data

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


Iplanet6.0 Sp2 + tomcat4.0

2002-09-11 Thread Raj Mettai

Hi All,

Anybody successfull in integrating Netscape's Iplanet6.0 sp2 with
tomcat4.0 ?

I found some docs, but they all refer to Netscape 3.X and 4.X series, I
did not see any docs for new versions of Nescape web server.

thanks

-Raj



[OFF TOPIC] RE: How to make apache work both for https

2002-09-09 Thread Raj Mettai

thanks John, for answering the off-topic question. I will make sure
that, I won't post  off-topic questions in tomcat-user list...


-Raj



>>> [EMAIL PROTECTED] 09/09/02 02:25PM >>>

mod_ssl is an Apache module, not a command line tool.

OpenSSL is a command line tool, not an Apache module.  mod_ssl is
included
in the Apache 2.0.40 source, it may or may not have been included with
the
Apache bundled by Sun.  You'll have to determine that yourself, and in
either case, you can always get mod_ssl from http://www.modssl.com.

You're using Solaris 8, please understand that Apache is an open source
project, and uses open source tools by default.  Solaris 8 may or may
not
have open source tools like OpenSSL bundled with it or not...I don't
have
access right now to a Solaris 8 machine to verify.  

OpenSSL the command-line tool would be someplace like /usr/bin, not
under
the Apache tree.  OpenSSL is a project all by itself, separate from
Apache.
You can also look for /usr/local/ssl on Solaris.

If you still can't determine how to generate a CSR, my suggestion would
be
to get the OpenSSL package for Solaris 8 from Sun Freeware at
http://www.sunfreeware.com .  Which, incidentally, a brand new version
(0.9.6g) just released on 09/04/2002.  You can also get OpenSSL from
http://www.openssl.org.

Again, here is a URL that specifically describes how to build and
install
SSL using Apache (1.3.26 but it's practically the same), mod_ssl, and
OpenSSL:  http://www.modssl.com/example/  Since I posted the
http://www.modssl.com URL in reply to your original post a couple of
days
ago, and the "examples" section is clearly labeled in the navigation
menu
from the homepage, I can only assume that you chose not to explore the
very
thorough modssl.com site as was suggested earlier...otherwise, you would
have found the examples and followed them.

At this point, being that: a) several URLs have been provided to you for
additional support and guidance, b) this is a tomcat list not an Apache
list, c) it seems to me that you prefer to ask open-ended, off-topic
questions on this list rather than find the information yourself (its
freely
and easily available), and d) you are obviously root on your machine, I
must
respectfully ask you to consult any of the significant number of other
resources available for help and support with basic UNIX sytems
administration tasks, whether Solaris related or not.  This list isn't
the
place to post general "how do I perform sys admin tasks on my machine"
questions.

I realize I am to blame for answering your post, and other similar posts
from other people, and thus furthering the idea that help for all things
UNIX related can be found here, so I shall do my best to refrain from
answering such posts in the future.

John

> -Original Message-
> From: Raj Mettai [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 09, 2002 2:02 PM
> To: [EMAIL PROTECTED]
> Subject: RE: How to make apache work both for https
> 
> 
> thanks again John, both the documentations use openssl for 
> creating RSA
> and CSR, but I am using modssl, whats the equavalent modossl 
> in  apache
> 2.0.39, I searched for both openssl and modssl in all apache 
> directories
> and I could not find any, but I have ssl.conf and ssl-std.conf under
> conf directory. Also I am sure, I have compiled apache with 
> --enable-so
> 
> thanks a lot
> 
> -Raj
> 
> 
> >>> [EMAIL PROTECTED] 09/09/02 11:13AM >>>
> 
> http://www.modssl.org/docs/2.8/ssl_faq.html#ToC28
> 
> http://slacksite.com/apache/certificate.html
> 
> Google is your friend.
> 
> John
> 

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



RE: How to make apache work both for https

2002-09-09 Thread Raj Mettai

thanks again John, both the documentations use openssl for creating RSA
and CSR, but I am using modssl, whats the equavalent modossl in  apache
2.0.39, I searched for both openssl and modssl in all apache directories
and I could not find any, but I have ssl.conf and ssl-std.conf under
conf directory. Also I am sure, I have compiled apache with 
--enable-so

thanks a lot

-Raj


>>> [EMAIL PROTECTED] 09/09/02 11:13AM >>>

http://www.modssl.org/docs/2.8/ssl_faq.html#ToC28

http://slacksite.com/apache/certificate.html

Google is your friend.

John

> -Original Message-----
> From: Raj Mettai [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 09, 2002 11:01 AM
> To: [EMAIL PROTECTED]
> Subject: RE: How to make apache work both for https
> 
> 
> yes John, mod_ssl is built in it, I need some help in how to generate
> the CSR so that I can get test certificate. Also, any changes 
> I need to
> make in ssl.conf file.
> 
> thanks a lot
> 
> -Raj
> 
> >>> [EMAIL PROTECTED] 09/06/02 12:06PM >>>
> 
> http://www.modssl.org/docs/2.8/
> 
> Apache 2 has mod_ssl built in, I believe. 
> 
> John
> 
> > -Original Message-
> > From: Raj Mettai [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, September 06, 2002 12:02 PM
> > To: [EMAIL PROTECTED]
> > Subject: How to make apache work both for https
> > 
> > 
> > Hi all,
> > 
> > I have Installed Apache2.0.39 from source and configured with 
> >  Tomcat4 using mod_jk on solaris8, I want to make Apache work 
> > with both http and https, can some one please tell me how to 
> > create and install a test certificate on apache and possible 
> > changes to conf files to make https work.
> > 
> > 
> > thanks
> > 
> > -Raj
> > 
> 
> --
> To unsubscribe, e-mail:  
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 

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



RE: How to make apache work both for https

2002-09-09 Thread Raj Mettai

yes John, mod_ssl is built in it, I need some help in how to generate
the CSR so that I can get test certificate. Also, any changes I need to
make in ssl.conf file.

thanks a lot

-Raj

>>> [EMAIL PROTECTED] 09/06/02 12:06PM >>>

http://www.modssl.org/docs/2.8/

Apache 2 has mod_ssl built in, I believe. 

John

> -Original Message-----
> From: Raj Mettai [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 06, 2002 12:02 PM
> To: [EMAIL PROTECTED]
> Subject: How to make apache work both for https
> 
> 
> Hi all,
> 
> I have Installed Apache2.0.39 from source and configured with 
>  Tomcat4 using mod_jk on solaris8, I want to make Apache work 
> with both http and https, can some one please tell me how to 
> create and install a test certificate on apache and possible 
> changes to conf files to make https work.
> 
> 
> thanks
> 
> -Raj
> 

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



Re: jsp includes in tomcat 4..........

2002-09-06 Thread Raj Mettai

thanks justin, do you know how to do recursive touch on files in multiple directories, 
because come includes are being used all across the site...thanks again

-Raj

>>> [EMAIL PROTECTED] 09/06/02 02:27PM >>>

Tomcat won't recompile the jsp unless it sees that the jsp has changed... 
and following includes would be quite a bit of overhead to check every 
time.  If you know precisely which jsp you want to compile, you can touch 
the file to change the date on the file... this will cause a 
recompile.  Anyone know if there's an option to force recompile for every 
jsp, all the time?

justin

At 11:20 AM 9/6/2002, you wrote:
>Hi All,
>
>I am running tomcat4 on solaris8, when I modify an include in a jsp page 
>(ex: header.inc) the tomcat is not recompiling the page, even after 
>restart the changes are not coming up. If I delete .class files from work 
>folder then tomcat will re-compile the page and the changes are visible. 
>Is there any work around to make tomcat re-compile the page for include 
>changes... other than deleting the .class files itself.
>
>
>thanks in advance
>
>-Raj


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



jsp includes in tomcat 4..........

2002-09-06 Thread Raj Mettai

Hi All,

I am running tomcat4 on solaris8, when I modify an include in a jsp page (ex: 
header.inc) the tomcat is not recompiling the page, even after restart the changes are 
not coming up. If I delete .class files from work folder then tomcat will re-compile 
the page and the changes are visible. Is there any work around to make tomcat 
re-compile the page for include changes... other than deleting the .class 
files itself.


thanks in advance

-Raj



How to make apache work both for https

2002-09-06 Thread Raj Mettai

Hi all,

I have Installed Apache2.0.39 from source and configured with  Tomcat4 using mod_jk on 
solaris8, I want to make Apache work with both http and https, can some one please 
tell me how to create and install a test certificate on apache and possible changes to 
conf files to make https work.


thanks

-Raj



Apache2 and Tomcat4 or different machines...

2002-09-05 Thread Raj Mettai

Hi,

I want to configure Apache2.0.39 with tomcat4.0.4 using mod_jk both running on 
different machines (solaris8). How do I specify the location of mod_jk.conf file in 
httpd.conf if they are not on the same box.

thanks 

-Raj



web application configuration in Apache+tomcat setup

2002-09-03 Thread Raj Mettai

Hi all,

I have my web application running under tomcat  path "/" localhost:8080/, but once I 
have configured Apache to tomcat the examples application works great 
localhost/examples but my application defined on path = "/" (localhost/) is not 
working, actually apache is looking under /htdocs for the jsp page and logs say page 
not found. How to get around with this error. But the application works great with 
tomcat itself localhost:8080.

any clues please...

(Apache1.3,tomcat4 both ruuning on solaris8 with jdk1.3.1)

-Raj



RE: Best Connector for Apache 2x and Tomcat 4x

2002-09-03 Thread Raj Mettai

I followed the following documentation for Apache1.3 and Tomcat4, and it worked great,

http://www.johnturner.com/howto/apache-tomcat-howto.html

I wanted to know, that the only difference as for as Howto for Apache2 with tomcat4 is 
concerned is placing mod_jk.so in modules/ as apposed to libexec/ in apache1.3, or any 
other chnages ???.

thanks


-Raj

>>> [EMAIL PROTECTED] 09/03/02 07:58AM >>>

Apache 1.3 uses "libexec", Apache 2 uses "modules".

John


> -Original Message-
> From: Eddie Bush [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, August 31, 2002 1:04 AM
> To: Tomcat Users List
> Subject: Re: Best Connector for Apache 2x and Tomcat 4x
> 
> 
> Try replacing libexec/mod_jk.so with modules/mod_jk.so.  The "apache 
> standard" seems to use the libexec directory, but, if you look in 
> /etc/httpd/conf, you'll see there is no such directory - there is, 
> however, a modules directory (link) which gets you to where 
> you want to be.
> 
> Regards,
> 
> Eddie
> 
> Ben Souther wrote:
> 
> >John,
> >
> >I've followed the directions in your howto and the two don't 
> seem to be
> >connecting.
> >The only clue I can find is in the Catalina.out log:
> >
> >mod_jk location: libexec/mod_jk.so
> >Make sure it is installed corectly or  set the config location
> >Using 
> >Starting service Tomcat-Standalone
> >Apache Tomcat/4.0.4
> >Starting service Tomcat-Apache
> >Apache Tomcat/4.0.4
> >
> >
> >Is this something you've run into before?
> >
> >Thanks
> >-Ben
> >
> 
> 
> 
> --
> To unsubscribe, e-mail:   

For additional commands, e-mail:


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



RE: Apach2 and Tomcat4.0 Integration..

2002-08-29 Thread Raj Mettai

Hi John,

I was successfull in connecting Apache1.3.26 with tomcat4.0 by using your 
documentation...http://www.johnturner.com/howto/apache-tomcat-howto.html

I had two web applications defined on tomcat, but the one I have defined to root 
(path="/") is not working from webserver. the other application with path="/FCCSC" is 
working fine. When I try to access first application the webserver is looking under 
/opt/apache1.3/htdocs/ for index.jsp and it's saying page not found. How to get around 
with this error.

One of the web applications has be implemented https, I wanted to use SSL and hence 
Apache2, can you tell me the steps or changes in the above document as regards to 
Apache2.

thanks a lot again

-Raj




>>> [EMAIL PROTECTED] 08/28/02 08:02AM >>>

Please define "not working".  Error messages?  Log files?  How do you know
it is not working?

You've got a lot going on in your Connector statement, as well.  A working
AJP Connector statement looks like this:



Note the differences.  "Ajp13Connector" instead of "CoyoteConnector", no
"redirectPort", etc.

John Turner
[EMAIL PROTECTED]


> -Original Message-
> From: Raj Mettai [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 27, 2002 6:10 PM
> To: [EMAIL PROTECTED]
> Subject: Apach2 and Tomcat4.0 Integration..
> 
> 
> Hi All,
> 
> Finally I found the binaries for mod_jk.so for Apache2.0.39 
> and Tomcat4.0.4 for solaris8.
> 
> I did following steps, but the configuration is not working...
> 
> 1. copied mod_jk.so to {apache.home}/modules
> 2. modifed {tomcat.home}/serve.xml  to for ajp13 connector like this..
> 
>  className="org.apache.ajp.coyote.tomcat4.CoyoteConnector"
>port="8009" minProcessors="5" maxProcessors="75"
>enableLookups="true" redirectPort="8443"
>acceptCount="10" debug="0" connectionTimeout="2"
>
> protocolHandlerClassName="org.apache.jk.server.JKCoyoteHandler"
>/>
> 
> 3. Added workers.properties to {tomcat.home}/conf/jk/
> 4 Restarted tomcat.
> 5 Added mod_jk.so module to {apache.home}/conf/httpd.conf
> 6 restarted apache.
> 
> The configuration is not working,
> 
> Please tell me the steps to connect apache2.0.39 to tomcat4.0 
> when mod_jk.so is already available.(both are running on solaris box).
> 
> 
> thanks
> 
> -Raj
> 

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



Apach2 and Tomcat4.0 Integration..

2002-08-27 Thread Raj Mettai

Hi All,

Finally I found the binaries for mod_jk.so for Apache2.0.39 and Tomcat4.0.4 for 
solaris8.

I did following steps, but the configuration is not working...

1. copied mod_jk.so to {apache.home}/modules
2. modifed {tomcat.home}/serve.xml  to for ajp13 connector like this..



3. Added workers.properties to {tomcat.home}/conf/jk/
4 Restarted tomcat.
5 Added mod_jk.so module to {apache.home}/conf/httpd.conf
6 restarted apache.

The configuration is not working,

Please tell me the steps to connect apache2.0.39 to tomcat4.0 when mod_jk.so is 
already available.(both are running on solaris box).


thanks

-Raj



RE: Tomcat4.0 with and Apache2

2002-08-27 Thread Raj Mettai

Hi,

I am trying to compile apache2.0.39 on solaris 8,  with --enable-so(DSO), when I do 
make, I am getting following error, can anybody help me fixing this error...



Making all in dso/unix
make[3]: Entering directory `/export/home/klibutti/httpd-2.0.39/srclib/apr/dso/unix'
make[4]: Entering directory `/export/home/klibutti/httpd-2.0.39/srclib/apr/dso/unix'
/bin/sh /export/home/klibutti/httpd-2.0.39/srclib/apr/libtool --silent --mode=compile 
gcc -g -O2 -pthreads   -DHAVE_CONFIG_H -DSOLARIS2=8 -D_POSIX_PTHREAD_SEMANTICS 
-D_REENTRANT   -I../../include -I../../include/arch -I../../include/arch/unix  -c 
dso.c && touch dso.lo
make[4]: Leaving directory `/export/home/klibutti/httpd-2.0.39/srclib/apr/dso/unix'
make[3]: Leaving directory `/export/home/klibutti/httpd-2.0.39/srclib/apr/dso/unix'
make[3]: Entering directory `/export/home/klibutti/httpd-2.0.39/srclib/apr'
/bin/sh /export/home/klibutti/httpd-2.0.39/srclib/apr/libtool --silent --mode=link gcc 
-g -O2 -pthreads -DHAVE_CONFIG_H -DSOLARIS2=8 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT 
-I./include -I../include -o libapr.la -rpath /usr/local/apache2/lib 
strings/apr_cpystrn.lo strings/apr_fnmatch.lo strings/apr_snprintf.lo 
strings/apr_strings.lo strings/apr_strnatcmp.lo strings/apr_strtok.lo 
passwd/apr_getpass.lo passwd/apr_md5.lo tables/apr_hash.lo tables/apr_tables.lo 
file_io/unix/copy.lo file_io/unix/dir.lo file_io/unix/fileacc.lo 
file_io/unix/filedup.lo file_io/unix/filepath.lo file_io/unix/filestat.lo 
file_io/unix/flock.lo file_io/unix/fullrw.lo file_io/unix/mktemp.lo 
file_io/unix/open.lo file_io/unix/pipe.lo file_io/unix/readwrite.lo 
file_io/unix/seek.lo network_io/unix/inet_ntop.lo network_io/unix/inet_pton.lo 
network_io/unix/poll.lo network_io/unix/sendrecv.lo network_io/unix/sockaddr.lo 
network_io/unix/sockets.lo network_io/unix/sockopt.lo threadproc/unix/proc.lo 
threadproc/unix/procsup.lo threadproc/unix/signals.lo threadproc/unix/thread.lo 
threadproc/unix/threadpriv.lo misc/unix/errorcodes.lo misc/unix/getopt.lo 
misc/unix/getuuid.lo misc/unix/otherchild.lo misc/unix/rand.lo misc/unix/start.lo 
misc/unix/uuid.lo misc/unix/version.lo locks/unix/global_mutex.lo 
locks/unix/proc_mutex.lo locks/unix/thread_cond.lo locks/unix/thread_mutex.lo 
locks/unix/thread_rwlock.lo time/unix/time.lo time/unix/timestr.lo mmap/unix/common.lo 
mmap/unix/mmap.lo shmem/unix/shm.lo i18n/unix/xlate.lo user/unix/groupinfo.lo 
user/unix/userinfo.lo memory/unix/apr_pools.lo 
atomic/solaris_sparc/apr_atomic_sparc_no_support.lo dso/unix/dso.lo
/export/home/klibutti/httpd-2.0.39/srclib/apr/libtool: ar: not found
make[3]: *** [libapr.la] Error 1
make[3]: Leaving directory `/export/home/klibutti/httpd-2.0.39/srclib/apr'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/export/home/klibutti/httpd-2.0.39/srclib/apr'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/export/home/klibutti/httpd-2.0.39/srclib'
make: *** [all-recursive] Error 1

Thanks in advance

-Raj


>>> [EMAIL PROTECTED] 08/26/02 02:52PM >>>

Sorry, perhaps that was too harsh.

You don't need mod_proxy to put tomcat on a separate machine from apache.
mod_jk supports load-balancing (http://www.ubeans.com/tomcat for a HOWTO),
and if you just want tomcat on a separate machine without load-balancing,
you change the host parameter in mod_jk's worker.properties file to the
hostname of the tomcat server instead of "localhost" or whatever the default
is (see earlier posts today on this list on exactly this topic).

In addition, with mod_jk, you can set tomcat (provided tomcat is on the same
machine) to auto-generate the mod_jk configuration directives for apache.
That means that you only need to change one server configuration (tomcat),
and the apache configuration will follow.

mod_proxy probably works (I haven't tried it) and others are probably doing
it that way, but in my opinion it would make sense to use the tool that was
specifically developed to integrate with tomcat, and that means one of the
connectors such as mod_jk or mod_webapp.

Obviously, you are welcome to use whatever suits your environment and
situation.

John Turner
[EMAIL PROTECTED]

> -Original Message-
> From: Milhomem, Marcus [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 26, 2002 2:47 PM
> To: Tomcat Users List
> Subject: RE: Tomcat4.0 with and Apache2
> 
> 
> Hi,
> I am planing to use tomcat4.0 with Apache2 using the mod_proxy,
> because I think that it ahs more scalability as you can   
> after sometime
> move the tomcat to other machine. But as I saw your e-mail, saying to
> burn What Integration do you tinhk it´s better and why?
> 
> 
> 
> 
> thank you

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



RE: Tomcat4.0 with and Apache2

2002-08-26 Thread Raj Mettai

Hi,

I am running both Apache2.0 and Tomcat4.0  on solaris8, I have downloaded binaries of 
tomcat4 and I have compiled Apache from source code.It didnot do --enable-module=so 
while configuring apache, that means do I have to re-configure apache again. My 
modules directory under apache doesn't have any mod_* files.

mod_jk comes with tomcat or do i need to separately download it, if so please give me 
the link

can you give me a resource link for configuration of tomact4 and apache2 on solaris 
environment.


thanks a lot...
Raj




>>> [EMAIL PROTECTED] 08/26/02 02:41PM >>>

If your documentation is telling you to use mod_proxy to connect apache to
tomcat, burn that documentation.

You want to use mod_jk or mod_webapp with tomcat and apache.  mod_jk is more
robust at this juncture, and there are good resources available to explain
how to get mod_jk working with apache and tomcat.

Which platform are you using? Windows? Linux/UNIX?  I'm not familiar enought
wiht iPlanet OS support to be able to tell which platform you are using.

Here is a resource for apache 2.0 and tomcat 4 on Win2K:
http://www.cnr.berkeley.edu/~salazar/apache_tomcat.html

Here is a resource for apache 1.3 and RH 7.2:
http://www.johnturner.com/howto/apache-tomcat-howto.html (apache 2.0 is not
that different, you just need an apache-2.0 specific mod_jk.so).

In addition, the list can help you out pretty easily if you post back with
more specific information.

Don't rely on whatever documentation you have, it seems to be grossly in
error.

John Turner
[EMAIL PROTECTED]

> -----Original Message-
> From: Raj Mettai [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 26, 2002 2:33 PM
> To: [EMAIL PROTECTED]
> Subject: Tomcat4.0 with and Apache2
> 
> 
> Hello,
>  
> We're attempting to connect Tomcat 4.0 to Apache 2.0 but are 
> having problems. All of the existing documention focuses on 
> connecting Apache 1.3 to Tomcat 4.0, but there is nothing we 
> have seen that discusses connecting Tomcat 4.0 to Apache 2.0 
> and there are enough differences between Apache 1.3 and 
> Apache 2.0 that the existing documentation does not help us.
>  
> Specifically, when connection Apache 1.3 to Tomcat 4.0, it 
> discusses the following items:
>
>  LoadModule proxy_module  {path-to-modules}/mod_proxy.so
> 
> AddModule  mod_proxy.c
> ProxyPass /myapp  http://localhost:8081/myapp
> 
> ProxyPassReverse  /myapp  http://localhost:8081/myapp
>  
> 
> but, we don't see mod_proxy.so in the Apache 2.0 modules 
> directory, so we don't know what to do. What is the 
> equivalent configuration for Apache 2.0? Is there any 
> documentation that exists for connecting these specific versions?
>  
> Also, does anybody know of a way to connect iPlanet 6.0sp2 to 
> Tomcat 4.0? We have iPlanet and would like to continue using 
> it, but we can't find any way to get the two products to work 
> together.
>  
> thank you in advance for your assistance,
> Raj and Brandon - Broward Community College
>  
> 

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



Tomcat4.0 with and Apache2

2002-08-26 Thread Raj Mettai

Hello,
 
We're attempting to connect Tomcat 4.0 to Apache 2.0 but are having problems. All of 
the existing documention focuses on connecting Apache 1.3 to Tomcat 4.0, but there is 
nothing we have seen that discusses connecting Tomcat 4.0 to Apache 2.0 and there are 
enough differences between Apache 1.3 and Apache 2.0 that the existing documentation 
does not help us.
 
Specifically, when connection Apache 1.3 to Tomcat 4.0, it discusses the following 
items:
   
 LoadModule proxy_module  {path-to-modules}/mod_proxy.so

AddModule  mod_proxy.c
ProxyPass /myapp  http://localhost:8081/myapp

ProxyPassReverse  /myapp  http://localhost:8081/myapp
 

but, we don't see mod_proxy.so in the Apache 2.0 modules directory, so we don't know 
what to do. What is the equivalent configuration for Apache 2.0? Is there any 
documentation that exists for connecting these specific versions?
 
Also, does anybody know of a way to connect iPlanet 6.0sp2 to Tomcat 4.0? We have 
iPlanet and would like to continue using it, but we can't find any way to get the two 
products to work together.
 
thank you in advance for your assistance,
Raj and Brandon - Broward Community College