Re: Redirection after Tomcat restart

2008-09-23 Thread Pavel Savara
Hi,
Another possibility is to set up tomcat to serialize session to disk
before restart. Tt deserializes all session at the start up so user will
remain login with all session variables it in ideal case he won't notice
the restart at all.

Palko

On Mon, 2008-09-22 at 16:21 -0400, Martin Dubuc wrote:
 I am running Tomcat 6.0.18.
 
 My application uses form based authentication.
 
 I am not sure how to handle the case where a user navigates to one of the
 secure page after logging in and Tomcat is restarted. The problem is that
 from the secured page, if the user clicks on any of the links after the
 restart, Tomcat will redirect to the login page (which is expected) and
 then, after the login, it will execute the code that it would normally
 execute when the user clicks on the link. The problem that I am facing is
 that since the application is using a new session, there might be some
 session based variables that are not initialized. Ultimately, if Tomcat is
 restarted, I would rather the user be redirected to a predetermined page
 (some kind of home page), but it seems that instead, and I believe this is
 as per the servlet spec, Tomcat displays the page information it had stored
 in its container before restarting.
 
 Any advice on how to best handle this?
 
 Martin

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JVM config for tomcat5.5

2008-09-23 Thread jaki

Hi all, 
One more thing I wanted clarification on..Is it necessary that catalina.home
system property is always set for a tomcat install? Cause trying to retrieve
it from within a java class gives me null. But I can also find it being
referenced in many of the config files, so any help on where the value for
that is coming from would be a big help too. Thanks


awarnier wrote:
 
 Markus Schönhaber wrote:
 Martin Gainty:
 
 [...]
 I think the main issue (which has also been touched in several other 
 threads recently) is some level of confusion with the Tomcat Windows 
 Installer, and what one finds oneself with in the Tomcat_install_dir/bin 
 directory in that case.
 
 Instead of having the normal series of startup.sh/bat, 
 catalina.sh/bat, etc.. files in Tomcat/bin, you only find a 
 tomcat(x).exe and a tomcat(x)W.exe there, basically.
 No trace of an explicit command $JAVA -jar bootstrap.jar ... kind of 
 command, no script with a path to the Java being used etc..
 
 It works very well in terms of running Tomcat as a Windows Service, but 
 it seems that as soon as people try to add some external things, they 
 get very confused as to where things are.
 
 One has to dig quite a bit to figure out that this tomcat(x).exe is in 
 fact an instance of procrun (or rather prunsrv ?), belonging to the 
 Apache Commons Daemon module, which does some (relatively unexplained) 
 wizardry to wrap up a Java from somewhere (also rather unexplained) with 
 the Tomcat executable and make it act as a Windows Service.
 (See http://commons.apache.org/daemon/procrun.html)
 
 If one of the experts on the subject were to provide some clearer 
 explanation of this whole thing, it would be nice.
 
 P.S.
 Not to make too fine a point about it, but the above looks to me eerily 
 similar to the case where users install a non official pre-packaged 
 version of Tomcat under Linux. ;-)
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/JVM-config-for-tomcat5.5-tp19583097p19623781.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: jstack and Tomcat 6 on Windows

2008-09-23 Thread Peng Tuck Kwok
Hmm if you have a memory leak in the application perhaps you can profile it
using a profiler. Try the one in eclipse and attach as a remote client to
the vm running tomcat.

On Sat, Sep 20, 2008 at 6:58 AM, Brian Clark [EMAIL PROTECTED] wrote:

 Thanks everyone for their suggestions.

 Unfortunately, that doesn't help me with my particular issue. I have a
 memory leak in one of my apps, and when the system runs out of memory, it
 stops responding to new requests. I have a script that will detect this
 condition and automatically restart Tomcat. I was hoping to add a jstack
 command to this script to give me a thread dump prior to restarting Tomcat
 to give me better troubleshooting information. Your solution would work
 under normal circumstances, but I don't know how to script a ctrl+break.
  ;-)

 - Original Message 

 From: Johnny Kewl [EMAIL PROTECTED]

 If you need thread dumps

 Start TC from the BAT file.
 When you need a dump... press ctrl + break from term window... easier than
 Jstack...






Tomcat6.0.18+Log entries upon shutting down TomCat

2008-09-23 Thread Choudhury
Hi All,
  My first question in this forum . I am load testing our 
webapp using Jmeter . The test was configured to simulate  50 simultaneous 
users . After running the test for about 18hours or so , I decided to 
shutdown Tomcat  and after executing shutdown.bat file , I got the 
following messages inside catalina.2008-09-23.log . At the time when I 
stopped Tomcat, Jmeter was showing as all the 50 threads up and running .
My question :

1. What this line INFO: Waiting for 253,020 instance(s) to be deallocated 
means ?
2. Are these messages worrisome from the application point of view ?
 .

Sep 23, 2008 1:53:38 PM org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
Sep 23, 2008 1:53:39 PM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Sep 23, 2008 1:53:39 PM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 253,020 instance(s) to be deallocated
Sep 23, 2008 1:53:40 PM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 253,016 instance(s) to be deallocated
Sep 23, 2008 1:53:41 PM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 253,015 instance(s) to be deallocated
Sep 23, 2008 1:53:41 PM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 42 instance(s) to be deallocated
Sep 23, 2008 1:53:42 PM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 42 instance(s) to be deallocated
Sep 23, 2008 1:53:43 PM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 42 instance(s) to be deallocated
Sep 23, 2008 1:53:43 PM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 7,570 instance(s) to be deallocated
Sep 23, 2008 1:53:44 PM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 7,570 instance(s) to be deallocated
Sep 23, 2008 1:53:45 PM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 7,570 instance(s) to be deallocated
Sep 23, 2008 1:53:53 PM org.apache.coyote.http11.Http11Protocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080


Regards,

Subhrajyoti 
Mobile: +919830079545
Mail: [EMAIL PROTECTED]
Web: www.labware.com

LabWare LIMS Solutions - Results Count

Re: Tomcat6.0.18+Log entries upon shutting down TomCat

2008-09-23 Thread Heiko Klein

Hi Subhrajyoti,

I don't know an answer for your question, but I got exactly the same 
problems after upgrading from Tomcat 6.0.14 to 6.0.18. This problem 
happenend when using APR. After switching back to 6.0.14, my problem 
disappeared. Are you using APR, too? I think this is worrisome for an 
application, because my tomcat started to freeze completely after all 
threads had been in this 'waiting for deallocation' state.


Best regards,

Heiko

[EMAIL PROTECTED] wrote:

Hi All,
  My first question in this forum . I am load testing our 
