RE: SMTP configurations

2009-06-12 Thread Peter Crowther
From: Dharani [mailto:vishgnanik...@gmail.com] Can anyone tell me what are the configurations I must do in my Tomcat server in order to send mails using my web app? None, unless you're using a security manager. But you may need some configuration in your webapp, depending what package

RE: Private JVM Heap Size

2009-06-10 Thread Peter Crowther
From: William Biggs [mailto:kc8...@gmail.com] I'm looking at a new web hosting they give Private JVM Heap Size what is the min jvm heap size would you go with ? It depends entirely on your application. Some apps can handle fairly high loads with under 100 Mbytes of heap; others need 2 Gbytes

RE: Tomcat maxThreads Issue

2009-06-10 Thread Peter Crowther
From: Jones, Keven [mailto:keven.jo...@ncr.com] Here is the complete config file. Thanks for the quick reply. The list strips attachments - please paste inline. - Peter - To unsubscribe, e-mail:

RE: Tomcat maxThreads Issue

2009-06-10 Thread Peter Crowther
From: Jones, Keven [mailto:keven.jo...@ncr.com] How do I A. get thread dumps when the processes are dying The top of http://java.sun.com/developer/technicalArticles/Programming/Stacktrace/ is good general reading. kill -QUIT pid of Java process If ps is confused by all the threads,

RE: Tomcat maxThreads Issue

2009-06-10 Thread Peter Crowther
OK, so that's a JRockit JVM, not a Sun JVM. Remind me not to point you at any more Sun documentation! As a rough look at that, there are a few threads in the HTTP connector thread pool, a bunch of threads reading data from JK connections, and one or two in your app code. I've never looked at

RE: Problem setting Host

2009-06-08 Thread Peter Crowther
From: hellian [mailto:rashedulhasan2...@yahoo.com] I've been facing problem setting my Host property with Tomcat 5.5. Please have a look on the code below and let me know what's wrong with my code. Now if I use the url nexusroi.com, it doesn't work whereas the url nexusroi.com/nexus

RE: how can i extract row http data from request

