Re: very slow class loading on initial JSP/servlet request after restart

2009-02-25 Thread Mark Thomas
Sam Hokin wrote: Mark Thomas wrote: Sam Hokin wrote: Thanks, Chris. I ran e2fsck with the -c option, which runs badblocks, when I tested it earlier. And I just ran badblocks again - 0 bad blocks found. I wish I could fix this by simply as swapping out a bad disk (notwithstanding Andre's

Re: very slow class loading on initial JSP/servlet request after restart

2009-02-25 Thread Pieter Temmerman
Thanks, Juha. Actually Pieter suggested it a little while ago, and I've been trying to get some information out of strace. The best I can do is to put strace in front of the java command that's inside catalina.sh. That's the command that shows with ps -ef when Tomcat is running. BUT,

Using SSL tomcat

2009-02-25 Thread hevoila
Hello Apache tomcat team, I've a tomcat 5.5 and jdk1.5.0_16 install on a windows 2003. (NB: jdk is install on D: and a jre on C:, but the JAVA_HOME is define to d:) I've build a auto-sign jks certificate. (following the http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html) I've setup in

Re: mod_jk not working as expected - is there a bug??

2009-02-25 Thread Rainer Jung
On 25.02.2009 02:47, Mohit Anchlia wrote: In httpd conf I just see JkMount and no other directive. I searched for Jk. There should be others as well, for instance JkWorkersFile to point to your workers.properties. The names of the directives are case insensitive, they can also be in files

Re: mod_jk

2009-02-25 Thread Rainer Jung
On 25.02.2009 03:12, ilndinesh wrote: But if you have only one Tomcat to send requests to, then all this tells you is that this Tomcat is not responding. So now what do you do ? In this case, I want apache to treat the request as DECLINED by mod_jk, so that if we put some static content in

Re: tomcat webapp FORM authentication problem

2009-02-25 Thread Alexander Soudakov
Thanks. I thought it should be something stupid and obvious... Here we are. Embrassing, but I guess I deserved that. Everything works now, I after I put the resources outside the protected area. And from now on, I will treat my browser with more respect, and I will give back its cache and

TWO Axis web services listening on different ports

2009-02-25 Thread marcopb
Hi all. All my web services are currently available on standard tomcat port: 8080 I need to expose one of those web services to another company and I would like to use, for example, 8085 port. Is it possible ? How ? There is no problem to stop Tomcat instance for all web services (8080 and

Re: Tomcat error messages sent to client browsesr

2009-02-25 Thread Tim Funk
Tomcat out of the box doesn't provide a way to suppress the stack traces for those errors. Like your post said, you need to use web.xml to configure your error pages. -Tim Edao, Aliye wrote: Dear all, I am trying to find out if there is an alternative way of telling Tomcat not to send

Re: very slow class loading on initial JSP/servlet request after restart

2009-02-25 Thread Tim Funk
While I am late to this ... Is this an accurate summary? - Slow re-load on a server - Server is a production server - Other servers are OK so it can only be reproduced on production server - Initial looks at network seem to be no network activity - There seems to be a hint at File.exists()

RE: TWO Axis web services listening on different ports

2009-02-25 Thread Caldarale, Charles R
From: marcopb [mailto:marc...@interfree.it] Subject: TWO Axis web services listening on different ports Is there any xml tag to let one Tomcat instance listen to multiple port ? Just configure an additional Connector for the desired port:

RE: Using SSL tomcat

2009-02-25 Thread Caldarale, Charles R
From: hevo...@free.fr [mailto:hevo...@free.fr] Subject: Using SSL tomcat I've setup in server.xml file a listen port to 80 and define a redirectPort to 443. I've also activate and setup ssl section, and adding keystoreFile=D:\myfolder\mycert.keystore keystorePass=x and changing 443

how

2009-02-25 Thread nicumarius
what should I do to not use port number when writting the address of a page on the Apache server? -- View this message in context: http://www.nabble.com/how-tp22203518p22203518.html Sent from the Tomcat - User mailing list archive at Nabble.com.

Re: not using the port number in the address???

2009-02-25 Thread Mihamina Rakotomandimby (R12y)
nicumarius wrote: what should I do to not use port number when writting the address of a page on the Apache server? Make your web server listen to port #80. It's the default HTTP port. -- Chef de projet chez Vectoris http://www.google.com/search?q=mihamina+rakotomandimby System: xUbuntu 8.10

Re: not using the port number in the address???

2009-02-25 Thread David Smith
Bind your server to port 80. nicumarius wrote: what should I do to not use port number when writting the address of a page on the Apache server? --David - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For

tomcat restart remotely

2009-02-25 Thread Laura Bartolomé
Hi We have Tomcat 6.0 installed on Windows 2003 Server and we want to restart apache tomcat service remotely but in a secure way... some ideas? In the same server we have IIS + .NET installed... Thanks a lot Laura - To

RE: how

2009-02-25 Thread Caldarale, Charles R
From: nicumarius [mailto:nicumar...@yahoo.com] Subject: how what should I do to not use port number when writting the address of a page on the Apache server? http://www.catb.org/~esr/faqs/smart-questions.html - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE

RE: tomcat restart remotely

2009-02-25 Thread Caldarale, Charles R
From: Laura Bartolomé [mailto:la...@secways.com] Subject: tomcat restart remotely We have Tomcat 6.0 installed on Windows 2003 Server and we want to restart apache tomcat service remotely but in a secure way... Logging in via Remote Desktop Connection is probably the simplest; are you

Re: tomcat restart remotely

2009-02-25 Thread Piller Sébastien
ssh is the most common way to manage a remote server. But under windows :aie: ;) Laura Bartolomé a écrit : Hi We have Tomcat 6.0 installed on Windows 2003 Server and we want to restart apache tomcat service remotely but in a secure way... some ideas? In the same server we have IIS +

Re: not using the port number in the address???

2009-02-25 Thread nicumarius
David Smith-2 wrote: Bind your server to port 80. nicumarius wrote: what should I do to not use port number when writting the address of a page on the Apache server? --David - To unsubscribe, e-mail:

Re: not using the port number in the address???

2009-02-25 Thread nicumarius
David Smith-2 wrote: Bind your server to port 80. nicumarius wrote: what should I do to not use port number when writting the address of a page on the Apache server? --David - To unsubscribe, e-mail:

Re: tomcat restart remotely

2009-02-25 Thread Laura Bartolomé
Yes, I don't want to give acces via RDP with these permissions... Caldarale, Charles R escribió: From: Laura Bartolomé [mailto:la...@secways.com] Subject: tomcat restart remotely We have Tomcat 6.0 installed on Windows 2003 Server and we want to restart apache tomcat service remotely but in

Re: tomcat restart remotely

2009-02-25 Thread Gabor 'Morc' KORMOS
www.freesshd.com I could recommend as an SSH server for Windows. I used it a few times, it's OK. Then you can use net start and stop to do it. Morc. On 25/02/2009 15:30, Piller Sébastien wrote: ssh is the most common way to manage a remote server. But under windows :aie: ;) Laura

Re: tomcat restart remotely

2009-02-25 Thread Laura Bartolomé
well, under windows I can have ssh with cygwin without problems but I don't know if I'll be able to restart the service in this way Piller Sébastien escribió: ssh is the most common way to manage a remote server. But under windows :aie: ;) Laura Bartolomé a écrit : Hi We have Tomcat

