Re: Deploying/Undeploying application using the manager webapp

2003-06-03 Thread Jason Koeninger
We just chased down a problem with the struts jar file being locked 
after being removed by the manager.  The solution I found in the struts 
mailing list archives was to add the dtd files from the struts jar file 
to WEB-INF/classes as a work-around.  Maybe that will get you pointed in 
the right direction on your locking problem.

Good luck.

Best Regards,

Jason Koeninger
JJ Computer Consulting
http://www.jjcc.com
Rais Bonny wrote:

Thanks again.

I'll remove the reference to commons-logging from the app and use 
the one in the common directory. 

I have tried to remove the app using the manager app and this is
where the whole thing started - all the files in my WEB-INF/lib
remain locked and that includes some jar files which are part of the
app itself, and some files which belong to struts, etc. What is this 
shutdown interface? The servlet implements the destroy method and 
attempts to release all the configuration and other stuff it 
created, but that still is not enough... Is there a way to tell
tomcat to release everything related to a servlet or web app or
does one need to implement this himself?

Bonny

-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 3 June 2003 1:50 PM
To: Tomcat Users List
Subject: RE: Deploying/Undeploying application using the manager webapp



Well, commons-logging is the cause of a lot of headaches and it is much 
better to use Log4j directly, but since Struts is sort of married to it, 
you'll have to deal with it.  Anyway, that is where I'd look first.  Tomcat 
also uses commons-logging heavily and commons-logging uses classloader 
tricks in various places.  I can see where Tomcat might think that it it 
needs to hold onto commons-logging resources and get the ones loaded from 
your WEB-INF/lib mixed up with other ones in the classpath.  You just never 
know.

What I'd do is attempt to remove the app via the manager app.  After this, 
go and try to manually delete parts of the webapp directory structure to 
see exactly which files are locked.  Once you do this, you will have 
narrowed down which libraries are holding onto resources long after they 
should be.  You may have to call some shutdown method(s) using a servlet 
context listener or something.

Jake

At 01:39 PM 6/3/2003 +1000, you wrote:

Jacob,

Thanks for the reply. I may need some clarification as I'm a bit of a
newbie

when it comes to Tomcat deployment.

we are using struts and all the struts packages we use are in our app
lib directory. I read somewhere that this is the preferred location. Is
this wrong?
we're not using log4j in the app itself, but rather commons-logging,
jdom and sitemesh. Got your message regarding commons-loggins, do you know
if it applies to these jars as well?
Cheers,

Bonny

-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 3 June 2003 1:18 PM
To: Tomcat Users List
Subject: Re: Deploying/Undeploying application using the manager webapp


Which jars are locked?  There was an issue like this with log4j.  I can't
remember the exact reason, but it was fixed with the 1.2.8
release.  Anything that grabs hangs onto resources is going to be an
issue.  In the case of Struts, I'd make sure you don't have commons-logging
stuff in WEB-INF/lib.  Put it in common/lib if it isn't already there.
Jake

At 11:05 AM 6/3/2003 +1000, you wrote:


All,

I have some problems using the undeploy/deploy manager web app commands
to perform their tasks. Basically it seems that resources are still left
open,
in particular jar files in my app's WEB-INF/lib directory are kept locked
and so are not removed from the file system upon calls to remove/undeploy
using ant tasks.
I've searched through the archives but I see no reference to this
problem.

I'm obviously looking in the wrong place...

This is a problem for me since I'm trying to automate the redeployment
cycle during development. The only solution I found so far was to stop
Tomcat altogether and restart it, which kind of defeats the purpose of
using the Manager app in the first place.
My setup: Tomcat 4.1.12 running as a service on Windows XP,
A web app using struts.
Any help would be appreciated.

Cheers,

Bonny
CAUTION - This message may contain privileged and confidential
information

intended only for the use of the addressee named above.  If you are not
the intended recipient of this message you are hereby notified that any
use, distribution or reproduction of this message is prohibited.  If you
have received this message in error please notify Siemens Ltd., ABN
98004347880, or Siemens (NZ) Limited immediately.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
CAUTION - This message may contain privileged and confidential information
intended only for the use of the addressee named above.  If you are not the
intended recipient of this message you are hereby notified

Re: One other freaky thing

2003-01-08 Thread Jason Koeninger
I've seen the same thing on Tomcat 3.3.x.  Our upgrade to Tomcat 4.0.6 
seems to have corrected it.

Good luck...

Best Regards,

Jason Koeninger
JJ Computer Consulting
http://www.jjcc.com

On Wed, 8 Jan 2003 19:59:25 -0500 (EST), Jason Pyeron wrote:

We had a similar problem running tomcat 3.x (3.3?) and apache 1.x (1.19?)

mod_jk sometimes would deliver static html/gfx from one context to 
another. Also there would be session corruption.

To the best of my knowledge there was a on-line casino which had the same 
problem.

I was never able to track this down. My only solution was to connect 
directly to tomcat.

-jason pyeron


On Wed, 8 Jan 2003, Michael Molloy wrote:

Our application is running on a server in Pennsylvania. A user there 
was working as well as a user in Tennessee. The user in Tennessee got 
an error on a page, hit her back key, and the user in Pennsylvania's 
screen showed up on the Tennessee user's screen.  The people in 
Tennessee are connected to the Pennsylvania system via a frame relay.

Everything is contained within each user's session, so this should 
never happen. The application has been under development for a year 
now, and this has never happened before.

Some kind of weird bug that we shouldn't worry about, or something that 
someone else has encountered?

Thanks for any help,
--Michael Molloy


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


-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-   -
- Jason Pyeron   http://www.pyerotechnics.com   -
- Owner  Lead  Pyerotechnics Development, Inc. -
- +1 410 808 6646 (c)   500 West University Parkway #1S -
- +1 410 467 2266 (f)   Baltimore, Maryland  21210-3253 -
-   -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

This message is for the designated recipient only and may contain 
privileged, proprietary, or otherwise private information. If you
have received it in error, purge the message from your system and 
notify the sender immediately.  Any other use of the email by you 
is prohibited.




--
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: mod_jk leaves connections open?

2002-12-18 Thread Jason Koeninger
Someone correct me if I'm wrong, but mod_jk using the ajp13 and later protocols 
is supposed to leave connections open.  One of the reasons behind the change 
from ajp12 to ajp13 was to get away from opening a connection to Tomcat for 
every servlet/jsp served by Tomcat.  

If you're having trouble with lockups at a certain number of connections, you probably 
need to tune the Tomcat thread pool (server.xml), Apache/IIS, and/or the underlying 
operating system.  Keep in mind that resources can be quickly exhausted when running 
IIS/Apache + mod_jk + Tomcat + your application + database + etc. all on one machine.

Best Regards,

Jason Koeninger
JJ Computer Consulting
http://www.jjcc.com

On Wed, 18 Dec 2002 10:11:08 -0800, Tuan H. Le wrote:

We are experiencing this open connection issue in our environment. Though, we are 
using IIS redirector (isapi_redirector2.dll) with Tomcat 4.1.12. Tomcat hang when the 
current 
connection at around 250. We have to restart IIS or Tomcat every time this problem 
occurs to release the connections.

Has anyone found a solution to this issue?

Thanks,
Tuan



-Original Message-
From: Simon Chatfield [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 18, 2002 9:47 AM
To: Tomcat Users List
Subject: mod_jk leaves connections open?



Hi everyone, I hope mod_jk questions should be directed to this list, I
couldn't find any more suitable.

I've been using tomcat and versions of mod_jk for a while now with
success. I've got a problem with useing mod_jk-2.0.43.so with apache
2.0.43 and everything seems to work OK for a while. Eventually all
request get denied and the mod_jk can't appear to get a connection
complaining that tomcat is down or on another port.

After a restart of apache (not tomcat) everything will start working
again. In digging into the problem, I see that there are hundreds of
open connections to the mod_jk port 8009 left open and extablished. Can
anyone point me in the right direction on how to solve this problem? Thanks!

specifics
Solaris 8
Java 1.4
Tomcat 4.1.12 (binary form)
Apache 2.0.43 (built from source)
mod_jk-2.0.43.so (binary form)

-Simon

-- 
Simon Chatfield


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


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





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




RE: Tomcat 4.0.6 and Java versions

2002-11-18 Thread Jason Koeninger
I have 4.0.6 running on a Solaris Intel 1.2 JDK.  The HTTP connector
seems to work fine with 1.2, but the ajp13 connector was throwing exceptions
on a socket method (setKeepAlive I think).  Switching the instance using
ajp13 to JDK 1.3.1 fixed that problem, but I still have one instance using the
HTTP connector running on 1.2.

Best Regards,

Jason Koeninger
JJ Computer Consulting
http://www.jjcc.com

On Mon, 18 Nov 2002 15:24:01 +, Kristj n Bjarni Gu mundsson wrote:

No this is the full version of v4.0.6

I can run it using JDK version:

v1.4.1_01
v1.3.1_03

I simply change the JAVA_HOME variable but v1.2.2_014 gives the error, and
unfortunately I have to use the 1.2 version.

Has anybody actually verified that Tomcat can run on 1.2 of Java?

Reynir Hbner [EMAIL PROTECTED] wrote on 18.11.2002 14:47:49:

 H‘,

 Did you by any chance download the LE version ?
 http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.6/bin/

 Try the standard version, but not LE.

 The standard version req. :
 Standard: This is a full binary distrbution of Tomcat 4, which
 includes all optional libraries and an XML parser (Xerces 1.4.4),
 and can be run on JDK 1.2+.
 Hope it helps
 [EMAIL PROTECTED]


  -Original Message-
  From: Kristj n Bjarni Gu mundsson [mailto:[EMAIL PROTECTED]]
  Sent: 18. n¢vember 2002 10:28
  To: [EMAIL PROTECTED]
  Subject: Tomcat 4.0.6 and Java versions
 
 
  What are the requirements for the Java versions for Tomcat 4.0.6?
 
  I am trying to use JDK-1.2.2_014, but trying to start Tomcat
  I always get:
 
  Bootstrap: Class loader creation threw exception
  java.lang.IllegalMonitorStateException: current thread not owner
 
 
 
  --
  To unsubscribe, e-mail:
  mailto:tomcat-user- [EMAIL PROTECTED]
  For
  additional commands,
  e-mail: mailto:[EMAIL PROTECTED]
 
 

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





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




Tomcat 3.3.1 - Sessions Migrating Between Users

2002-09-19 Thread Jason Koeninger

Has anyone seen sessions move between users running Tomcat 3.3.1?  I'm 
using Apache 1.3.26 connecting to Tomcat 3.3.1 with mod_jk using the 
ajp12 protocol, and it sounds from user reports as if sessions are moving 
between users.  At first, I thought it had something to do with proxies 
caching the pages, but the last report I got rules out a proxy as the users 
were on totally independent networks.

Thanks,

Jason Koeninger
JJ Computer Consulting




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




Re: Tomcat 3.3.1 - Sessions Migrating Between Users

2002-09-19 Thread Jason Koeninger

I've been doing multi-threaded code for a long time, and while I'm not 
going to say there's no way I made a mistake, I am going to say 
that it's unlikely it's a threading issue.  In this particular application, I 
do session management in a single servlet, and all I do is log the user 
on and place the user object in the session.  

I'll double-check it, but that's how it was originally written.  Any other 
thoughts?

Thanks,

Jason Koeninger
JJ Computer Consulting


On Thu, 19 Sep 2002 14:40:39 -0500 (CDT), Milt Epstein wrote:

On Thu, 19 Sep 2002, Jason Koeninger wrote:

 Has anyone seen sessions move between users running Tomcat 3.3.1?
 I'm using Apache 1.3.26 connecting to Tomcat 3.3.1 with mod_jk using
 the ajp12 protocol, and it sounds from user reports as if sessions
 are moving between users.  At first, I thought it had something to
 do with proxies caching the pages, but the last report I got rules
 out a proxy as the users were on totally independent networks.

This could be a multi-threading issue -- i.e. some of your code may
not be thread-safe.

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:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Tomcat 3.3.1 - Sessions Migrating Between Users

2002-09-19 Thread Jason Koeninger

On Thu, 19 Sep 2002 15:02:59 -0500 (CDT), Milt Epstein wrote:

On Thu, 19 Sep 2002, Jason Koeninger wrote:

I did say could be -- it is the most obvious thing that comes to
mind.

It would be nice if it was just a bone-headed threading issue, but I'm 
afraid I'm not seeing one.  I was hoping I had accidentally made a 
class variable in the servlet, but I didn't find one.

Is that the latest version of the 3.3 branch?  If not, you could try
to upgrade.

Doubtful.  Previous upgrades caused some painful problems.  You'll 
find my ajp13 issues on Tomcat 3.3.1 in the archives.  

In fact, if feasible, you might just upgrade to an entirely new
version, and see if the problem persists.  There's a 4.0 branch (up to
4.0.4) and a 4.1 (up to 4.1.11 already or soon).  Both those versions
implement the latest servlet/jsp specs (2.3/1.2) (3.2 and 3.3
implement 2.2/1.1).  And the ajp12 protocol (I think that means
version 1.2 of the AJP protocol) has been replaced by ajp13 (likewise,
version 1.3 of the AJP protocol).

Actually, I went running back to ajp12 after my last experience with 
ajp13.  This is, in fact, a similar problem to my last ajp13 experience 
in which you could get results from old requests.  Odd problem and 
difficult to describe, and it made you think you were insane when  you
hit reload and all was better.  

I think I'll try bypassing Apache and going straight to Tomcat for now.
If that doesn't work, it looks like we'll try the 4.x branch finally.

Thanks for the help.

Best Regards,