webapp using Jmeter . The test was configured to simulate  50 simultaneous 
users . After running the test for about 18hours or so , I decided to 
shutdown Tomcat  and after executing shutdown.bat file , I got the 
following messages inside catalina.2008-09-23.log . At the time when I 
stopped Tomcat, Jmeter was showing as all the 50 threads up and running .

My question :

1. What this line INFO: Waiting for 253,020 instance(s) to be deallocated 
means ?

2. Are these messages worrisome from the application point of view ?
 .

Sep 23, 2008 1:53:38 PM org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
Sep 23, 2008 1:53:39 PM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Sep 23, 2008 1:53:39 PM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 253,020 instance(s) to be deallocated
Sep 23, 2008 1:53:40 PM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 253,016 instance(s) to be deallocated
Sep 23, 2008 1:53:41 PM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 253,015 instance(s) to be deallocated
Sep 23, 2008 1:53:41 PM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 42 instance(s) to be deallocated
Sep 23, 2008 1:53:42 PM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 42 instance(s) to be deallocated
Sep 23, 2008 1:53:43 PM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 42 instance(s) to be deallocated
Sep 23, 2008 1:53:43 PM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 7,570 instance(s) to be deallocated
Sep 23, 2008 1:53:44 PM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 7,570 instance(s) to be deallocated
Sep 23, 2008 1:53:45 PM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 7,570 instance(s) to be deallocated
Sep 23, 2008 1:53:53 PM org.apache.coyote.http11.Http11Protocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080


Regards,

Subhrajyoti 
Mobile: +919830079545

Mail: [EMAIL PROTECTED]
Web: www.labware.com

LabWare LIMS Solutions - Results Count


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Another confused person trying to get jconsole to monitor tomcat.

2008-09-23 Thread Mark Thomas
Tim Funk wrote:
 vnc might have acceptable performance. Not sure if you'd run into issue
 by installing vncserver.
 
 -Tim
 
 Bill Davidson wrote:
 Tim Funk wrote:
 An easy kludge is to run jconsole locally on the server and send the
 display to yourself.

 ssh -Y yourserver (or ssh -X server YMMV)
 $JAVA_HOME/bin/jconsole pid

 No iptables tricks needed.

 I'm running the client on a Windows machine.  I did try Cygwin/X
 and an ssh tunnel with Putty.  The performance was bad enough to
 be effectively unusable.

I got bitten by this recently. I am working on a LifecycleListener (that
can be configured in server.xml) that fixes both ports that are used by
jconsole. This makes it much easier to configure firewalls, tunnel through
PuTTY etc.

If I get it finished in time, it will be in 6.0.19+. If not, a later
version. Keep an eye on the change log and/or the dev list.

Mark



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



tomcat_trend.pl script is showing Unknown log entry for mod_jk

2008-09-23 Thread ankush grover
Hi friends,

I am running mod_jk 1.2.26 on Centos 5.2 64-bit with Apache 2.2.3
64-bit. I am trying to generate the mod_jk statistical data through
tomcat_trend.pl and tomcat_report.pl scripts but unfortunately
tomcat_trend.pl script is showing Unknown log entry when I am giving
the path for reading the mod_jk.log file


./tomcat_trend.pl   /var/log/httpd//var/www/html/reports

Output
Unknown log entry: [Sun Sep 21 04:58:01 2008] worker6
webserver.example.com 0.027690 /webserver/board.jsp

worker.properties

 JkWorkersFile /etc/httpd/conf/workers.properties
  JkShmSize   10M
  JkLogLevel  info
  JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
  JkRequestLogFormat %w %V %T %U%q

What I am able to understand is the format of the mod_jk.log differs
from the script. What should be the format for mod_jk logs so that
this script can read this.


Regards

Ankush

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: tomcat_trend.pl script is showing Unknown log entry for mod_jk

2008-09-23 Thread Gerhardus.Geldenhuis
Hi Ankush,
As far as I know that scripts is not really maintained any more and need
a fair amount of tweaking. I might be wrong though.