Re: tomcat restart remotely

2009-02-25 Thread Piller Sébastien
Where will be the problem? If you can run the startup.bat and shutdown.bat, then you won't have any problem. I do it from a looong time (under linux) and never had a problem. Laura Bartolomé a écrit : well, under windows I can have ssh with cygwin without problems but I don't know if I'll

Re: tomcat restart remotely

2009-02-25 Thread Laura Bartolomé
My problem was I haven't thought before! :) I'm going to test it right now Thanks a lot! Piller Sébastien escribió: Where will be the problem? If you can run the startup.bat and shutdown.bat, then you won't have any problem. I do it from a looong time (under linux) and never had a

RE: tomcat restart remotely

2009-02-25 Thread Caldarale, Charles R
From: Laura Bartolomé [mailto:la...@secways.com] Subject: Re: tomcat restart remotely My problem was I haven't thought before! :) I'm going to test it right now I fail to see any difference between using Remote Desktop vs SSH in this situation; whatever account you log in with will require

Re: not using the port number in the address???

2009-02-25 Thread David Smith
nicumarius wrote: David Smith-2 wrote: Bind your server to port 80. nicumarius wrote: what should I do to not use port number when writting the address of a page on the Apache server? --David - To

Re: not using the port number in the address???

2009-02-25 Thread Mihamina Rakotomandimby (R12y)
David Smith wrote: Since you haven't let us know anything about your server setup, we can only suggest very general things. Port 80 is the well known port for HTTP protocol and the one your browser assumes when you don't type it in the address bar. By the way, someone playing with Tomcat