Jason



 On Thu, 19 Sep 2002 14:40:39 -0500 (CDT), Milt Epstein wrote:

 On Thu, 19 Sep 2002, Jason Koeninger wrote:
 
  Has anyone seen sessions move between users running Tomcat 3.3.1?
  I'm using Apache 1.3.26 connecting to Tomcat 3.3.1 with mod_jk using
  the ajp12 protocol, and it sounds from user reports as if sessions
  are moving between users.  At first, I thought it had something to
  do with proxies caching the pages, but the last report I got rules
  out a proxy as the users were on totally independent networks.
 
 This could be a multi-threading issue -- i.e. some of your code may
 not be thread-safe.
 
 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:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]


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:[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: one last plea for help

2002-08-27 Thread Jason Koeninger

I believe it's a bug in the connection pool in ajp13, and yes, I've 
seen it.  I'm not sure if newer versions fix the problem or not, but an 
easy fix for it is to switch to ajp12 which uses a new connection for 
each request.  It's reportedly slower, but I haven't had any problems 
with it on Tomcat 3.3m3 or Tomcat 3.3.1.  I've never run Tomcat 
3.1 so YMMV.

Best Regards,

Jason Koeninger
JJ Computer Consulting
http://www.jjcc.com

On Tue, 27 Aug 2002 12:06:01 -0400, Peter Choe wrote:

i am desparate.  can anyone help me?

i am using apache 1.3.26 to server my static webpages on one server and 
connecting to a separate tomcat 3.1 server through mod_jk.

when i start up apache, it is able to connect to the webapps fine. but 
after several minutes, something strange happens.

if i put in the url of one webapplication, the browser shows a different 
webapplication. for example:

i have a webapp called directory which is suppose to show a phone directory 
by going to http://myserver.com/directory
it works when apache is just started, but after awhile, when i go to 
http://myserver.com/directory, i gives me a page that should actually be 
something like http://myserver.com/email.

has this happened to anyone else? anyone know what is causing this?


--
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: one last plea for help

2002-08-27 Thread Jason Koeninger

I may be wrong, but isn't the only difference between ajp13 and ajp12 
with respect to SSL that the ServletRequest.isSecure method works 
correctly?  

Regards,

Jason Koeninger
JJ Computer Consulting
http://www.jjcc.com

On Tue, 27 Aug 2002 14:11:55 -0400, Turner, John wrote:


As far as I know, based on a discussion last week on this topic,
communications between apache and tomcat via AJP13 are unencrypted whether
you have tomcat enabled for SSL or not.

You are correct that mod_ssl is used for SSL on apache.  That is all you
need to encrypt a session between a browser and a webserver.  The connector
(which uses the AJP13 protocol) does not use SSL.  The request is decrypted
by apache, then sent over the connector to tomcat.  Tomcat processes the
request, and sends the result back over the connector to apache.  Apache
encrypts the response, and sends it back to the browser.

So, to setup SSL on apache, use mod_ssl. (http://www.modssl.org)  Using
mod_ssl will have no effect on the connection between apache and tomcat
using the AJP13 connector.

John Turner
[EMAIL PROTECTED]

 -Original Message-
 From: Peter Choe [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, August 27, 2002 2:06 PM
 To: Tomcat Users List
 Subject: RE: one last plea for help
 
 
 what do you mean?  i want to use mod_ssl on apache to encrypt 
 connection 
 between the server and the browser.  i
 have read that you need ajp13 connector to use ssl.
 
 Peter Choe
 
 At 01:44 PM 8/27/2002, you wrote:
 
 The connection between apache and tomcat is not encrypted.  
 There's more
 detail on this in the archives, there was a discussion on it 
 last week.
 
 John Turner
 [EMAIL PROTECTED]
 

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





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




Re: mod_jk load balacing configuration

2002-07-25 Thread Jason Koeninger

I'm not sure about documentation, but I've participated in a 
few mailing list discussions quite some time ago about load 
balancing.  The only reason I knew anything about it (don't 
run load balancing myself) is that I've spent some time in 
workers.properties.  IIRC, there are comments and sample 
directives in workers.properties that show how to configure 
load balancing.

Best Regards,

Jason Koeninger
JJ Computer Consulting
http://www.jjcc.com

On Thu, 25 Jul 2002 09:44:34 -0400, Chris Ruegger wrote:

Is the load balancing configuration of mod_jk
documentated somewhere? Pointers to RTFM
appreciated!






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




Re: Tomcato4.0.4 and included jsp compilation problem

2002-07-25 Thread Jason Koeninger

With static includes, that's Tomcat's normal operation.  The 
reason being that recursively checking timestamps on all 
includes could become very expensive.  You can use the 
touch utility if you don't want to edit the file.

Another option is to use dynamic includes with jsp:include... 
if it's a major problem, but there's a performance impact.

Best Regards,

Jason Koeninger
JJ Computer Consulting
http://www.jjcc.com

On Thu, 25 Jul 2002 08:31:12 -0700 (PDT), Ashish Kulkarni wrote:

Hi,
I m using tomcat4.0.4 , i found out today that when i
modify the included jsp , tomcat does not recompile
it.
i.e.
I have suppose a jsp called test.jsp and i include a
jsp called test1.jsp.
If for some reason i modify test1.jsp and dont modify
test.jsp.
tomcat does not recompile test.jsp so it is as if i am
using old test1.jsp,
but if i modify test.jsp (just add some space to make
it look new) it works,
so is this the correct way of working??
how does other app server behave, or is this a bug, or
need to do some settings???

Ashish


__
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

--
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: Tomcato4.0.4 and included jsp compilation problem

2002-07-25 Thread Jason Koeninger

No, it doesn't compile the included JSP every time.  The difference 
is that with static includes, the code is included directly into the servlet 
created by the JSP.  With dynamic includes, the output of the included 
JSP is generated at the point you include it and sent to the client.  It's 
a very slight difference in performance unless, of course, you have a lot 
of nested static includes that you convert to dynamic.  Looking at the 
.java files generated in the work directory of Tomcat for your web 
application makes it more clear how static vs. dynamic works.

Touch utilities are generally included in most Unix/Linux systems.  Do 
man touch to get more information.  If you're on Windows, I'm not 
sure what the equivalent would be.

Best Regards,

Jason Koeninger
JJ Computer Consulting
http;//www.jjcc.com

On Thu, 25 Jul 2002 08:46:26 -0700 (PDT), Ashish Kulkarni wrote:

Hi,
About the performance, if i use runtime include, does
it mean the each time that page it called it compiles
the included jsp??? is there any good documentation of
what is the difference between these two type of
includes??
Also where can i get this touch utility??
is there any documentation of it

Thanx for the help
Ashish


Thanx for the reply, i think it is better to use
compile time include, for performance..

--- Jason Koeninger [EMAIL PROTECTED] wrote:
 With static includes, that's Tomcat's normal
 operation.  The 
 reason being that recursively checking timestamps on
 all 
 includes could become very expensive.  You can use
 the 
 touch utility if you don't want to edit the file.
 
 Another option is to use dynamic includes with
 jsp:include... 
 if it's a major problem, but there's a performance
 impact.
 
 Best Regards,
 
 Jason Koeninger
 JJ Computer Consulting
 http://www.jjcc.com
 
 On Thu, 25 Jul 2002 08:31:12 -0700 (PDT), Ashish
 Kulkarni wrote:
 
 Hi,
 I m using tomcat4.0.4 , i found out today that when
 i
 modify the included jsp , tomcat does not recompile
 it.
 i.e.
 I have suppose a jsp called test.jsp and i include
 a
 jsp called test1.jsp.
 If for some reason i modify test1.jsp and dont
 modify
 test.jsp.
 tomcat does not recompile test.jsp so it is as if i
 am
 using old test1.jsp,
 but if i modify test.jsp (just add some space to
 make
 it look new) it works,
 so is this the correct way of working??
 how does other app server behave, or is this a bug,
 or
 need to do some settings???
 
 Ashish
 
 
 __
 Do You Yahoo!?
 Yahoo! Health - Feel better, live better
 http://health.yahoo.com
 
 --
 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]
 


__
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com



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




Re: reloadable=true just not working. Any ideas gentlefolk?

2002-05-21 Thread Jason Koeninger

I don't believe the class loader recognizes any new code other 
than servlets and jsp files.  If you have new classes called by 
servlets, they won't be reloaded.  If you search in the archives, you 
should find a lot of discussions on this topic.

If you have servlets or jsp's that aren't reloading, I'm not sure what 
may be going wrong.  

Best Regards,

Jason Koeninger
JJ Computer Consulting
http://www.jjcc.com

--- Ray Letts [EMAIL PROTECTED] wrote:
 
 Below is a snippet from my conf/server.xml file.
  From all the docs 
 I've read, and the examples, this should work.
 However the tomcat class 
 loader does not recognize newly compiled class files
 and still uses the 
 cached versions.
   Can anyone spot a problem with the xml below? It
 parses upon startup. 
 But to get the newly compiled classes cached I have
 to restart the 
 server. and whether thru cmd line or manager web
 app, this is not want I 
 want to do during development.
 
 TIA
 
 Ray
 
  Context path=/BugTracker 

docBase=/app/tomcat/jakarta-tomcat/dist/webapps/BugTracker/
 debug=0 
 reloadable=true  /
 
 ps above is the full path to the webapp, however I
 have tried the 
 relative  as well.
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

--
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: java.lang.ClassFormatError out of the Blue

2002-04-09 Thread Jason Koeninger

This may not be the what you're having problems with, but the only time I've seen this 
was when I was deploying via FTP and forgot to set my scripts to use binary mode.  

Best Regards,

Jason Koeninger
JJ Computer Consulting
http://www.jjcc.com

On Tue, 9 Apr 2002 15:55:05 -0400, hemant wrote:

I Use Tomcat 4.0.2 and  Struts 1.0.2 with VA 3.5.3

Everything was perfect until, one inauspicious moment in the afternoon when I 
suddenly got this exception from nowhere.

I have no clue as to why and how. But I do see that this is a ClassFormatException 
so, I moved the application related code (not struts) onto another machine where I 
previously 
deployed my app. The app was fine on this box earlier.Now, I get the same 
ClassFormatError there too so, It has to do with the code I moved.

The Java API says that it is Thrown when the Java Virtual Machine attempts to read a 
class file and determines that the file is malformed or otherwise cannot be 
interpreted as a 
class file. 

So .class file is corrupt/malformed. But which? I am trying to force a recompile on 
classes by adding a space, etc. 

any ideas on what sould be done next if my attempt fails?


here is the exception


Thank You for your time

hemant



root cause 

java.lang.ClassFormatError
   java.lang.Throwable()
   java.lang.Error()
   java.lang.LinkageError()
   java.lang.ClassFormatError()
   java.lang.Class java.lang.ClassLoader.defineClass0(java.lang.String, byte [], 
int, int, java.security.ProtectionDomain)
   java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String, byte [], 
int, int, java.security.ProtectionDomain)
   java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String, byte [], 
int, int)
   java.lang.Class 
org.apache.jasper.servlet.JasperLoader.loadClass(java.lang.String, boolean)
   java.lang.Class 
org.apache.jasper.servlet.JasperLoader.loadClass(java.lang.String)
   boolean org.apache.jasper.servlet.JspServlet.loadJSP(java.lang.String, 
java.lang.String, boolean, javax.servlet.http.HttpServletRequest, 
javax.servlet.http.HttpServletResponse)
   void 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(javax.servlet.http.HttpServletRequest,
 javax.servlet.http.HttpServletResponse)
   void 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(javax.servlet.http.HttpServletRequest,
 javax.servlet.http.HttpServletResponse, boolean)
   void 
org.apache.jasper.servlet.JspServlet.serviceJspFile(javax.servlet.http.HttpServletRequest,
 javax.servlet.http.HttpServletResponse, java.lang.String, 
java.lang.Throwable, boolean)
   void 
org.apache.jasper.servlet.JspServlet.service(javax.servlet.http.HttpServletRequest, 
javax.servlet.http.HttpServletResponse)
   void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, 
javax.servlet.ServletResponse)
   void 
org.apache.catalina.core.ApplicationDispatcher.invoke(javax.servlet.ServletRequest, 
javax.servlet.ServletResponse)
   void 
org.apache.catalina.core.ApplicationDispatcher.doForward(javax.servlet.ServletRequest,
 javax.servlet.ServletResponse)
   void 
org.apache.catalina.core.ApplicationDispatcher.forward(javax.servlet.ServletRequest, 
javax.servlet.ServletResponse)
   void 
org.apache.struts.action.ActionServlet.processActionForward(org.apache.struts.action.ActionForward,
 org.apache.struts.action.ActionMapping, 
org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, 
javax.servlet.http.HttpServletResponse)
   void 
org.apache.struts.action.ActionServlet.process(javax.servlet.http.HttpServletRequest, 
javax.servlet.http.HttpServletResponse)
   void 
org.apache.struts.action.ActionServlet.doPost(javax.servlet.http.HttpServletRequest, 
javax.servlet.http.HttpServletResponse)
   void 
javax.servlet.http.HttpServlet.service(javax.servlet.http.HttpServletRequest, 
javax.servlet.http.HttpServletResponse)
   void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, 
javax.servlet.ServletResponse)
   void 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(javax.servlet.ServletRequest,
 javax.servlet.ServletResponse)
   void 
org.apache.catalina.core.ApplicationFilterChain.doFilter(javax.servlet.ServletRequest,
 javax.servlet.ServletResponse)
   void 
org.apache.catalina.core.StandardWrapperValve.invoke(org.apache.catalina.Request, 
org.apache.catalina.Response, org.apache.catalina.ValveContext)
   void 
org.apache.catalina.core.StandardPipeline.invokeNext(org.apache.catalina.Request, 
org.apache.catalina.Response)
   void 
org.apache.catalina.core.StandardPipeline.invoke(org.apache.catalina.Request, 
org.apache.catalina.Response)
   void 