Regards 

 -Original Message-
 From: ankush grover [mailto:[EMAIL PROTECTED] 
 Sent: 23 September 2008 12:16
 To: users@tomcat.apache.org
 Subject: tomcat_trend.pl script is showing Unknown log entry 
 for mod_jk
 
 Hi friends,
 
 I am running mod_jk 1.2.26 on Centos 5.2 64-bit with Apache 
 2.2.3 64-bit. I am trying to generate the mod_jk statistical 
 data through tomcat_trend.pl and tomcat_report.pl scripts but 
 unfortunately tomcat_trend.pl script is showing Unknown log 
 entry when I am giving the path for reading the mod_jk.log file
 
 
 ./tomcat_trend.pl   /var/log/httpd//var/www/html/reports
 
 Output
 Unknown log entry: [Sun Sep 21 04:58:01 2008] worker6 
 webserver.example.com 0.027690 /webserver/board.jsp
 
 worker.properties
 
  JkWorkersFile /etc/httpd/conf/workers.properties
   JkShmSize   10M
   JkLogLevel  info
   JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
   JkRequestLogFormat %w %V %T %U%q
 
 What I am able to understand is the format of the mod_jk.log 
 differs from the script. What should be the format for mod_jk 
 logs so that this script can read this.
 
 
 Regards
 
 Ankush
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org To 
 unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5.5 logging!

2008-09-23 Thread André Warnier

Shahar Cohen wrote:

Hi,

I am trying to set my tomcat log format so it will be TAB delimited but
instead its 


Printing the logs as spaces delimited and not TAB.

Do I need to configure any other parameters between the common
parameters so it will separate the parameters   with tab.

 


My tomcat log format is:

pattern='%B%a  %m  %U  %q %s  %t  %D
%{Referer}i%{User-Agent}i%S'

 
Really a wild guess, because I don't know how Tomcat handles this 
pattern attribute :
Could it be that you are confused by the text editor that you use to 
write this configuration file ?  I mean when you insert a tab with the 
TAB key, the editor just inserts an appropriate number of spaces ?
And then maybe Tomcat, when it interprets the pattern, strips duplicate 
consecutive spaces ?


As another wild guess, have you tried to insert '\t' in your pattern, 
instead of pressing the TAB key.  (\t is the traditional way of 
representing a TAB in various circumstances).

Like :
 pattern='%B\t%a\t%m\t%U\t%q\t%s\t%t\t%D...etc..

I make no guarantees about crashing your server.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: JVM config for tomcat5.5

2008-09-23 Thread Caldarale, Charles R
 From: jaki [mailto:[EMAIL PROTECTED]
 Subject: Re: JVM config for tomcat5.5

 Is it necessary that catalina.home system property
 is always set for a tomcat install?

It's not necessary to have it set during Tomcat installation.  It is necessary 
during Tomcat execution, but this is normally taken care of by the startup 
scripts or the service wrapper, and need not be done manually.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[OT] Chuck

2008-09-23 Thread André Warnier


Dear Chuck,

I carefully save your postings to this list, as a future source of 
wisdom and inspiration.


Except the ones that tell me that I should delete my unofficial Linux 
Debian Tomcat package, those I don't. But you repeat them often enough 
that they are always on a recent page somewhere.


It just came to my attention however that most of your communications to 
the list end with the formula below, so now I am in a quandary. Since 
many of these emails are not personally addressed to me, I'm afraid that 
by saving your messages, I am somehow putting myself in a legally 
questionable situation, which could result in my laptop being 
confiscated for discovery, my network being monitored by your employer, 
or worse, maybe even lawyers getting involved.


I wonder thus if I should personally delete these messages, but I am 
also concerned by the community on this list at large.  Should they all 
do the same, and should all your messages also be purged from the list 
archives ?  Obviously, several thousand people cannot all be the 
intended recipient. The word recipient is also specifically mentioned in 
singular form in the formula below, which also specifically indicates 
that the messages should be deleted from ALL computers.


Can you please inform us of the best path to follow ?

Quoted for the sole purpose of illustration :


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


unquote
(Not that people would wonder what to do with this message also. Go 
ahead, you can delete it. You just don't have to.)



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat 5.5 logging!

2008-09-23 Thread Shahar Cohen
Hi,
Actually when I press the TAB key I see that its really inserting a TAB key and 
not spaces even after I restart tomcat the TAB key is still there and not 
spaces but if I open the log file in vi I see that it enterperate it as spaces 
and my log analysis machine also see that as spaces.
I have tries to use the \t '\t' and all of its variation but without any 
success.
Any other recommendation will be very appreciated.
thanks

-Original Message-
From: André Warnier [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 23, 2008 3:04 PM
To: Tomcat Users List
Subject: Re: Tomcat 5.5 logging!

Shahar Cohen wrote:
 Hi,
 
 I am trying to set my tomcat log format so it will be TAB delimited but
 instead its 
 
 Printing the logs as spaces delimited and not TAB.
 
 Do I need to configure any other parameters between the common
 parameters so it will separate the parameters   with tab.
 
  
 
 My tomcat log format is:
 
 pattern='%B%a  %m  %U  %q %s  %t  %D
 %{Referer}i%{User-Agent}i%S'
 
  
Really a wild guess, because I don't know how Tomcat handles this 
pattern attribute :
Could it be that you are confused by the text editor that you use to 
write this configuration file ?  I mean when you insert a tab with the 
TAB key, the editor just inserts an appropriate number of spaces ?
And then maybe Tomcat, when it interprets the pattern, strips duplicate 
consecutive spaces ?

As another wild guess, have you tried to insert '\t' in your pattern, 
instead of pressing the TAB key.  (\t is the traditional way of 
representing a TAB in various circumstances).
Like :
  pattern='%B\t%a\t%m\t%U\t%q\t%s\t%t\t%D...etc..

I make no guarantees about crashing your server.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5.5 logging!

2008-09-23 Thread André Warnier

Shahar Cohen wrote:

Hi,
Actually when I press the TAB key I see that its really inserting a TAB key and 
not spaces even after I restart tomcat the TAB key is still there and not 
spaces but if I open the log file in vi I see that it enterperate it as spaces 
and my log analysis machine also see that as spaces.
I have tries to use the \t '\t' and all of its variation but without any 
success.
Any other recommendation will be very appreciated.
thanks


\\t ?



-Original Message-
From: André Warnier [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 23, 2008 3:04 PM

To: Tomcat Users List
Subject: Re: Tomcat 5.5 logging!

Shahar Cohen wrote:

Hi,

I am trying to set my tomcat log format so it will be TAB delimited but
instead its 


Printing the logs as spaces delimited and not TAB.

Do I need to configure any other parameters between the common
parameters so it will separate the parameters   with tab.

 


My tomcat log format is:

pattern='%B%a  %m  %U  %q %s  %t  %D
%{Referer}i%{User-Agent}i%S'

 
Really a wild guess, because I don't know how Tomcat handles this 
pattern attribute :
Could it be that you are confused by the text editor that you use to 
write this configuration file ?  I mean when you insert a tab with the 
TAB key, the editor just inserts an appropriate number of spaces ?
And then maybe Tomcat, when it interprets the pattern, strips duplicate 
consecutive spaces ?


As another wild guess, have you tried to insert '\t' in your pattern, 
instead of pressing the TAB key.  (\t is the traditional way of 
representing a TAB in various circumstances).

Like :
  pattern='%B\t%a\t%m\t%U\t%q\t%s\t%t\t%D...etc..

I make no guarantees about crashing your server.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT] Chuck

2008-09-23 Thread Caldarale, Charles R
 From: André Warnier [mailto:[EMAIL PROTECTED]
 Subject: [OT] Chuck

 Can you please inform us of the best path to follow ?

The postscript on my messages is, of course, required by our bloody lawyers.  
(Similar - sometimes more extensive - messages appear on others' e-mails when 
sent from corporate accounts or equipment.)

I would interpret recipient to mean anyone whom I intended to receive the 
message - which is everyone on the Tomcat users list or readers of the list 
archives.  Despite the presence of the key clause MAY CONTAIN ..., I insure 
that no Unisys private information is ever included in what I say in this or 
any other public forum.

So you are not receiving it in error, and I don't think there's any concern 
about hanging onto the information.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 6 Context Configuration

2008-09-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

mookiegp,

mookiegp wrote:
 Host name=localhost  appBase=E:\Public\Files\My Docs\Web\Sites
 
 Inside the the [sic] directory on the E: drive is a copy of the default Tomcat
 index.html file for testing purposes. After restarting Tomcat nothing
 happens.

Where exactly did you copy index.html?

If you want files to show up in the root path (http://localhost/), you
have to put them into a directory called ROOT within the appBase
(case-sensitive: use CAPS!). So, you'd need:

E:\Public\Files\My Docs\Web\Sites
E:\Public\Files\My Docs\Web\Sites\ROOT
E:\Public\Files\My Docs\Web\Sites\ROOT\index.html

 Is there other conf file I need to change?

Not exactly; you need to deploy some apps into that appBase of yours ;)

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkjZCtoACgkQ9CaO5/Lv0PA2VACdHdJbSgYF8KDUWCqDRjwRdUD1
acsAn3zzJ5J01Iu/X9KNDYaV/wZmF48+
=iEIC
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JNDIRealm - mapping LDAP group to security role

2008-09-23 Thread Jérôme Delattre
 I do not want to add groups in the LDAP server, but to map existing
 ones to the roles defined in my web application instead.

 Perhaps you can use the security-role-ref declaration; look in section 12 
 of the servlet spec.


If I remember well the security-role-ref just creates an alias on an
existing security-role for servlets.
It's not related to the mapping between my system groups and the
application roles.

The section 12.4 of the servlet spec says :

A security role is a logical grouping of users defined by the
Application Developer
or Assembler.When the application is deployed, roles are mapped by a Deployer to
principals or groups in the runtime environment.

That's exactly what I am looking for.
Something like:
user username=john password=doe roles=role1,role2/
In the tomcat-users.xml file but for my LDAP realm.

Cheers,
Jerome

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: JNDIRealm - mapping LDAP group to security role

2008-09-23 Thread Caldarale, Charles R
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Jérôme Delattre
 Subject: Re: JNDIRealm - mapping LDAP group to security role

 If I remember well the security-role-ref just creates an alias on an
 existing security-role for servlets.
 It's not related to the mapping between my system groups and the
 application roles.

O.k., I'm confused.  Isn't an alias just what you need to do the mapping from 
any role names used internally in your webapp to the roles (groups) obtained 
from the LDAP server?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat Is not starting

2008-09-23 Thread Partha Goswami
Hi,

I attached, log files, Tomcat is not starting, in Windows xp/2003, Pls help



[2008-09-23 20:48:59] [info] Procrun (2.0.4.0) started
[2008-09-23 20:48:59] [info] Service Tomcat6 name Apache Tomcat
[2008-09-23 20:49:00] [info] Service Tomcat6 installed
[2008-09-23 20:49:00] [info] Procrun finished.
[2008-09-23 20:49:00] [info] Procrun (2.0.4.0) started
[2008-09-23 20:49:00] [info] Updating service...
[2008-09-23 20:49:01] [info] Service Tomcat6 updated
[2008-09-23 20:49:01] [info] Update service finished.
[2008-09-23 20:49:01] [info] Procrun finished.
[2008-09-23 20:49:05] [info] Procrun (2.0.4.0) started
[2008-09-23 20:49:05] [info] Updating service...
[2008-09-23 20:49:05] [info] Service Tomcat6 updated
[2008-09-23 20:49:05] [info] Update service finished.
[2008-09-23 20:49:05] [info] Procrun finished.
[2008-09-23 20:49:05] [info] Procrun (2.0.4.0) started
[2008-09-23 20:49:05] [info] Updating service...
[2008-09-23 20:49:05] [info] Service Tomcat6 updated
[2008-09-23 20:49:05] [info] Update service finished.
[2008-09-23 20:49:05] [info] Procrun finished.
[2008-09-23 20:49:58] [info] Procrun (2.0.4.0) started
[2008-09-23 20:49:58] [info] Running Service...
[2008-09-23 20:49:58] [info] Starting service...
[2008-09-23 20:49:58] [174  javajni.c] [error] The specified module could
not be found.
[2008-09-23 20:49:58] [994  prunsrv.c] [error] Failed creating java
C:\Program Files\Java\jre1.6.0_04\bin\client\jvm.dll
[2008-09-23 20:49:58] [1269 prunsrv.c] [error] ServiceStart returned 1
[2008-09-23 20:49:58] [info] Run service finished.
[2008-09-23 20:49:58] [info] Procrun finished.
[2008-09-23 20:59:55] [info] Procrun (2.0.4.0) started
[2008-09-23 20:59:55] [info] Running Service...
[2008-09-23 20:59:56] [info] Starting service...
[2008-09-23 20:59:56] [174  javajni.c] [error] The specified module could
not be found.
[2008-09-23 20:59:56] [994  prunsrv.c] [error] Failed creating java
C:\Program Files\Java\jre1.6.0_04\bin\client\jvm.dll
[2008-09-23 20:59:56] [1269 prunsrv.c] [error] ServiceStart returned 1
[2008-09-23 20:59:58] [info] Run service finished.
[2008-09-23 20:59:58] [info] Procrun finished.
[2008-09-23 21:22:29] [info] Procrun (2.0.4.0) started
[2008-09-23 21:22:29] [info] Debugging Service...
[2008-09-23 21:22:29] [info] Starting service...
[2008-09-23 21:22:29] [174  javajni.c] [error] The specified module could
not be found.
[2008-09-23 21:22:29] [994  prunsrv.c] [error] Failed creating java
C:\Program Files\Java\jre1.6.0_04\bin\client\jvm.dll
[2008-09-23 21:22:29] [1269 prunsrv.c] [error] ServiceStart returned 1
[2008-09-23 21:22:29] [info] Debug service finished.
[2008-09-23 21:22:29] [info] Procrun finished.
[2008-09-23 21:22:33] [info] Procrun (2.0.4.0) started
[2008-09-23 21:22:33] [info] Debugging Service...
[2008-09-23 21:22:33] [info] Starting service...
[2008-09-23 21:22:33] [174  javajni.c] [error] The specified module could
not be found.
[2008-09-23 21:22:33] [994  prunsrv.c] [error] Failed creating java
C:\Program Files\Java\jre1.6.0_04\bin\client\jvm.dll
[2008-09-23 21:22:33] [1269 prunsrv.c] [error] ServiceStart returned 1
[2008-09-23 21:22:33] [info] Debug service finished.
[2008-09-23 21:22:33] [info] Procrun finished.
[2008-09-23 21:22:34] [info] Procrun (2.0.4.0) started
[2008-09-23 21:22:34] [info] Debugging Service...
[2008-09-23 21:22:34] [info] Starting service...
[2008-09-23 21:22:34] [174  javajni.c] [error] The specified module could
not be found.
[2008-09-23 21:22:34] [994  prunsrv.c] [error] Failed creating java
C:\Program Files\Java\jre1.6.0_04\bin\client\jvm.dll
[2008-09-23 21:22:34] [1269 prunsrv.c] [error] ServiceStart returned 1
[2008-09-23 21:22:34] [info] Debug service finished.
[2008-09-23 21:22:34] [info] Procrun finished.
[2008-09-23 21:22:35] [info] Procrun (2.0.4.0) started
[2008-09-23 21:22:35] [info] Debugging Service...
[2008-09-23 21:22:35] [info] Starting service...
[2008-09-23 21:22:35] [174  javajni.c] [error] The specified module could
not be found.
[2008-09-23 21:22:35] [994  prunsrv.c] [error] Failed creating java
C:\Program Files\Java\jre1.6.0_04\bin\client\jvm.dll
[2008-09-23 21:22:35] [1269 prunsrv.c] [error] ServiceStart returned 1
[2008-09-23 21:22:35] [info] Debug service finished.
[2008-09-23 21:22:35] [info] Procrun finished.
[2008-09-23 22:17:36] [info] Procrun (2.0.4.0) started
[2008-09-23 22:17:37] [info] Running Service...
[2008-09-23 22:17:37] [info] Starting service...
[2008-09-23 22:17:37] [174  javajni.c] [error] The specified module could
not be found.
[2008-09-23 22:17:38] [994  prunsrv.c] [error] Failed creating java
C:\Program Files\Java\jre1.6.0_04\bin\client\jvm.dll
[2008-09-23 22:17:38] [1269 prunsrv.c] [error] ServiceStart returned 1
[2008-09-23 22:17:38] [info] Run service finished.
[2008-09-23 22:17:39] [info] Procrun finished.
[2008-09-23 22:48:24] [info] Procrun (2.0.4.0) started
[2008-09-23 22:48:24] [info] Running Service...
[2008-09-23 22:48:27] [info] Starting service...
[2008-09-23 22:48:27] [174  javajni.c] 

RE: Tomcat Is not starting

2008-09-23 Thread Caldarale, Charles R
 From: Partha Goswami [mailto:[EMAIL PROTECTED]
 Subject: Tomcat Is not starting

 I attached, log files, Tomcat is not starting, in Windows
 xp/2003, Pls help

The usual fix is to find a copy of msvcr71.dll and put it in Tomcat's bin 
directory.  Search the archives for other alternatives.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat Is not starting

2008-09-23 Thread Partha Goswami
I am trying..

On Tue, Sep 23, 2008 at 11:09 PM, Caldarale, Charles R 
[EMAIL PROTECTED] wrote:

  From: Partha Goswami [mailto:[EMAIL PROTECTED]
  Subject: Tomcat Is not starting
 
  I attached, log files, Tomcat is not starting, in Windows
  xp/2003, Pls help

 The usual fix is to find a copy of msvcr71.dll and put it in Tomcat's bin
 directory.  Search the archives for other alternatives.

  - Chuck


 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you received
 this in error, please contact the sender and delete the e-mail and its
 attachments from all computers.

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 
Regards
Partha Goswami
President
Global Web-Tech Solution
www.globalwebtechsolution.com


Re: Tomcat Is not starting

2008-09-23 Thread Partha Goswami
Thanks Working

On Tue, Sep 23, 2008 at 11:12 PM, Partha Goswami 
[EMAIL PROTECTED] wrote:

 I am trying..

 On Tue, Sep 23, 2008 at 11:09 PM, Caldarale, Charles R 
 [EMAIL PROTECTED] wrote:

  From: Partha Goswami [mailto:[EMAIL PROTECTED]
  Subject: Tomcat Is not starting
 
  I attached, log files, Tomcat is not starting, in Windows
  xp/2003, Pls help

 The usual fix is to find a copy of msvcr71.dll and put it in Tomcat's bin
 directory.  Search the archives for other alternatives.

  - Chuck


 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you received
 this in error, please contact the sender and delete the e-mail and its
 attachments from all computers.

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 --
 Regards
 Partha Goswami
 President
 Global Web-Tech Solution
 www.globalwebtechsolution.com




-- 
Regards
Partha Goswami
President
Global Web-Tech Solution
www.globalwebtechsolution.com


RE: Tomcat Is not starting

2008-09-23 Thread Martin Gainty

hi partha

check out
http://forums.sun.com/thread.jspa?threadID=5121172start=0tstart=0

take a working copy of mscvr71.dll  from
http://www.dll-files.com/dllindex/dll-files.shtml?msvcr71
and copy to /windows/system32

With Warm Regards
Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 


 Date: Tue, 23 Sep 2008 22:57:11 +0530
 From: [EMAIL PROTECTED]
 To: users@tomcat.apache.org
 Subject: Tomcat Is not starting
 
 Hi,
 
 I attached, log files, Tomcat is not starting, in Windows xp/2003, Pls help
 
 
 
 [2008-09-23 20:48:59] [info] Procrun (2.0.4.0) started
 [2008-09-23 20:48:59] [info] Service Tomcat6 name Apache Tomcat
 [2008-09-23 20:49:00] [info] Service Tomcat6 installed
 [2008-09-23 20:49:00] [info] Procrun finished.
 [2008-09-23 20:49:00] [info] Procrun (2.0.4.0) started
 [2008-09-23 20:49:00] [info] Updating service...
 [2008-09-23 20:49:01] [info] Service Tomcat6 updated
 [2008-09-23 20:49:01] [info] Update service finished.
 [2008-09-23 20:49:01] [info] Procrun finished.
 [2008-09-23 20:49:05] [info] Procrun (2.0.4.0) started
 [2008-09-23 20:49:05] [info] Updating service...
 [2008-09-23 20:49:05] [info] Service Tomcat6 updated
 [2008-09-23 20:49:05] [info] Update service finished.
 [2008-09-23 20:49:05] [info] Procrun finished.
 [2008-09-23 20:49:05] [info] Procrun (2.0.4.0) started
 [2008-09-23 20:49:05] [info] Updating service...
 [2008-09-23 20:49:05] [info] Service Tomcat6 updated
 [2008-09-23 20:49:05] [info] Update service finished.
 [2008-09-23 20:49:05] [info] Procrun finished.
 [2008-09-23 20:49:58] [info] Procrun (2.0.4.0) started
 [2008-09-23 20:49:58] [info] Running Service...
 [2008-09-23 20:49:58] [info] Starting service...
 [2008-09-23 20:49:58] [174  javajni.c] [error] The specified module could
 not be found.
 [2008-09-23 20:49:58] [994  prunsrv.c] [error] Failed creating java
 C:\Program Files\Java\jre1.6.0_04\bin\client\jvm.dll
 [2008-09-23 20:49:58] [1269 prunsrv.c] [error] ServiceStart returned 1
 [2008-09-23 20:49:58] [info] Run service finished.
 [2008-09-23 20:49:58] [info] Procrun finished.
 [2008-09-23 20:59:55] [info] Procrun (2.0.4.0) started
 [2008-09-23 20:59:55] [info] Running Service...
 [2008-09-23 20:59:56] [info] Starting service...
 [2008-09-23 20:59:56] [174  javajni.c] [error] The specified module could
 not be found.
 [2008-09-23 20:59:56] [994  prunsrv.c] [error] Failed creating java
 C:\Program Files\Java\jre1.6.0_04\bin\client\jvm.dll
 [2008-09-23 20:59:56] [1269 prunsrv.c] [error] ServiceStart returned 1
 [2008-09-23 20:59:58] [info] Run service finished.
 [2008-09-23 20:59:58] [info] Procrun finished.
 [2008-09-23 21:22:29] [info] Procrun (2.0.4.0) started
 [2008-09-23 21:22:29] [info] Debugging Service...
 [2008-09-23 21:22:29] [info] Starting service...
 [2008-09-23 21:22:29] [174  javajni.c] [error] The specified module could
 not be found.
 [2008-09-23 21:22:29] [994  prunsrv.c] [error] Failed creating java
 C:\Program Files\Java\jre1.6.0_04\bin\client\jvm.dll
 [2008-09-23 21:22:29] [1269 prunsrv.c] [error] ServiceStart returned 1
 [2008-09-23 21:22:29] [info] Debug service finished.
 [2008-09-23 21:22:29] [info] Procrun finished.
 [2008-09-23 21:22:33] [info] Procrun (2.0.4.0) started
 [2008-09-23 21:22:33] [info] Debugging Service...
 [2008-09-23 21:22:33] [info] Starting service...
 [2008-09-23 21:22:33] [174  javajni.c] [error] The specified module could
 not be found.
 [2008-09-23 21:22:33] [994  prunsrv.c] [error] Failed creating java
 C:\Program Files\Java\jre1.6.0_04\bin\client\jvm.dll
 [2008-09-23 21:22:33] [1269 prunsrv.c] [error] ServiceStart returned 1
 [2008-09-23 21:22:33] [info] Debug service finished.
 [2008-09-23 21:22:33] [info] Procrun finished.
 [2008-09-23 21:22:34] [info] Procrun (2.0.4.0) started
 [2008-09-23 21:22:34] [info] Debugging Service...
 [2008-09-23 21:22:34] [info] Starting service...
 [2008-09-23 21:22:34] [174  javajni.c] [error] The specified module could
 not be found.
 [2008-09-23 21:22:34] [994  prunsrv.c] [error] Failed creating java
 C:\Program Files\Java\jre1.6.0_04\bin\client\jvm.dll
 [2008-09-23 21:22:34] [1269 prunsrv.c] [error] ServiceStart returned 1
 [2008-09-23 21:22:34] [info] Debug service finished.
 [2008-09-23 21:22:34] [info] Procrun finished.
 [2008-09-23 21:22:35] [info] Procrun (2.0.4.0) started
 [2008-09-23 21:22:35] [info] Debugging Service...
 [2008-09-23 21:22:35] [info] Starting service...
 [2008-09-23 21:22:35] [174  javajni.c] [error] The specified module could
 not be found.
 [2008-09-23 21:22:35] [994  prunsrv.c] [error] Failed creating java
 C:\Program Files\Java\jre1.6.0_04\bin\client\jvm.dll
 [2008-09-23 21:22:35] [1269 prunsrv.c] [error] 

Re: Tomcat Is not starting

2008-09-23 Thread Johnny Kewl


- Original Message - 
From: Martin Gainty [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, September 23, 2008 8:11 PM
Subject: RE: Tomcat Is not starting



hi partha

check out
http://forums.sun.com/thread.jspa?threadID=5121172start=0tstart=0

take a working copy of mscvr71.dll  from
http://www.dll-files.com/dllindex/dll-files.shtml?msvcr71
and copy to

--
   The file may already be in your jdk1.6.0_04\bin folder
   Do as martin says copy into /windows/system32

   On the older window systems you'll start getting alot of these issues...
   Google for and get a program called Dependency Walker...
   It allows you to see what an application is looking for very handy 
;)

   So if the fix doesnt work, you can check what the right fix is yourself.

---
HARBOR : http://www.kewlstuff.co.za/index.htm
The most powerful application server on earth.
The only real POJO Application Server.
See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
---




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JNDIRealm - mapping LDAP group to security role

2008-09-23 Thread Jérôme Delattre
 If I remember well the security-role-ref just creates an alias on an
 existing security-role for servlets.
 It's not related to the mapping between my system groups and the
 application roles.

 O.k., I'm confused.  Isn't an alias just what you need to do the mapping from 
 any role names used internally in your webapp to the roles (groups) obtained 
 from the LDAP server?


Yes an alias is what I need :-)
But security-role-ref is not done for that (unless I missed something).
Quoting: http://java.sun.com/developer/technicalArticles/Servlets/servletapi2.3/

 servlet
servlet-name
secret
/servlet-name
...
security-role-ref
role-name
mgr !-- name used by servlet --
/role-name
role-link
manager !-- name used in deployment descriptor --
/role-link
/security-role-ref
/servlet

...

security-role
role-name
manager
/role-name
/security-role

the servlet secret can call isUserInRole(mgr) or
isUserInRole(manager) -- they will give the same behavior.
Basically, security-role-ref acts to create an alias, but isn't
necessary.

/Quote

What I am looking for is more a security role mapping descriptor or
configuration.
Like one can do in SunAS:

security-role-mapping
role-namemyapprole/role-name
group-namemyldapgroup/group-name
/security-role-mapping

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat6.0.18+Log entries upon shutting down TomCat

2008-09-23 Thread Choudhury
Guys,
   As a load tester should I have to worry about the INFO 
messages mentioned below in this thread I am getting no clue as to 
where they creep from ?Is it Tomcat problem or our application problem? 
Any insights ?
Regards,

Subhrajyoti 
Mobile: +919830079545
Mail: [EMAIL PROTECTED]
Web: www.labware.com

LabWare LIMS Solutions - Results Count



Heiko Klein [EMAIL PROTECTED] 
09/23/2008 03:52 PM
Please respond to
Tomcat Users List users@tomcat.apache.org


To
Tomcat Users List users@tomcat.apache.org
cc

Subject
Re: Tomcat6.0.18+Log entries upon shutting down TomCat






Hi Subhrajyoti,

I don't know an answer for your question, but I got exactly the same 
problems after upgrading from Tomcat 6.0.14 to 6.0.18. This problem 
happenend when using APR. After switching back to 6.0.14, my problem 
disappeared. Are you using APR, too? I think this is worrisome for an 
application, because my tomcat started to freeze completely after all 
threads had been in this 'waiting for deallocation' state.

Best regards,

Heiko

[EMAIL PROTECTED] wrote:
 Hi All,
   My first question in this forum . I am load testing our 
 webapp using Jmeter . The test was configured to simulate  50 
simultaneous 
 users . After running the test for about 18hours or so , I decided to 
 shutdown Tomcat  and after executing shutdown.bat file , I got the 
 following messages inside catalina.2008-09-23.log . At the time when I 
 stopped Tomcat, Jmeter was showing as all the 50 threads up and running 
.
 My question :
 
 1. What this line INFO: Waiting for 253,020 instance(s) to be 
deallocated 
 means ?
 2. Are these messages worrisome from the application point of view ?
  .
 
 Sep 23, 2008 1:53:38 PM org.apache.coyote.http11.Http11Protocol pause
 INFO: Pausing Coyote HTTP/1.1 on http-8080
 Sep 23, 2008 1:53:39 PM org.apache.catalina.core.StandardService stop
 INFO: Stopping service Catalina
 Sep 23, 2008 1:53:39 PM org.apache.catalina.core.StandardWrapper unload
 INFO: Waiting for 253,020 instance(s) to be deallocated
 Sep 23, 2008 1:53:40 PM org.apache.catalina.core.StandardWrapper unload
 INFO: Waiting for 253,016 instance(s) to be deallocated
 Sep 23, 2008 1:53:41 PM org.apache.catalina.core.StandardWrapper unload
 INFO: Waiting for 253,015 instance(s) to be deallocated
 Sep 23, 2008 1:53:41 PM org.apache.catalina.core.StandardWrapper unload
 INFO: Waiting for 42 instance(s) to be deallocated
 Sep 23, 2008 1:53:42 PM org.apache.catalina.core.StandardWrapper unload
 INFO: Waiting for 42 instance(s) to be deallocated
 Sep 23, 2008 1:53:43 PM org.apache.catalina.core.StandardWrapper unload
 INFO: Waiting for 42 instance(s) to be deallocated
 Sep 23, 2008 1:53:43 PM org.apache.catalina.core.StandardWrapper unload
 INFO: Waiting for 7,570 instance(s) to be deallocated
 Sep 23, 2008 1:53:44 PM org.apache.catalina.core.StandardWrapper unload
 INFO: Waiting for 7,570 instance(s) to be deallocated
 Sep 23, 2008 1:53:45 PM org.apache.catalina.core.StandardWrapper unload
 INFO: Waiting for 7,570 instance(s) to be deallocated
 Sep 23, 2008 1:53:53 PM org.apache.coyote.http11.Http11Protocol destroy
 INFO: Stopping Coyote HTTP/1.1 on http-8080
 
 
 Regards,
 
 Subhrajyoti 
 Mobile: +919830079545
 Mail: [EMAIL PROTECTED]
 Web: www.labware.com
 
 LabWare LIMS Solutions - Results Count

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Tomcat6.0.18+Log entries upon shutting down TomCat

2008-09-23 Thread Mark Thomas
[EMAIL PROTECTED] wrote:
 Guys,
As a load tester should I have to worry about the INFO 
 messages mentioned below in this thread 
They are INFO messages so it is reasonable to assume that they are for
information rather than anything to worry about.

 I am getting no clue as to where they creep from ?
Did you try Googling for instance(s) to be deallocated?

 Is it Tomcat problem or our application problem?
That the numbers are unrealistically high is a known Tomcat bug but not one
that will cause any real harm.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45608

You might have some long running requests hanging around which could be an
application issue but you'll need to use other means (eg thread dump) to
figure out if that is the case.

Mark


 Any insights ?
 Regards,
 
 Subhrajyoti 
 Mobile: +919830079545
 Mail: [EMAIL PROTECTED]
 Web: www.labware.com
 
 LabWare LIMS Solutions - Results Count
 
 
 
 Heiko Klein [EMAIL PROTECTED] 
 09/23/2008 03:52 PM
 Please respond to
 Tomcat Users List users@tomcat.apache.org
 
 
 To
 Tomcat Users List users@tomcat.apache.org
 cc
 
 Subject
 Re: Tomcat6.0.18+Log entries upon shutting down TomCat
 
 
 
 
 
 
 Hi Subhrajyoti,
 
 I don't know an answer for your question, but I got exactly the same 
 problems after upgrading from Tomcat 6.0.14 to 6.0.18. This problem 
 happenend when using APR. After switching back to 6.0.14, my problem 
 disappeared. Are you using APR, too? I think this is worrisome for an 
 application, because my tomcat started to freeze completely after all 
 threads had been in this 'waiting for deallocation' state.
 
 Best regards,
 
 Heiko
 
 [EMAIL PROTECTED] wrote:
 Hi All,
   My first question in this forum . I am load testing our 
 webapp using Jmeter . The test was configured to simulate  50 
 simultaneous 
 users . After running the test for about 18hours or so , I decided to 
 shutdown Tomcat  and after executing shutdown.bat file , I got the 
 following messages inside catalina.2008-09-23.log . At the time when I 
 stopped Tomcat, Jmeter was showing as all the 50 threads up and running 
 .
 My question :

 1. What this line INFO: Waiting for 253,020 instance(s) to be 
 deallocated 
 means ?
 2. Are these messages worrisome from the application point of view ?
  .

 Sep 23, 2008 1:53:38 PM org.apache.coyote.http11.Http11Protocol pause
 INFO: Pausing Coyote HTTP/1.1 on http-8080
 Sep 23, 2008 1:53:39 PM org.apache.catalina.core.StandardService stop
 INFO: Stopping service Catalina
 Sep 23, 2008 1:53:39 PM org.apache.catalina.core.StandardWrapper unload
 INFO: Waiting for 253,020 instance(s) to be deallocated
 Sep 23, 2008 1:53:40 PM org.apache.catalina.core.StandardWrapper unload
 INFO: Waiting for 253,016 instance(s) to be deallocated
 Sep 23, 2008 1:53:41 PM org.apache.catalina.core.StandardWrapper unload
 INFO: Waiting for 253,015 instance(s) to be deallocated
 Sep 23, 2008 1:53:41 PM org.apache.catalina.core.StandardWrapper unload
 INFO: Waiting for 42 instance(s) to be deallocated
 Sep 23, 2008 1:53:42 PM org.apache.catalina.core.StandardWrapper unload
 INFO: Waiting for 42 instance(s) to be deallocated
 Sep 23, 2008 1:53:43 PM org.apache.catalina.core.StandardWrapper unload
 INFO: Waiting for 42 instance(s) to be deallocated
 Sep 23, 2008 1:53:43 PM org.apache.catalina.core.StandardWrapper unload
 INFO: Waiting for 7,570 instance(s) to be deallocated
 Sep 23, 2008 1:53:44 PM org.apache.catalina.core.StandardWrapper unload
 INFO: Waiting for 7,570 instance(s) to be deallocated
 Sep 23, 2008 1:53:45 PM org.apache.catalina.core.StandardWrapper unload
 INFO: Waiting for 7,570 instance(s) to be deallocated
 Sep 23, 2008 1:53:53 PM org.apache.coyote.http11.Http11Protocol destroy
 INFO: Stopping Coyote HTTP/1.1 on http-8080


 Regards,

 Subhrajyoti 
 Mobile: +919830079545
 Mail: [EMAIL PROTECTED]
 Web: www.labware.com

 LabWare LIMS Solutions - Results Count
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat6.0.18+Log entries upon shutting down TomCat

2008-09-23 Thread Johnny Kewl


Subhrajyoti

Look I dont know, I've never seen this, we dont run the latest as policy...
But I would drop back a few TC versions...

I think a wrapper represents a servlet instance... (guess)... and 253,020 
sounds like a huge number.


I think you should be concerned... whether it is a TC issue or a Webapp 
issue you only going to discover if you try a few TC's that have been around 
for a while...


I think document your entire system the JRE as well... and if it does 
not show in an earlier TC, let the dev group know


The thing that would tell you that there is definitely an issue, is if you 
watch the memory during the load test... if thats getting less and less with 
time its crashing...


It seems to be holding servlets in memory and making new ones... it may not 
be TC... you now have to experiment


... it doesnt look right... but then it may be that your system is just 
enormous ;)

... or some new feature in the latest TC ??

I think you right been concerned... doesnt smell right ;)

---
HARBOR : http://www.kewlstuff.co.za/index.htm
The most powerful application server on earth.
The only real POJO Application Server.
See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
---



- Original Message - 
From: [EMAIL PROTECTED]

To: users@tomcat.apache.org
Sent: Tuesday, September 23, 2008 11:20 AM
Subject: Tomcat6.0.18+Log entries upon shutting down TomCat



Hi All,
 My first question in this forum . I am load testing our
webapp using Jmeter . The test was configured to simulate  50 simultaneous
users . After running the test for about 18hours or so , I decided to
shutdown Tomcat  and after executing shutdown.bat file , I got the
following messages inside catalina.2008-09-23.log . At the time when I
stopped Tomcat, Jmeter was showing as all the 50 threads up and running .
My question :

1. What this line INFO: Waiting for 253,020 instance(s) to be deallocated
means ?
2. Are these messages worrisome from the application point of view ?
.

Sep 23, 2008 1:53:38 PM org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
Sep 23, 2008 1:53:39 PM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Sep 23, 2008 1:53:39 PM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 253,020 instance(s) to be deallocated
Sep 23, 2008 1:53:40 PM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 253,016 instance(s) to be deallocated
Sep 23, 2008 1:53:41 PM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 253,015 instance(s) to be deallocated
Sep 23, 2008 1:53:41 PM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 42 instance(s) to be deallocated
Sep 23, 2008 1:53:42 PM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 42 instance(s) to be deallocated
Sep 23, 2008 1:53:43 PM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 42 instance(s) to be deallocated
Sep 23, 2008 1:53:43 PM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 7,570 instance(s) to be deallocated
Sep 23, 2008 1:53:44 PM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 7,570 instance(s) to be deallocated
Sep 23, 2008 1:53:45 PM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 7,570 instance(s) to be deallocated
Sep 23, 2008 1:53:53 PM org.apache.coyote.http11.Http11Protocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080


Regards,

Subhrajyoti
Mobile: +919830079545
Mail: [EMAIL PROTECTED]
Web: www.labware.com

LabWare LIMS Solutions - Results Count 



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How to manually undeploy a webapp in tomcat ?

2008-09-23 Thread albrecht andrzejewski

Hi everyone,

My question is simple: when i was upgrading a webapp, i used to stop  
tomcat, replace my old war file with the new one using some unix  
command, and re start the tomcat server.


But i noticed that the files under  
/catalina_home/work/Catalina/localhost/nameofwebapp/ are not updated  
when tomcat redeploy the new war file, causing my context.xml to be  
deprecated.


It is especially unfair because my context.xml contain my jndi  
ressources, and it cannot more access neither the mail, neither the  
database...


Is there any proper solution to undeploy manually a webapp ( i don't  
want to use the manager webapp). And I don't know how to use Ant - so  
i would prefer a unix-shell-only solution.


I think about deleting all the files under  
/Catalina/localhost/nameofwebapp/ but  i'm afraid to miss something.


Thanks.
--
Albrecht ANDRZEJEWSKI
Créateur - Incubateur Technologique
SITE-EERIE - Parc scientifique G. Besse



Ce message a ete envoye par le serveur IMP de l'EMA.



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT] question about realm auth and digest attribute

2008-09-23 Thread Joe A
is it really that hard to reply to a question without coming off as a
pompous ass?

On Mon, Sep 22, 2008 at 4:23 PM, André Warnier [EMAIL PROTECTED] wrote:

 Mark Thomas wrote:
 [...]

 It took me less than a minute to find the JavaDoc for
 java.security.MessageDigest


 It's by saying things like that that you provoke this kind of question..
 It takes us mere mortals ages to find anything there.
 :-)



 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Problem with mod_jk installation

2008-09-23 Thread Ken Bowen

Hi all,

I'm trying to setup a new virtual machine running CentOS 5 Linux over  
VMWare.

Apache Httpd 2.2.3 was already installed and running.
I've installed Java JDK 1.5.0_16 and Tomcat 5.5.27, which is running  
fine.
I downloaded mod_jk-1.2.26-httpd-2.2.6.so and placed it with all the  
other httpd modules.

When I try to restart apache httpd, I get the following error message:

Cannot load /etc/httpd/modules/mod_jk-1.2.26-httpd-2.2.6 into server:
/etc/httpd/modules/mod_jk-1.2.26-httpd-2.2.6: undefined symbol:  
ap_get_server_description [FAILED]


When that happened, since the installed Httpd version was 2.2.3, I  
attempted to use the next earliest
version of mod_jk,   the version mod_jk-1.2.26-httpd-2.0.61.  But when  
Httpd tries to load that, it

says that it is garbled.

What am I missing here??

Thanks in advance,
Ken Bowen

Re: hello world

2008-09-23 Thread thufir
On Sun, 21 Sep 2008 16:54:33 -0400, H. Hall wrote:


 When I installed Netbeans 6.1, the installer also installed Tomcat
 6.0.14. This was on a windows pc but I would find it very amazing if the
 Linux version of NB6.1  installed a TC 5.5.  Is is possible that a
 tomcat installed with Ubuntu?


Ah, looking at:

http://download.netbeans.org/netbeans/6.1/final/

I see that some versions of NB do include Tomcat -- interesting.

So far as I can tell this isn't the case for Ubuntu, though.

Ubuntu can install Tomcat 5.5 through the package manager,
and then I may have installed the plug-in for Tomcat 6...?

I dunno.

It seems to be working with the upstream tomcat 6
and NB 6.  With Java 6, does this mean that the arrival
of the four horsemen is imminent!?

Anyhow, I expressed my frustration on the Ubuntu
mailing list and received a confirmation and then a
works for me, along with an advisory not to run
Tomcat as root.


-Thufir


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]