Re: not using the port number in the address???

2009-02-25 Thread Rusty Wright
Sometimes people people without any swimming lessons get thrown into the deep end of the pool. Given the economy and layoffs, we'll probably see it more often. Mihamina Rakotomandimby (R12y) wrote: David Smith wrote: Since you haven't let us know anything about your server setup, we can

RE: tomcat restart remotely

2009-02-25 Thread Martin Gainty
install ssh on your server with ssh2admin.exe https://www.ssh.com/support/documentation/online/ssh/winadminguide/40/Windows_Server_Graphical_Configuration_Utility.html#indexdef-91 HTH Martin __ Disclaimer and confidentiality note Everything in this

Re: mod_jk not working as expected - is there a bug??

2009-02-25 Thread János Löbb
I am not sure the stickiness should be attached to the tc worker. I would rather do it for the the real workers level, that is at appfe[1234]. Consider also worker.appfe[1234].sticky_session_force = False for each appfe[1234] worker. János On Feb 24, 2009, at 8:47 PM, Mohit Anchlia

Re: mod_jk not working as expected - is there a bug??

2009-02-25 Thread Mohit Anchlia
you are right there is a mod-jk.conf. So given my workers.properties file what should I change so that mod_jk detects that app server is down before attempting to send the request. Shouldn't retries in workers.properties try to connect to some other app server instead. Here is mod-jk.conf #

Re: Using SSL tomcat

2009-02-25 Thread hevoila
Hello Chuck, I don't understand why i have an WARNING: A docBase D:\tomcat\webapps\mywebapp inside the host appBase has been specified In my web application mywebapp.xml i've defined a context : Context path=/mywebapp docBase=mywebapp debug=99 reloadable=true ... But, i think tomcat ignore

RE: Using SSL tomcat

2009-02-25 Thread Caldarale, Charles R
From: hevo...@free.fr [mailto:hevo...@free.fr] Subject: Re: Using SSL tomcat I don't understand why i have an WARNING: A docBase D:\tomcat\webapps\mywebapp inside the host appBase has been specified Because you have specified attributes that are not allowed in your Context element. In my

Re: not using the port number in the address???

2009-02-25 Thread David Smith
Mihamina Rakotomandimby (R12y) wrote: David Smith wrote: Since you haven't let us know anything about your server setup, we can only suggest very general things. Port 80 is the well known port for HTTP protocol and the one your browser assumes when you don't type it in the address bar. By

Getting PHP to work on Tomcat

2009-02-25 Thread michel
I am running Tomcat (finally got it set up!) , and I would like to run some PHP software on it also. I tried Quercus and ran into some bugs, seemingly because the Quercus implementation isn't complete. Has anybody really gotten a reliable PHP going on Tomcat? Thanks!

Re: mod_jk not working as expected - is there a bug??

2009-02-25 Thread Rainer Jung
On 25.02.2009 16:50, János Löbb wrote: I am not sure the stickiness should be attached to the tc worker. I would rather do it for the the real workers level, that is at appfe[1234]. Consider also worker.appfe[1234].sticky_session_force = False for each appfe[1234] worker. The page

Re: mod_jk not working as expected - is there a bug??

2009-02-25 Thread Rainer Jung
On 25.02.2009 17:10, Mohit Anchlia wrote: you are right there is a mod-jk.conf. So given my workers.properties file what should I change so that mod_jk detects that app server is down before attempting to send the request. Shouldn't retries in workers.properties try to connect to some other app

Re: Getting PHP to work on Tomcat

2009-02-25 Thread Victor H De la Luz
On Wed, Feb 25, 2009 at 1:59 PM, michel compu...@videotron.ca wrote: I am running Tomcat (finally got it set up!) , and I would like to run some PHP software on it also. I tried Quercus and ran into some bugs, seemingly because the Quercus implementation isn't complete. Has anybody really

Re: tomcat restart remotely

2009-02-25 Thread André Warnier
Caldarale, Charles R wrote: From: Laura Bartolomé [mailto:la...@secways.com] Subject: Re: tomcat restart remotely My problem was I haven't thought before! :) I'm going to test it right now As far as I know, given the appropriate permissions for the account you use to do this, you can also

Re: Using SSL tomcat