org.apache.catalina.core.ContainerBase.invoke(org.apache.catalina.Request, 
org.apache.catalina.Response

Re: many java processes

2002-03-21 Thread Jason Koeninger

I missed a lot of this thread, but given some of the comments made,
I thought I should post some information.  FWIW, these discussions
take place frequently and can be found in the list archives.

The Linux thread implementation represents a thread as a process.
That's why you see tons of processes when any Java application is
running.  Unlike a normal  process, though, all of these processes
share the same address space so the memory use you see in ps
or top is really shared across all of the processes.

As far as Sun fixing something, I'm not sure there's something to
fix, but I do believe some JVM's have a green threads implementation
that runs multiple threads on a single Linux thread.  There may also be 
other threading models under development for Linux.  I  know IBM was
working on a more Solaris-like MxN threading scheme, but I don't
keep up with Linux enough to know the specifics of any of those projects.

HTH

Best Regards,

Jason Koeninger
JJ Computer Consulting
http://www.jjcc.com

On Thu, 21 Mar 2002 16:23:22 +0100, Jean-Luc BEAUDET wrote:

D. Jay Newman a ‚crit :

 I looked at my ps output, and they do seem to each have a different pid.

 However, I will look into this. I *think* that I have native threads on
 this machine.

 I don't know ps well enough to find the right option, but there is always
 man ps...

  than why do they all have a different process id??  Also, how what would the 
option be to turn off viewing of threads and just view processes?
  thanks for your help Jay,
  Dean
 
  D. Jay Newman wrote:
 
On linux did anybody ever get a linux patch for fixing the problem of one 
process per java thread.  I read on the sun bug parade they were going to port to a 
new threading model but we needed to update the linux threading  I have seen many 
e-mails complaining about how tomcat creates s many processes and this is due to 
a JVM thing not tomcat.  Does anybody know or is everyone just sitting by with many 
many java processes on their linux?
Any help, pointers you could give me would be great,
  
   As near as I can tell, Linux *doesn't* create multiple processes. If you
   look closely at the output of ps all the java processes exist in the
   same processes.
  
   Linux (at least RedHat) comes with a ps that reports threads as well
   as processes.
   --
   D. Jay Newman  !  All:  There's nothing we can't face...
   [EMAIL PROTECTED]!  Anya: Except for bunnies...
   http://www.sprucegrove.com/~jay/   !-- Buffy, the Musical
  
   --
   To unsubscribe:   mailto:[EMAIL PROTECTED]
   For additional commands: mailto:[EMAIL PROTECTED]
   Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 

 --
 D. Jay Newman  !  All:  There's nothing we can't face...
 [EMAIL PROTECTED]!  Anya: Except for bunnies...
 http://www.sprucegrove.com/~jay/   !-- Buffy, the Musical

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

It's a strange way of Linux to associate the threads binded to the Tomcat process as 
process themself.

I don't work on Linux but on Solaris. Just give an output exerpt of yur ps and let 
see if a ps .. | grep may do the tricK.

Jean-Luc B :O)



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




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




Re: coyote httpconnector design

2002-03-21 Thread Jason Koeninger

I have a few curiosity questions if you don't mind.  First, 
what's your test configuration?  What platform is the machine 
below running, and what else is running on it?  Also, are you 
running the load generator on the same machine or on a 
different machine?  Second, have you checked to see if the 
system is swapping memory during your tests?  And, what 
JVM are you using?

Below, I noticed you said you were going to see how fast 
static content would work.  It might be as or more interesting 
to measure a servlet doing the same work as your JSP pages.
I know that it's supposed to run just like a servlet after the 
compile is done on the first request, but it would be interesting 
nonetheless to remove that overhead and look at the differences.

Anyway, just curious for my own information.  I'll be having to 
do some load testing of my own in the next couple of months 
so this would be timely information.  

Best Regards,

Jason Koeninger
JJ Computer Consulting

On Thu, 21 Mar 2002 13:48:15 -0500, peter lin wrote:



thanks craig for responding. Here are more details.

Craig R. McClanahan wrote:
 
  Here is a little background on why I am looking for the information.
  I've been doing some performance benchmarks comparing coyote and
  httpconnector on 4.0.2 and 4.0.3 with JSTL. My test pages use a lot of
  includes to dynamically build the header, footer and look of a page.
 
  when I used include directive %@ include file= % the performance for
  4-16 concurrent connections causes dramatic increases in CPU
  utilization. When I use action include as in jsp:include page=/ the
  performance is better. Tomcat is running on a resource limited box,
  600mhz w/256Mb ram.
 
 
 Hmm, this result is a little counter-intuitive.  The %@ include %
 directive causes a single (larger) JSP page to be created -- like the
 #include directive in C code -- versus multiple independent pages that
 are linked via RequestDispatcher.include() calls.  I'm wondering if the
 resource limited part of your description is kicking in.
 
 It would be useful to compare all four combinations:
 - Old connector, include directive
 - Old connector, include action
 - New connector, include dirctive
 - New connector, include action

Before I saw the results, I expected include directive to perform
better. Actually I did several series of tests, including the ones you
suggested. My guess is it's a combination of the code generated and the
thread management causing the CPU spike. One noteable detail is for 32+
concurrent connections, coyote's CPU usage occasionally went down to
zero. The CPU drop had a direct effect on the response time. Here are
some numbers. All times are miliseconds.

include directive - 1 thread 1000 iterations
-
httpconnector ave - 33
cpu usage - 40-70%

action include - 1 thread 1000
-
httpconnector ave - 81
cpu usage - 60-85%

include directive - 2 threads 500
-
httpconnector ave - 453
cpu usage - 85-100%

action include - 2 threads 500
-
httpconnector ave - 299
cpu usage - 80-100%

include directive - 4 threads 250
-
httpconnector ave - 27273
cpu usage - 100%
coyote connector ave - 590

action include - 4 threads 250
-
httpconnector ave - 738
cpu usage - 95-100%
coyote connector ave - 211
cpu usage - 15% less than httpconnector

include directive - 8 threads 125
-
httpconnector - failed to complete
cpu usage - 100%
coyote ave - 1546
cpu usage - 80-100%

action include - 8 threads 125
-
httpconnector ave - 1867
cpu usage - 95-100%
coyote ave - 370
cpu usage - 90-100%

action include - 16 threads 63
-
httpconnector ave - 1323
cpu usage - 95-100%
coyote ave - 792
cpu usage - 95-100%

people2.jsp - 32 threads 63 
-
coyote ave - 1215
cpu usage - 95-100%

Simple jsp page that prints out http headers java and jstl to print req
param
1 thread 1000 iterations
-
httpconnector ave - 10
cpu usage - 20-30%

2 thread 500 iterations
-
httpconnector ave - 11
cpu usage - 30-40%

4 thread 250 iterations
-
httpconnector ave - 16
cpu usage - 40-60%

32 threads 65 iterations
-
httpconnector ave - 252
coyote ave - 84

64 threads 35 iterations
-
coyote ave - 136


 
  Using include directive, the compiled class file gets close to the 64K
  limit (around 61K).
 
 This is a fundamental limitation of the current JSP page compiler in
 Jasper), because all the code generated for your page ends up in a single
 _jspService() method.

related to this, are there plans to improve JSP page compilation?

 
 Tracking down whether that CPU usage is in the connector versus in the JSP
 page execution would be useful -- they are pretty much independent of each
 other.

My next set of benchmarks I will compare static pages to JSP pages of
varying complexity.  the results from the static pages should establish

Re: Multi-user problem

2002-02-06 Thread Jason Koeninger

On Wed, 06 Feb 2002 19:55:40 -0500, [EMAIL PROTECTED] wrote:

I'm not sure I understand what you mean by keeping class data, so I've copied the 3 
methods here.  In an attempt to answer your question...

Is con a class variable?  For instance, is it declared something like this:

public class MyServlet extends HttpServlet {

private Connection con;
.
.
.
};


If it is, multiple users will step on each others' connections.  Only one instance 
of the servlet is created to serve multiple requests.  If con is declared local 
to the service method, then it's not a problem.

Best Regards,

Jason Koeninger
JJ Computer Consulting
http://www.jjcc.com



1) None of my servlets use multithreading.. I'm new to Java and haven't learned that 
yet.
2) A database connection is opened as soon as necessary in the servlet and I expect 
it to remain available until the servlet closes.  I do not expect it to be available 
across multiple 
instances.
3) The database connection is forced closed at the end of the servlet.

Here's the code for the 3 routines plus the database connect and disconnect (please 
don't laugh.. this is the result of a very steep learning curve and a bunch of 
troubleshooting).  As 
you see, the login/out methods expect an existing statement (which is bound to a 
connection) as a parameter:


//---
public static void login(String userid, Statement st) {
String s=;
System.err.println(Login);
try {
s=
use sqaa +
update emps +
set loggedin=1, +
lastaccess='+thelper.getcurtime()+' +
where userid='+userid+' ;
st.executeUpdate(s);
} catch (Exception exc) {
System.err.println(Error during login().);
System.err.println(  +exc.getClass().getName());
System.err.println(  +exc.getMessage());
System.err.println(s);
return;
}
}
//
public static void logout(int userrecordid, String userid, Statement st) {
String s=;
System.err.println(Logout);
try {
System.err.println(..logging out);
s=
use sqaa +
update emps +
set loggedin=0 +
where userid='+userid+' ;
st.executeUpdate(s);

System.err.println(..cancelling reservations for +userrecordid+, 
+userid);
s=
use sqaa +
update images +
set auditorid=null, auditorstatus='U' +
where auditorid=+userrecordid+ +
and auditorstatus='X';
st.executeUpdate(s);

System.err.println(Done logging out.);

} catch (Exception exc) {
System.err.println(Error during logout.);
System.err.println(  +exc.getClass().getName());
System.err.println(  +exc.getMessage());
System.err.println(s);
return;
}
}
//
public static void updateaccesstime(String userid, Statement st) {
String s=;
System.err.println(Updateaccesstime);
s=
use sqaa +
update emps +
set lastaccess = '+thelper.getcurtime()+' +
where userid='+userid+' ;
try {
st.executeUpdate(s);

} catch (Exception exc) {
System.err.println(Error during updateaccesstime().);
System.err.println(  +exc.getClass().getName());
System.err.println(  +exc.getMessage());
System.err.println(s);
return;
}
}


//Open JDBC Connection (This occurs right after getting the POST parameters):
try{
Class.forName(sun.jdbc.odbc.JdbcOdbcDriver);
con = DriverManager.getConnection(jdbc:odbc:sqaa,philg,);
query = con.createStatement();
}
catch (Exception exc) {
System.err.println(Error creating JDBC connection.);
System.err.println(exc.getClass().getName());
System.err.println(exc.getMessage());
thelper.fileServe(out,c:/html/except.html);
return;
}

//Close database connection (this is the last thing done).
try{
con.close();
} catch (Exception exc) {
System.err.println(Error closing database.);
System.err.println(exc.getClass().getName());
System.err.println(exc.getMessage());
thelper.fileServe(out,c:/html/except.html);
return;
}

-- 




__
Your favorite stores, helpful shopping tools and great gift ideas. Experience the 
convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/

Get your own FREE

Re: Use of Java Classes in .JSP fails under Tomcat 3.2

2002-01-16 Thread Jason Koeninger

On Wed, 16 Jan 2002 15:13:58 -0600, Jerry Jalenak wrote:

When I attempt to access methods defined in Java from a .JSP, I am receiving
a message that the method is not being found.  For example, I have been
testing with the following .JSP:

%@page import=java.util.*, java.lang.*%
%
   // Test

   String myString = 100 ;
   int myInt = parseInt(myString) ;

How can you call parseInt without specifying a class?  Wouldn't this work 
better?

int myInt = Integer.parseInt( myString );

Regards,

Jason Koeninger
JJ Computer Consulting
http://www.jjcc.com



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




Re: Tomcat 3.3 - multiple JVM's?

2002-01-08 Thread Jason Koeninger

On Tue, 8 Jan 2002 12:15:07 -0800, Darrell Esau wrote:

Does Tomcat 3.3 spawn multiple JVM's or a single one?

It spawns a single JVM.


How does one adjust the max heap size of the JVM(s)?  (where do you set the 
-Xmx switch?)

I believe the batch/shell scripts will look at a TOMCAT_OPTS environment 
variable.  You should check the script code to verify that.  

Best Regards,

Jason Koeninger
JJ Computer Consulting
http://www.jjcc.com





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




Re: java.lang.OutOfMemory error

2001-12-07 Thread Jason Koeninger


winmail.dat
Description: application/ms-tnef


Re: java.lang.OutOfMemory error

2001-12-05 Thread Jason Koeninger

It's pretty common that the default Java settings are insufficient on a 
busy server.  There are command line options for java that allow you 
to increase the heap.  Check the documentation on your JDK.

Best Regards,

Jason Koeninger
JJ Computer Consulting
http://www.jjcc.com

On Wed, 5 Dec 2001 15:55:37 -0600, Yinghui \(Susan\) Zeng wrote:

Dear all,

once in a while, the tomcat screen pops up the java.lang.OutOfMemory error.  What 
could cause this, where should I check?
I am running tomcat 3.1.2 on Window 2000 with apache 1.3.2.0.

Susan Zeng




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




Re: compiling JSPs

2001-11-30 Thread Jason Koeninger

This is typically one of a couple of problems.  In general, Tomcat 
isn't finding tools.jar from your JDK installation and consequently 
can't compile the JSP page.  This could mean you've installed only 
a JRE and not a JDK, or it could mean that the JAVA_HOME 
environment variable hasn't been set properly.

If you search the mailing list archives, you can find a ton of posts 
dealing with this problem.

Best Regards,

Jason Koeninger
JJ Computer Consulting
http://www.jjcc.com

On Fri, 30 Nov 2001 12:53:46 -0500, Phil Armour wrote:

I have just installed Tomcat and It appears to be working ie. 
localhost:8080 shows me the index page.

my problem occurs when i try to hit localhost:8080/Inputs.jsp
I know this file should work cause i have compiled/executed it using forte.

My problem is that I get an Internal Server Error to the effect of:
java.lang.NoClassDefFoundError: sun/tools/javac/Main

I'm not sure If this means that I still have a variable set wrong in my 
configuration or if a classpath is not correct.
please let me know what you think.

-phil


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





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




RE: Where to place JDBC drivers? How?

2001-11-28 Thread Jason Koeninger

There are variations between versions of Tomcat on how 
things work.  For instance, Tomcat 3.2 recognized things in 
the classpath whereas Tomcat 3.3 doesn't.  3.3 has directories 
in its installation where jars can be added globally.  I don't 
know how 4.x handles it.

To be safe, I think WEB-INF/lib is the recommended and most 
universal place to put jar files for your web application.


Best Regards,

Jason Koeninger
JJ Computer Consulting
http://www.jjcc.com

On Wed, 28 Nov 2001 11:08:35 -0700, Mike Kelley wrote:

I have a reference in the environment variables (should the name be
CLASSPATH? Or is it an addition to the Path variable??)

I'm also finding a few references to putting the jar JDBC files in the
WEB-INF folder or in the lib folder...

Could you help me out with a little more specifics towards the worker,
wrapper etc ...

