Re: Error Finding config file: workers2.properties

2003-09-27 Thread Nikola Milutinovic
 Duncan Smith wrote:

 I had same problem.
 I found that if the workers2.properties file was supposed to be in
 {apache-home}/conf/

 Yea, I symbolically linked it there as well, but still nada. Will it not
 follow symbolic links?

I said before, as I learned from another guy on this list, jk2 configuration
files on the Tomcat side do not support serverRoot. Actually, you can
define and use it in ${CATALINA_HOME}/config/jk2.properties, but the
jkjni.so modules will not pick it up (and those are complaining), unless
you define it as an environment variable.

Nix.


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



Re: Error Finding config file: workers2.properties

2003-09-27 Thread Rhugga
Nikola Milutinovic wrote:
Duncan Smith wrote:


I had same problem.
I found that if the workers2.properties file was supposed to be in
{apache-home}/conf/


Yea, I symbolically linked it there as well, but still nada. Will it not
follow symbolic links?


I said before, as I learned from another guy on this list, jk2 configuration
files on the Tomcat side do not support serverRoot. Actually, you can
define and use it in ${CATALINA_HOME}/config/jk2.properties, but the
jkjni.so modules will not pick it up (and those are complaining), unless
you define it as an environment variable.
Nix.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I added it to catalina.sh and got rid of the message.

serverRoot=/blah
export serverRoot
Not sure if the explicit export is needed I put them both in at once.

-CC



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


Re: java.util.logging and tomcat

2003-09-27 Thread Adam Hardy
Statements should go to $CATALINA_HOME/logs/ if you have set up your JDK 
logging.properties not to filter them out.

Adam

On 09/26/2003 08:34 AM Josh G wrote:
Just wondering if anybody here has any experience on using 
java.util.logging with tomcat? I was under the impression that logged 
lines (and System.out) would go to the tomcat_localhost log, but it 
seems I am mistaken. Is there something I should adjust in my web.xml or 
server.xml?

Cheers,
-Josh
--
struts 1.1 + tomcat 4.1.27 + java 1.4.2
Linux 2.4.20 RH9
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Tomcat connector for Apache 2.0.47 ... Please Help

2003-09-27 Thread Dean Searle
My documentation contains how to setup Apache 2, Tomcat 4.1, JDK 1.4 and
SSL. I will post this document later today. If all the members here
could review this document and give me your honest opinion it would be
appreciated. Please keep in mind that the document is compiled from many
posts from marc.theaimsgroup.com, groups.google.com and from Apache.org.

I am not intentionally delaying this document, but I need to change some
of the settings as to not reveal our internal workings. 

Thank you for your patience and allowing me to post this information.

Dean Searle
Computing Oasis
989.245.7369 (p)
989.921.3904 (f)

-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 26, 2003 4:32 PM
To: Tomcat Users List
Subject: Re: Tomcat connector for Apache 2.0.47 ... Please Help


20 pages?  What else is in there besides connector configuration?  Just 
curious

John

Bhaskar Marthi wrote:

 dean,
 As said by lot of members, it would be great if you can post your
document
 in the mailing list.  BTW, did anyone try resin?  How does it compare
to
 tomcat?  
 
 Thanks,
 Bhaskar
 
 
The information contained in this communication may be confidential or
 
 legally privileged and is intended only for the recipient named above.
If
 the reader of this message is not the intended recipient, you are
hereby
 notified that any dissemination, distribution or copying of this
 communication or its contents is strictly prohibited. If you have
received
 this communication in error, please immediately advise the sender and
delete
 the original and any copies from your computer system.
 
 
 



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


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



Tomcat clustering

2003-09-27 Thread [EMAIL PROTECTED]
Hi,   has anybody tried clustering Tomcat?  I have read this article 
http://www.onjava.com/pub/a/onjava/2002/07/17/tomcluster.html  but has been able to 
successfully configure this.

Thanks for any help.

Bern

Regarding Tomcat Start

