Load balancing and sticky sessions

2009-04-23 Thread Tom Cooper

Hi all,

I have two servers, each running 5 instances of Tomcat and apache. I 
need to do load balancing between them with sticky sessions. The load 
balancing seems to work but not the sticky sessions. I am using mod_ajp. 
I see that mod_jk is recommended but that means modifying the tomcat 
configs.


If I use a compiled version of Apache it works, but if I use the Apache 
rpm it fails. I have copied the config files and made the necessary 
modifications but no luck. Any ideas here? It has to be something with 
the Apache package, but what?


Regards,


To read FirstRand Bank's Disclaimer for this email click on the following address or copy into your Internet browser: 
https://www.fnb.co.za/disclaimer.html 


If you are unable to access the Disclaimer, send a blank e-mail to
firstrandbankdisclai...@fnb.co.za and we will send you a copy of the Disclaimer.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: JVM crash issue

2009-04-23 Thread jochen
chris,

The hardware has same identical spec with others, and hosting for internet
service independent, and the model of hardware is very popular and proven to
be used in internet service, of course, it still needs check to ensure its
quality. I will ask hardware team for help to check that points you
mentioned, perhaps a long-time hardware test is needed.

No JNI frames in the stack dump also confused me a lot, but
"LJava/lang/String" was one of parameter structure defined by our C code. I
don't know if any other Java code including JDK, tomcat, or struts, would
define the structure like this, if have, please remind me.

On Thu, Apr 23, 2009 at 11:16 PM, Christopher Schultz <
ch...@christopherschultz.net> wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Jochen,
>
> On 4/23/2009 4:14 AM, jochen wrote:
> > Thanks for Peter,  the hardware is the same box with production
> > machine
>
> Do you mean the same physical machine, or a machine with identical
> specs? If the former, that's bad. If the latter, that's good, but
> irrelevant. You might just have drawn the short straw on some RAM.
>
> > and those type of machines works very well for serving large-load
> > internet service, and the hardware itself already hosted very well
> > for half year before I deployed new functions to it.
>
> You wouldn't be the first one to experience hardware failure after
> things were running well. Seriously, if you can't blame this on your JNI
> code, just test the hardware. You can spend months looking at code and
> finding nothing if your hardware has gone bad. Do yourself a favor and
> run a hardware test -- you can even run it overnight and sleep while the
> work is being done for you :)
>
> > Again the new functions worked fine for several days, and crashed
> > twice. It seemed the crashes always happen at the same point of those
> > new function code, not in xwork2.
>
> Interesting.
>
> > Your reply reminds me on the
> > "DefaultActionInvocation.invoke()Ljava/lang/String", maybe it is the
> > fault of JNI code, which was invoked by xwork2, to call some native C
> > code to finish something jobs. I'll try to reproduce it and confirm
> > if it's the JNI fault.
>
> I didn't see any JNI frames in the stack dump, but it's possible that
> you have JNI code that is mangling something in memory and the JVM later
> goes in and tries to de-reference it, and you get a SIGSEGV.
>
> Are you actually running any of your own native code?
>
> - -chris
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.9 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAknwhlwACgkQ9CaO5/Lv0PBkXwCgmx7aYdrf8q7JZ5xuxvTyYNDs
> LvoAn3kbaT69rSiBhe4RAOypSlQffxNi
> =m2r0
> -END PGP SIGNATURE-
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


RE: Tomcat users meetup in London

2009-04-23 Thread Caldarale, Charles R
> From: Mark Thomas [mailto:ma...@apache.org]
> Subject: Re: Tomcat users meetup in London
> 
> So, how does the Thursday or Friday evening next week suite folks?

Either should be ok for us.  Friday daytime is tentatively set for the British 
Museum, with a friend of ours from here whose visit happens to overlap ours.  
(If Friday is chosen, can we drag him along?  He does speak Java, but not 
Tomcat.)  Have no idea where we'll be on Thursday, but as long as the tube is 
running, it shouldn't matter.

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



Re: Tomcat users meetup in London

2009-04-23 Thread Pid
Mark Thomas wrote:
> Caldarale, Charles R wrote:
>>> From: Pid [mailto:p...@pidster.com]
>>> Subject: Re: Tomcat users meetup in London
>>>
>>> You'll also be temptingly close to some decent Indian restaurants then.
>> Thanks; we've seen a few on Google Earth.  My wife is a curry fanatic.
> 
> So, how does the Thursday or Friday evening next week suite folks?

either/or.

p



> 
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
> 


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat users meetup in London

2009-04-23 Thread Mark Thomas
Caldarale, Charles R wrote:
>> From: Pid [mailto:p...@pidster.com]
>> Subject: Re: Tomcat users meetup in London
>>
>> You'll also be temptingly close to some decent Indian restaurants then.
> 
> Thanks; we've seen a few on Google Earth.  My wife is a curry fanatic.

So, how does the Thursday or Friday evening next week suite folks?

Mark



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Fwd: username/password being logged in clear text

2009-04-23 Thread Steven Yates
Jithu, I would be inclined to confirm whether your deployment is 
utilising System.out, System.err or a logging api to print your incoming 
FORM request attributes?


RGS SY

Filip Hanik - Dev Lists wrote:

Tomcat doesn't print any usernames passwords to any logfiles.
So most likely, your application is what is causing it.

Filip

jithu mada wrote:
  

-- Forwarded message --
From: jithu mada 
Date: Wed, Apr 22, 2009 at 5:38 PM
Subject: username/password being logged in clear text
To: users@tomcat.apache.org


Hi,

We are using Tomcat 5.0.27. Whenever the user logs using GET or POST request
his/her username and password are being logged in clear text in the
localhost access logs. It has become a security issue as anyone with an
account to the system can browse through the logs and find out the username
and password of the users.

So I was going through the documentation to find if there is any attribute
which controls this behavior and we can prevent it from being printed in the
log file but I couldn't find one.

And I am using org.apache.catalina.logger.FileLogger as the Logger class.

I really appreciate if you can help me out here.

thanks
Jitender

  




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

  


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat users meetup in London

2009-04-23 Thread Caldarale, Charles R
> From: Pid [mailto:p...@pidster.com]
> Subject: Re: Tomcat users meetup in London
> 
> You'll also be temptingly close to some decent Indian restaurants then.

Thanks; we've seen a few on Google Earth.  My wife is a curry fanatic.

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



Re: Tomcat migration 4.1.3 to 5.5.23: Tomcat5.5 searching servlet file in file system and reporting 404 error rather mapping in web.xml

2009-04-23 Thread Sriganesh Ananth
Hi Andre,

I got Forbidden - You don't have permission to access
/test/WEB-INF/web.xml on this server.

Under httpd.conf, just before VirtualHost I have following to deny all
from accessing WEB-INF folder.

Httpd.conf configuration:

# Globally deny access to the WEB-INF directory

   deny from all