2009-02-25 Thread hevoila
Done ! Thanks you very much, it's work fine now. No, i'm not using APR, that's why, it doesn't work before. You're my saviour Charles. To ending my setup. Do you know how to redirect the http client on https? Thanks again, Kings regards, Hevoila - Mail Original - De: Charles R

Re: very slow class loading on initial JSP/servlet request after restart

2009-02-25 Thread André Warnier
Mark Thomas wrote: Sam Hokin wrote: Mark Thomas wrote: Sam Hokin wrote: [...] My thinking is if we can reduce the scope of the problem to importing a single class, we can then separate out that class and reduce the code in it bit by bit until we have the bare minimum that causes the

Re: very slow class loading on initial JSP/servlet request after restart

2009-02-25 Thread Sam Hokin
Tim Funk wrote: While I am late to this ... Is this an accurate summary? - Slow re-load on a server - Server is a production server - Other servers are OK so it can only be reproduced on production server - Initial looks at network seem to be no network activity - There seems to be a hint at

RE: Using SSL tomcat

2009-02-25 Thread Caldarale, Charles R
From: hevo...@free.fr [mailto:hevo...@free.fr] Subject: Re: Using SSL tomcat Do you know how to redirect the http client on https? That's documented in the servlet spec, section 12.7. You need to specify a transport-guarantee of CONFIDENTIAL (case matters) for the protected resources. -

Re: very slow class loading on initial JSP/servlet request after restart

2009-02-25 Thread Sam Hokin
Pieter Temmerman wrote: Try this strace command: strace -f -etrace=\!futex,gettimeofday,clock_gettime -p PID_OF_TOMCAT_JAVA where PID_OF_TOMCAT_JAVA is the PID of your Tomcat, duh! :) Thanks! That certainly did the trick. The first time I ran strace against the Tomcat process, it brought

Question

2009-02-25 Thread koppisetty bhavani naga satish
Hi I will talk about the problem I have encountered in brief. I have two tomcat servers. I could deploy the new-same war on both of them. but with one server I am facing problem with two links on the website. They point to 404 pages. Can any one suggest me the solutin for that. The environment

Re: very slow class loading on initial JSP/servlet request after restart

2009-02-25 Thread Sam Hokin
André Warnier wrote: Sam, because there is quite a bit of traffic on this issue, and because the exact description seems to change a bit over time (e.g. compilation-only or not), could you remake a summary of what you are sure of so far ? 1. Initial requests to ANY JSP page on a site,

RE: Question

2009-02-25 Thread Ilya Kazakevich
Hello. Give us: 1) Tomcat versions 2) log files (catalina and localhost) 3) URLs of these links How do you run tomcat? What command do you use? -Original Message- From: koppisetty bhavani naga satish [mailto:kbnsat...@gmail.com] Sent: Wednesday, February 25, 2009 9:46 PM To:

RE: Getting PHP to work on Tomcat

2009-02-25 Thread Martin Gainty
you have to feed your PHP script to Tomcat CGIServlet Not to belabor the point but you're saying you want to race your Yugo (PHPScript) at Lemans instead of a Ferrari(Tomcat).. Would you really want to run single-processing/single thread proc instead of a Object Oriented multi-language running

Re: Getting PHP to work on Tomcat

2009-02-25 Thread michel
Martin, I love the analogy! But I am trying to run Dokuwiki on Tomcat. The reality is that there are a lot of PHP-writen stuff out there that I would love to be able to run on Tomcat; not because it's PHP, but because it works. This is one of those cases where works is alerady good enough.

Re: how

2009-02-25 Thread Anurag Kapur
As Chuck mentioned, you should have asked your question in a smarter way :) Anyhow, coming back to your question, You can use Apache HTTP server and use mod_proxy_http or mod_proxy_ajp modules to forward all requests on port 80 on apache to port 8080 on tomcat. Specifically use the ProxyPass

RE: very slow class loading on initial JSP/servlet request afterrestart

2009-02-25 Thread Caldarale, Charles R
From: Sam Hokin [mailto:s...@ims.net] Subject: Re: very slow class loading on initial JSP/servlet request afterrestart http://www.ims.net/media/strace-test6-stall.txt So what's going on during the frequent 11-second gaps? (Was Rosemary Woods here?) Might want to redo the strace with the

Re: not using the port number in the address???

2009-02-25 Thread Anurag Kapur
You can use Apache HTTP server and use mod_proxy_http or mod_proxy_ajp modules to forward all requests on port 80 on apache to port 8080 on tomcat. Specifically use the ProxyPass directive to achieve what you want. Example: ProxyPass/ http://localhost:8080/your-app/ The above