2003-09-27 Thread vsaxena
I have installed jakarta-tomcat-5.0.12. I set jdk and catalina path. I open a 
command prompt, move to the bin directory of tomcat. I run startup.bat. It 
opens another prompt that vanishes in seconds. I dont see anything wrong 
(warning or error message) at original command prompt.
I move to localhost in browser. Nothing loads up on browser !
How do i know whether tomcat has really started or not ? (I tried to look at 
services running, it does not show up there)
I tried to see log floder, but it is just empty. I tried to run shutdown bat 
file. It says, connection not found ! Does it help in answering my question?
I am using Windows XP Operating System.
Regards
~Vishal




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



RE: Regarding Tomcat Start

2003-09-27 Thread Shawn Zernik
What version of windows are you running, and you might want to at the
pause command in the batch file so it6 does not disappear to keep the data
from eunning off the screen.

Shawn Zernik
Internetwork Consulting
www.internetworkconsulting.net

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Saturday, September 27, 2003 11:54 AM
To: Tomcat Users List
Subject: Regarding Tomcat Start


I have installed jakarta-tomcat-5.0.12. I set jdk and catalina path. I open
a
command prompt, move to the bin directory of tomcat. I run startup.bat. It
opens another prompt that vanishes in seconds. I dont see anything wrong
(warning or error message) at original command prompt.
I move to localhost in browser. Nothing loads up on browser !
How do i know whether tomcat has really started or not ? (I tried to look at
services running, it does not show up there)
I tried to see log floder, but it is just empty. I tried to run shutdown bat
file. It says, connection not found ! Does it help in answering my question?
I am using Windows XP Operating System.
Regards
~Vishal




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



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



RE: Tomcat connector for Apache 2.0.47 ... Please Help

2003-09-27 Thread Dean Searle
Ok, Sorry for the delay but here is the documentation to help install
Apache 2, Tomcat 4.1 and SSL. It is 23 pages long with illustrations.
Just to let everyone know, I do not endorse or recommend anything in
this documentation. All I know is I followed a lot of mail list trails
and pieced everything together. 

As usual make a back up of your server or workstation before diving into
this endeavor. Do not attempt this o your production server first, use a
beta environment first to get comfortable with this doc and how
everything fits together.

Please read the documentation thoroughly before attempting to do the
install. Make sure you have all files downloaded first. This should work
for most versions pending the SSL versions. If you see a security hole
anywhere in this doc please let me know immediately and I will change
this doc. I appreciate it if you could email me first before calling me.
I usually check email 6 times a day. I really need a life. But anyways
here goes! I have to use a link to the document since there is a size
limit on email of 10 bytes. www.computingoasis.com/apache please
download this document to your computer. 

P.S. I am currently working on documenting on how to use IP based
virtual hosts with Apache2 and Tomcat 4.1. This should be complete
hopefully in the next week or two. I am also documenting the same steps
for A FreeBSD 5.0 release install if there is anyone interested.

Dean Searle
Computing Oasis
989.245.7369 (p)
989.921.3904 (f)


-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 26, 2003 4:32 PM
To: Tomcat Users List
Subject: Re: Tomcat connector for Apache 2.0.47 ... Please Help


20 pages?  What else is in there besides connector configuration?  Just 
curious

John

Bhaskar Marthi wrote:

 dean,
 As said by lot of members, it would be great if you can post your
document
 in the mailing list.  BTW, did anyone try resin?  How does it compare
to
 tomcat?  
 
 Thanks,
 Bhaskar
 
 
The information contained in this communication may be confidential or
 
 legally privileged and is intended only for the recipient named above.
If
 the reader of this message is not the intended recipient, you are
hereby
 notified that any dissemination, distribution or copying of this
 communication or its contents is strictly prohibited. If you have
received
 this communication in error, please immediately advise the sender and
delete
 the original and any copies from your computer system.
 
 
 



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


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



Re: Personalized Tomcat Manager

2003-09-27 Thread Grzegorz Malinka
Yes... bu that solution gives access permision to all application deployed
by Tomcat Server...
I would to give reload, install, remove command to application but to user
which is its owner.