DocumentRoot /var/www/testapp
Alias /test /var/www/testapp/
JkMount /*.do ajp13
JkMount /*.jsp ajp13


Do you still smell something fishy here?

Regards
Sriganesh

On Thu, Apr 23, 2009 at 2:41 PM, André Warnier  wrote:
> Sriganesh Ananth wrote:
>>
>> Chuck, you rock!!!
>
> That part, I tend to agree.
>
>>
>> I changed the appBase to "/var/www" for Host, added "testapp" in the
>> Context docBase and restarted the tomcat and it worked!!!
>>
> But this part, and what follows :
>
> Httpd.conf configuration:
> 
> DocumentRoot /var/www/testapp
> Alias /test /var/www/testapp/
> JkMount /*.do ajp13
> JkMount /*.jsp ajp13
> 
>
> I definitely find bizarre.
>
> Can you try the following URL in your browser :
>
> http://192.168.1.23/test/WEB-INF/web.xml
>
> and let us know what you get ?
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat users meetup in London

2009-04-23 Thread Pid
Caldarale, Charles R wrote:
>> From: Pid [mailto:p...@pidster.com]
>> Subject: Re: Tomcat users meetup in London
>>
>> Out of date listing:
>>  http://www.timeout.com/london/restaurants/features/28.html
>>
>> New 'posh':
>>  http://www.urbanpath.com/london/fish-and-chips/
> 
> Thanks for the tips; Fryer's Delight is not too far from where we're staying.

You'll also be temptingly close to some decent Indian restaurants then.

p



>  - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




Re: Fwd: username/password being logged in clear text

2009-04-23 Thread Filip Hanik - Dev Lists

Tomcat doesn't print any usernames passwords to any logfiles.
So most likely, your application is what is causing it.

Filip

jithu mada wrote:

-- Forwarded message --
From: jithu mada 
Date: Wed, Apr 22, 2009 at 5:38 PM
Subject: username/password being logged in clear text
To: users@tomcat.apache.org


Hi,

We are using Tomcat 5.0.27. Whenever the user logs using GET or POST request
his/her username and password are being logged in clear text in the
localhost access logs. It has become a security issue as anyone with an
account to the system can browse through the logs and find out the username
and password of the users.

So I was going through the documentation to find if there is any attribute
which controls this behavior and we can prevent it from being printed in the
log file but I couldn't find one.

And I am using org.apache.catalina.logger.FileLogger as the Logger class.

I really appreciate if you can help me out here.

thanks
Jitender

  



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat logs

2009-04-23 Thread Mark Thomas
Ducharme, Ugo wrote:
> How can I get the maximum amount of log possible? Shall I use log level like 
> org.level = ALL and com.level = ALL ? I feel tomcat is not verbose enough and 
> I am looking for a switch (or something else) that would give me all the log 
> I can.

You *really* don't want to do that. Last time I tried it, Tomcat took
over 30 minutes to start (I never did find out how long it took - I
killed the process). It normally takes about a second on my machine.

Mark



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat users meetup in London

2009-04-23 Thread Caldarale, Charles R
> From: Pid [mailto:p...@pidster.com]
> Subject: Re: Tomcat users meetup in London
> 
> Out of date listing:
>  http://www.timeout.com/london/restaurants/features/28.html
> 
> New 'posh':
>  http://www.urbanpath.com/london/fish-and-chips/

Thanks for the tips; Fryer's Delight is not too far from where we're staying.

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



Re: Tomcat users meetup in London

2009-04-23 Thread Pid
Caldarale, Charles R wrote:
>> From: Edward Bicker [mailto:g...@travelin.com]
>> Subject: RE: Tomcat users meetup in London
>>
>> I am up for fish 'n' chips at duggy's
> 
> I would love some authentic fish 'n' chips like what we used to get on High 
> Street in Tring; haven't found anything comparable in this country.

Out of date listing:
 http://www.timeout.com/london/restaurants/features/28.html

New 'posh':
 http://www.urbanpath.com/london/fish-and-chips/

There's plenty of places in the center of town, which may make it more
conducive for a feed + subsequent light, ahem, refreshments.


p





> Where's Duggy's, and do they serve beer for pid?
> 
>  - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat logs

2009-04-23 Thread André Warnier

Ducharme, Ugo wrote:
...
 I feel tomcat is not verbose enough

You must be the only one in the whole wide world.

Where are you looking ?

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Beginner: Installation Apache

2009-04-23 Thread André Warnier

Vinay Nagrik wrote:

Dear Group,

I downloaded bianries fo Apache for my Windows platform on XP operating
system.

I did not come across a statement that Apache runs on XP.  The site says
that it runs on Vista.  Can somebody please tell me if it runs on Windows
XP.

Secondly, when I was installing it, the message says that I need to
configure it myself.  Can someone please help or provide guidelines as to
how to configure it.


Just by curiosity, where did you download Apache from ?
And did you see a cat somewhere, or a feather ?


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat migration 4.1.3 to 5.5.23: Tomcat5.5 searching servlet file in file system and reporting 404 error rather mapping in web.xml

2009-04-23 Thread André Warnier

Sriganesh Ananth wrote:

Chuck, you rock!!!


That part, I tend to agree.



I changed the appBase to "/var/www" for Host, added "testapp" in the
Context docBase and restarted the tomcat and it worked!!!


But this part, and what follows :

Httpd.conf configuration:

DocumentRoot /var/www/testapp
Alias /test /var/www/testapp/
JkMount /*.do ajp13
JkMount /*.jsp ajp13


I definitely find bizarre.

Can you try the following URL in your browser :

http://192.168.1.23/test/WEB-INF/web.xml

and let us know what you get ?

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: customize HTTP Status 401 error page

2009-04-23 Thread Caldarale, Charles R
> From: Martin Gainty [mailto:mgai...@hotmail.com]
> Subject: RE: customize HTTP Status 401 error page
> 
> what happens when you supply the webapplication name to 
>  and restart TC?

That would violate the servlet spec.  The webapp name *never* appears in 
web.xml, other than perhaps as documenation.

 - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: JVM crash issue

2009-04-23 Thread Dan Armbrust
On Thu, Apr 23, 2009 at 3:59 PM, Anthony J. Biacco
 wrote:
> This is a little OT, but I'm interested to see if oracle decides to
> merge their BEA acquisition jrockit product with sun's JDK or just picks
> one of them to represent.

Hopefully they at least merge together the developers.  I get the
feeling that Sun has about 3 experts and 3 interns working on the JVM
lately, and no one else.  The last time I filed a bug report with them
(which, coincidently, was a JVM crash issue) with a test case that
made it trivial to reproduce, it was 2 months before they would even
acknowledge the bug, and move it from their private issue tracker to
their public bug tracker.

Sigh.

Dan

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: customize HTTP Status 401 error page

2009-04-23 Thread Martin Gainty

the url-pattern is usually the contextPath such as
http://host:port + ContextPath is compared to the  

http://edocs.bea.com/wls/docs61/webapp/web_xml.html

what is the webapplication name?
what happens when you supply the webapplication name to  
and restart TC?

Martin 
__ 
Disclaimer and Confidentiality/Verzicht und Vertraulichkeitanmerkung / Note de 
déni et de confidentialité 
This message is confidential. If you should not be the intended receiver, then 
we ask politely to report. Each unauthorized forwarding or manufacturing of a 
copy is inadmissible. This message serves only for the exchange of information 
and has no legal binding effect. Due to the easy manipulation of emails we 
cannot take responsibility over the the contents.
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.






> Subject: RE: customize HTTP Status 401 error page
> Date: Thu, 23 Apr 2009 15:19:39 -0500
> From: jill@alverno.edu
> To: users@tomcat.apache.org
> 
> Here is web.xml
> 
>   Faculty Resources
>   
> 
>   FACRES
>   *
> 
> 
>   CN=FacultyStaff,OU=Groups,OU=EMP,DC=AC
> 
> 
>   
> BASIC
> TESTING  
>
>
> 401
> /error.html
>
>   
>   
> CN=FacultyStaff,OU=Groups,OU=EMP,DC=AC
>   
> 
>   
> 2
> 
> 
> 
> Yes, if it is run on Window, no credential window was prompted, but instead, 
> the error.html
> However, if it is run on Linux, credential window was prompted, but, if 
> unsuccessful, or clicking "Cancel", 401 error message still show up. 
>  was ignored.
> 
> Jill
> -Original Message-
> From: Christopher Schultz [mailto:ch...@christopherschultz.net] 
> Sent: Thursday, April 23, 2009 2:55 PM
> To: Tomcat Users List
> Subject: Re: customize HTTP Status 401 error page
> 
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> Jill,
> 
> On 4/23/2009 1:20 PM, Jill Han wrote:
> > I still need helps.
> > Here is the web.xml
> > ...
> > 
> > BASIC
> > TESTING  
> >   
> >  
> >
> > 401
> > /error.html
> >   
> > ...
> > The error.html is replaced the 401 error message, however there will be no 
> > authentication window prompted, error.html is somehow loaded all the time.
> 
> What do your  elements look like?
> 
> Are you saying you are getting a 401 response but never being asked for
> your credentials?
> 
> - -chris
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.9 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
> 
> iEYEARECAAYFAknwx6UACgkQ9CaO5/Lv0PBfLACfU2OGHvHDUX0qeCeaIVoRoJz9
> rO4AoK5hbI7c96Dz31J0ZCaOhLzgPcaS
> =xKJK
> -END PGP SIGNATURE-
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 

_
Rediscover Hotmail®: Now available on your iPhone or BlackBerry
http://windowslive.com/RediscoverHotmail?ocid=TXT_TAGLM_WL_HM_Rediscover_Mobile2_042009

RE: Tomcat Manager App on a Closed Network

2009-04-23 Thread Anthony J. Biacco
Probably not the best solution, but you could always resolve the DNS for
www.w3.org internally to your local apache web server (if you have one)
or to the tomcat server (if you're running the http port), build the
sub-directories for the URI's path, download the dtd file from w3.org
and stick it in there.

-Tony
---
Manager, IT Operations
Format Dynamics, Inc.
303-573-1800x27
abia...@formatdynamics.com
http://www.formatdynamics.com


> -Original Message-
> From: Jonathan Cochran [mailto:jcochra...@hotmail.com]
> Sent: Thursday, April 23, 2009 1:08 PM
> To: users@tomcat.apache.org
> Subject: Tomcat Manager App on a Closed Network
> 
> 
> I have Apache Tomcat 6.0.18 installed on a server that is not
connected
> to the Internet.  When I run the Tomcat Web Application Manager and
> click the number of Sessions to list them, the page eventually comes
> back with an error complaining that it can't find "xhtml1-
> transitional.dtd" at the www.w3.org web site.  Is there any way to get
> the Manager application to work on a closed network?
> 
> 
> 
> Thanks
> 
> _
> Windows Live(tm) SkyDrive(tm): Get 25 GB of free online storage.
>
http://windowslive.com/online/skydrive?ocid=TXT_TAGLM_WL_skydrive_04200
> 9

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Avoiding username/password being logged into localhost access logs

2009-04-23 Thread Dan Armbrust
>
> How is Tomcat meant to determine that data in the URL is a password and
> needs to be filtered?
>
>> I imagine there are all sorts of places that (rightfully) have
>> policies against storing a clear text password anywhere.
>
> The only reason you are seeing the password in the access logs appears
> to be the fact that the application is including in the URL. No
> authentication scheme provided by Tomcat does this. This is an
> application issue (it should be using POST rather than GET) not a Tomcat
> one.
>
> Mark

Ahh.  I didn't read the first post very carefully.  I thought there
were using a built-in tomcat authorization scheme - and it was logging
the usernames and passwords.  But the original poster just has a
really poor application design.

I didn't think Tomcat would be logging passwords in clear text.  Nevermind me :)

Dan

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: JVM crash issue

2009-04-23 Thread Anthony J. Biacco
This is a little OT, but I'm interested to see if oracle decides to
merge their BEA acquisition jrockit product with sun's JDK or just picks
one of them to represent.

-Tony
---
Manager, IT Operations
Format Dynamics, Inc.
303-573-1800x27
abia...@formatdynamics.com
http://www.formatdynamics.com


> -Original Message-
> From: Dan Armbrust [mailto:daniel.armbrust.l...@gmail.com]
> Sent: Thursday, April 23, 2009 2:56 PM
> To: Tomcat Users List
> Subject: Re: JVM crash issue
> 
> JVM crashes seem to be a common issue lately.  We tried to move our
> main apps from JRE 1.5 to 1.6 about 6 months ago, and had to give up
> and revert because we couldn't find any 1.6 or early 1.7 JVM's that
> were stable.  They all had random crashes on hardware that runs the
> same software perfectly fine with a 1.5 JVM.  Personally, I think it's
> because of Suns dismal care of java as a whole, lately.  Hopefully,
> things will change for the better with the upcoming OpenJDK 1.7, or
> with Oracle's takeover.Certainly couldn't get much worse.
> 
> But I would start JVM shopping.  Back to 1.5, or over to IBM's JVM, or
> perhaps Apache Harmony.  At least they will make an effort to respond
> to bug reports.
> 
> Good luck,
> 
> Dan
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Beginner: Installation Apache

2009-04-23 Thread Anthony J. Biacco
Are you talking about the apache httpd web server or apache tomcat
application server?

Both will run on xp and vista. There are quirks with both on vista, with
workarounds. Questions about the web server should be directed to the
httpd mailing list (see apache.org)

-Tony
---
Manager, IT Operations
Format Dynamics, Inc.
303-573-1800x27
abia...@formatdynamics.com
http://www.formatdynamics.com

> -Original Message-
> From: Vinay Nagrik [mailto:vnag...@gmail.com]
> Sent: Thursday, April 23, 2009 1:28 PM
> To: users@tomcat.apache.org
> Subject: Beginner: Installation Apache
> 
> Dear Group,
> 
> I downloaded bianries fo Apache for my Windows platform on XP
operating
> system.
> 
> I did not come across a statement that Apache runs on XP.  The site
> says
> that it runs on Vista.  Can somebody please tell me if it runs on
> Windows
> XP.
> 
> Secondly, when I was installing it, the message says that I need to
> configure it myself.  Can someone please help or provide guidelines as
> to
> how to configure it.
> 
> --
> Thanks
> 
> Nagrik

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: JVM crash issue

2009-04-23 Thread Dan Armbrust
JVM crashes seem to be a common issue lately.  We tried to move our
main apps from JRE 1.5 to 1.6 about 6 months ago, and had to give up
and revert because we couldn't find any 1.6 or early 1.7 JVM's that
were stable.  They all had random crashes on hardware that runs the
same software perfectly fine with a 1.5 JVM.  Personally, I think it's
because of Suns dismal care of java as a whole, lately.  Hopefully,
things will change for the better with the upcoming OpenJDK 1.7, or
with Oracle's takeover.Certainly couldn't get much worse.

But I would start JVM shopping.  Back to 1.5, or over to IBM's JVM, or
perhaps Apache Harmony.  At least they will make an effort to respond
to bug reports.

Good luck,

Dan

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Tomcat logs

2009-04-23 Thread Ducharme, Ugo
How can I get the maximum amount of log possible? Shall I use log level like 
org.level = ALL and com.level = ALL ? I feel tomcat is not verbose enough and I 
am looking for a switch (or something else) that would give me all the log I 
can.

Ugo Ducharme (x236)

 


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat migration 4.1.3 to 5.5.23: Tomcat5.5 searching servlet file in file system and reporting 404 error rather mapping in web.xml

2009-04-23 Thread Sriganesh Ananth
Chuck, you rock!!!

I changed the appBase to "/var/www" for Host, added "testapp" in the
Context docBase and restarted the tomcat and it worked!!!

I will work on migrating the Context elements to the META-INF folder
as suggested by you.

Again, thank you very much for your help on this and you have have a
wonderful day.

Regards
Sriganesh


On Thu, Apr 23, 2009 at 1:06 PM, Caldarale, Charles R
 wrote:
>> From: Sriganesh Ananth [mailto:sriganesh.anant...@gmail.com]
>> Subject: Re: Tomcat migration 4.1.3 to 5.5.23: Tomcat5.5 searching
>> servlet file in file system and reporting 404 error rather mapping in
>> web.xml
>
>>       > unpackWARs="true">
>
> The above is wrong; the appBase should be "/var/www".
>
>>         >                  directory="logs"  prefix="oss.com_log." suffix=".txt"
>>                 timestamp="true"/>
>
>  elements are not used in 5.5; remove both of them.
>
>>         >                  reloadable="false" crossContext="true">
>
> The above is wrong; docBase should be "testapp"; you must never have an empty 
> docBase.  A bug in prior levels of Tomcat occasionally caused something 
> useful to happen when you did that, but it was an accident.
>
> Note that putting  elements in server.xml is strongly discouraged; 
> the proper location is in a webapp's META-INF/context.xml file, or in 
> conf/Catalina/[host]/[appName].xml.  Also, if you're defining the default 
> webapp, it should be named ROOT.  Read the Tomcat docs:
> http://tomcat.apache.org/tomcat-5.5-doc/config/context.html
>
>  - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: customize HTTP Status 401 error page

2009-04-23 Thread Jill Han
Here is web.xml

  Faculty Resources
  

  FACRES
  *


  CN=FacultyStaff,OU=Groups,OU=EMP,DC=AC


  
BASIC
TESTING  
   
   
401
/error.html
   
  
  
CN=FacultyStaff,OU=Groups,OU=EMP,DC=AC
  

  
2



Yes, if it is run on Window, no credential window was prompted, but instead, 
the error.html
However, if it is run on Linux, credential window was prompted, but, if 
unsuccessful, or clicking "Cancel", 401 error message still show up. 
 was ignored.

Jill
-Original Message-
From: Christopher Schultz [mailto:ch...@christopherschultz.net] 
Sent: Thursday, April 23, 2009 2:55 PM
To: Tomcat Users List
Subject: Re: customize HTTP Status 401 error page

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jill,

On 4/23/2009 1:20 PM, Jill Han wrote:
> I still need helps.
> Here is the web.xml
> ...
> 
> BASIC
> TESTING  
>   
>  
>
> 401
> /error.html
>   
> ...
> The error.html is replaced the 401 error message, however there will be no 
> authentication window prompted, error.html is somehow loaded all the time.

What do your  elements look like?

Are you saying you are getting a 401 response but never being asked for
your credentials?

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

iEYEARECAAYFAknwx6UACgkQ9CaO5/Lv0PBfLACfU2OGHvHDUX0qeCeaIVoRoJz9
rO4AoK5hbI7c96Dz31J0ZCaOhLzgPcaS
=xKJK
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat migration 4.1.3 to 5.5.23: Tomcat5.5 searching servlet file in file system and reporting 404 error rather mapping in web.xml

2009-04-23 Thread Caldarale, Charles R
> From: Sriganesh Ananth [mailto:sriganesh.anant...@gmail.com]
> Subject: Re: Tomcat migration 4.1.3 to 5.5.23: Tomcat5.5 searching
> servlet file in file system and reporting 404 error rather mapping in
> web.xml

>unpackWARs="true">

The above is wrong; the appBase should be "/var/www".

>   directory="logs"  prefix="oss.com_log." suffix=".txt"
> timestamp="true"/>

 elements are not used in 5.5; remove both of them.

>   reloadable="false" crossContext="true">

The above is wrong; docBase should be "testapp"; you must never have an empty 
docBase.  A bug in prior levels of Tomcat occasionally caused something useful 
to happen when you did that, but it was an accident.

Note that putting  elements in server.xml is strongly discouraged; the 
proper location is in a webapp's META-INF/context.xml file, or in 
conf/Catalina/[host]/[appName].xml.  Also, if you're defining the default 
webapp, it should be named ROOT.  Read the Tomcat docs:
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html

 - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat migration 4.1.3 to 5.5.23: Tomcat5.5 searching servlet file in file system and reporting 404 error rather mapping in web.xml

2009-04-23 Thread Sriganesh Ananth
Chuck, Thank you for your reply.

I didn't copy 4.1 server.xml but instead build it fresh on 5.5
provided server.xml.

Following is the server.xml (removed comments and commented lines)
---


  
  
  
  
  

  





  

  












  
  




  









  




  
  

  



  




Following is the context.xml content:
---


WEB-INF/web.xml




Thank you again for your help.

Regards
Sriganesh


On Thu, Apr 23, 2009 at 12:35 PM, Caldarale, Charles R
 wrote:
>> From: Sriganesh Ananth [mailto:sriganesh.anant...@gmail.com]
>> Subject: Tomcat migration 4.1.3 to 5.5.23: Tomcat5.5 searching servlet
>> file in file system and reporting 404 error rather mapping in web.xml
>>
>> The issue is Tomcat 5.5.x looks for a servlet file under server's
>> physical file system and reporting HTTP 404 error rather than going to
>> the servlet mapping in web.xml.
>
> Post your server.xml file and the file containing the  element for 
> your webapp.  If you made the mistake of blindly copying your 4.1 server.xml 
> file to 5.5, throw away what you did and start over.  There are numerous 
> syntactic and semantic changes in 5.5 that are best handled by modifying the 
> default 5.5 server.xml file to suit your requirements rather than trying to 
> modify a 4.1 server.xml file to work with 5.5.
>
> I suspect you have an invalid  and  combination, but only if 
> you post that can we tell for sure.
>
>  - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: customize HTTP Status 401 error page

2009-04-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jill,

On 4/23/2009 1:20 PM, Jill Han wrote:
> I still need helps.
> Here is the web.xml
> ...
> 
> BASIC
> TESTING  
>   
>  
>
> 401
> /error.html
>   
> ...
> The error.html is replaced the 401 error message, however there will be no 
> authentication window prompted, error.html is somehow loaded all the time.

What do your  elements look like?

Are you saying you are getting a 401 response but never being asked for
your credentials?

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

iEYEARECAAYFAknwx6UACgkQ9CaO5/Lv0PBfLACfU2OGHvHDUX0qeCeaIVoRoJz9
rO4AoK5hbI7c96Dz31J0ZCaOhLzgPcaS
=xKJK
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Beginner: Installation Apache

2009-04-23 Thread Mark Thomas
Vinay Nagrik wrote:
> Dear Group,
> 
> I downloaded bianries fo Apache for my Windows platform on XP operating
> system.
> 
> I did not come across a statement that Apache runs on XP.  The site says
> that it runs on Vista.  Can somebody please tell me if it runs on Windows
> XP.

Really? It does? Where?

> Secondly, when I was installing it, the message says that I need to
> configure it myself.  Can someone please help or provide guidelines as to
> how to configure it.

http://tomcat.apache.org/tomcat-6.0-doc/

Mark



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat users meetup in London

2009-04-23 Thread Caldarale, Charles R
> From: Edward Bicker [mailto:g...@travelin.com]
> Subject: RE: Tomcat users meetup in London
> 
> I am up for fish 'n' chips at duggy's

I would love some authentic fish 'n' chips like what we used to get on High 
Street in Tring; haven't found anything comparable in this country.

Where's Duggy's, and do they serve beer for pid?

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



Re: Avoiding username/password being logged into localhost access logs

2009-04-23 Thread Mark Thomas
Dan Armbrust wrote:
> Sounds like a good enhancement request to me.  It's certainly
> reasonable that one should be able to ask Tomcat to never ever log a
> password in clear text.  In fact, it seems like that should be the
> default setting.

How is Tomcat meant to determine that data in the URL is a password and
needs to be filtered?

> I imagine there are all sorts of places that (rightfully) have
> policies against storing a clear text password anywhere.

The only reason you are seeing the password in the access logs appears
to be the fact that the application is including in the URL. No
authentication scheme provided by Tomcat does this. This is an
application issue (it should be using POST rather than GET) not a Tomcat
one.

Mark



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat migration 4.1.3 to 5.5.23: Tomcat5.5 searching servlet file in file system and reporting 404 error rather mapping in web.xml

2009-04-23 Thread Caldarale, Charles R
> From: Sriganesh Ananth [mailto:sriganesh.anant...@gmail.com]
> Subject: Tomcat migration 4.1.3 to 5.5.23: Tomcat5.5 searching servlet
> file in file system and reporting 404 error rather mapping in web.xml
> 
> The issue is Tomcat 5.5.x looks for a servlet file under server's
> physical file system and reporting HTTP 404 error rather than going to
> the servlet mapping in web.xml.

Post your server.xml file and the file containing the  element for 
your webapp.  If you made the mistake of blindly copying your 4.1 server.xml 
file to 5.5, throw away what you did and start over.  There are numerous 
syntactic and semantic changes in 5.5 that are best handled by modifying the 
default 5.5 server.xml file to suit your requirements rather than trying to 
modify a 4.1 server.xml file to work with 5.5.

I suspect you have an invalid  and  combination, but only if you 
post that can we tell for sure.

 - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Beginner: Installation Apache

2009-04-23 Thread Vinay Nagrik
Dear Group,

I downloaded bianries fo Apache for my Windows platform on XP operating
system.

I did not come across a statement that Apache runs on XP.  The site says
that it runs on Vista.  Can somebody please tell me if it runs on Windows
XP.

Secondly, when I was installing it, the message says that I need to
configure it myself.  Can someone please help or provide guidelines as to
how to configure it.

-- 
Thanks

Nagrik


Tomcat migration 4.1.3 to 5.5.23: Tomcat5.5 searching servlet file in file system and reporting 404 error rather mapping in web.xml

2009-04-23 Thread Sriganesh Ananth
Hi

I am experiencing a very peculiar issue when migrating from Apache
Tomcat 4.1.x (Apache 1.3.27) to 5.5.23 (Apache 2.2.3) on Red hat Linux
5.

The issue is Tomcat 5.5.x looks for a servlet file under server’s
physical file system and reporting HTTP 404 error rather than going to
the servlet mapping in web.xml. Tomcat 4.1.x doesn’t have this
problem. I am searching all support group from past many weeks and
still not able to resolve this issue.

Application Structure:
ROOT
--testapp
  ---test
  index.html
  WEB-INF
  ---classes
 ---HelloServlet.class

WEB-INF\web.xml configuration:
  
hello
HelloServlet
  

  
hello
/test/hello.do
  

Httpd.conf configuration:

DocumentRoot /var/www/testapp
Alias /test /var/www/testapp/
JkMount /*.do ajp13
JkMount /*.jsp ajp13


When I browse http://192.168.1.23/test/hello.do I get “HTTP Status 404
- /test/hello.do, the requested resource (/test/hello.do) is not
available”. In my synopsis when Tomcat 5.5.x looks at the URL it is
first going to a folder called ‘test’ and looking for a file called
‘hello.do’ in the folder rather than going into web.xml first. The
above structure and configuration just works just fine on Tomcat
4.1.x. Also, I didn’t see any mention of this change on the Tomcat
change logs.

I would really appreciate your help in resolving this issue on Tomcat 5.5.x.

Please Note:
1. If I change the url-pattern to /hello.do
in web.xml the servlet call works but changing the entire application
this way is beyond my scope.
2. I have tried a work around by defining sub-context in the
server.xml, this works fine except that the sessions defined in parent
app and sub-context app is not accessible to each other since both are
in the different contexts. I know that there are mechanisms available
to share the session between the different contexts but it is again
beyond my scope to change the application in this pattern.

Thank you for your help in advance.

Regards
Sriganesh

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Tomcat Manager App on a Closed Network

2009-04-23 Thread Jonathan Cochran

I have Apache Tomcat 6.0.18 installed on a server that is not connected to the 
Internet.  When I run the Tomcat Web Application Manager and click the number 
of Sessions to list them, the page eventually comes back with an error 
complaining that it can't find "xhtml1-transitional.dtd" at the www.w3.org web 
site.  Is there any way to get the Manager application to work on a closed 
network?

 

Thanks

_
Windows Live™ SkyDrive™: Get 25 GB of free online storage.  
http://windowslive.com/online/skydrive?ocid=TXT_TAGLM_WL_skydrive_042009

Re: Avoiding username/password being logged into localhost access logs

2009-04-23 Thread Dan Armbrust
Sounds like a good enhancement request to me.  It's certainly
reasonable that one should be able to ask Tomcat to never ever log a
password in clear text.  In fact, it seems like that should be the
default setting.

I imagine there are all sorts of places that (rightfully) have
policies against storing a clear text password anywhere.

Dan

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: First Tomcat install

2009-04-23 Thread Caldarale, Charles R
> From: Timothy Johnson [mailto:tjohn...@mosssavings.com]
> Subject: First Tomcat install
> 
> I am not sure if this is a tomcat error or not

It certainly does not appear to have anything to do with Tomcat itself, but 
rather with the configuration of webchat.  You'll have to consult that 
documentation and support for help.

 - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Headstart on "Resolving OOM-PermGen errors on webapp reload"

2009-04-23 Thread Mark Thomas
Christopher Schultz wrote:
> Mark,
> 
> On 4/21/2009 5:54 PM, Mark Thomas wrote:
>> 1. Find an app that you can't reload without OOME
>> 2. Get a profiler - I like Yourkit
>>Full disclosure: they give ASF committers a free copy
>> 3. Reload you app once
>> 4. Use the profiler to look for instances of WebappClassLoader
>> 5. Look for the one with the started attribute == false
> 
> I'm using YourKit and I have located the two WebappClassLoader object
> currently in memory. I'm using TC 5.5.26 and I don't see any "started"
> attribute. Is "started" in 6.x while 5.5 has something else? Or, do I
> have to dig deeper into the tree to find the "started" attribute?

Looks lie a difference between 1.5 and 1.6 JVMs. With 1.6 I can see the
primitives when I use object explorer. With 1.5 I can't.

Mark


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



First Tomcat install

2009-04-23 Thread Timothy Johnson
I am not sure if this is a tomcat error or not, I am not sure where to 
begin looking. I have setup my own tomcat server for openfire's webchat 
plugin. But when I try to use it I get the following error in my tomcat 
logs. Can some one please point me in the right direction.


Apr 23, 2009 9:51:17 AM org.jivesoftware.webchat.util.WebLog logError
WARNING: Error retrieving chat setting using key=no_help_text and 
workgroup=null

service-unavailable(503)
   at 
com.jivesoftware.smack.workgroup.user.Workgroup.getChatSettings(Unknown 
Source)
   at 
com.jivesoftware.smack.workgroup.user.Workgroup.getChatSettings(Unknown 
Source)
   at 
org.jivesoftware.webchat.util.SettingsManager.getChatSetting(SettingsManager.java:108)
   at 
org.jivesoftware.webchat.util.FormText.getTextSetting(FormText.java:128)
   at 
org.jivesoftware.webchat.util.FormText.getNoHelpText(FormText.java:103)
   at 
org.apache.jsp.email.offline_002dmail_jsp._jspService(offline_002dmail_jsp.java:58)

   at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
   at javax.servlet.http.HttpServlet.service(Unknown Source)
   at org.apache.jasper.servlet.JspServletWrapper.service(Unknown 
Source)
   at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown 
Source)

   at org.apache.jasper.servlet.JspServlet.service(Unknown Source)
   at javax.servlet.http.HttpServlet.service(Unknown Source)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown 
Source)
   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source)
   at 
org.jivesoftware.webchat.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:45)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown 
Source)
   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source)
   at 
org.jivesoftware.webchat.SetupFilter.doFilter(SetupFilter.java:92)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown 
Source)
   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source)
   at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown 
Source)
   at org.apache.catalina.core.StandardContextValve.invoke(Unknown 
Source)

   at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source)
   at org.apache.catalina.valves.ErrorReportValve.invoke(Unknown 
Source)
   at org.apache.catalina.core.StandardEngineValve.invoke(Unknown 
Source)
   at org.apache.catalina.connector.CoyoteAdapter.service(Unknown 
Source)

   at org.apache.coyote.http11.Http11Processor.process(Unknown Source)
   at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Unknown 
Source)

   at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(Unknown Source)
   at java.lang.Thread.run(Thread.java:619)

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: customize HTTP Status 401 error page

2009-04-23 Thread Jill Han
I still need helps.
Here is the web.xml
...

BASIC
TESTING  
  
 
   
401
/error.html
  
...
The error.html is replaced the 401 error message, however there will be no 
authentication window prompted, error.html is somehow loaded all the time.

Thanks,
Jill
-Original Message-
From: Christopher Schultz [mailto:ch...@christopherschultz.net] 
Sent: Thursday, April 23, 2009 10:18 AM
To: Tomcat Users List
Subject: Re: customize HTTP Status 401 error page

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jill,

You've hijacked your own thread. :(

On 4/23/2009 11:09 AM, Jill Han wrote:
> If using Basic authentication, the unsuccessful login, or just click
> "Cancel" button will trigger the 401 page.
<
> My question is 
> 1. is there a way to customize "cancel" action? So there will be no error 
> message prompted.

No.

> 2. Is there a way to customize tomcat HTTP Status 401 error message
> to a more user meaningful one?

Yes. See the section of web.xml that has  entries.

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

iEYEARECAAYFAknwhqwACgkQ9CaO5/Lv0PDMlwCfaUP6+zxHQPeY2aTAfnNg2vPs
CGsAn1VpRpeMpCps63lgXkS8nGS1FA61
=6j3U
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Headstart on "Resolving OOM-PermGen errors on webapp reload"

2009-04-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Mark,

On 4/21/2009 5:54 PM, Mark Thomas wrote:
> 1. Find an app that you can't reload without OOME
> 2. Get a profiler - I like Yourkit
>Full disclosure: they give ASF committers a free copy
> 3. Reload you app once
> 4. Use the profiler to look for instances of WebappClassLoader
> 5. Look for the one with the started attribute == false

I'm using YourKit and I have located the two WebappClassLoader object
currently in memory. I'm using TC 5.5.26 and I don't see any "started"
attribute. Is "started" in 6.x while 5.5 has something else? Or, do I
have to dig deeper into the tree to find the "started" attribute?

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

iEYEARECAAYFAknwosQACgkQ9CaO5/Lv0PCOaACfasn/yTePFbRAXzopZIX3UKYl
jysAnj7Thed2QQJGV2OTKX0b/aHkUQL2
=d3p2
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat shutsdown automatically

2009-04-23 Thread Peter Crowther
> From: Potri Raaja [mailto:potri.ra...@hotcourses.co.in]
> The below mentioned details are the error message from the
> hs_err_pid29022.log file, can you please look in to this and
> help me out to trace the exact issue.

The fault is happening in some native code in the Oracle driver 
(libocijdbc10.so).  I'm with Chuck, I'd try the native Java Oracle client and 
see whether the problem goes away.  Failing that, check with Oracle about any 
issues between their native client and your exact JVM version and environment?

> > Stack: [0x22e7f000,0x22f0),  sp=0x22efe9a8,  free space=510k
> > Native frames: (J=compiled Java code, j=interpreted, Vv=VM
> code, C=native
> > code)
> > C  [libocijdbc10.so+0x123e6]
> > C  [libocijdbc10.so+0xe248]
> > Java_oracle_jdbc_driver_T2CStatement_t2cDefineFetch+0x90
> > J
[...]

- Peter

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat shutsdown automatically

2009-04-23 Thread Potri Raaja

The below mentioned details are the error message from the
hs_err_pid29022.log file, can you please look in to this and help me out to
trace the exact issue.



Peter Crowther wrote:
> #
> # An unexpected error has been detected by HotSpot Virtual Machine:
> #
> #  SIGSEGV (0xb) at pc=0x2b0513e6, pid=29022, tid=586152864
> #
> # Java VM: Java HotSpot(TM) Server VM (1.5.0_14-b03 mixed mode)
> # Problematic frame:
> # C  [libocijdbc10.so+0x123e6]
> #
> 
> ---  T H R E A D  ---
> 
> Current thread (0x084378f8):  JavaThread "TP-Processor17" daemon
> [_thread_in_nat
> ive, id=29234]
> 
> siginfo:si_signo=11, si_errno=0, si_code=1, si_addr=0x
> 
> Registers:
> EAX=0x, EBX=0x2b05967c, ECX=0x0044, EDX=0x
> ESP=0x22efe9a8, EBP=0x22efea50, ESI=0x, EDI=0x001b4fe0
> EIP=0x2b0513e6, CR2=0x, EFLAGS=0x00010206
> 
> Top of Stack: (sp=0x22efe9a8)
> 0x22efe9a8:    2b05967c 297f333f 
> 0x22efe9b8:    00c4 2b04e00e 
> 0x22efe9c8:    00c4 22efeb54 22efeb58
> 0x22efe9d8:    22efeb60  22efeb68
> 0x22efe9e8:   2b05967c 1888b858 000a 18c98d58
> 0x22efe9f8:   18ca2a20 0031 1882fa58 0014
> 0x22efea08:   0028 22efeb70 001b4fe0 00c4
> 0x22efea18:    22efeb60  22efeb68 
> 
> Instructions: (pc=0x2b0513e6)
> 0x2b0513d6:   7f 58 eb 06 8d b6 00 00 00 00 81 e9 80 00 00 00
> 0x2b0513e6:   66 0f 7f 02 66 0f 7f 42 10 66 0f 7f 42 20 66 0f 
> 
> Stack: [0x22e7f000,0x22f0),  sp=0x22efe9a8,  free space=510k
> Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native
> code)
> C  [libocijdbc10.so+0x123e6]
> C  [libocijdbc10.so+0xe248] 
> Java_oracle_jdbc_driver_T2CStatement_t2cDefineFetch+0x90
> J 
> oracle.jdbc.driver.T2CStatement.t2cDefineFetch(JI[S[BII[Loracle/jdbc/driver/Accessor;[BI[CI[SI[J)I
> 
> Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
> J 
> oracle.jdbc.driver.T2CStatement.t2cDefineFetch(JI[S[BII[Loracle/jdbc/driver/Accessor;[BI[CI[SI[J)I
> J  oracle.jdbc.driver.T2CStatement.fetch()V
> J  oracle.jdbc.driver.OracleResultSetImpl.next()Z
> v  ~I2CAdapter
> j 
> cm.servlet.CourseServlet.displayDataTable(Ljavax/servlet/http/HttpSession;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljavax/serv
> let/http/HttpServletRequest;)V+725
> j 
> cm.servlet.CourseServlet.doGet(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+2468
> j 
> javax.servlet.http.HttpServlet.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+35
> j 
> javax.servlet.http.HttpServlet.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+30
> j 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+374
> j 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+101
> v  ~C2IAdapter
> J 
> org.apache.catalina.core.StandardWrapperValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V
> J 
> org.apache.catalina.core.StandardContextValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V
> v  ~I2CAdapter
> j 
> org.apache.catalina.core.StandardHostValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+64
> v  ~C2IAdapter
> J 
> org.apache.catalina.core.StandardEngineValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V
> J 
> org.apache.catalina.connector.CoyoteAdapter.service(Lorg/apache/coyote/Request;Lorg/apache/coyote/Response;)V
> J 
> org.apache.jk.server.JkCoyoteHandler.invoke(Lorg/apache/jk/core/Msg;Lorg/apache/jk/core/MsgContext;)I
> J 
> org.apache.jk.common.HandlerRequest.invoke(Lorg/apache/jk/core/Msg;Lorg/apache/jk/core/MsgContext;)I
> J 
> org.apache.jk.common.ChannelSocket.processConnection(Lorg/apache/jk/core/MsgContext;)V
> v  ~I2CAdapter
> j 
> org.apache.jk.common.ChannelSocket$SocketConnection.runIt([Ljava/lang/Object;)V+8
> j  org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run()V+167
> j  java.lang.Thread.run()V+11
> v  ~StubRoutines::call_stub
> 
> ---  P R O C E S S  ---
> 
> Java Threads: ( => current thread )
>   0xbbdffc68 JavaThread "http-8080-3" daemon [_thread_blocked, id=32498]
>   0x13433608 JavaThread "http-8080-2" daemon [_thread_blocked, id=32497]
>   0x12f0cf78 JavaThread "http-8080-1" daemon [_thread_blocked, id=32496]
>   0x08ee0818 JavaThread "TP-Processor28" daemon [_thread_blocked,
> id=29304]
>   0x0843fec8 JavaThread "TP-Processor27" daemon [_thread_blocked,
> id=29303]
>   0x08525680 JavaThread "TP-Processor26" daemon [_thread_in_native,
> id=29302]
>   0x084ea908 JavaThread "TP-Processor25" daemon [_thread_blocked,
> id=29301]
>   0x08e66150 JavaThread "TP-Processor24" daemon [_thread_blocked,
> id=29289]
>  

RE: customize HTTP Status 401 error page

2009-04-23 Thread Jill Han
The correct tag should be   

401
/error401.jsp
  

Thanks,

-Original Message-
From: Christopher Schultz [mailto:ch...@christopherschultz.net] 
Sent: Thursday, April 23, 2009 10:18 AM
To: Tomcat Users List
Subject: Re: customize HTTP Status 401 error page

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jill,

You've hijacked your own thread. :(

On 4/23/2009 11:09 AM, Jill Han wrote:
> If using Basic authentication, the unsuccessful login, or just click
> "Cancel" button will trigger the 401 page.
<
> My question is 
> 1. is there a way to customize "cancel" action? So there will be no error 
> message prompted.

No.

> 2. Is there a way to customize tomcat HTTP Status 401 error message
> to a more user meaningful one?

Yes. See the section of web.xml that has  entries.

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

iEYEARECAAYFAknwhqwACgkQ9CaO5/Lv0PDMlwCfaUP6+zxHQPeY2aTAfnNg2vPs
CGsAn1VpRpeMpCps63lgXkS8nGS1FA61
=6j3U
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: customize HTTP Status 401 error page

2009-04-23 Thread Jill Han
Would you give some instructions on doing that?
I tried to put /error.html in application own web.xml
And tomcat conf/web.xml, they won't work. The HTTP Status 401 error page is 
still used.

Thanks,
Jill

-Original Message-
From: Christopher Schultz [mailto:ch...@christopherschultz.net] 
Sent: Thursday, April 23, 2009 10:18 AM
To: Tomcat Users List
Subject: Re: customize HTTP Status 401 error page

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jill,

You've hijacked your own thread. :(

On 4/23/2009 11:09 AM, Jill Han wrote:
> If using Basic authentication, the unsuccessful login, or just click
> "Cancel" button will trigger the 401 page.
<
> My question is 
> 1. is there a way to customize "cancel" action? So there will be no error 
> message prompted.

No.

> 2. Is there a way to customize tomcat HTTP Status 401 error message
> to a more user meaningful one?

Yes. See the section of web.xml that has  entries.

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

iEYEARECAAYFAknwhqwACgkQ9CaO5/Lv0PDMlwCfaUP6+zxHQPeY2aTAfnNg2vPs
CGsAn1VpRpeMpCps63lgXkS8nGS1FA61
=6j3U
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Apache HTTP before Tomcat

2009-04-23 Thread David kerber

Bart Ophelders wrote:
Hi, 


If I put an Apache HTTP server in front of Tomcat, will this influence 
performance?
  

Yes, but probably not in the way you are expecting.

D

Thanks in advance!

Bart Ophelders

  




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Apache HTTP before Tomcat

2009-04-23 Thread André Warnier

Peter Crowther wrote:

From: Bart Ophelders [mailto:bartopheld...@hotmail.com]
If I put an Apache HTTP server in front of Tomcat, will this
influence performance?


Yes.

:-)

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: customize HTTP Status 401 error page

2009-04-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jill,

You've hijacked your own thread. :(

On 4/23/2009 11:09 AM, Jill Han wrote:
> If using Basic authentication, the unsuccessful login, or just click
> "Cancel" button will trigger the 401 page.
<
> My question is 
> 1. is there a way to customize "cancel" action? So there will be no error 
> message prompted.

No.

> 2. Is there a way to customize tomcat HTTP Status 401 error message
> to a more user meaningful one?

Yes. See the section of web.xml that has  entries.

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

iEYEARECAAYFAknwhqwACgkQ9CaO5/Lv0PDMlwCfaUP6+zxHQPeY2aTAfnNg2vPs
CGsAn1VpRpeMpCps63lgXkS8nGS1FA61
=6j3U
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: JVM crash issue

2009-04-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jochen,

On 4/23/2009 4:14 AM, jochen wrote:
> Thanks for Peter,  the hardware is the same box with production
> machine

Do you mean the same physical machine, or a machine with identical
specs? If the former, that's bad. If the latter, that's good, but
irrelevant. You might just have drawn the short straw on some RAM.

> and those type of machines works very well for serving large-load
> internet service, and the hardware itself already hosted very well
> for half year before I deployed new functions to it.

You wouldn't be the first one to experience hardware failure after
things were running well. Seriously, if you can't blame this on your JNI
code, just test the hardware. You can spend months looking at code and
finding nothing if your hardware has gone bad. Do yourself a favor and
run a hardware test -- you can even run it overnight and sleep while the
work is being done for you :)

> Again the new functions worked fine for several days, and crashed
> twice. It seemed the crashes always happen at the same point of those
> new function code, not in xwork2.

Interesting.

> Your reply reminds me on the 
> "DefaultActionInvocation.invoke()Ljava/lang/String", maybe it is the
> fault of JNI code, which was invoked by xwork2, to call some native C
> code to finish something jobs. I'll try to reproduce it and confirm
> if it's the JNI fault.

I didn't see any JNI frames in the stack dump, but it's possible that
you have JNI code that is mangling something in memory and the JVM later
goes in and tries to de-reference it, and you get a SIGSEGV.

Are you actually running any of your own native code?

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

iEYEARECAAYFAknwhlwACgkQ9CaO5/Lv0PBkXwCgmx7aYdrf8q7JZ5xuxvTyYNDs
LvoAn3kbaT69rSiBhe4RAOypSlQffxNi
=m2r0
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Apache HTTP before Tomcat

2009-04-23 Thread Rainer Jung
On 23.04.2009 16:13, Bart Ophelders wrote:
> Hi, 
> 
> If I put an Apache HTTP server in front of Tomcat, will this influence 
> performance?
> 
> Thanks in advance!

Latency goes up somewhere in the two digit millisecond range. Whether
that matters depends on your use cases.

For real life applications performance is dominated by application code
and neighbouring systems (databases, mainframe etc.). Since Apache is
very scalable, in real life cases throughput will not change.

When doing tests, always make a distinction between latency (how long do
requests take) and throughput (how many requests per second are
possible), and keep your investigations focused on the non trivial part
(i.e. not measuring static content).

Finally: your total ressource usage (CPU, Memory) will increase
(Apache+Tomcat).

Regards,

Rainer

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat users meetup in London

2009-04-23 Thread Pid
Mark Thomas wrote:
> Just trying to gauge interest at this point. How many folks would be
> interested in some form of meetup in London, UK?
> 
> If so, what would you want to do? Discuss something, have a presentation
> on something, hack up some code to do something, just have a few beers,
> something else?

+1 for beer.

p



> Mark
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
> 


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




customize HTTP Status 401 error page

2009-04-23 Thread Jill Han
If using Basic authentication, the unsuccessful login, or just click "Cancel" 
button will trigger the 401 page.
My question is 
1. is there a way to customize "cancel" action? So there will be no error 
message prompted.
2. Is there a way to customize tomcat HTTP Status 401 error message to a more 
user meaningful one?

Thanks,
Jill


WebApp not loading, how to find out why?

2009-04-23 Thread Ducharme, Ugo
I have a tomcat6 server that acts normally but refuse to load one of our 
webapps. I can't seem to find out why.

Do you have recommendations on how to find out why? I looked at the server 
using JMX and JConsole and I can see it under the WebModule node but none of 
its servlets are loaded, I don't see it in the JSP monitor, it is not under the 
manager node, etc. My conclusion is: it tried to load it but a problem occurred.

I tried to log stuff (I have put org.apache.catalina level to ALL) but I see no 
clues in the log. Is there something else I can log?

I could start Tomcat in debug mode (using  JPDA) but where should I put a 
breakpoint?


Ugo Ducharme (x236)

 


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat users meetup in London

2009-04-23 Thread Edward Bicker
I am up for fish 'n' chips at duggy's

-Original Message-
>From: "Caldarale, Charles R" 
>Sent: Apr 23, 2009 9:17 AM
>To: Tomcat Users List 
>Subject: RE: Tomcat users meetup in London
>
>> From: Mark Thomas [mailto:ma...@apache.org]
>> Subject: Tomcat users meetup in London
>> 
>> Just trying to gauge interest at this point. How many folks would be
>> interested in some form of meetup in London, UK?
>
>If it were next week, I'd be up for it - putting faces on names would be 
>enlightening.  I think my wife would justifiably frown on anything that even 
>remotely sounds like it's associated with work, so a social event would be 
>best.  Pseudo-burgers at a Wimpy Bar?  (Do they still exist?)
>
> - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>For additional commands, e-mail: users-h...@tomcat.apache.org
>


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat users meetup in London

2009-04-23 Thread Mikolaj Rydzewski

Mark Thomas wrote:

Just trying to gauge interest at this point. How many folks would be
interested in some form of meetup in London, UK?

If so, what would you want to do? Discuss something, have a presentation
on something, hack up some code to do something, just have a few beers,
something else?
  

Is anybody willing to appear on GeeCon in Cracow, Poland?
http://www.geecon.org/

--
Mikolaj Rydzewski 


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: [OT] Headstart on "Resolving OOM-PermGen errors on webapp reload"

2009-04-23 Thread Pid
Caldarale, Charles R wrote:
>> From: André Warnier [mailto:a...@ice-sa.com]
>> Subject: Re: Headstart on "Resolving OOM-PermGen errors on webapp
>> reload"
>>
>> You'll probably want mountains, and chocolate. Switzerland ?
> 
> London.  $ vs pound is pretty decent right now.  It's been 45+ years since 
> I've been on the Tube...

If you fancy a beer...

p



>> I recently came across this article :
>> http://en.wikipedia.org/wiki/Adaptive_Replacement_Cache
> 
> I don't see the parallels; nothing in GC is LRU based that I can think of.
> 
>  - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Headstart on "Resolving OOM-PermGen errors on webapp reload"

2009-04-23 Thread János Löbb


are there any good primers on eden,


Stanislaw Lem : Eden :)

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Apache HTTP before Tomcat

2009-04-23 Thread Peter Crowther
> From: Bart Ophelders [mailto:bartopheld...@hotmail.com]
> If I put an Apache HTTP server in front of Tomcat, will this
> influence performance?

Yes.

- Peter

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Apache HTTP before Tomcat

2009-04-23 Thread Bart Ophelders

Hi, 

If I put an Apache HTTP server in front of Tomcat, will this influence 
performance?

Thanks in advance!

Bart Ophelders


RE: Tomcat users meetup in London

2009-04-23 Thread Caldarale, Charles R
> From: Mark Thomas [mailto:ma...@apache.org]
> Subject: Tomcat users meetup in London
> 
> Just trying to gauge interest at this point. How many folks would be
> interested in some form of meetup in London, UK?

If it were next week, I'd be up for it - putting faces on names would be 
enlightening.  I think my wife would justifiably frown on anything that even 
remotely sounds like it's associated with work, so a social event would be 
best.  Pseudo-burgers at a Wimpy Bar?  (Do they still exist?)

 - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat shutsdown automatically

2009-04-23 Thread Caldarale, Charles R
> From: Potri Raaja [mailto:potri.ra...@hotcourses.co.in]
> Subject: Tomcat shutsdown automatically
> 
> # An unexpected error has been detected by HotSpot Virtual Machine:
> #  SIGSEGV (0xb) at pc=0x2b0513e6, pid=29022, tid=586152864

Thoroughly check your hardware; RAM errors can cause this.

> # C  [libocijdbc10.so+0x123e6]

Could be caused by bugs in Oracle's native driver; try using the pure Java 
version instead.  In lieu of that, check with Oracle or Sun... oh, wait...

 - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat shutsdown automatically

2009-04-23 Thread Peter Crowther
> From: Potri Raaja [mailto:potri.ra...@hotcourses.co.in]
>   Our Tomcat application server is throwing the below
> mentioned eror and
> it shutsdown automatically. This happens occasionally i.e.,
> once or twice in
> a week.Can you please suggest us with a solution to solve this issue.
[...]
> # An error report file with more information is saved as
> hs_err_pid29022.log

Read the error log.  See if it gives you any more information.  At the very 
least, it'll tell you what the JVM was doing at the time.

- Peter

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Tomcat shutsdown automatically

2009-04-23 Thread Potri Raaja

Hi,

  Our Tomcat application server is throwing the below mentioned eror and
it shutsdown automatically. This happens occasionally i.e., once or twice in
a week.Can you please suggest us with a solution to solve this issue.

# An unexpected error has been detected by HotSpot Virtual Machine:
#  SIGSEGV (0xb) at pc=0x2b0513e6, pid=29022, tid=586152864
# Java VM: Java HotSpot(TM) Server VM (1.5.0_14-b03 mixed mode)
# Problematic frame:
# C  [libocijdbc10.so+0x123e6]
# An error report file with more information is saved as hs_err_pid29022.log
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp


Thanks in advance.
Potri Raaja.M.

-- 
View this message in context: 
http://www.nabble.com/Tomcat-shutsdown-automatically-tp23196336p23196336.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Tomcat users meetup in London

2009-04-23 Thread Mark Thomas
Just trying to gauge interest at this point. How many folks would be
interested in some form of meetup in London, UK?

If so, what would you want to do? Discuss something, have a presentation
on something, hack up some code to do something, just have a few beers,
something else?

Mark


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Steps to configure Tomcat 5.0 with PKCS#11 support

2009-04-23 Thread Rajat Gupta05
Hi,

We are using tomcat 5.0.28 and JDK 1.5.10. Now, there is some requirement to 
use tomcat with PKCS#11 support.
Initial study shows that a hardware token would be needed for this.


1)  Is minimum tomcat version 5.5 is must for this?

2)  Is this hardware requirement is mandatory? Or any other way is possible?

3)   what additional changes would be required at server.xml level for 
PKCS#11 support.

Thanks


 CAUTION - Disclaimer *
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are 
not 
to copy, disclose, or distribute this e-mail or its contents to any other 
person and 
any such actions are unlawful. This e-mail may contain viruses. Infosys has 
taken 
every reasonable precaution to minimize this risk, but is not liable for any 
damage 
you may sustain as a result of any virus in this e-mail. You should carry out 
your 
own virus checks before opening the e-mail or attachment. Infosys reserves the 
right to monitor and review the content of all messages sent to or from this 
e-mail 
address. Messages sent to or from this e-mail address may be stored on the 
Infosys e-mail system.
***INFOSYS End of Disclaimer INFOSYS***


Re: JVM crash issue

2009-04-23 Thread jochen
Thanks for Peter,  the hardware is the same box with production machine, and
those type of machines works very well for serving large-load internet
service, and the hardware itself already hosted very well for half year
before I deployed new functions to it.  Again the new functions worked fine
for several days, and crashed twice. It seemed the crashes always happen at
the same point of those new function code, not in xwork2.
Your reply reminds me on the
"DefaultActionInvocation.invoke()Ljava/lang/String", maybe it is the fault
of JNI code, which was invoked by xwork2, to call some native C code to
finish something jobs. I'll try to reproduce it and confirm if it's the JNI
fault. thanks.

Best regards,
Jochen

On Thu, Apr 23, 2009 at 2:36 PM, Peter Crowther  wrote:

> > From: jochen [mailto:songzhou...@gmail.com]
> > I deployed an inhouse application in Tomcat 6.0 and I
> > experienced random JVM crashes for two weeks.
>
> Are you *absolutely certain* your hardware is good?  We've had several
> reports of JVM crashes on this list where the real problem is faulty
> hardware - usually bad RAM.  It's far more common than most people realise.
>  Test by running the application on different hardware.
>
> [...]
> > Native frames: (J=compiled Java code, j=interpreted, Vv=VM
> > code, C=native code)
> > V  [libjvm.so+0x3678c8]
> > Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
> > v  ~BufferBlob::Interpreter
> [...]
> > java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/
> > Object;)Ljava/lang/Object;
> > v  ~BufferBlob::Interpreter
> > J
> > com.opensymphony.xwork2.DefaultActionInvocation.invoke()Ljava/
> lang/String;
> [...]
>
> The code that is closest to the crash is this OpenSymphony code, which is
> then invoking something by reflection when the crash happens.
>
> Do the crashes always happen at the same point in the code?  If so, I'd ask
> OpenSymphony :-).  If not, I suspect bad hardware - but you might want to
> analyse several crash dumps to look for common factors.
>
>- Peter
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: OCI and Realm Problem

2009-04-23 Thread Andrea De Gaetano



Christopher Schultz-2 wrote:
> 
> 
> Are you running a 64-bit JVM? How about the native portion of the Oracle
> library? Is that 32-bit or 64-bit?
> 
> 

It was a 64 bit enviroment... 
I tried the same application on another enviroment and the problem doesn't
appear.
I don't know what it is the problem with that installation but it's not my
problem.
Thanks a lot for your help.


-- 
View this message in context: 
http://www.nabble.com/OCI-and-Realm-Problem-tp23079428p23192012.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org