-Original Message-
From: Barney Hamish [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, November 28, 2001 11:07 AM
To: 'Tomcat Users List'
Subject: RE: Where to place JDBC drivers? How?


You need to make sure you put a reference to the driver location in your
class_path variable. Where you need to do this depends on how you're running
tomcat, modify the environment classpath variable or in the
worker.properties file, or in the wrapper.properties file etc

-Original Message-
From: Mike Kelley [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 28, 2001 6:53 PM
To: [EMAIL PROTECTED]
Subject: Where to place JDBC drivers? How?


I found some JDBC drivers for accesing an IBM AS400 
But I can't get them to work within the browser environment. I placed an
entry in my system variables 
Name: CLASSPATH
Value: loacation of JDBC.jar file;location of JDBC license.jar (in windows
is CLASSPATH = Path???)

The Drivers came with a few applets; with the correct information these
applets will connect to my as400 db but with the same info my jsp pages
won't connect, I keep getting errors that look like this

A Servlet Exception Has Occurred
Exception Report:
javax.servlet.ServletException: hit.as400.As400Driver

Root Cause:
java.lang.ClassNotFoundException: hit.as400.As400Driver


Where should these jar files be placed? Do they need to be within the webapp
tree? DO I need to reference their location in the server.xml file?? Should
they be placed within the  JDK tree??? 

Anyone?

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

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

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




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




Re: specifying remote Tomcat

2001-11-27 Thread Jason Koeninger

Nobody seems to be biting on your question so I'll take a crack 
at it.  btw, I have no idea what jboss is so I'm going purely from 
Apache/Tomcat experience.

Two things I would do to figure out the problem.  First, pull out 
the Alias and Directory entries below.  Sounds to me like they're 
taking responsibility for the /examples url.  Second, I've never 
seen a Tomcat JkMount command with the URL-style protocol 
and IP specification.  The workers.properties file handles the IP 
address, port number, and protocol.  You just provide the name 
of the worker.  What you provided looks like stuff from JServ, and 
I'm not sure it's still part of mod_jk.

Hope that helps.

Best regards,

Jason Koeninger
JJ Computer Consulting
http://www.jjcc.com



On Tue, 27 Nov 2001 15:14:08 -0500, Peter Matulis wrote:

I have set up my workers in workers.properties:

worker.ajp13.port=8009
worker.ajp13.host=10.0.3.128
worker.ajp13.type=ajp13

In mod_jk.conf-local I use them:

Alias /examples /usr/local/jboss-tomcat/tomcat/webapps/examples
Directory /usr/local/jboss-tomcat/tomcat/webapps/examples
Options Indexes FollowSymLinks
Order allow,deny
Allow from all
/Directory

JkMount /examples/servlets/* ajp13://10.0.3.128
JkMount /examples/*.jsp ajp13://10.0.3.128

Unfortunately, Apache takes requests such as http://apachehost/examples as
local.  That is, directly to /usr/local/jboss-tomcat/tomcat/webapps/examples
and, of course, cannot find the resource.  How do I solve this?

Peter

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




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




RE: specifying remote Tomcat

2001-11-27 Thread Jason Koeninger

On Tue, 27 Nov 2001 18:27:11 -0500, Peter Matulis wrote:

JBoss allows us to process EJBs.  JBoss and Tomcat are separate
entities but they are launched together.

Ahh...thanks.  I've seen it mentioned but haven't used it.  Should 
have known it was EJB related.


- Two things I would do to figure out the problem.  First, pull out 
- the Alias and Directory entries below.  Sounds to me like they're 
- taking responsibility for the /examples url.

Why? The Alias and Directory directives are found in the config
Tomcat automatically generates.

It's just a debugging step.  You say you're not getting errors and 
it's going straight to examples without going through Tomcat.  There's
an Alias entry dealing with the /examples URL so my recommendation 
is remove it and see if Apache starts going to Tomcat.  If it does, you've 
found the problem and can start working toward a solution.  

Since I don't use the Alias directive for anything related to Tomcat right 
now, I can't comment on how it and JkMount interact.  So, I'm just 
recommending simplifying your configuration so we can make sure 
Tomcat is working.  FWIW, I haven't seen an automatically generated 
Alias directive with any Tomcat I use, but then again, I haven't looked 
at an automatically generated Apache configuration since version 3.2.1. 

Best Regards,

Jason Koeninger
JJ Computer Consulting
http://www.jjcc.com

- On Tue, 27 Nov 2001 15:14:08 -0500, Peter Matulis wrote:
- 
- I have set up my workers in workers.properties:
- 
- worker.ajp13.port=8009
- worker.ajp13.host=10.0.3.128
- worker.ajp13.type=ajp13
- 
- In mod_jk.conf-local I use them:
- 
- Alias /examples /usr/local/jboss-tomcat/tomcat/webapps/examples
- Directory /usr/local/jboss-tomcat/tomcat/webapps/examples
- Options Indexes FollowSymLinks
- Order allow,deny
- Allow from all
- /Directory
- 
- JkMount /examples/servlets/* ajp13://10.0.3.128
- JkMount /examples/*.jsp ajp13://10.0.3.128
- 
- Unfortunately, Apache takes requests such as 
http://apachehost/examples as
local.  That is, directly to
/usr/local/jboss-tomcat/tomcat/webapps/examples
and, of course, cannot find the resource.  How do I solve this?

Peter

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




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

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




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




Re: mod_jk Virtual Host Problems

2001-08-31 Thread Jason Koeninger

I may be mistaken, but this is an Apache problem, isn't it?

To do name based virtual hosts in Apache, you have to 
have a NamedVirtualHost (not sure if that's exactly the right 
directive) entry that gives the IP where you'll put  the hosts. 
Then, the VirtualHost entries have to use that same IP 
address in their declaration.  I'm not sure you can get away 
with the asterick like that, but I could be wrong.  

Given that you're only getting the response from the first one, I'm 
going to guess that Apache's not getting to the others.  Try some 
html files in your document roots to see if it's Apache or if it's 
mod_jk.

Best Regards,

Jason Koeninger
JJ Computer Consulting
http://www.jjcc.com

On Fri, 31 Aug 2001 11:16:24 -0700, Eric Rosenberry wrote:

I am trying to get apache setup with four virtual hosts that send requests
for .jsp files to four separate tomcat workers.  I am using mod_jk to do
this with the commands below in my httpd.conf file.  My problem is that
mod_jk seems to only pay attention to the first set of JKMount commands.  So
the end result is that ALL my virtual hosts get sent to the worker called
service.

I am using Tomcat 3.2.3 and the mod_jk from the following URL:
http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.3/bin/win32/i38
6/

Any help would be greatly appreciated!  I KNOW this can be done as the
Tomcat documentation tells me how to do it with mod_jserv.

VirtualHost *
ServerAdmin [EMAIL PROTECTED]
DocumentRoot d:/webdocs/service
ServerName service.int.mydomain.com
ErrorLog d:/logs/service/apache/error.log
CustomLog d:/logs/service/apache/access.log common
JkMount /*.jsp service
JkMount /servlet/* service
/VirtualHost

VirtualHost *
ServerAdmin [EMAIL PROTECTED]
DocumentRoot d:/webdocs/demo
ServerName demo.int.mydomain.com
ErrorLog d:/logs/demo/apache/error.log
CustomLog d:/logs/demo/apache/access.log common
JkMount /*.jsp demo
JkMount /servlet/* demo
/VirtualHost

VirtualHost *
ServerAdmin [EMAIL PROTECTED]
DocumentRoot d:/webdocs/store
ServerName store.int.mydomain.com
ErrorLog d:/logs/store/apache/error.log
CustomLog d:/logs/store/apache/access.log common
JkMount /*.jsp store
JkMount /servlet/* store
/VirtualHost

VirtualHost *
ServerAdmin [EMAIL PROTECTED]
DocumentRoot d:/webdocs/payment
ServerName payment.int.mydomain.com
ErrorLog d:/logs/payment/apache/error.log
CustomLog d:/logs/payment/apache/access.log common
JkMount /*.jsp payment
JkMount /servlet/* payment
/VirtualHost

-Eric







Re: tomcat 3.2.3 and mod_jk

2001-08-31 Thread Jason Koeninger

It's in there, but it's not on by default.  Copy the ajp12 connector 
section of server.xml and paste the same thing right below.  Change
the port number and change all of the 12's to 13's, and you should be 
ready to go.

Best Regards,

Jason Koeninger
JJ Computer Consulting
http://www.jjcc.com


On Fri, 31 Aug 2001 14:55:31 -0700, Jason Novotny wrote:


I see mod_jk in the tomcat 3.2.3 source distribution- however I see
no reference to the mod_jk or AjpV13 connector in the included
server.xml file. Am I supposed to use mod_jserv only with Tomcat
3.2.3??? If not, where's the right server.xml file.

Thanks, Jason

--
Jason Novotny   [EMAIL PROTECTED]
Home: (510) 610-8360Work: (510) 486-8662
NERSC Distributed Computing http://www-itg.lbl.gov/Grid









Re: Multiple JVMs, mod_jk, and identical context names

2001-08-28 Thread Jason Koeninger

All you need to do is put your JkMounts in their appropriate
VirtualHosts and either include the LoadModule, AddModule, 
JkWorkersFile, JkLogFile, JkLogLevel (not sure if those are 
exactly right) outside the virtual hosts and before the JkMounts 
or just do everything inline in httpd.conf.

Something like this but don't quote me on the exact syntax and 
directive names:

LoadModule jk_module  libexec/mod_jk.so
AddModule mod_jk.c

JkWorkersFile /path/to/workers.properties
JkLogFile /path/to/mod_jk.log
JkLogLevel error

VirtualHost 127.0.0.1
...
JkMount /custom_name1 ajp12_custom
JkMount /caffeine ajp12_custom

/VirtualHost

VirtualHost 127.0.0.2
...
JkMount /custom_name2 ajp13_custom
JkMount /caffeine ajp13_custom
...
/VirtualHost

That sounds about like what you're trying to accomplish.  Obviously, 
I've left some stuff out, but you should be able to fill in the blanks.

Best Regards,

Jason Koeninger
JJ Computer Consulting
http://www.jjcc.com

On Tue, 28 Aug 2001 17:36:07 +0800, Stuart Clement wrote:

Hi All,

I have the following scenario.

Suse Linux 7.0
JDK 1.3.0
Apache 1.3.19
Tomcat 3.2.1

I am using mod_jk and I have a workers.properties-custom file that creates two
more workers (ajp12_custom, ajp13_custom) on new ports (8011  8013
respectively). They are added to the worker.list and load balance list. This
file is referenced in my custom mod_jk configuration file (mod_jk.conf-custom)
as the correct worker file.

I also have two custom server.xml files which are used to startup and shutdown
using the -f flag to the startup.sh and shutdown.sh scripts. Each server.xml
file has two (2) application specific contexts, one of which is identical in
name only, between both files:

server.xml:
---

/custom_name1
/caffeine


server_custom.xml:


/custom_name2
/caffeine

The /caffeine context, whilst the same in name, needs to point to different
locations for each webapp. They cannot be shared.

Everything works correctly, apart from when the /caffeine context is accessed
in each webapp. I realised that I have a common mod_jk.conf-custom file that
of course only has the one /caffeine configuration block. In my haste I set
the connector for /caffeine context to be the new ajp13_custom, which only
works for one webapp and not the other.

So, the question is really... I'm not sure how to best do this?  I've tried
declaring two (2) mod_jk.conf files:

mod_jk.conf-caffeine
mod_jk.conf-custom

and set an Include statement for each virtual host declaration in my Apache
httpd.conf, instead of a global Include as I had previously, however I get the
following error when trying to start Apache:

Syntx error on line 8 of /usr/local/tomcat/conf/mod_jk.con-caffeine
LoadModule connot occur within VirtualHost section
./apachectl start: httpd could not be started

This is the line that loads the mod_jk module  /libexec/mod_jk.so

Does anyone have any suggestions?

thanks in advance

Stu








Re: does tomcat always for this much?

2001-08-24 Thread Jason Koeninger

Threads on Linux are analagous to processes.  What you're 
seeing here are all of the threads Tomcat has spawned, and the 
memory shown on each one is actually memory shared between 
all of them.  

Best Regards,

Jason Koeninger
JJ Computer Consulting
http://www.jjcc.com

On Fri, 24 Aug 2001 16:38:56 -0500, Daniel Lamblin wrote:

I have tomcat, running through apache on a pentium machine with 32mb of ram
running debain linux.  Normally this machine would be fine for serving a
few small pages.  It even does well with tomcat.  But there's something
that concerns me going on:

I have 7 contexts, and 4 virtual hosts setup, maybe that might explain it,
but tomcat just seems to like to allocate a bunch of memory for a bunch of
forks:

24269 daniell   19   0  1212 1212   688 R   0 33.6  1.8   0:23 top
12774 root   1   0 24180  18M  2064 S   0  3.8 30.2 229:35 java
12461 root   0   0 24180  18M  2064 S   0  3.7 30.2 266:03 java
12765 root   1   0 24180  18M  2064 S   0  3.7 30.2 141:43 java
11186 root   0   0 24180  18M  2064 S   0  3.4 30.2 396:17 java
12292 root   0   0 24180  18M  2064 S   0  3.3 30.2 313:36 java
12422 root   1   0 24180  18M  2064 S   0  3.3 30.2 301:51 java
11181 root   1   0 24180  18M  2064 S   0  3.2 30.2 336:00 java
12770 root   0   0 24180  18M  2064 S   0  3.2 30.2 223:01 java
22851 root   0   0 24180  18M  2064 S   0  3.2 30.2 129:10 java
12424 root   0   0 24180  18M  2064 S   0  3.1 30.2 328:19 java
12773 root   1   0 24180  18M  2064 S   0  3.1 30.2 219:35 java
12294 root   1   0 24180  18M  2064 S   0  2.9 30.2 315:20 java
12299 root   1   0 24180  18M  2064 S   0  2.9 30.2 340:21 java
12428 root   0   0 24180  18M  2064 S   0  2.8 30.2 320:21 java
12464 root   0   0 24180  18M  2064 S   0  2.8 30.2 290:18 java
12293 root   1   0 24180  18M  2064 S   0  2.7 30.2 326:51 java

I have never seen anything so scarry.  tomcat doesn't run like this on
other systems... and its not even being asked to do anything in the last
hour or so.

Is this expected?  what can people do to limit this sort of thing? please
mail [EMAIL PROTECTED]
oh yeah this is 3.2.1

see also ps ax output:
11121 ?S  0:24 [java]
11148 ?S  1:08 [java]
11149 ?S 13:54 [java]
11150 ?S  0:09 [java]
11151 ?S  0:26 [java]
11152 ?S175:58 [java]
11153 ?S  0:00 [java]
11154 ?S  0:00 [java]
11155 ?S  0:31 [java]
11156 ?S  4:23 [java]
11157 ?S  0:06 [java]
11158 ?S  0:04 [java]
11159 ?S  0:05 [java]
11160 ?S  0:05 [java]
11161 ?S  0:05 [java]
11162 ?S  0:05 [java]
11163 ?S  0:05 [java]
11164 ?S  0:04 [java]
11165 ?S  0:05 [java]
11166 ?S  0:05 [java]
11167 ?S  0:05 [java]
11168 ?S  0:05 [java]
11169 ?S  0:00 [java]
11170 ?S  0:00 [java]
11171 ?S  0:00 [java]
11172 ?S  0:00 [java]
11173 ?S  0:00 [java]
11174 ?S  0:00 [java]
11175 ?S  0:00 [java]
11176 ?S  0:00 [java]
11177 ?S  0:00 [java]
11178 ?S  0:00 [java]
11179 ?S  0:06 [java]
11180 ?S358:55 [java]
11181 ?S336:47 [java]
11182 ?S345:22 [java]
11183 ?S376:11 [java]
11184 ?S372:19 [java]
11185 ?S366:28 [java]
11186 ?S397:02 [java]
11187 ?S682:53 [java]
11188 ?S755:39 [java]
11189 ?S1967:50 [java]
11190 ?S  0:06 [java]
11193 ?S  0:31 [java]
12290 ?S311:15 [java]
12291 ?S317:25 [java]
12292 ?S314:21 [java]
12293 ?S327:37 [java]
12294 ?S316:06 [java]
12295 ?S315:46 [java]
12296 ?S310:09 [java]
12297 ?S317:27 [java]
12298 ?S311:17 [java]
12299 ?S341:05 [java]
12419 ?S299:30 [java]
12420 ?S306:20 [java]
12421 ?S316:25 [java]
12422 ?S302:37 [java]
12423 ?S318:37 [java]
12424 ?S329:06 [java]
12425 ?S313:38 [java]
12426 ?S315:40 [java]
12427 ?S324:35 [java]
12428 ?S321:07 [java]
12460 ?S266:20 [java]
12461 ?S266:46 [java]
12462 ?S277:03 [java]
12463 ?S273:58 [java]
12464 ?S291:02 [java]
12465 ?S301:17 [java]
12466 ?S301:07 [java]
12467 ?S295:56 [java]
12468 ?R310:28 [java]
12469 ?S304:12 [java]
12765 ?S142:30 [java]
12766 ?S137:16 [java]
12767 ?S180:14 [java]
12768 ?S173:41 [java]
12769 ?S224:51 [java]
12770

Re: seperate servers

2001-08-17 Thread Jason Koeninger

workers.properties

You can set the IP address and port number of the Tomcat 
server through the worker definitions.

Best Regards,

Jason Koeninger
JJ Computer Consulting
http://www.jjcc.com

On Fri, 17 Aug 2001 09:55:49 -0700, John Comitas wrote:

I am trying to set up 2 seperate servers.  One to run apache and the
other to run tomcat.  How do I point my jsp requests from the apache
server to the tomcat server?

John
email - [EMAIL PROTECTED]



__
FREE voicemail, email, and fax...all in one place.
Sign Up Now! http://www.onebox.com






Re: Newbie: Apache Tomcat mod_jk Virtual Hosts

2001-08-13 Thread Jason Koeninger

On Sun, 12 Aug 2001 21:59:19 -0400 (EDT), Jan Labanowski wrote:

Again... Without knowing what you want to do, it is hard to advise.
The Host/Host if for setting virtual hosts in Tomcat.

You say, you want to connect Tomcat to Apache.
Then you should do virtual hosts in Apache, not in Tomcat.

I would have to disagree on this point.  How successfully Tomcat 
does this in all situations is a different matter, but I think a lot of 
people want to do something like this:

VirtualHost 10.0.0.1

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

/VirtualHost

VirtualHost 10.0.0.2

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

/VirtualHost

In this case, Tomcat has to know about the virtual hosts to have two 
unique root contexts.  In fact, I've set up a system this way with the 3.2.3 
version, but I couldn't get the same thing to work when separating the 
Apache and Tomcat machines from each other.

IMHO,  Tomcat should be looking at the contents of the ServerName 
field on requests from Apache to determine what host to use in its own 
configuration.  Otherwise, you're stuck with running multiple instances of 
Tomcat like I am right now, or you're forced to run it on the same machine 
as Apache (and I have no idea why that works).

Note:  I did get this to work to an extent with machines separated, but it 
didn't reliably work under different forms of requests (HTTP 1.0 instead 
of 1.1 for IP-based hosts, IP instead of named-based hosts with the IP 
in the URL request instead of the name, and a few others that I forget).

Best Regards,

Jason Koeninger
JJ Computer Consulting
http://www.jjcc.com








Re: Aliasing a servlet on Tomcat or Apache

2001-08-01 Thread Jason Koeninger

It's done in web.xml.  You can use a url-mapping statement in the  
file.  That may not be exactly right, but it's close.  I think there's 
an example in the sample webapps included in Tomcat.  If not, 
check the latest servlet documentation from Sun.

Best Regards,

Jason Koeninger
JJ Computer Consulting
http://www.jjcc.com

On Wed, 01 Aug 2001 17:14:12 -0700, Dominic Nagar wrote:


Is there a way in Tomcat to alias a servlet?  For example, if I have a
servlet called 'blah', how can I configure tomcat such
that I don't have to say

servlet/blah  in my URL.  All I want to access is 'blah'.




--
Dominic Nagar
Release Engineer
NOVO
Relationship Architects for e-Business

Voice 415-875-7123  |  Fax 415-875-7001
http://www.novocorp.com









Re: mod_jk problems

2001-07-26 Thread Jason Koeninger

I've seen this exact problem in 3.3m3, but I don't have any 
recommendations on working through it right now.  ajp12 
has been better in this respect than ajp13, but the problem 
isn't gone.  I'm planning to spend some time in August or 
September working through the mod_jk code to check on a 
number of issues I've had with it, this one being the most 
important.  Until then, I'll be interested to see what kind of 
response your message gets.

Best Regards,

Jason Koeninger
JJ Computer Consulting
http://www.jjcc.com

On Thu, 26 Jul 2001 19:31:51 +0100, Andrew Ormsby wrote:

Hi,

I'm using Apache 1.3.20 and Tomcat 3.3m4 and I have the following
problem:

I have a simple servlet which responds to GET requests by returning a
web page with some binary content.  The precise content is selected by a
parameter, e.g: http://host/servlet/get?p=1

Accessing the servlet from Tomcat standalone, everything works fine.
However, when using mod_jk (AJPv13) to access Tomcat from Apache, things
work well until after the server has been under heavy load.

Once the server has been loaded up, I start getting bizarre behaviour:
Apache will return the output of the *previous* servlet invocation.
Given the sequence:
http://host/servlet/get?p=1
http://host/servlet/get?p=2
the first request will return some old result and p=2 will return the
result expected from p=1.

From my servlet logs, I know that the p=1 request reaches the servlet
and the right content is generated (and I can confirm this by accessing
the servlet directly on port 8080, by-passing Apache).  But Apache
resolutely returns the old content.

This feels like some kind of buffering problem - perhaps in mod_jk, or
maybe in Apache itself.  Has anyone else seen anything like this?  Any
suggestions on how I can diagnose the problem?

--
Andy Ormsbyandy.ormsby .at. lexicle.com






RE: Multiple Instances of Tomcat

2001-07-25 Thread Jason Koeninger

Those sound like they would be used for ajp12 or 13 port 
numbers.  Are you sure the http connector isn't still enabled 
on both server.xml files for port 8080?  I'd be happy to glance 
at the two files if you like.

Best Regards,

Jason Koeninger
JJ Computer Consulting
http://www.jjcc.com

On Wed, 25 Jul 2001 13:52:21 -0700, Abhijat Thakur wrote:

Hi,

i am actually using different ports. 8007(server1.xml) and
8009(server2.xml). but i still get the error message.

thanks


-Original Message-
From: Jason Koeninger [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 25, 2001 1:37 PM
To: [EMAIL PROTECTED]
Subject: Re: Multiple Instances of Tomcat


The http, ajp12, and/or ajp13 services can't bind to the same port on
the same IP address.  You need to modify server.xml to put things
on different ports or different IP addresses.

Best Regards,

Jason Koeninger
JJ Computer Consulting
http://www.jjcc.com

On Wed, 25 Jul 2001 13:46:29 -0700, Abhijat Thakur wrote:


Hi,

I am trying to run multiple instances of Tomcat. The documentation tells me
that i have to have two server.xml files and have to start Tomca with
bin/startup.sh -f /conf/server1.xml and bin/startup.sh -f
/conf/server2.xml.
Depending on the tomcat instance to which a servlet in a particular
application has to be directed the context for that application has to be
defined in that particular server.xml file.

Now when i start my tomcat and try and start my second instnace of tomcat i
get an error. However the port on which i am starting the second tomcat
instance is free.

FATAL:java.net.BindException: Address already in use
java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:405)
at java.net.ServerSocket.init(ServerSocket.java:170)
at java.net.ServerSocket.init(ServerSocket.java:121)
at
org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(DefaultServer
S
ocketFactory.java:97)
at
org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.jav
a
:239)
at
org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.java:188)
at
org.apache.tomcat.core.ContextManager.start(ContextManager.java:527)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)


Any advice is highly appreciated.

Abhijat Thakur









mod_jk error

2001-07-06 Thread Jason Koeninger

Anyone had any experience with this one?

[Fri Jul 06 14:53:19 2001]  [jk_ajp12_worker.c (522)]: 
ajpv12_handle_response, no value supplied

I have an application that's working fine in most cases, 
but I get Apache errors in the browser with this in my 
mod_jk log when something goes wrong.

Apache 1.3.19, Tomcat 3.3m3

Thanks,

Jason Koeninger
JJ Computer Consulting
http://www.jjcc.com







Re: two tomcat one machine

2001-07-03 Thread Jason Koeninger

Reviewed the code a couple weeks ago looking for a similar solution.
You can call org.apache.tomcat.startup.StopTomcat directly with 
-host and -port options.  Check the code for more details if you have 
trouble...the -port option works for me on 3.3.m3.

btw - It's possible I was looking at current 3.3 code and not 3.2.2 so YMMV.

Best Regards,

Jason Koeninger
JJ Computer Consulting
http://www.jjcc.com



On Tue, 3 Jul 2001 14:41:12 +0200 (CEST), [EMAIL PROTECTED] wrote:

Hello!

I am running two tomcat 3.2.2 on one Solaris machine, each of them is bind to one IP 
Address
via the inet parameter. 

But now it is impossible to shut the down with the standard process by calling

org.apache.tomcat.startup.Tomcat -stop 

because none of them listen to 127.0.0.1 anymore... 

Has anyone an idea for this ?


Bye, Oli Eales
germany.net Technik
Tel: +49-69-63397411






RE: two tomcat one machine

2001-07-03 Thread Jason Koeninger

I don't believe ajp13 supports the shutdown commands that 
Tomcat sends.  You should be sending those to an ajp12 
port.  If you don't have ajp12 running, ps and kill might come 
in handy.

Best Regards,

Jason Koeninger
JJ Computer Consulting
http://www.jjcc.com


On Tue, 3 Jul 2001 14:59:57 -0700, Keng Wong wrote:

I did tried that option with $TOMCAT_HOME/bin/shutdown.sh -host
localhost -port 8011 but the connection is still listening.
Here's my netstat -an|grep 80

tcp 0 185 127.0.0.1:8011 127.0.0.1:4178 CLOSE (THIS ONE APPEARS AFTER THE
SHUTDOWN COMMAND WAS ISSUED)
tcp 0   0 127.0.0.0:8012 0.0.0.0:* LISTEN
tcp 0   0 127.0.0.0:8011 0.0.0.0:* LISTEN
tcp 0   0 127.0.0.0:8009 0.0.0.0:* LISTEN
tcp 0   0 127.0.0.0:8007 0.0.0.0:* LISTEN
tcp 0   0 0.0.0.0:8080   0.0.0.0:* LISTEN

I had 2 additional type Ajp13 connectors on 8011  8012. I am trying to
close 8011.

An access to the web server still reveals getting a connection from 8011.

Environment:
Sun JDK1.3
RHat 7.1
Apache 1.3.20
Tomcat 3.3-m4

Thanks.

-keng wong


 -Original Message-
 From: Jason Koeninger [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, July 03, 2001 7:15 AM
 To: [EMAIL PROTECTED]
 Subject: Re: two tomcat one machine


 Reviewed the code a couple weeks ago looking for a similar solution.
 You can call org.apache.tomcat.startup.StopTomcat directly with
 -host and -port options.  Check the code for more details if you have
 trouble...the -port option works for me on 3.3.m3.

 btw - It's possible I was looking at current 3.3 code and not
 3.2.2 so YMMV.

 Best Regards,

 Jason Koeninger
 JJ Computer Consulting
 http://www.jjcc.com



 On Tue, 3 Jul 2001 14:41:12 +0200 (CEST), [EMAIL PROTECTED] wrote:

 Hello!
 
 I am running two tomcat 3.2.2 on one Solaris machine, each of
 them is bind to one IP Address
 via the inet parameter.
 
 But now it is impossible to shut the down with the standard
 process by calling
 
 org.apache.tomcat.startup.Tomcat -stop
 
 because none of them listen to 127.0.0.1 anymore...
 
 Has anyone an idea for this ?
 
 
 Bye, Oli Eales
 germany.net Technik
 Tel: +49-69-63397411









RE: two tomcat one machine

2001-07-03 Thread Jason Koeninger

Just to clarify, you can still use ajp13 to get the performance 
advantages, but if you want a clean shutdown of Tomcat, you 
also need to have ajp12 turned on.

Best Regards,

Jason Koeninger
JJ Computer Consulting
http://www.jjcc.com

On Tue, 3 Jul 2001 15:17:02 -0700, Keng Wong wrote:

So it looks like I will need to use ajp12 for my loadbalanced workers
rather than ajp13 to work (that is to allow shutdowns of certain workers
instead of all the workers on the same host)
or
I will need to shutdown all workers for a particular loadbalanced host with
the ./bin/shutdown.sh command (which is the norm anyway).

Thanks.

-keng wong

 -Original Message-
 From: Jason Koeninger [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, July 03, 2001 3:03 PM
 To: [EMAIL PROTECTED]; Keng Wong
 Subject: RE: two tomcat one machine


 I don't believe ajp13 supports the shutdown commands that
 Tomcat sends.  You should be sending those to an ajp12
 port.  If you don't have ajp12 running, ps and kill might come
 in handy.

 Best Regards,

 Jason Koeninger
 JJ Computer Consulting
 http://www.jjcc.com


 On Tue, 3 Jul 2001 14:59:57 -0700, Keng Wong wrote:

 I did tried that option with $TOMCAT_HOME/bin/shutdown.sh -host
 localhost -port 8011 but the connection is still listening.
 Here's my netstat -an|grep 80
 
 tcp 0 185 127.0.0.1:8011 127.0.0.1:4178 CLOSE (THIS ONE APPEARS AFTER THE
 SHUTDOWN COMMAND WAS ISSUED)
 tcp 0   0 127.0.0.0:8012 0.0.0.0:* LISTEN
 tcp 0   0 127.0.0.0:8011 0.0.0.0:* LISTEN
 tcp 0   0 127.0.0.0:8009 0.0.0.0:* LISTEN
 tcp 0   0 127.0.0.0:8007 0.0.0.0:* LISTEN
 tcp 0   0 0.0.0.0:8080   0.0.0.0:* LISTEN
 
 I had 2 additional type Ajp13 connectors on 8011  8012. I am trying to
 close 8011.
 
 An access to the web server still reveals getting a connection from 8011.
 
 Environment:
 Sun JDK1.3
 RHat 7.1
 Apache 1.3.20
 Tomcat 3.3-m4
 
 Thanks.
 
 -keng wong
 
 
  -Original Message-
  From: Jason Koeninger [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, July 03, 2001 7:15 AM
  To: [EMAIL PROTECTED]
  Subject: Re: two tomcat one machine
 
 
  Reviewed the code a couple weeks ago looking for a similar solution.
  You can call org.apache.tomcat.startup.StopTomcat directly with
  -host and -port options.  Check the code for more details if you have
  trouble...the -port option works for me on 3.3.m3.
 
  btw - It's possible I was looking at current 3.3 code and not
  3.2.2 so YMMV.
 
  Best Regards,
 
  Jason Koeninger
  JJ Computer Consulting
  http://www.jjcc.com
 
 
 
  On Tue, 3 Jul 2001 14:41:12 +0200 (CEST), [EMAIL PROTECTED] wrote:
 
  Hello!
  
  I am running two tomcat 3.2.2 on one Solaris machine, each of
  them is bind to one IP Address
  via the inet parameter.
  
  But now it is impossible to shut the down with the standard
  process by calling
  
  org.apache.tomcat.startup.Tomcat -stop
  
  because none of them listen to 127.0.0.1 anymore...
  
  Has anyone an idea for this ?
  
  
  Bye, Oli Eales
  germany.net Technik
  Tel: +49-69-63397411
 
 
 
 








Re: Running more than one instance of Tomcat on the same machine

2001-07-02 Thread Jason Koeninger

On the 3.x series, there's a command line switch to tell Tomcat 
where it should look for its configuration file.  That way, you just 
keep everything in the same directory and have multiple server.xml 
files.  You just have to switch some directories and such in server.xml 
to keep the instances independent of one another.

Hope that helps.  Sorry...no experience with 4.x yet.

Best Regards,

Jason Koeninger
JJ Computer Consulting
http://www.jjcc.com

On Mon, 02 Jul 2001 15:41:27 -, Albretch Mueller wrote:

Hi,

I am trying to run another instance of tomcat on the same machine, listening 
to another port, ...

I copy the whole content of the jakarta folder into a second directory and 
run the startup script from there but it did not work (the rationale being 
that you may run the same java program in two different directories, since 
they will startup on their own JVM)

I was tinkering with the startup script and came up with the following that 
- did not work- (Notice the \prjct02\ folder):

- - - - - - - - - - - - - - - - - - - - - - - - -
SET _RUNJAVA02=%JAVA_HOME%\bin\java

SET _CATALINA_OPTS02=%CATALINA_OPTS02%
SET _CATALINA_HOME02=%CATALINA_HOME02%

SET CATALINA_OPTS02= 
SET CATALINA_HOME02= C:\tomcat\prjct02\jakarta-tomcat-4.0-b5\

%_RUNJAVA02% %CATALINA_OPTS02% -Dcatalina.home=%CATALINA_HOME02% 
org.apache.catalina.startup.Bootstrap %2 %3 %4 %5 %6 %7 %8 %9 start


- - - - - - - - - - - - - - - - - - - - - - - - - - -

How do you run a totally separate instance of tomcat in the same machine 
listening to incomming requests from another port, ...?

Thanks
_
Get your FREE download of MSN Explorer at http://explorer.msn.com






Re: FRUSTRATED: Is my_mod_jk.conf Only Way

2001-07-02 Thread Jason Koeninger

- server.xml configures Tomcat.

- mod_jk.conf-auto is created by Tomcat based on your 
  server.xml configuration and can be included in Apache's
  httpd.conf.

or

- My preferred way is to put all of the mod_jk directives in 
  httpd.conf myself and maintain them manually...no surprises, 
  but others have luck with the automated method.

- workers.properties is used by mod_jk to figure out how to 
   connect to Tomcat (IP address, port number, load balancing, 
   etc.).  If everything's on the same machine, the default file 
   is fine.  You can use ajp12 or ajp13 workers by those names
   from the default settings.

- uriworkermap.properties is IIS/ISAPI only...I think.  No need to 
  worry about it.

The only other file I've had to mess with is tomcat-users.xml to set 
up authentication through Tomcat on one site where a webapp 
relied on it.  Otherwise, I just stick to Apache's security.

Hope that helps.

Best Regards,

Jason Koeninger
JJ Computer Consulting
http://www.jjcc.com


On Mon, 02 Jul 2001 19:26:59 -0600, Joseph A. Noble wrote:


to get Tomcat (3.2.2) and Apache (1.3.20) working on Win98SE, WinNT, and Solaris
2.7 machines nothing I change other than replacing mod_jk.conf-auto seems to
change anything.  Can someone explain what files impact the Apache/Tomcat
configuration or what they do?  Here's the list of files in the conf directory:

build.xml
iis_redirect.reg-auto
jni_server.xml
jni_workers.properties
manifest.servlet
mod_jk.conf
mod_jk.conf-auto
obj.conf
obj.conf-auto
server.xml
test-tomcat.xml
tomcat-apache.conf
tomcat-users.xml
tomcat.conf
tomcat.policy
tomcat.properties
uriworkermap.properties
uriworkermap.properties-auto
web.dtd
web.xml
workers.properties
wrapper.properties

I'm assuming I can ignore all the IIS files, but I'm beginning to even doubt
that.  If someone could just tell me which files are involved, and in what
hierarchy or sequence they are used I could proceed on my own.  It seems like
nothing I change, like trying to use ajp13 instead of ajp12 works. Which of the
above files impact my configuration and which can I ignore?  Any documentation
project should outline what the files are for and what they do.

The cause of my frustration is that we (I) convinced our customer that we didn't
need or want to use Oracle 9iAS Application Server, after 6 months of using it,
and to use Apache/Tomcat instead.  Since they were convinced, I've run into
nothing but frustrations trying to get Tomcat/Apache to work together.  I've
posted three previous messages to the list, including the one below, and
received no response.

HELP!!!
-joe-

Joseph A. Noble wrote:
 
 Hi,
 
 I'm trying to get Apache (1.3.20) and Tomcat (3.2.2) to recognize
 similar URL's.  By this I mean, get rid of the /servlet in the
 Apache mapping.  The only way I've found to do this is to copy mod_jk.
 conf-auto to another file, I called it my_mod_jk.conf and change
 the JkMount lines.
 For example, I changed:
 
JkMount /admin/servlet/* ajp12
JkMount /admin/*.jsp ajp12
 
 to:
JkMount /admin/* ajp13
 
 It works fine, except everything in the admin directory, even the
 html is served by Tomcat I believe.  Is there a better way?  What's
 the purpose of Apache in this case, unless I use unique subdirectories
 for static html files? Or is Apache picking up the html files?  How
 can I tell which one serves the html files with the /admin/* mapping?
 
 Also, although I configured Tomcat's server.xml to recognize Ajpv13,
 I noticed it was still using Ajpv12.  Why?
 
 Any help would be much appreciated.
 
 THANKS
 -joe-






Re: mod_jk load-balancing and errors

2001-06-29 Thread Jason Koeninger

What version are you using?  The mod_jk I'm using that was 
compiled from the 3.3m3 distribution seems to be handling 
dropped connections better, but my system isn't load balanced.  

As far as option (a) below, I think ajp12 does that (makes a 
new connection each time) which is what makes it slower 
than ajp13.

Best Regards,

Jason Koeninger
JJ Computer Consulting
http://www.jjcc.com


On Fri, 29 Jun 2001 09:15:42 -0700, Patrick Tiquet wrote:

I'm attempting to setup Apache/mod_jk to load-balance through a hardware
load-balancer. So far it works, I get nice, even, balancing of requests
between Tomcat servers. All is fine until I shutdown one of the Tomcat
servers...
When I shutdown one of the Tomcat servers I'm load-balancing to, I get a few
errors, and then everything is fine. I assume that this is because mod_jk
keeps a pool of open connections to the Tomcat servers, and then when it
tries to send a request down one of the connections to the absent Tomcat
server, it returns an error, and then closes that connection. 
What I am trying to do is eliminate these errors I get when a Tomcat server
goes away. I tried placing a hardware load-balancer between Apache and
Tomcat, but then discovered that I ran into the same problem thanks to the
pool of persistent connections. 
It would be great if mod_jk would either a) Make a new connection to Tomcat
for each request so that a hardware load-balancer can be placed between the
two and will only direct requests to the Tomcat server(s) that are
functioning... or b) mod_jk smart enough to not send a request down a dead
connection.
Any thoughts or suggestions?






Re: apache mod_rewrite, mod_jk

2001-06-28 Thread Jason Koeninger

What do your JkMount directives look like?  If you've done 
something like:

JkMount /examples/* ajp13

I would think this would work fine (assuming the rewrite rule 
is done correctly...I'm no expert), but if you did something like:

JkMount /hello ajp13

I can see where there would be problems.  You, of course, don't 
want to mount the url you're trying to rewrite 

If you're doing something like:

JkMount /* ajp13

Then, I think you should back off and only mount the servlets until 
you get your rewrite rule done correctly.  I also don't know the 
interaction of mod_jk and mod_rewrite if they have competing 
entries so that may cause you some more trouble if you're 
pushing the whole site through to Tomcat.

Hope that helps.

Best Regards,

Jason Koeninger
JJ Computer Consulting
http://www.jjcc.com


On Wed, 27 Jun 2001 23:08:23 -0700, William Wong wrote:

Hi,
I had tried to setup mod_rewrite with mod_jk (ajp12  ajp13) but with no
luck whatsoever. Even tried the approach mentioned in some of the postings
(dated Feb 2001) but without success.

The setup:
jdk1.3 (Sun)
RH7.1
apache-1.3.20 (DSO)
tomcat-3.2.2 (downloaded from jakarta.apache.org)
mod_jk.so (eapi) - downloaded from jakarta.apache.org

httpd.conf:
LoadModule jk_module libexec/mod_jk.so
AddModule mod_jk.c

LoadModule rewrite_module libexec/mod_rewrite.so
AddModule mod_rewrite.c

LoadModule ssl_module libexec/libssl.so
AddModule mod_ssl.c

IfModule mod_rewrite.c
  RewriteEngine on
  RewriteRule ^/hello(.*) /examples/servlet/HelloWorldExample$1 [PT]
/IfModule

Include /install/jakarta-tomcat-3.2.2/conf/mod_jk.conf

---[END OF httpd.conf]

The mod_jk.conf is copied from the mod_jk.conf-auto but the LoadModule is
remarked.

The following link works:
http://localhost/examples/servlet/HelloWorldExample

The following does not:
http://localhost/hello
The error on the screen:
Not Found(404)
Original request:/hello
Not found request:/hello

Tomcat log (mod_jk.log) shows:
-MM-DD 00:00:00 - Ctx( ):404 R( + /hello + null) null

Appreciate all the help I can get. Thanks for your time and attention.

-keng wong






Re: using different tomcat versions simultaneously?

2001-06-28 Thread Jason Koeninger

If you change the ports they listen on in their configuration files, 
they should run together just fine.  I wouldn't think it would be 
any different than running multiple instances of Tomcat 3.3m3 
except that you'll need 4.0b5 in a separate directory from 3.3m3.

Best Regards,

Jason Koeninger
JJ Computer Consulting
http://www.jjcc.com

On Thu, 28 Jun 2001 05:29:50 -0700 (PDT), alex chang wrote:

Hi, 

I've been playing with tomcat 3.3m3. 
But I want to start playing with 4.0-b5.
I'm using Windows 2000.
I was wondering if there's a way to use
both at the same time?

Thanks,
-alex

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/





RE: apache mod_rewrite, mod_jk

2001-06-28 Thread Jason Koeninger

Yes, but the logs below and the error message you get 
are showing Tomcat seeing /hello.  That shouldn't be 
happening with what appears to be a good configuration.
Something else is going on here.

Try switching from a pass-through rewrite to a redirect 
rewrite and see if that works.  If it does, then it probably  
means the interaction betweem mod_jk and mod_rewrite 
doesn't work as expected.

Best Regards,

Jason Koeninger
JJ Computer Consulting
http://www.jjcc.com



On Thu, 28 Jun 2001 09:09:01 -0700, Keng Wong wrote:

Jason,

The JkMount directives are:
JkMount /examples/servlet/* ajp13
JkMount /examples/*.jsp ajp13

I believe only these are passed to the servlet engine and not the entire
site. Thanks for your response.

-keng wong

 -Original Message-
 From: Jason Koeninger [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, June 28, 2001 8:06 AM
 To: [EMAIL PROTECTED]
 Subject: Re: apache mod_rewrite, mod_jk


 What do your JkMount directives look like?  If you've done
 something like:

 JkMount /examples/* ajp13

 I would think this would work fine (assuming the rewrite rule
 is done correctly...I'm no expert), but if you did something like:

 JkMount /hello ajp13

 I can see where there would be problems.  You, of course, don't
 want to mount the url you're trying to rewrite

 If you're doing something like:

 JkMount /* ajp13

 Then, I think you should back off and only mount the servlets until
 you get your rewrite rule done correctly.  I also don't know the
 interaction of mod_jk and mod_rewrite if they have competing
 entries so that may cause you some more trouble if you're
 pushing the whole site through to Tomcat.

 Hope that helps.

 Best Regards,

 Jason Koeninger
 JJ Computer Consulting
 http://www.jjcc.com


 On Wed, 27 Jun 2001 23:08:23 -0700, William Wong wrote:

 Hi,
 I had tried to setup mod_rewrite with mod_jk (ajp12  ajp13) but with no
 luck whatsoever. Even tried the approach mentioned in some of
 the postings
 (dated Feb 2001) but without success.
 
 The setup:
 jdk1.3 (Sun)
 RH7.1
 apache-1.3.20 (DSO)
 tomcat-3.2.2 (downloaded from jakarta.apache.org)
 mod_jk.so (eapi) - downloaded from jakarta.apache.org
 
 httpd.conf:
 LoadModule jk_module libexec/mod_jk.so
 AddModule mod_jk.c
 
 LoadModule rewrite_module libexec/mod_rewrite.so
 AddModule mod_rewrite.c
 
 LoadModule ssl_module libexec/libssl.so
 AddModule mod_ssl.c
 
 IfModule mod_rewrite.c
   RewriteEngine on
   RewriteRule ^/hello(.*) /examples/servlet/HelloWorldExample$1 [PT]
 /IfModule
 
 Include /install/jakarta-tomcat-3.2.2/conf/mod_jk.conf
 
 ---[END OF httpd.conf]
 
 The mod_jk.conf is copied from the mod_jk.conf-auto but the LoadModule is
 remarked.
 
 The following link works:
 http://localhost/examples/servlet/HelloWorldExample
 
 The following does not:
 http://localhost/hello
 The error on the screen:
 Not Found(404)
 Original request:/hello
 Not found request:/hello
 
 Tomcat log (mod_jk.log) shows:
 -MM-DD 00:00:00 - Ctx( ):404 R( + /hello + null) null
 
 Appreciate all the help I can get. Thanks for your time and attention.
 
 -keng wong
 








RE: Odd Tomcat 3.3m3 Problem

2001-06-26 Thread Jason Koeninger

I know where to find the documentation on increasing the 
threads, but I thought it was set to 100 by default.  If that's 
the case, I'd love to know how 1 user could exhaust 100 
threads in a little less than 30 minutes.  This machine isn't 
live yet...I've just been doing testing on our new setup.

Keep in mind, these entries below are from the Apache 
machine, not Tomcat.  My thought was that mod_jk was 
caching connections to Tomcat, and when they needed 
to be used again, the connection was gone resulting in 
the errors below.  I could only guess that the error wasn't 
handled properly resulting in the odd results.

Anyway, thanks for the recommendation.  I'll switch my 
thread settings to make sure I know what they are and 
will see what happens.  If that doesn't work, I guess I'll 
go to ajp12.  Looks like I've got to find time to dig into the 
mod_jk code and work some of these problems out for 
myself.

Best Regards,

Jason


On Tue, 26 Jun 2001 08:20:57 +0200, GOMEZ Henri wrote:

In my mod_jk.log file, I'm getting a lot of different error 
messages that must 
be getting handled properly as this isn't happening as often 
as there are 
messages in the log. The one that looks to be of the frequency of this 
problem follows:

[Mon Jun 25 12:01:05 2001]  [jk_ajp13_worker.c (579)]: Error 
sending request try
 another pooled connection
[Mon Jun 25 12:01:08 2001]  [jk_ajp13_worker.c (579)]: Error 
sending request try another pooled connection

You seems to be out of thread process on the java side.
Try to increase the number of Ajp13 threads (in server.xml but I didn't
remember how :) 






RE: Odd Tomcat 3.3m3 Problem

2001-06-26 Thread Jason Koeninger

Thanks for the idea, but that's not it.  I'm getting data back, it's 
just the wrong data from the wrong context.  That problem 
usually results in an Apache generated error.

As far as 3.3m3 is concerned, that old problem doesn't seem to 
be there anymore.  I haven't had any problems stopping and 
starting Tomcat and getting pages from Apache.  Seems to 
recover nicely with this version.

jck

On Tue, 26 Jun 2001 10:05:18 -0400, Randy Layman wrote:


   I'm going to throw my 2 cents worth in here, did you, perhaps, stop
Tomcat after starting Apache?  I seem to remember that every time you stop
Tomcat, you must also stop Apache, then start Tomcat and start Apache.

   Randy


 -Original Message-
 From: GOMEZ Henri [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, June 26, 2001 10:20 AM
 To: [EMAIL PROTECTED]
 Subject: RE: Odd Tomcat 3.3m3 Problem
 
 
 I know where to find the documentation on increasing the 
 threads, but I thought it was set to 100 by default.  If that's 
 the case, I'd love to know how 1 user could exhaust 100 
 threads in a little less than 30 minutes.  This machine isn't 
 live yet...I've just been doing testing on our new setup.
 
 100 max by default but not a startup :)
 
 Keep in mind, these entries below are from the Apache 
 machine, not Tomcat.  My thought was that mod_jk was 
 caching connections to Tomcat, and when they needed 
 to be used again, the connection was gone resulting in 
 the errors below.  I could only guess that the error wasn't 
 handled properly resulting in the odd results.
 
 What's you workers.properties file, could you send us a copy ?
 
 Anyway, thanks for the recommendation.  I'll switch my 
 thread settings to make sure I know what they are and 
 will see what happens.  If that doesn't work, I guess I'll 
 go to ajp12.  Looks like I've got to find time to dig into the 
 mod_jk code and work some of these problems out for 
 myself.
 
 in ajp12 you'll see a performance loss since Apache will loose
 time to reestablish the connection. Also did you have a firewall
 between Apache and Tomcat, something which could drop connections
 after a certain time of inactivity ?
 
 
 Best Regards,
 
 Jason
 
 
 On Tue, 26 Jun 2001 08:20:57 +0200, GOMEZ Henri wrote:
 
 In my mod_jk.log file, I'm getting a lot of different error 
 messages that must 
 be getting handled properly as this isn't happening as often 
 as there are 
 messages in the log. The one that looks to be of the 
 frequency of this 
 problem follows:
 
 [Mon Jun 25 12:01:05 2001]  [jk_ajp13_worker.c (579)]: Error 
 sending request try
  another pooled connection
 [Mon Jun 25 12:01:08 2001]  [jk_ajp13_worker.c (579)]: Error 
 sending request try another pooled connection
 
 You seems to be out of thread process on the java side.
 Try to increase the number of Ajp13 threads (in server.xml 
 but I didn't
 remember how :) 
 
 
 
 





RE: Odd Tomcat 3.3m3 Problem

2001-06-26 Thread Jason Koeninger

On Tue, 26 Jun 2001 16:20:27 +0200, GOMEZ Henri wrote:

What's you workers.properties file, could you send us a copy ?



in ajp12 you'll see a performance loss since Apache will loose
time to reestablish the connection. 

Yeah, but I figure that's better than what I'm getting now.  Based on 
the logs, I'm guessing it's having to do a lot of that already with ajp13.

Also did you have a firewall
between Apache and Tomcat, something which could drop connections
after a certain time of inactivity ?

Actually, you may have hit part of the problem here.  I do have firewalls in 
there that could be shutting connections down and causing mod_jk to have 
to cycle through connections more often than it normally would.  I'll look into 
that...thanks.

Best Regards,

Jason



On Tue, 26 Jun 2001 08:20:57 +0200, GOMEZ Henri wrote:

In my mod_jk.log file, I'm getting a lot of different error 
messages that must 
be getting handled properly as this isn't happening as often 
as there are 
messages in the log. The one that looks to be of the 
frequency of this 
problem follows:

[Mon Jun 25 12:01:05 2001]  [jk_ajp13_worker.c (579)]: Error 
sending request try
 another pooled connection
[Mon Jun 25 12:01:08 2001]  [jk_ajp13_worker.c (579)]: Error 
sending request try another pooled connection

You seems to be out of thread process on the java side.
Try to increase the number of Ajp13 threads (in server.xml 
but I didn't
remember how :) 








Odd Tomcat 3.3m3 Problem

2001-06-25 Thread Jason Koeninger

I have one site running three contexts with Apache 1.3.19 on FreeBSD 
running against Tomcat 3.3m3 on a Solaris machine.  Right now, I'm 
using ajp13.  

Everything seems to be going fine except every once in a while, almost 
randomly, I get back a directory listing of the first context instead of the data 
requested.  All I have to do is hit reload on the page, and the correct data 
comes up.

In my mod_jk.log file, I'm getting a lot of different error messages that must 
be getting handled properly as this isn't happening as often as there are 
messages in the log. The one that looks to be of the frequency of this 
problem follows:

[Mon Jun 25 12:01:05 2001]  [jk_ajp13_worker.c (579)]: Error sending request try
 another pooled connection
[Mon Jun 25 12:01:08 2001]  [jk_ajp13_worker.c (579)]: Error sending request try
 another pooled connection

Any ideas?  Switch back to ajp12?  Downgrade to Tomcat 3.2.2?

Thanks,

Jason Koeninger
JJ Computer Consulting
http://www.jjcc.com







Re: How to mask servlet ?

2001-06-21 Thread Jason Koeninger

A possible web.xml snippet for something like this:

...

servlet
  servlet-namemyServlet/servlet-name
  servlet-classcom.yourdomain.myServlet/servlet-class
/servlet

servlet-mapping
servlet-namemyServlet/servlet-name
url-pattern/aName/url-pattern
/servlet-mapping

...


After you have that in Tomcat, you just need to JkMount 
/aName from Apache to complete the job.  Make sure 
you add the context path before it, though, if the context 
path isn't the root.

Best Regards,

Jason Koeninger
JJ Computer Consulting
http://www.jjcc.com


On Thu, 21 Jun 2001 14:48:22 +0200, Eric MARTIN wrote:

Does anybody know how to mask the servlet ?

Using Apache /Tomcat, i would like the URL le /aName (or /) be redirect to my Servlet 
(without the /servlet/myServlet).

He's there a way to do so ?

Thanks

Eric









Re: how protect a servlet?

2001-06-19 Thread Jason Koeninger

I believe you need a Location directive in httpd.conf.  You 
would have something like:

Location /mywebapp
   AuthName myauth
   AuthType Basic
   AuthUserFile /path/to/myauthfile
   require valid-user
/Location

Of course, replace mywebapp as appropriate.  Sounds like you 
may want to protect just one servlet in your app.  If so, adjust the 
Location appropriately.  Just keep in mind that location deals with 
the url path, not the real path on your file system.

Best Regards,

Jason Koeninger
JJ Computer Consulting
http://www.jjcc.com



On Tue, 19 Jun 2001 10:20:52 -0400, Harold Arando wrote:

Hi, every body

I have the following problem:

I would like protect a servlet with AuthType Basic, for apache display the dialog 
login/pass.

my directory where is my servlet is:

C:/tomcat/webapps/defe/Web-inf/classes/defe/AdministrationServlet.class

the file:  AdministrationServlet.class is the servlet that I would like protect.

my directory where is the file htttp.conf is: 

C:/apache/conf/httpd.conf

what I must put in the file http.conf to protect the servlet 
AdministrationServlet.class

thanks in advance...

I use apache Version 1.3 and tomcat 3.2.1 please help me

atte. harold arando







Re: Apache Default Document is .jsp?

2001-06-19 Thread Jason Koeninger

It sounded to me like your jsp was separate from your main 
document tree.  If that was the case, mod_rewrite will do the 
job.  You can only use the DirectoryIndex if you're working 
with static content in the same directory as the jsp content.

Best Regards,

Jason

On Tue, 19 Jun 2001 08:29:52 -0700, Scott Jones wrote:

Yeah, I thought so too, but it needed the dummy file in the static
directory before it actually worked for me.

I will check into using mod_rewrite -- sounds like a good idea.

Thanks to both of you.  :)

-Scott

- Original Message -
From: Dmitri Colebatch [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 18, 2001 7:24 PM
Subject: Re: Apache Default Document is .jsp?


 I would have thought that if you change the DirectoryIndex instruction (I
 think thats it) in the httpd.conf to use index.jsp first, and you have
 mounted *.jsp to go to tomcat then it should work.  haven't done it myself
 though.

 cheers
 dim

 On Tue, 19 Jun 2001 10:40, you wrote:
  Hello,
 
  I'm getting ready to setup tomcat and Apache on seperate machines.
Before
  getting started on that project, on my development machine, I set the
  default DocumentRoot for apache to a different directory (for static
  content) than my webapp (which will eventually sit on a different
machine).
 
  I'd like to have my login.jsp be my default document, but was only
able
  to get it to work by putting a dummy login.jsp in the HTML
directory...
  Otherwise, Apache would just show a normal index of the directory...
 
  Is this the only way to get this to work?  Or am I missing somthing?
BTW,
  I'm on Tomcat 3.2.1 and Apache 1.3.19...
 
  Thanks for any ideas.
 
  Cheers,
 
  Scott








Re: Public IP IIS and Private IP Tomcat?

2001-06-19 Thread Jason Koeninger

Yes, you can do it.  I was testing some configuration options
yesterday and had the same thing working, but I was doing
it with an aliased IP on the public box.  Of course, my outside
box was FreeBSD so YMMV.

Best Regards,

Jason

On Tue, 19 Jun 2001 11:47:59 +0200, mario libraro wrote:

Hi all,

i successifullt tested tomcat+apache on a single linux server. What now
a would to reach is to have a public-class-ip Win2000/IIS5 with a double
net card who communicate with a private-class-ip linux server with
tomcat. Someone thinks is it possible?


 WIN 2000/IIS  LINUX/Tomcat
 |---||  apj12/13  |--|
| public ip | private ip |--|private ip|
 |---|||--|


Thanks a lot (i hope the schema is readable)

:-)


--
~
Mario Libraro
Progettazione  Sviluppo
~
Fulltrading S.p.A.

amm.:  50121 Firenze - Viale Matteotti, 9
sede:  00153 Roma - Via Rosazza, 58
cell.: +39 338 9753 962
   +39 347 5205 752
tel.:  +39 066 573 170
fax:   +39 066 573 529
email: [EMAIL PROTECTED]
   [EMAIL PROTECTED]
web:   www.fulltrading.it
~

Grande disordine sotto il cielo...
...la situazione Š ottima

Mao Tse-Tung






Re: Apache Default Document is .jsp?

2001-06-18 Thread Jason Koeninger

Dig through the documentation on mod_rewrite and/or 
look at the Redirect command for Apache.  One or both 
of those two should be capable of accomplishing what 
you want.  

Best Regards,

Jason Koeninger
JJ Computer Consulting
http://www.jjcc.com

On Mon, 18 Jun 2001 17:40:02 -0700, Scott Jones wrote:

Hello,

I'm getting ready to setup tomcat and Apache on seperate machines.  Before
getting started on that project, on my development machine, I set the
default DocumentRoot for apache to a different directory (for static
content) than my webapp (which will eventually sit on a different machine).

I'd like to have my login.jsp be my default document, but was only able to
get it to work by putting a dummy login.jsp in the HTML directory...
Otherwise, Apache would just show a normal index of the directory...

Is this the only way to get this to work?  Or am I missing somthing?  BTW,
I'm on Tomcat 3.2.1 and Apache 1.3.19...

Thanks for any ideas.

Cheers,

Scott







Virtual Hosts

2001-06-16 Thread Jason Koeninger

Let me see if I can take a different approach on these 
questions.  I've done a few different configurations for 
virtual hosting and haven't been very pleased with 
any of them.  So, what I'd like to know is how people on 
this list recommend you do virtual hosting.  In our particular 
situation, we have Apache 1.3.19 with mod_jk on one 
system and Tomcat 3.3m3 on another.  There are both 
name-based virtual hosts and virtual hosts with unique 
IP addresses on the same system.  

I have several ideas I plan to try to fix some problems I've 
run into, but I'd appreciate any recommendations from the 
list before I waste a lot more time.  

Just to let you know, I've tried using Tomcat's built in virtual 
hosting and was reasonably successful if Tomcat was on the 
same machine as Apache.  However, IP address-based hosts 
with my current configuration are exposing JSP code when the 
IP address is used in the request.  I've used mod_rewrite to rewrite 
the URL, but I still have problems on clients that don't send the
HTTP 1.1 request that includes the host name.

Once upgraded to Tomcat 3.3m3, name-based hosting seems 
to work fine in this setup, and any potential problems will likely be 
worked out with mod_rewrite.  However, some clients want an 
IP.  So, my next thought is to alias private IP addresses to the 
Tomcat machine for each unique host and use different workers 
for each host in the JkMount directives in the VirtualHost sections 
of Apache's configuration.  The down-side to that is in Tomcat 3.2, 
I was having to include Host entries in server.xml for each unique 
IP and each unique host name.

Anyway, if you have any recommendations, I'd love to hear them.
If I had the time, I'd just dig into the code and figure this stuff out, but 
I don't have the time just yet.

Best Regards,

Jason Koeninger
JJ Computer Consulting
http://www.jjcc.com







Re: How to avoid messages spamming?

2001-06-14 Thread Jason Koeninger

tomcat.sh start  logfile 21

Those messages and errors are going to standard error, not
standard out.  You also need to redirect standard error.  Of
course, syntax varies by shell so you may need to consult
your shell's documentation.  The above command works on
bash and possibly others.

Best Regards,

Jason Koeninger
JJ Computer Consulting
http://www.jjcc.com

On Thu, 14 Jun 2001 19:17:07 +0200, mario libraro wrote:

Hi listmates,

when i use tomcat on linux/slackware, startup/shutdown and error
messages appear on all consoles, even if I used /dev/null everywhere in
tomcat.sh :( how can redirect them to null or to a log file?

Thanks in advance :)



--
~
Mario Libraro
Progettazione  Sviluppo
~
Fulltrading S.p.A.

amm.:  50121 Firenze - Viale Matteotti, 9
sede:  00153 Roma - Via Rosazza, 58
cell.: +39 338 9753 962
   +39 347 5205 752
tel.:  +39 066 573 170
fax:   +39 066 573 529
email: [EMAIL PROTECTED]
   [EMAIL PROTECTED]
web:   www.fulltrading.it
~

Grande disordine sotto il cielo...
...la situazione Š ottima

Mao Tse-Tung






RE: server side includes, tomcat and jsp files

2001-06-07 Thread Jason Koeninger

It would probably be best to use Java's include calls as 
identified in another e-mail, but I did find the following 
statement in the Apache documentation:

For backwards compatibility, documents with mime type 
text/x-server-parsed-html or text/x-server-parsed-html3 will 
also be parsed (and the resulting output given the mime type 
text/html).

Maybe if you modify the mime type the JSP pages generate, 
you'll get Apache to process it.  Don't really know, though.  It 
depends on how mod_jk works together with Apache and SSI.

It's important to keep in mind how Apache works with Tomcat.   
Apache doesn't serve the jsp files, it serves a data stream 
coming through ajp12 or ajp13 from Tomcat.  As a result, it 
would have to touch the data after Tomcat returns it, not the 
file before Tomcat processes it.  

Hope that helps.  I really would recommend you consider 
using the Java approach.  It would probably be less of a 
headache.

Best Regards,

Jason Koeninger
JJ Computer Consulting
http://www.jjcc.com

On Thu, 07 Jun 2001 10:22:24 -, Mick Lysejko wrote:

Hi Yes,

I have a plugin for apache that allows you to dynamically insert content etc 
into the content that's being delivered.

so in my normal content I have:
!-- #include virtual=f-call/attrib1=value1attrib2=value2 --

This works for my normal content but I aslo want it to work in my jsp files 
too.

What I find is that the tag is ignored in my jsp files so when I 'view 
source' I see the above string not the returned content.

As I said below I have tried the directive:
AddHandler server-parsed .jsp

but it seems to have no effect.
For each change I've done in each place I've tried I have re-started both 
tomcat and apache too.

thanks

Mick.

Ross, the include format he showed was the common server side include 
format
that can be used in HTML with many web servers (including both apache and
IIS)

-Original Message-
From: Ross Dyson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 06, 2001 5:58 PM
To: [EMAIL PROTECTED]
Subject: RE: server side includes, tomcat and jsp files


Where did you get this syntax from?
!-- #include virtual= --

jsp has 2 sorts of includes, compile time and run time.
from the jsp 1.1 spec document:
TABLE 2-1 Summary of Include Mechanisms in JSP 1.1
Syntax What Phase Spec Object Description Section
%@ include file=... % directive translation-time virtual static Content 
is
parsed by
JSP container.
2.7.6
jsp:include page= / action request-time virtual static
and
dynamic
Content is not parsed; it
is included in place.
2.13.4

Looks bad with no formatting, but you can figure it out :-)
Ross.

-Original Message-
From: Mick Lysejko [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 7 June 2001 8:48 AM
To: [EMAIL PROTECTED]
Subject: server side includes, tomcat and jsp files


Hi folks,

I have installed apache 1.3.17 and tomcat 1.3.3 and it all works fine.
However, I wish to do server side includes in my jsp files and this does 
not
work.  eg. !-- #include virtual= --

I have tried the apache directive:
adhandler server-parse .jsp

in httpd.conf. Here it stops my jsp pages getting parsed and I got server
errors (400 I think).

I then tried adding it to apache-tomcat.conf
-- here it just gets over writen

Then I tried to put it in tomcat.conf
-- here it seems to be totaly ignored.

Does anyone have any Ideas. any help welcome  :)


_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.






Re: Apache and Tomcat on different boxes

2001-06-06 Thread Jason Koeninger

The ip address or hostname of the Tomcat machine is stored 
in the workers.properties file referenced by your mod_jk setup.
I've also seen some sort of url version of the JkMount command, 
but I've never used it myself and don't know if it works or what 
versions it works on.

Best Regards,

Jason Koeninger
JJ Computer Consulting
http://www.jjcc.com

On Wed, 6 Jun 2001 18:29:49 +0800, Paul Tan wrote:

Hi all,

I tried searching to mailing list b4 posting here. Anyway, what must i 
put into apache's http.conf for 
mod_jk.so to enable a connection to a separate machine containing tomcat 3.2.2? 

Placing both the Web Server and App server into 1 machine is rather 
well documented. But I can't seem 
to find any for separate machines.
Can someone show me where to fish? or would someone gimme a fish?

Thks,
Paul







Re: Apache and Tomcat on different boxes

2001-06-06 Thread Jason Koeninger

The only thing I see missing are the following directives from httpd.conf:

JkWorkersFile /usr/local/apache/conf/workers.properties
JkLogFile /usr/local/apache/logs/mod_jk.log
JkLogLevel error

I would assume those are probably in there, but I just wanted to clarify 
that you have to point mod_jk to the right workers.properties file for 
your changes to take effect.  These directives are ones I put in.  I'm 
not sure what the docs say to use. They may well point to the Tomcat 
conf directory instead of the Apache conf directory.  If so, the file you 
put in Apache's conf wouldn't work.  

Anyway, good luck.  

Best Regards,

Jason Koeninger
JJ Computer Consulting
http://www.jjcc.com

On Wed, 06 Jun 2001 22:09:55 +0800 (SGT), [EMAIL PROTECTED] wrote:

Thks for replying,

   So if i understand you correctly, i have to create 
a workers.properties file in my apache conf dir and have mod_jk look for it 
there?

eg.
httpd.conf contains 

LoadModulejk_module  libexec/mod_jk.so
AddModule mod_jk.c

JkMount /someurl remotetomcat

and 

workers.properties file in apache/conf contains:

worker.remotetomcat.type=ajp13
worker.remotetomcat.port=8009
worker.remotetomcat.host=www.x.com
worker.remotetomcat.cachesize=30

   Is that all i have to do?

Thks a Million,
Paul



Quoting Jason Koeninger [EMAIL PROTECTED]:

 The ip address or hostname of the Tomcat machine is stored 
 in the workers.properties file referenced by your mod_jk setup.
 I've also seen some sort of url version of the JkMount command, 
 but I've never used it myself and don't know if it works or what 
 versions it works on.
 
 Best Regards,
 
 Jason Koeninger
 JJ Computer Consulting
 http://www.jjcc.com
 
 On Wed, 6 Jun 2001 18:29:49 +0800, Paul Tan wrote:
 
 Hi all,
 
 I tried searching to mailing list b4 posting here. Anyway,
 what must i put into apache's http.conf for 
 mod_jk.so to enable a connection to a separate machine containing tomcat
 3.2.2? 
 
 Placing both the Web Server and App server into 1
 machine is rather well documented. But I can't seem 
 to find any for separate machines.
 Can someone show me where to fish? or would someone gimme a fish?
 
 Thks,
 Paul
 
 
 
 





RE: Apache and Tomcat on different boxes

2001-06-06 Thread Jason Koeninger

The workers.properties file should be on the Apache machine.  The 
problem you're running into is that the documentation usually assumes 
Tomcat and Apache are on the same machine, and it's leading you 
to believe that workers.properties has something to do with Tomcat.  
workers.properties is only relevant to mod_jk running on Apache, not 
to Tomcat.  If you need the example file provided with Tomcat, just copy 
it over to the Apache machine from a distribution of Tomcat and point 
JkWorkersFile to the right place on the local file system.

And yes, it does work.  I've run several development and production 
systems this way.  

Best Regards,

Jason Koeninger
JJ Computer Consulting
http://www.jjcc.com

On Wed, 6 Jun 2001 11:23:07 -0400, Chauhan, Anand wrote:

The idea seems great. But how would you access the worker.properties file on the 
remote machine. Or is it that, as suggested, you would be creating a  
worker.properties file in the conf/worker.properties

Did the idea work for you ? Let me know. Thanks. 

-Andy

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 06, 2001 10:10 AM
To: Jason Koeninger
Cc: [EMAIL PROTECTED]
Subject: Re: Apache and Tomcat on different boxes


Thks for replying,

   So if i understand you correctly, i have to create 
a workers.properties file in my apache conf dir and have mod_jk look for it 
there?

eg.
httpd.conf contains 

LoadModulejk_module  libexec/mod_jk.so
AddModule mod_jk.c

JkMount /someurl remotetomcat

and 

workers.properties file in apache/conf contains:

worker.remotetomcat.type=ajp13
worker.remotetomcat.port=8009
worker.remotetomcat.host=www.x.com
worker.remotetomcat.cachesize=30

   Is that all i have to do?

Thks a Million,
Paul



Quoting Jason Koeninger [EMAIL PROTECTED]:

 The ip address or hostname of the Tomcat machine is stored 
 in the workers.properties file referenced by your mod_jk setup.
 I've also seen some sort of url version of the JkMount command, 
 but I've never used it myself and don't know if it works or what 
 versions it works on.
 
 Best Regards,
 
 Jason Koeninger
 JJ Computer Consulting
 http://www.jjcc.com
 
 On Wed, 6 Jun 2001 18:29:49 +0800, Paul Tan wrote:
 
 Hi all,
 
 I tried searching to mailing list b4 posting here. Anyway,
 what must i put into apache's http.conf for 
 mod_jk.so to enable a connection to a separate machine containing tomcat
 3.2.2? 
 
 Placing both the Web Server and App server into 1
 machine is rather well documented. But I can't seem 
 to find any for separate machines.
 Can someone show me where to fish? or would someone gimme a fish?
 
 Thks,
 Paul