Re: very slow class loading on initial JSP/servlet request afterrestart

2009-02-25 Thread André Warnier
Caldarale, Charles R wrote: From: Sam Hokin [mailto:s...@ims.net] Subject: Re: very slow class loading on initial JSP/servlet request afterrestart http://www.ims.net/media/strace-test6-stall.txt So what's going on during the frequent 11-second gaps? (Was Rosemary Woods here?) They are not

Re: tomcat restart remotely

2009-02-25 Thread Laura Bartolomé
you're right but this has to be trough internet, not local... André Warnier escribió: Caldarale, Charles R wrote: From: Laura Bartolomé [mailto:la...@secways.com] Subject: Re: tomcat restart remotely My problem was I haven't thought before! :) I'm going to test it right now As far as I

Re: very slow class loading on initial JSP/servlet request after restart

2009-02-25 Thread Sam Hokin
NEW DISCOVERY - using a wildcard package import results in a much longer response delay! I've taken Mark's suggestion that I import individual classes rather than importing all with a wildcard to see if a particular class is slowing down classloading. It turns out that it's the WILDCARD

Re: very slow class loading on initial JSP/servlet request after restart

2009-02-25 Thread Sam Hokin
André Warnier wrote: What in this directory path is (are) a symlink(s) ? /home/sites/ims/jcms/webapps/ROOT/WEB-INF/classes/org/apache/jsp/test6_jsp.class There are no symlinks in that path. And how is this different from the other 2 systems that work fine ? It differs in no known way,

RE: very slow class loading on initial JSP/servlet request afterrestart

2009-02-25 Thread Caldarale, Charles R
From: Sam Hokin [mailto:s...@ims.net] Subject: Re: very slow class loading on initial JSP/servlet request afterrestart I have no idea how to interpret all the wheel-spinning that goes on in between. The key lines have a 3+ second response time: 2498 15:24:35

Re: very slow class loading on initial JSP/servlet request after restart

2009-02-25 Thread Sam Hokin
Caldarale, Charles R wrote: The key lines have a 3+ second response time: 2498 15:24:35 stat64(/net/ims/jcms/Object.class, 0x7b6b9c20) = -1 ENOENT (No such file or directory) 3.020996 Most of the calls return in much less than a millisecond, but there are a few ENOENT (not all) responses

Request not forwarded to login page with security-constraint after session time-out

2009-02-25 Thread Marcel Stör
Up to now I had always thought I understood the security aspects of the Servlet spec quite well. Looks like I was wrong... [Problem] Upon session time-out the request is not forwarded to the login page (form based auth). Nothing happens on the UI. However, forwarding to the login page does

[SECURITY] CVE-2008-4308: Tomcat information disclosure vulnerability

2009-02-25 Thread Mark Thomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 CVE-2008-4308: Tomcat information disclosure vulnerability Severity: Low Vendor: The Apache Software Foundation Versions Affected: Tomcat 4.1.32 to 4.1.34 Tomcat 5.5.10 to 5.5.20 Tomcat 6.0.x is not affected The unsupported Tomcat 3.x, 4.0.x and

RE: very slow class loading on initial JSP/servlet request afterrestart

2009-02-25 Thread Caldarale, Charles R
From: Sam Hokin [mailto:s...@ims.net] Subject: Re: very slow class loading on initial JSP/servlet request afterrestart The only place classes are stored under /net/ims/jcms is within WEB-INF/lib/jcms.jar. I'll poke around in the webapp classloader to see if I can find anything interesting,

jsvc degrades performance in production

2009-02-25 Thread B.V. Prasad
I am running Tomcat 6 on a group of Linux servers behind a loadbalancer. This setup was working fine when I ran Tomcat as root. However, when I moved to jsvc, the production servers started to become unavailable within a couple of hours, serving thousands of requests. I had to restart them to

Re: Getting PHP to work on Tomcat

2009-02-25 Thread michel
Ok, thanks all for all the great help! I will be taking a wack at these very helpful ideas and I hope that I can figure it out and make it work. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional

RE: very slow class loading on initial JSP/servlet request afterrestart

2009-02-25 Thread Caldarale, Charles R
From: Sam Hokin [mailto:s...@ims.net] Subject: Re: very slow class loading on initial JSP/servlet request afterrestart It looks like we've boiled the problem, at least in this test JSP case, down to the classloader wasting 3 seconds per try on stat-ing core Java classes in an imaginary