http://host:8180/manager/reload?path=/script

some user called i.e. jack can reload only application called script and
cannot do operations on application deployed within a webapps directory.

IMHO... only way is to make some corrections in either Manager Container or
Users Database Container and  recompile.

 You might want to edit tomcat-users.xml configuration file.

 Or use Likha DevCentre.  It simplifies your development life cycle in
 Tomcat.
 Download it from www.downloads.com or www.javashareware.com.

 Cheers

 Bern

 I have to give access permission to Tomcat Manager for several users,
which
 should manage just its application (not all).

 Is it possible?



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



Re: Regarding Tomcat Start

2003-09-27 Thread Aymeric Alibert
Your server failed to start.
You can see errors by opening a DOS prompt and run 'catalina.bat run'
from the
tomcat bin directory. This should start the server in the same window
instead of 
opening a new window that will closed itself if startup fails.
 
Aymeric.

 [EMAIL PROTECTED] 09/27/03 11:53AM 
I have installed jakarta-tomcat-5.0.12. I set jdk and catalina path. I
open a 
command prompt, move to the bin directory of tomcat. I run startup.bat.
It 
opens another prompt that vanishes in seconds. I dont see anything
wrong 
(warning or error message) at original command prompt.
I move to localhost in browser. Nothing loads up on browser !
How do i know whether tomcat has really started or not ? (I tried to
look at 
services running, it does not show up there)
I tried to see log floder, but it is just empty. I tried to run
shutdown bat 
file. It says, connection not found ! Does it help in answering my
question?
I am using Windows XP Operating System.
Regards
~Vishal




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




Re: Personalized Tomcat Manager

2003-09-27 Thread [EMAIL PROTECTED]
Hopefully Likha DevCentre is going in that direction.