2009-06-08 Thread Peter Crowther
From: Meir Yanovich [mailto:meiry...@gmail.com] i need to deal with legacy web app code , that needs to add basic authentication to it with sessions now i need to be able to extract the session id from the header ( can't add sessions into the code ) the scenario is that only once and only

RE: Error building Tomcat 6.0.18

2009-06-08 Thread Peter Crowther
From: jhoare [mailto:james.ho...@net-a-porter.com] I get the following errors trying to build Tomcat v6.0.18 from source on linux? ... why? Tomcat's pure Java, so runs the same on any platform. Download Sun JDK, download zip of Tomcat, unzip, go. - Peter P.S. Say hi to

RE: Deploying .war-file in Tomcat 5.5

2009-06-05 Thread Peter Crowther
From: Kai Behncke [mailto:kai-behn...@gmx.de] I have installed Tomcat with apt-get install tomcat5.5 tomcat5.5-admin tomcat5.5-webapps From which we can assume you're running on Debian, rather than one of the many other platforms on which Tomcat runs? The default webapps-deirectoy is now:

RE: Deploying .war-file in Tomcat 5.5

2009-06-05 Thread Peter Crowther
From: news [mailto:n...@ger.gmane.org] On Behalf Of Marcus Better On Debian you should put it in /var/lib/tomcat5.5/webapps. Ah - thanks, Marcus. Debian's rather odd symlinking policy strikes again! - Peter -

RE: Service Specific Error 0

2009-06-04 Thread Peter Crowther
Exact Tomcat version? There are over 50 versions of Tomcat5. Server 2008 x86 or x64? Are you using the 32-bit or 64-bit version of the service wrapper? - Peter -Original Message- From: aditya darbha [mailto:adityadar...@gmail.com] Sent: 04 June 2009 14:39 To: Tomcat

RE: Three tomcat instances

2009-06-03 Thread Peter Crowther
You don't tell us which version of Tomcat you're running, so it's hard to point you to the correct docs for your version on the Web. However, if memory serves, look at the file RUNNING.txt in your Tomcat directory. There's a section in there about setting up multiple Tomcats on the same

RE: How to reference Shared Libraries with TOMCAT

2009-06-03 Thread Peter Crowther
From: Sarva [mailto:malhotrasa...@yahoo.in] Till now I have been deploying all the JARs in WEB-INF/lib folder of my Web Application and run it to satisfaction. OK. Now we need a mechanism by which the JARs will not be stored in WEB-INF/lib but in a centralized location for example c:/lib,

RE: How to kill the port used by tomcat

2009-06-03 Thread Peter Crowther
From: kalpeer [mailto:inka...@gmail.com] How I can free the port without going to the original tomcat shutdown. You have to kill the process that is using the port. - Peter - To unsubscribe, e-mail:

RE: How to kill the port used by tomcat

2009-06-03 Thread Peter Crowther
From: kalpeer [mailto:inka...@gmail.com] Whats the command used to get the process id of the prot That depends on your OS - which you haven't told us. Tomcat should show up as a Java process, so if you're running a recent Java (which you also didn't tell us) then jps should tell you some

RE: java.net.SocketException: Too many open files

2009-06-03 Thread Peter Crowther
From: john.c.cartwri...@noaa.gov [mailto:john.c.cartwri...@noaa.gov] Can someone please help to to understand what might cause such an exception? File descriptor exhaustion - the process has run out of fds. Any i/o could use a file descriptor, whether that's socket to httpd, socket to

RE: Caching rendered page - reducing hits to the backend?

2009-06-02 Thread Peter Crowther
From: Andre-John Mas [mailto:aj...@sympatico.ca] I think I may end up simply ensuring that the database has enough memory and slowly evaluate where the bottle necks are. It's often the best approach. You can spend a lot of time optimising places that turn out not to be the bottleneck. You

RE: Update server.xml without restart?

2009-06-02 Thread Peter Crowther
From: Lars Nielsen Lind [mailto:lan...@tidtilforandring.dk] is it possible to update server.xml with out restart? You can edit the file, but Tomcat will not notice the new configuration until you restart Tomcat. What do you want to do? There may be other ways to achieve your goal.

RE: Which Do I SSL - httpd or Tomcat?

2009-06-02 Thread Peter Crowther
From: Alston, Brian (US SSA) [mailto:brian.als...@baesystems.com] I have a clustered/load-balanced Apache httpd and Tomcat setup. I have one httpd front end that load balances for two Tomcat back ends. I now want to add SSL to the mix but I am confused. Do I add the SSL to the httpd

RE: Which Do I SSL - httpd or Tomcat?

2009-06-02 Thread Peter Crowther
From: Alston, Brian (US SSA) [mailto:brian.als...@baesystems.com] Thank you for reading and replying. Can I assume from your reply that if I am not on a secure LAN that I should SSL httpd and both Tomcat servers? SSL between httpd and Tomcat will protect the channel between httpd and

RE: Newbie question: How to test if Tomcat is running?

2009-06-02 Thread Peter Crowther
From: Kai Behncke [mailto:kai-behn...@gmx.de] I have installed tomcat on a Debian Etch-System via apt-get install tomcat5.5 tomcat5.5-admin tomcat5.5-webapps and started it with /etc/init.d/tomcat start Now I would like to test if it runs on my remote server, but if I type:

RE: Tomcat Concurrent Requests

2009-06-01 Thread Peter Crowther
From: CrystalCracker [mailto:sudarshan.acha...@gmail.com] Given that each request takes 2 seconds on average. Among them, some of them take less than 500ms, and some take as long as 5 seconds or even a little more sometimes. How many such concurrent request would a tomcat server running

RE: Tomcat Concurrent Requests

2009-06-01 Thread Peter Crowther
From: CrystalCracker [mailto:sudarshan.acha...@gmail.com] The 5 seconds calls are all database or webservice calls. So they all go to waiting state. OK. So the bottleneck almost certainly isn't Tomcat. I did some load tests using JMeter, but I had problems coming to a conclusion with the

RE: Tomcat Concurrent Requests

2009-06-01 Thread Peter Crowther
From: David kerber [mailto:dcker...@verizon.net] CrystalCracker wrote: How many such concurrent request would a tomcat server running on a double quad-core server handle? At least 8 (1 per core), but that's about all you can tell without finding where the bottlenecks are. If I wanted

RE: MaxPermSize, Tomcat startup trouble

2009-05-28 Thread Peter Crowther
From: Henjo [mailto:henj...@gmail.com] Thank you both for replying. The architecture is indeed x86 (Windows 2003 server) and changing OS is not an option right now (going live soon). The alternative view: You can go live with a known-unreliable system, or you can change OS and go live with a

RE: MaxPermSize, Tomcat startup trouble

2009-05-27 Thread Peter Crowther
From: Henjo [henj...@gmail.com] OS is Windows 2003. x86 or x64? Available RAM is 3.5Gb on the machine, so that's not a problem. I assume x86 from that sizing. As Chuck points out, you won't get the space you want given Windows' appalling memory use. Any ideas how we can get a much larger

RE: Tomcat Server can't load himself (without using localhost)

2009-05-26 Thread Peter Crowther
From: Sibil87 [mailto:giorgio.zampare...@gmail.com] I mount Tomcat 6.0 on my server and u can visit it at http://application.sogetel.it:8080. If I open any browser from that machine and I try to visit http://localhost:8080 I can see my Servlet Manager and it's all ok. If I open any browser

RE: Why a dir names ondemand is not accessable under webapps/ ?

2009-05-26 Thread Peter Crowther
OS? Tomcat version? Anything in the logs? -Original Message- From: meili100 [mailto:steve@yahoo.com] Sent: 26 May 2009 06:21 To: users@tomcat.apache.org Subject: Why a dir names ondemand is not accessable under webapps/ ? I have multiple subdirs under webapps/ . All of them

RE: Silent Installation of Apache Tomcat

2009-05-22 Thread Peter Crowther
From: aditya darbha [mailto:adityadar...@gmail.com] If I decide against installing TOMCAT using the conventional exe in WINDOWS, is there a way I can install Tomcat? What files typically need to go into the installation? Download the zip installation. Unzip. You now have the files.

RE: deploy my files with a different user than root

2009-05-22 Thread Peter Crowther
From: Jose Manuel Hostalet Wandosell I am using the tomcat manager to deploy my apps, but after deploy, web files have root as owner. I have permissions to deploy but I am not root of the machine, how can I deploy my files with a different user? Don't run Tomcat as root. -

RE: Performance: switch vs if ... else if

2009-05-22 Thread Peter Crowther
From: David kerber [mailto:dcker...@verizon.net] As a result, right now I don't have any way of generating enough load to find a bottleneck in the overall servlet (which is a very good thing!!). That's a win. Congratulations! - Peter

RE: Silent Installation of Apache Tomcat

2009-05-21 Thread Peter Crowther
From: aditya darbha [mailto:adityadar...@gmail.com] want to couple Apache Tomcat into my application. My installer would check for an existing installation of the TOMCAT and would try to install Tomcat if there is no existing installation.!! This installation has to be silent and the user

RE: MAX Simultaneous connections with Tomcat on Windows XP Pro

2009-05-18 Thread Peter Crowther
From: Arijit Sarkar Job Gmail [mailto:arijit.k.sar...@gmail.com] So If I have an web application deployed on tomcat and windows XP pro, theoretically, unlimited users can connect to the application simultaneously? Tomcat or Windows XP does not place any limits to that? There are no limits

RE: Apache httpd vs Tomcat static content performance

2009-05-18 Thread Peter Crowther
From: Christopher Schultz [mailto:ch...@christopherschultz.net] 1. Is the number of requests (100, sufficient? It seems to take forever on this machine... my Coyote tests took longer than overnight. You want enough tests that they're sensitive to statistically significant

RE: Apache httpd vs Tomcat static content performance

2009-05-18 Thread Peter Crowther
From: Christopher Schultz [mailto:ch...@christopherschultz.net] I suppose I could gauge each test so it would take (roughly) a certain amount of time (say, 10 minutes). At least then I'd know how long the entire battery would take :) I think that's probably a better approach. Okay. My

RE: Preventing OutOfMemoryError: Java heap space

2009-05-13 Thread Peter Crowther
From: André Warnier [...@ice-sa.com] would it not be easier to catch the OOM exception and then return a sorry, server overloaded page to the browser ? At that point, it's too late. A thread, somewhere in the system, tried to allocate some memory for an object and couldn't. This could

RE: Preventing OutOfMemoryError: Java heap space

2009-05-13 Thread Peter Crowther
From: Todd Hivnor [mailto:spambox_98...@yahoo.com] One challenge with Peter's suggestion of tracking the number of sessions myself is that I have a collection of webapps. So I can't just set up a shared static counter; I need a counter which works across multiple webapps. The only way I know

RE: Tomcat Cluster Deployment without WAR

2009-05-13 Thread Peter Crowther
From: Alexander Diedler [mailto:adied...@tecracer.de] WatchDir is F:\inetpub\wwwroot if there is something changed, it should be deployed to all other cluster nodes. If you're on Windows, why not use the built-in file replication to replicate changes between the nodes rather than use

RE: Preventing OutOfMemoryError: Java heap space

2009-05-13 Thread Peter Crowther
From: André Warnier [mailto:a...@ice-sa.com] Thanks, Chuck and Peter, for the clarifications on OOM. I believe that unconsciously, with my large object reservation theory, I was vaguely remembering something I had read some time in the past. So I searched Google for java +parachute +memory

RE: Performance with many small requests

2009-05-12 Thread Peter Crowther
From: David Kerber [mailto:dcker...@verizon.net] I definitely should hook a profiler to the app so I can be sure of what's taking the time, though. Yes. If you don't measure it, you don't know whether you're fixing the right problem! Also consider connector, then if necessary process and OS

RE: Performance with many small requests

2009-05-12 Thread Peter Crowther
From: David kerber [mailto:dcker...@verizon.net] In my original post, I posted a bunch of numbers about network and other possible bottlenecks, and what it boiled down to was that neither my firewall load, nor total internet connection bandwidth were close to their limits. Thanks.

RE: Performance with many small requests

2009-05-12 Thread Peter Crowther
From: David kerber [mailto:dcker...@verizon.net] Just over 1000 total, 810 to the port that this application is using. Should be fine on Windows. The vast majority are showing a status of TIME_WAIT, a dozen or so in ESTABLISHED and one (I think) in FIN_WAIT_1. Sounds fair enough. The

RE: Analyzing Tomcat related VM crash?

2009-05-12 Thread Peter Crowther
From: Rainer Jung [mailto:rainer.j...@kippdata.de] Look for a GC fix (1.6.0_13), or try the child vm, or try switching to another GC algorithm, like CMS. (Coming to the thread late, sorry if this has all already been said). Also consider bad RAM, or memory corruption caused by some native

[OT] RE: Performance with many small requests

2009-05-12 Thread Peter Crowther
From: David kerber [mailto:dcker...@verizon.net] A typical client will have 2 to 5 items to send per transaction (they're actually lines from a data logger's data file), and each line is done in a separate POST request. The frequency of transactions varies widely, but typically won't

RE: Performance with many small requests

2009-05-11 Thread Peter Crowther
From: David kerber [dcker...@verizon.net] My cpu usage for tomcat has gone from bouncing between 0 and 1 in task manager, to a steady 2 since more threads are now actually doing work instead of waiting around for their turn at the code, my disk writes per sec in perfmon have also more than

RE: Preventing OutOfMemoryError: Java heap space

2009-05-11 Thread Peter Crowther
From: Todd Hivnor [spambox_98...@yahoo.com] I would like to proactively avoid running out of heap space. I would like people get a Server Too Busy message, _before_ the heap is actually exhausted. I would rather serve 40 users well than 45 users poorly. Rather than monitor memory, which is

RE: Performance with many small requests

2009-05-08 Thread Peter Crowther
From: David Kerber [mailto:dcker...@verizon.net] The synchronized section doesn't do a whole lot, so it doesn't take long to process. Indeed. So take a thread dump and see what's happening before making *any* changes to this key part. My question is, what kinds of operations need to be

RE: Performance with many small requests

2009-05-08 Thread Peter Crowther
From: David kerber [mailto:dcker...@verizon.net] Also, right now I'm doing a .flush() after the .write() to the log file. Is that usually necessary, other than to avoid losing data lines in case of a system failure? No, other than that. What disk subsystem are you running on? Start

RE: Performance with many small requests

2009-05-08 Thread Peter Crowther
From: David kerber [mailto:dcker...@verizon.net] I'll look into that to be sure, but I don't think the HD is limiting. I think I agree with you, but it's a classic area that people miss - Intel have done entirely too good a job of branding the CPU as the only place where speed matters!

RE: Performance with many small requests

2009-05-08 Thread Peter Crowther
From: David kerber [mailto:dcker...@verizon.net] Now that I've got a thread dump, what am I looking for? You found it first time :-). Now the hard part - fixing it. I've got a bunch of sections like this, pretty much all of which are waiting to lock 0x057c73e0. Is there any way to figure

RE: Performance with many small requests

2009-05-08 Thread Peter Crowther
From: David kerber [mailto:dcker...@verizon.net] I also have quite a few blocks like this: [...] [2009-05-08 10:43:23] [info] - locked 0x0510e6e0 (a org.apache.tomcat.util.threads.ThreadPool$ControlRunnable) [...] I assume these are just threads waiting for something to do (waiting for a

RE: Performance with many small requests

2009-05-08 Thread Peter Crowther
From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Strictly speaking, that's one thread per *servlet* object; if using the SingleThreadModel (let's hope not), the container is allowed to create multiple instances. Good point in the general case, but I rather suspect David would

RE: Performance with many small requests

2009-05-07 Thread Peter Crowther
From: David kerber [mailto:dcker...@verizon.net] The tomcat application simply takes the post request, does a checksum verification of it, decrypts the lightly-encrypted data, and writes it to a log file with the timestamps and site identifiers I mentioned above. Pretty simple processing,

RE: invalid certificate

2009-05-06 Thread Peter Crowther
From: Melanie Pfefer [mailto:melanie_pfe...@yahoo.co.uk] So you mean this error cannot be fixed? All self-signed certificates have this problem when a browser accesses the page using ssl? If the browser doesn't trust the root certificate that certifies the self-signed cert, it will give at

RE: hot-deploy problems

2009-05-01 Thread Peter Crowther
Tomcat version? Java version? OS? -Original Message- From: david owens [mailto:ym...@yahoo.com] Sent: 01 May 2009 15:52 To: users@tomcat.apache.org Subject: hot-deploy problems I hope you folks are not sick to death of this question, but I have still not found a satisfactory

RE: Slightly OT: log4j - generic log4j.dtd

2009-04-30 Thread Peter Crowther
From: Gregor Schneider [mailto:rc4...@googlemail.com] Most of you may know the typical first lines of any log4j.xml-config-file: ?xml version=1.0 encoding=UTF-8 ? !DOCTYPE log4j:configuration SYSTEM log4j.dtd Why does the DTD need to be stored relative to the XML file rather than (say)

RE: GC Problem

2009-04-29 Thread Peter Crowther
From: S Arvind [mailto:arvindw...@gmail.com] Tomcat after running for couple of hours , somthing is getting wrong and it is keep on doing Garbage Collection(as it dispaly in console) . And tomcat also becoming dump slow.. and we cant able to do any, until it restarts... I suspect your

RE: GC Problem

2009-04-29 Thread Peter Crowther
From: S Arvind [mailto:arvindw...@gmail.com] Yeah daily atleast once Out-of-memory will raise and we will restart the tomcat. As the amount of free memory goes down, the JVM will have to collect garbage more and more frequently, until you get the symptoms you see where it is spending most of

RE: GC Problem

2009-04-29 Thread Peter Crowther
From: S Arvind [mailto:arvindw...@gmail.com] Is there any good settings for GC for tomcat running in server with 4GB and Quad Core processor. As much RAM as the OS doesn't need for other purposes. There's no straiht answer for this, as it depends what else is running on the box. You might

RE: Extra Threads in background

2009-04-29 Thread Peter Crowther
From: David.Meldrum [mailto:david.meld...@verizon.net] My least favorite activity is programming by experiment. Try Morris dancing sometime ;-).* Alternatively, enable debugging, connect a suitable debugger and set a breakpoint in the code you want to prevent being called twice? Depends on

RE: Why we need two servers (httpd and tomcat)

2009-04-27 Thread Peter Crowther
From: Vinay Nagrik [mailto:vnag...@gmail.com] Can someone explain to me the basic difference between httpd and tomacat serer. What one can do so the other can not do. Apache httpd can serve static content over HTTP. It can have modules plugged in (CGI, perl, PHP) to serve various kinds of

RE: JVM crash issue

2009-04-23 Thread Peter Crowther
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

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

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:

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

RE: Problem with maximum threads

2009-04-21 Thread Peter Crowther
From: connossieur [mailto:anand.b...@aricent.com] There is no problem in the application code. How have you proved this? Take a thread dump (you're on Java 1.6, so you can use jstack). What are the threads doing? - Peter

RE: Problem with maximum threads

2009-04-21 Thread Peter Crowther
From: connossieur [mailto:anand.b...@aricent.com] The application doesn't have problems as I tested it with Visual VM (profiler for java 6) on Windows. OK. You've done more research than most, then - we get a lot of people blaming Tomcat as the first thing they do, so we tend to have some

RE: Problem with maximum threads

2009-04-21 Thread Peter Crowther
From: Christopher Schultz [mailto:ch...@christopherschultz.net] Also, please post a full thread dump. I want to see 1000 complete stack traces, baby. Mmm, that's a good few kilos of carbon to shift the bits around the mailing list subscribers ;-). Any chance of putting the thread dump on a

RE: What Tomcat presentations / demos / discussions do you want to see at ApacheCon US 2009?

2009-04-16 Thread Peter Crowther
From: André Warnier [mailto:a...@ice-sa.com] How about a session like : Everything you always wanted to know about connecting Apache httpd and Tomcat, but never dared to ask To be given jointly by Apache httpd AND Tomcat experts. - when do you need to do that, and when do you not really

RE: CLOSE_WAIT and what to do about it

2009-04-14 Thread Peter Crowther
From: André Warnier [mailto:a...@ice-sa.com] public void close() throws SomeException { putEndRequest(); flush(); socket = null; } flush() being another function which reads the socket until there's nothing left to read, and throws away

[Mildly OT] RE: apache/tomcat communication issues (502 response)

2009-04-08 Thread Peter Crowther
From: André Warnier [mailto:a...@ice-sa.com] a TCP CLOSE_WAIT state happens when the writing side of a TCP connection has finished writing and (nicely) closes its side of the socket to indicate the fact, Yes. but the reading side of the connection does not read what is left in the

RE: CLOSE_WAIT and what to do about it

2009-04-08 Thread Peter Crowther
From: André Warnier [mailto:a...@ice-sa.com] It has been previously established that a socket in a long-time-lingering CLOSE-WAIT status, is due to one or the other side of a TCP connection not properly closing its side of the connection when it is done with it. I also surmise (without

RE: CLOSE_WAIT and what to do about it

2009-04-08 Thread Peter Crowther
From: André Warnier [mailto:a...@ice-sa.com] This process is started as a daemon, with a java command-line. Is it possible to add some arguments to that command-line to induce the JVM to do a GC more often ? http://java.sun.com/javase/technologies/hotspot/gc/gc_tuning_6.html - I don't think

RE: Installing Tomcat

2009-04-08 Thread Peter Crowther
From: Jonathan Mast [mailto:jhmast.develo...@gmail.com] I'm trying to get Tomcat 6 running on a RedHat box. I don't want to build deamon with jsvc as the docs say I should do, at least not yet. Is this the extent of the official documentation for setting up Tomcat on Linux? You don't say

RE: Jsp working fine from tomcat, but displaying source when accessed through apache (Only on Firefox)

2009-04-07 Thread Peter Crowther
From: newToMina [mailto:askme...@yahoo.com] I have jsp page which displays fine when I access it directly from tomcat. But when the page is access through apache (mod_jk) it displays the source code. Do you have a JkMount for the directory with the .jsp in *and* the same directory exposed

[OT] RE: Slow servlet response under WinXP Pro

2009-04-01 Thread Peter Crowther
From: jo...@catholic-doc.org [mailto:jo...@catholic-doc.org] This may be key. Can you recommend any option changes based on your experience? One thing I was hoping for was to exclude certain directories/processes from being scanned by Symantec 11.0, but I can not find a way to do this.

RE: redirection

2009-04-01 Thread Peter Crowther
From: fredk2 [mailto:fre...@gmail.com] I would be better...The apache httpd web server is more versatile Irrelevant to this problem. and its vulnerabilities are better researched. References for that assertion? I'm not disagreeing, I'd just be interested in the hard data. You can also

RE: redirection

2009-04-01 Thread Peter Crowther
From: Gregor Schneider [mailto:rc4...@googlemail.com] On Wed, Apr 1, 2009 at 4:22 PM, Peter Crowther peter.crowt...@melandra.com wrote: And, indeed, that Apache + mod_security + mod_jk + Tomcat has fewer vulnerabilities than just Tomcat. Since I'm interested on hard data, too, hand

[OT] RE: redirection

2009-04-01 Thread Peter Crowther
From: Gregor Schneider [mailto:rc4...@googlemail.com] See, I believe in the statement that the more components you're adding to an environment, the more possibilities there are for a security-hole. However, to believe is not to know... It's clear that a naïve more components = less secure

RE: [OT] of very off topic marketing question

2009-03-22 Thread Peter Crowther
From: André Warnier [mailto:a...@ice-sa.com] Peter Crowther wrote: I'm also particularly amused by the topmost set of bars in figure 2, given how proud the perl-ites are of their RE library and performance ;-). You didn't expect for a minute that this would remain unanswered, did you

[OT] RE: very off topic marketing question

2009-03-21 Thread Peter Crowther
From: Christopher Schultz [ch...@christopherschultz.net] I wonder how the folks over at Wikipedia feel about their PHP-based system. I suspect they get a significant amount of load. And, indeed, Facebook. I'm not sure who gets more hits! There are some big, big PHP systems out there, and

RE: Issue with SSL server/ network configuration

2009-03-20 Thread Peter Crowther
From: i_am_superman [mailto:ee...@objectivation.nl] is there a simple way to map one domain name to two different SSL connectors? I don't think there is, unless you want part of your application to be accessible from a different port. So the part that doesn't need certs might be at

RE: Issue with SSL server/ network configuration

2009-03-20 Thread Peter Crowther
From: i_am_superman [mailto:ee...@objectivation.nl] I don't think my client will allow me to run a public SSL website any port but 443 (firewalls). Then you'll also need a second IP address on the server, as I'm sure you've already realised. - Peter

RE: Issue with SSL server/ network configuration

2009-03-20 Thread Peter Crowther
From: i_am_superman [mailto:ee...@objectivation.nl] we have 3 environment (test, accept, prod) so we need 3 extra certificates. No big deal indeed, but I need to be sure that I really need them. Get a wildcard certificate? They're about 3 times the price of a regular cert, and can

RE: Issue with SSL server/ network configuration

2009-03-20 Thread Peter Crowther
From: i_am_superman [mailto:ee...@objectivation.nl] What are the restrictions on wildcard certificates? Some very old browsers don't understand them. Probably not a problem in your environment, but check your client's browser support requirements. If I have two subdomains with one wildcard

RE: very off topic marketing question

2009-03-20 Thread Peter Crowther
From: Jason Pyeron [mailto:jpye...@pdinc.us] PHP by itself is very fast. Much faster than ASP or JSP running on the same type of server. This is because it has very little overhead compared to its competitors and it pre-compiles all of its code before it runs each script How would others

RE: very off topic marketing question

2009-03-20 Thread Peter Crowther
From: Matt Brown [mailto:matt.br...@citrixonline.com] I would ask for benchmarks and evidence to back up that assertion. There are plenty out there, but mostly old (... PHP4 promises to...). The IBM reference I've posted is relatively new and appears on an initial read to have a reasonable

[OT] RE: very off topic marketing question

2009-03-20 Thread Peter Crowther
From: Martin Gainty [mailto:mgai...@hotmail.com] Apache is hamstrung by the number of prefork processes it can spawn.. Yes. For this job, it's hamstrung by the PHP process being single-threaded and therefore having to spawn and keep multiple copies (each with its own address space) to handle

RE: no request on access log

2009-03-19 Thread Peter Crowther
From: Kaushal Shriyan [mailto:kaushalshri...@gmail.com] Host name=testa.example.com [...] Host name=testb.example.com [...] So are you testing these by browsing to http://testa.example.com, and have you mapped that in your DNS or hosts file to be your Tomcat server? If not, these won't

[OT] RE: tracing port to port

2009-03-18 Thread Peter Crowther
From: André Warnier [mailto:a...@ice-sa.com] I think I'll have to refresh my TCP knowledge base, to see if there is any byte somewhere in a TCP header specifying the internet protocol. But I don't think so. Sort of :-). The nearest you get is the four bytes specifying the source and

[OT] RE: Vmware Server 2 web interface uses tomcat but hogs 8005 and 8009

2009-03-17 Thread Peter Crowther
From: Christopher Schultz [mailto:ch...@christopherschultz.net] On 3/17/2009 4:18 AM, Rainer Frey (Inxmail GmbH) wrote: On Monday 16 March 2009 22:42:27 Christopher Schultz wrote: Can you clarify this a bit? There is no special management instance. VMWare Server is an application that

RE: JSESSIONID hijacking

2009-03-13 Thread Peter Crowther
From: Pieter Temmerman [mailto:ptemmerman@sadiel.es] However, as the jsessionid URL rewriting is defined in the servlet specification, I would expect this to be secure. Why, out of interest? Therefor I was wondering whether the hijacking is caused by a misconfiguration of Tomcat, my

RE: JSESSIONID hijacking

2009-03-13 Thread Peter Crowther
From: Pieter Temmerman [mailto:ptemmerman@sadiel.es] I don't know. It just seemed way to easy to hijack a session, so I supposed it must be secure. Large portions of the web architecture are insecure by their original design. This makes security in web-based systems... erm.. a challenge

RE: JSESSIONID hijacking

2009-03-13 Thread Peter Crowther
From: Zaki Akhmad [mailto:zakiakh...@gmail.com] 2009/3/13 zhaoxueqing zhaoxueq...@g-data.com.cn: jsessionid is the only way to indentity the user logined. if you get it ,you are this user. but? we can check others , for example IP! Difficult, depending on your environment. Some ISPs run

RE: Tomcat for Dummies

2009-03-13 Thread Peter Crowther
[I seem to be getting very delayed emails from the list; if this has already been answered, ignore me!] From: André Warnier [mailto:a...@ice-sa.com] suppose there are 3 active servlets (processing requests) at the moment the request to undeploy is issued by one of them. The servlet issuing

RE: How can JSP use the .jar file out of Tomcat's Home ?

2009-03-12 Thread Peter Crowther
From: lrvb...@gmail.com [mailto:lrvb...@gmail.com] I have to make a JSP invoke a Class which is in a .jar file out of Tomcat Home, How can I deal with it? Add the jar to the WEB-INF/lib directory of the webapp with the JSP in. - Peter

RE: How can JSP use the .jar file out of Tomcat's Home ?

2009-03-12 Thread Peter Crowther
From: lrvb...@gmail.com [mailto:lrvb...@gmail.com] Sent: 12 March 2009 13:51 To: 'Tomcat Users List' Subject: Re: How can JSP use the .jar file out of Tomcat's Home ? Thanks, For the jar is the core of another running application. I want to use API in the jar to put stream from the servlet

RE: Error filterStart

2009-03-12 Thread Peter Crowther
From: Dolphin06 [mailto:david.vauque...@gmail.com] Hello, i have tomcat 5.5.27 installed on Red Hat 4.0 and jdk 6u12. I m deploying my application using xml file that i put under $TOMCAT_HOME/conf/Catalina/localhost When i start up tomcat the application is created inside the webapps

RE: Starting Tomcat6 via command line/Removing registry keys

2009-03-11 Thread Peter Crowther
From: Cornelius Herzog (CH Software) [mailto:c.her...@chsoftware.net] Now I want to control Tomcat via an external script and so I need it to start via command line to adapt the parameters. If you install Tomcat via the zip (not the exe), you get some scripts to control its startup and

RE: unkown protocol httpg - using apache-tomcat-6.0.18

2009-03-11 Thread Peter Crowther
From: shashidhar velagandula I am using apache-tomcat-6.0.18 , I want to access a SRM(storage resource manager) service endpoint which uses httpg protocol eg: service endpoint - httpg://srmserver.host:8444/ , by deploying a web service application using apache-tomcat server when a

<    1   2   3   4   5   6   7   8   9   10   >