- Original Message - 
From: Grzegorz Malinka [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Saturday, September 27, 2003 12:06 PM
Subject: Re: Personalized Tomcat Manager


 Yes... bu that solution gives access permision to all application deployed
 by Tomcat Server...
 I would to give reload, install, remove command to application but to user
 which is its owner.

 http://host:8180/manager/reload?path=/script

 some user called i.e. jack can reload only application called script
and
 cannot do operations on application deployed within a webapps directory.

 IMHO... only way is to make some corrections in either Manager Container
or
 Users Database Container and  recompile.

  You might want to edit tomcat-users.xml configuration file.
 
  Or use Likha DevCentre.  It simplifies your development life cycle in
  Tomcat.
  Download it from www.downloads.com or www.javashareware.com.
 
  Cheers
 
  Bern

  I have to give access permission to Tomcat Manager for several users,
 which
  should manage just its application (not all).
 
  Is it possible?



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



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



RE: When does tomcat call the garbage collector?

2003-09-27 Thread Subir Sengupta
You could set up a context or lifecycle listener.  Then, when you shut down
Tomcat you could close your connections in the respective contextDestroyed
method or stop method.

Subir

-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 26, 2003 12:15 PM
To: Tomcat Users List
Subject: Re: When does tomcat call the garbage collector?


it is your own responsibility to close connections from a pool. Tomcat
doesn't do garbage collection, the Java VM does. Also, if you kill your VM
and the connections are still open on the AS400 box, tough luck, (I would
imagine they should timeout shortly) that is out of reach from the VM/Tomcat
side, best thing you can do is to not keep a pool of open connections,
because if the VM crashes or gets killed, there will be no one closing them
from the client

Filip

- Original Message -
From: Bruce W. Marriner [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, September 26, 2003 12:10 PM
Subject: When does tomcat call the garbage collector?



Hello I am working on a crm web app in jsp.  I am pre-compiling everything
with ant and serving them as servlets though tomcat.  I am curious when
tomcat does garbage collection on the servlets.  For instance, if a servlet
opens stuff up I would imagen when that page has finished executing it would
clean up anything not properly cleaned up.

The real issue...  I have a dbHandler class that takes care of sql
statements and connection pooling.  I am using IBM's AS400JDBCConnectionPool
class to handle the pool.  If it has say 100 connections open, and you
shutdown tomcat.  They stay open on the AS400.  I would think that some
process would go though and close everything that is open when tomcat shuts
down.

I am compiling with JDK1.4.2_09 and running Tomcat 4.1.27 which is using
JRE1.4.2 to execute the servlets.  Any ideas would be helpful, thanks.

Bruce Marriner

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


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


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



Datasource connections not released when reloading context

2003-09-27 Thread Jose Alfonso Martinez
Hi guys,

Does any one know if there is a possibility of tomcat, for any reason, to reload a 
context without telling it to do so

I am having a problem that after 2 or 3 days without reloading tomcat, 
pooled-connections from the datasource get exahusted.

The only case I have seen that the number of pooled-connections is incremented is when 
I reloaded my context. In this case, the reloaded context's datasource opened a new 
set of connections to work on (leaving the older connections opened and not releasing 
them until tomcat is shutdown). If the context gets reloaded over and over again, 
eventually connections with the DBMS will get exahusted...

Is that the expected behavior To leave conections open when reloading a context

Would there be another posibility for pooled-connections to get exahusted, once they 
were set up and correctly running???

Thanks in advance

Jose

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



RE: When does tomcat call the garbage collector?

2003-09-27 Thread Mike Johnson
Hello,

In that case, you'd want to write a class that implements
javax.servlet.ServletContextListener to manually shutdown your pool
classes when the webapp is stopped. This is handy for webapp reloads
during development, too.

- Mike Johnson

On Fri, 2003-09-26 at 12:34, Bruce W. Marriner wrote:
   For some reason I figured when tomcat shutdown, along with the JVM
 -- it would finalize any open classes.  And with that action it would
 close the open connections.  Yes the open connections will die after a
 set value, some x odd hours.  It is rather easy to control the number
 of pooled connection and close them while tomcat is running.  But it's
 the shutdown part I'm concerned about.  But when 200 some odd users
 are using an app it's rather slow to run everyone off a single DB
 connection :).  Is there some way to tell JVM to finalize all open
 classes at exit?  Some command-line argument or com call, or
 something...
 
 -Original Message-
 From: Filip Hanik [mailto:[EMAIL PROTECTED]
 Sent: Friday, September 26, 2003 2:15 PM
 To: Tomcat Users List
 Subject: Re: When does tomcat call the garbage collector?
 
 
 it is your own responsibility to close connections from a pool.
 Tomcat doesn't do garbage collection, the Java VM does.
 Also, if you kill your VM and the connections are still open on the AS400
 box, tough luck, (I would imagine they should timeout shortly) that is out
 of reach from the VM/Tomcat side, best thing you can do is to not keep a
 pool of open connections, because if the VM crashes or gets killed, there
 will be no one closing them from the client
 
 Filip
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



Re: Personalized Tomcat Manager

2003-09-27 Thread Tim Funk
If you needs finer grain control of the manager app such as user X cannot 
perform action Y, then write and install a Filter which does the appropriate 
security checks. Before letting each serlvet execute.

-Tim

Grzegorz Malinka wrote:

Yes... bu that solution gives access permision to all application deployed
by Tomcat Server...
I would to give reload, install, remove command to application but to user
which is its owner.
http://host:8180/manager/reload?path=/script

some user called i.e. jack can reload only application called script and
cannot do operations on application deployed within a webapps directory.
IMHO... only way is to make some corrections in either Manager Container or
Users Database Container and  recompile.

You might want to edit tomcat-users.xml configuration file.

Or use Likha DevCentre.  It simplifies your development life cycle in
Tomcat.
Download it from www.downloads.com or www.javashareware.com.
Cheers

Bern


I have to give access permission to Tomcat Manager for several users,
which

should manage just its application (not all).

Is it possible?
 


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


Is it a Memory Leak in Apache 2.0.47???

2003-09-27 Thread Satya Narayan Dash
Hi,

Anyway, I was able to migrate to Apache to 2.0.47 and Tomcat 
4.1.27, after lot of intial hiccups. The connector is mod_jk and 
they are running smothly in Windows2k and Linux 8.0.

I've an interesting observation. Feeding line feed characters to 
Apache 2.0.40 (which) was my earlier version, lead me to memory 
exhaustion. (Fixed in SECURITY [CAN-2003-0132]: Apache 2.0.45),but 
did not happen in 2.0.47. Nice...

But...but, when I load Apache / Tomcat with enough JSP / Servlet/ 
HTML requests the memory consumption is increasing and Apache does 
not seem to release it.

My Application Configuration:

1. Apache serves the HTML pages and JSP/Servlets are redirected to 
Tomcat.   (Connector - mod_jk / AJP13)

2. Tomcat has no role to play to serve the HTML pages.

   (non-SSL Coyote HTTP/1.1 coyote port is commented out)

3. Apache and Tomcat are running as two independent threads, 
with
   Apache starting first.

The memory consumption, for win2k, is shown in this table.
(This is w.r.t. Apache 2.0.40 and the same thing is repeated in 
Apache 2.0.47. )

Parent Process  Child ProcessNo.Of Pages  Running 
Time
 (in KB)   (in KB)  (In 
min)

38127952  Nil   10

381212,9922520

381215,128140   20

140  21,444   302   20

The memory consumption goes up and if I am killing my clients
(which sends HTML/JSP/Servlets requests), then , it hovers aroubnd 
the same shoot-up value.

Now, can I conclude, if I am bombarding Apache with enough JSP / 
Servlet / HTML requests, the memory leak happens???

Let me know about it.

Thanks,
Satya.
___
Art meets Anesthesia; Shefali Weds Dr. Raman.
Rediff Matchmaker strikes another interesting match !!
Visit http://matchmaker.rediff.com?1
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Regarding Tomcat Start

2003-09-27 Thread Vy Ho
open the startup.bat, and search for the start somewher near the bottom, 
change the start to run .  That will not open another window, and 
you can see the error.  chance is that the port is already in use or 
something like that.



Shawn Zernik wrote:

What version of windows are you running, and you might want to at the
pause command in the batch file so it6 does not disappear to keep the data
from eunning off the screen.
Shawn Zernik
Internetwork Consulting
www.internetworkconsulting.net
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Saturday, September 27, 2003 11:54 AM
To: Tomcat Users List
Subject: Regarding Tomcat Start
I have installed jakarta-tomcat-5.0.12. I set jdk and catalina path. I open
a
command prompt, move to the bin directory of tomcat. I run startup.bat. It
opens another prompt that vanishes in seconds. I dont see anything wrong
(warning or error message) at original command prompt.
I move to localhost in browser. Nothing loads up on browser !
How do i know whether tomcat has really started or not ? (I tried to look at
services running, it does not show up there)
I tried to see log floder, but it is just empty. I tried to run shutdown bat
file. It says, connection not found ! Does it help in answering my question?
I am using Windows XP Operating System.
Regards
~Vishal


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


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



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


Tomcat Manager

2003-09-27 Thread Vy Ho
I am not sure if this is something I do or Tomcat's problem.  I found 
out that my application would not reload correctly using the manager's 
reload.  Although it says it reloads successfully.  However, if I use 
the manager to stop, then start, the app restarts fine.  Is this a known 
issues?  As designed?





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


RE: Tomcat Manager

2003-09-27 Thread Berry, Layton
I bet you're using Tomcat 4.1.27 and didn't install the hot fix.

You should find a hot fix zip file in the bin directory
where you found and downloaded Tomcat from.

Layton Berry

-Original Message-
From: Vy Ho [mailto:[EMAIL PROTECTED]
Sent: Saturday, September 27, 2003 7:55 PM
To: Tomcat Users List
Subject: Tomcat Manager



I am not sure if this is something I do or Tomcat's problem.  I found 
out that my application would not reload correctly using the manager's 
reload.  Although it says it reloads successfully.  However, if I use 
the manager to stop, then start, the app restarts fine.  Is 
this a known 
issues?  As designed?





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