RE: Default webapp

2008-11-19 Thread mmocnik
Depends on your viewpoint; for me, it's much more elegant and straightforward to use the name of the webapp. Thats definitly true for anything but the ROOT app. I can't see the elegance in moving around multiple wars which are all called ROOT.war (One for each Host) I think I will just

JVM/Tomcat startup parameters, HPUX

2008-11-19 Thread André Warnier
Hi. On a customer HPUX B.11.11 system that we are (remotely and partially) managing, I would like to know with which java options (default or otherwise) the JVM is being started, particularly the options regarding memory usage by the JVM and Tomcat. Tomcat runs as follows (ps -ex output) :

Re: tomcat 5.5 clustering with JAAS

2008-11-19 Thread lmk
I add anything to support clustering, dont know if there is a special configuration for JAAS, you mean jaas.conf? JaasConf { package.MyLoginModule required; }; thanks Gustavo Araujo wrote: Can you send us the logs and the conf. files? Thanks 2008/11/14 lmk [EMAIL PROTECTED]

Re: Close an HttpServletRequest without consuming the whole HTTP client stream [Tomcat 6.0.18]

2008-11-19 Thread Maurizio Melato
Thank you very much Bill for the useful update! There is probably a typo below, request.getOutputStream().close() would be request.getInputStream() or response.getOutputStream(). So, do you mean the request.getInputStream().close() actually closes the underlying connection stream or that the

Re: Tomcat request processing gets stuck

2008-11-19 Thread Mark Thomas
Michal Singer wrote: Hi. I am not sure the stuck as any thing to do with the Request Processor accumulation. I work with nio connector. I use acceptCount=200 so maybe this is why i see the 200 Request Processors. This is the full configuratin i use for connector: Connector

Re: Tomcat 6 and javamail

2008-11-19 Thread David Smith
Start by making sure there is only one copy of the javamail jar. Remove either the one in tomcat's lib directory or your webapp's lib directory. -- David On Nov 19, 2008, at 6:04 AM, Lyallex [EMAIL PROTECTED] wrote: Hi Tomcat 6.0.16 jdk1.6.0_06 javamail 1.4.1 I have a simple component

Re: Request Logging in Tomcat 6

2008-11-19 Thread Raphael Santos
Thank you a lot Kees, acctually I'm checking 2 possible implementations out. These two options seems to be good. 1- to use Servlet Filters 2- to extend a AccessLogValve Regarding CPU time I have searched deep in the link you have passed me and I found something about

Tomcat 6 and javamail

2008-11-19 Thread Lyallex
Hi Tomcat 6.0.16 jdk1.6.0_06 javamail 1.4.1 I have a simple component that uses javamail 1.4.1 to send e-mail It works perfectly 'standalone' (executed from Eclipse). It connects to the server (mail.smtp.auth = false) and sends the email I've read the available docs at

Re: Relative redirect with sendRedirect(...)

2008-11-19 Thread Stig Kleppe-Jørgensen
If not, why doesn't a HttpServletResponse.sendRedirect(../../go/here) work? As far as I can read from the servlet spec, the servlet engine _must_ resolve relative redirects before sending the redirect back to the browser. But as far as I can tell, Tomcat does not do this. And furthermore,

Re: JVM/Tomcat startup parameters, HPUX

2008-11-19 Thread Tim Funk
Most of these are set via catalina.sh (which you don't want to touch). But if you wish to add your own -X params. See /opt/hpws/tomcat/bin/setenv.sh In there - you'll see that HP already has added CATALINA_OPTS=-XdoCloseWithReadPending -Tim André Warnier wrote: Hi. On a customer HPUX

Re: Relative redirect with sendRedirect(...)

2008-11-19 Thread Mark Thomas
Stig Kleppe-Jørgensen wrote: If not, why doesn't a HttpServletResponse.sendRedirect(../../go/here) work? As far as I can read from the servlet spec, the servlet engine _must_ resolve relative redirects before sending the redirect back to the browser. But as far as I can tell, Tomcat does not

Re: Tomcat 6 and javamail

2008-11-19 Thread Lyallex
Hi Well I've had problems with this before. As I'm sure you know, the JavaMail API 1.4.1 distribution contains dsn.jar, imap.jar, mailapi.jar, pop3.jar and smtp.jar I was very careful to make sure that I only had the above jars in EITHER the web application's lib directory (WEB-INF/lib) OR

Re: Hard limits in Tomcat?

2008-11-19 Thread Kees Jan Koster
Dear Chris, I am setting up a monitoring system for Tomcat servers and I am looking for hard limits in Tomcat servers in general. I found a few so far: file descriptors, memory pools (ok, these are jdk limits) and thread pools. Are there any other hard limits that I can run into? I

Re: Hard limits in Tomcat?

2008-11-19 Thread Leon Rosenberg
I think the question you wanna ask yourself first is, do you want to monitor tomcat or do you want to monitor your application? regards Leon On Wed, Nov 19, 2008 at 3:18 PM, Kees Jan Koster [EMAIL PROTECTED] wrote: Dear Chris, I am setting up a monitoring system for Tomcat servers and I am

Re: Tomcat vs Daemons

2008-11-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nathan, [EMAIL PROTECTED] wrote: In my code, I have a ServletContextListener (configured in web.xml or similar file, don't remember exactly), so when the servlet context is created it calls contextInitialized(ServletContextEvent). In this

Re: Tomcat request processing gets stuck

2008-11-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Michal, Michal Singer wrote: I am not sure the stuck as any thing to do with the Request Processor accumulation. I work with nio connector. I use acceptCount=200 so maybe this is why i see the 200 Request Processors. acceptCount=200 just means

Re: Hard limits in Tomcat?

2008-11-19 Thread Kees Jan Koster
Dear Leon, I think the question you wanna ask yourself first is, do you want to monitor tomcat or do you want to monitor your application? I want to monitor Tomcat, not the application. I'm using the information to improve the Tomcat monitoring on Java-monitor.com. Currently you can see

Re: Relative redirect with sendRedirect(...)

2008-11-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Stig, Stig Kleppe-Jørgensen wrote: I stand in this url: http://host/servletpath/ication/test/fr/ca and want to go to this url: http://host/servletpath/ibs/name/test.jar Why not just use absolute URLs?

Re: Hard limits in Tomcat?

2008-11-19 Thread Leon Rosenberg
is there a demo available on the java-monitor.com? sofar i only find a php forum :-) Leon On Wed, Nov 19, 2008 at 3:31 PM, Kees Jan Koster [EMAIL PROTECTED] wrote: Dear Leon, I think the question you wanna ask yourself first is, do you want to monitor tomcat or do you want to monitor your

6.0.18 download link yeilds HTTP 404

2008-11-19 Thread Leo Donahue - PLANDEVX
http://www.devlib.org/apache/tomcat/tomcat-6/v6.0.18/bin/apache-tomcat-6 .0.18.exe Maybe the site is down?

Re: Hard limits in Tomcat?

2008-11-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Keen Jan, Kees Jan Koster wrote: Ah, sorry for the confusion. I should have asked for limits that are hard at run-time. Thread pool sizes may be editable, but they are fixed once Tomcat runs. Gotcha. Hard runtime limits makes a whole lot more

Re: 6.0.18 download link yeilds HTTP 404

2008-11-19 Thread Mark Thomas
Leo Donahue - PLANDEVX wrote: http://www.devlib.org/apache/tomcat/tomcat-6/v6.0.18/bin/apache-tomcat-6 .0.18.exe Maybe the site is down? Works for me. Or you can just use a different mirror. Mark - To start a new

RE: 6.0.18 download link yeilds HTTP 404

2008-11-19 Thread Caldarale, Charles R
From: Leo Donahue - PLANDEVX [mailto:[EMAIL PROTECTED] Subject: 6.0.18 download link yeilds HTTP 404 http://www.devlib.org/apache/tomcat/tomcat-6/v6.0.18/bin/apach e-tomcat-6.0.18.exe Maybe the site is down? It's unlikely the DevLib people are monitoring this mailing list, so you should

Re: How do i specify the filename for a binary file generated by a JSP?

2008-11-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jonathan, Jonathan Mast wrote: I am writing a report generator that has the ability to generate Excel files. This question has already been answered by Youssef, Hassan, and Bill. I'm going to add a few things that I think are worth mentioning.

Re: Question on Performance Tuning

2008-11-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Vasanth, Vasanth Kumar ravi wrote: We did many rounds of load/performance testing with 50 Virtual users, to find bottlenecks with the application, major problem found was CPU utilization. 1. We did load testing with 1 apache and 1 tomcat, the

Re: Tomcat request processing gets stuck

2008-11-19 Thread Michal Singer
Hi, thanks for the response. I have A few questions regarding your comment: 1. request processors are equivalent to threads? 2. doesn't nio work with one thread? (I thougt that this thread configuration is irrelevant since nio works with one thread to receive requests.) 3. I shouldn't work with

Re: JVM/Tomcat startup parameters, HPUX

2008-11-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, André Warnier wrote: On a customer HPUX B.11.11 system that we are (remotely and partially) managing, I would like to know with which java options (default or otherwise) the JVM is being started, particularly the options regarding memory

Re: Hard limits in Tomcat?

2008-11-19 Thread Kees Jan Koster
Dear Leon, is there a demo available on the java-monitor.com? sofar i only find a php forum :-) The forum has the monitoring tool built-in. A bit weird at forst, but it makes it really simple to post questions, as you can just post graphs from the tool right on the forum. No need to make

Re: Tomcat request processing gets stuck

2008-11-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Michal, Michal Singer wrote: 1. request processors are equivalent to threads? Yes. The only thing that can execute code is a thread. Given your configuration, it appears that you will have 500 maximum threads. I am a little unfamiliar with the NIO

RE: JVM/Tomcat startup parameters, HPUX

2008-11-19 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:[EMAIL PROTECTED] Subject: Re: JVM/Tomcat startup parameters, HPUX I think the only way to observe effective memory settings is to either run jmap against the running process, or examine it from within by interrogating the Runtime object. You can also attach

Re: Tomcat request processing gets stuck

2008-11-19 Thread Michal Singer
Thanks again for the great response. I am not worried about the request processors any more now that i understand what they mean. However, i see that when i use the nio, my application gets stuck. i think working without nio is better. I am not sure why, if as i know nio is supposed to improve

RE: Tomcat request processing gets stuck

2008-11-19 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat request processing gets stuck 2. doesn't nio work with one thread? (I thougt that this thread configuration is irrelevant since nio works with one thread to receive requests.) Nope. The NIO connector is just a

RE: Tomcat request processing gets stuck

2008-11-19 Thread Caldarale, Charles R
From: Michal Singer [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat request processing gets stuck I am not sure why, if as i know nio is supposed to improve performance. Not true; NIO improves *capacity*, but it will slightly degrade throughput due to more thread switching. I am checking my

Tomcat Native 6 Remote Debugging (JPDA)

2008-11-19 Thread Gregor Schneider
Hi guys, we're running Tomcat on Debian on port 80 using Tomcat Native (JSVC). Now I'm wondering wether it's possible to get remote debugging working here. I've adapted the the startup-script as follows: code #!/bin/sh export

Re: Hard limits in Tomcat?

2008-11-19 Thread Kees Jan Koster
Dear Chris, Ah, sorry for the confusion. I should have asked for limits that are hard at run-time. Thread pool sizes may be editable, but they are fixed once Tomcat runs. Gotcha. Hard runtime limits makes a whole lot more sense. Sorry for not jumping to that obvious conclusion. I wasn't

Re: Servlets / JSP can't connect to MySQL in Ubuntu Server

2008-11-19 Thread Ambrose Krapacs
On Nov 18, 2008, at 7:58 , David Smith wrote: Can you post your database config and code snippet for accessing the db? Obfuscate the username/password info. One immediate observation is the JDBC url should have the name of the database you are trying to access like this:

Re: Servlets / JSP can't connect to MySQL in Ubuntu Server

2008-11-19 Thread Ambrose Krapacs
On Nov 18, 2008, at 7:37 , André Warnier wrote: Krapacs Ambrose wrote: I have tried many different configurations and I have been unable to get my Servlets / JSP to connect to MySQL server running. I am trying to get this set up on my main server which is running Ubuntu 8.10 Server with

Re: Servlets / JSP can't connect to MySQL in Ubuntu Server

2008-11-19 Thread Ambrose Krapacs
On Nov 18, 2008, at 7:36 , Antonio Vidal Ferrer wrote: Hi, It's your mysql listening on Localhost? Have you tried to use the ip address instead of Localhost? Best, Toni -Original Message- From: Krapacs Ambrose [mailto:[EMAIL PROTECTED] Sent: martes, 18 de noviembre de 2008 13:22

Re: Servlets / JSP can't connect to MySQL in Ubuntu Server

2008-11-19 Thread David Smith
If you have command line access on the system, can you test your MySQL connectivity by connecting this way?: mysql -u inventory -h localhost -p The -h option forces mysql command to connect via TCP/IP instead of unix sockets. --David Ambrose Krapacs wrote: On Nov 18, 2008, at 7:58 , David

Re: Hard limits in Tomcat?

2008-11-19 Thread Leon Rosenberg
well, downloaded, installed, started, klicked, ... deleted... you should announce that your war is SENDING DATA to the central server in LARGE letters :-) which users are you targeting? No one i know (and i'm in the webapp business for about 10 years) will ever going to use this stuff, since its

Re: Servlets / JSP can't connect to MySQL in Ubuntu Server

2008-11-19 Thread André Warnier
Ambrose Krapacs wrote: [...] I have tried using telnet to connect to port 3306 and it does appear that the server is listening because it refuses the telnet connection. Well, that would tend to indicate exactly the opposite : either MySQL is *not* listening on that port, or something is

Re: Tomcat 6 and javamail

2008-11-19 Thread Don Millhofer
Are you sure that the mail server, serving the host you are deploying to does not require authentication? I got this same error trying to go through the Google Mail Server without proper authentication. when I invoke the component in the webapp I get javax.mail.AuthenticationFailedException

RE: Tomcat request processing gets stuck

2008-11-19 Thread Peter Crowther
From: Christopher Schultz [mailto:[EMAIL PROTECTED] acceptCount=200 just means that the socket will accept 200 clients /in addition/ to those currently being served by RequestProcessor threads. The only way to see those waiting clients would be to query the socket itself (maybe only

Re: Hard limits in Tomcat?

2008-11-19 Thread Tony Anecito
Better yet do you want to know how the application uses Tomcat resources? To do what Leon mentions requires a profilier that is approved for production use or have the developers write timers in the code for critical measurements say around time it takes for a request versus jdbc calls some may

Re: CometProcessor questions

2008-11-19 Thread Franck Wolff
Hi Filip, Ok, my (partly) mistake. I've missread this comment: ///GET method or application/x-www-form-urlencoded/ in BayeuxServlet.checkBayeux... Anyway, I can't change everything now and I need to read the request input stream (I'm getting AMF3 binary data), not to get a request parameter

Re: Servlets / JSP can't connect to MySQL in Ubuntu Server

2008-11-19 Thread Ambrose Krapacs
On Nov 19, 2008, at 11:13 , David Smith wrote: If you have command line access on the system, can you test your MySQL connectivity by connecting this way?: mysql -u inventory -h localhost -p The -h option forces mysql command to connect via TCP/IP instead of unix sockets. --David Yes I

Re: Supporting Large Number of Web Application Instances

2008-11-19 Thread John Shilling
I am looking at having to support tens or even hundres of instances of our web application in an ASP Model. We use Tomcat as our application server and it seems to me that three possibilities as a base model for each physical server 1. Have a single Tomcat instance per server with multiple

Re: Hard limits in Tomcat?

2008-11-19 Thread Kees Jan Koster
Dear Leon, well, downloaded, installed, started, klicked, ... deleted... you should announce that your war is SENDING DATA to the central server in LARGE letters :-) which users are you targeting? No one i know (and i'm in the webapp business for about 10 years) will ever going to use this

java.lang.Exception: Socket bind failed: [730048]

2008-11-19 Thread Toby Kurien
Hi Everybody, I have been using Apache Tomcat 5.5.23 with Java 1.5.0_12. OS is Windown Server 2003. Tomcat connects to an Informix database and I have been using this application at my company without any major issues so far for more than 2 years. Lately we noticed some suspicious activities

Re: Servlets / JSP can't connect to MySQL in Ubuntu Server

2008-11-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ambrose, Ambrose Krapacs wrote: catch( Exception e ) { retVal = e.toString(); } And this gives you CommunicationLinkFailure for every URL you are trying? A few things about the URLs: 1. Don't

RE: java.lang.Exception: Socket bind failed: [730048]

2008-11-19 Thread Caldarale, Charles R
From: Toby Kurien [mailto:[EMAIL PROTECTED] Subject: java.lang.Exception: Socket bind failed: [730048] I have attached a log file of the errors I am getting while trying to start Tomcat. Nov 19, 2008 12:55:22 PM org.apache.coyote.http11.Http11AprProtocol init SEVERE: Error initializing

Re: Supporting Large Number of Web Application Instances

2008-11-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John, John Shilling wrote: Do people really do option #1 in a production environment? Sure. I can figure out how to set up realms for initialization parameters but it is still a single class namespace within the Tomcat container, right? Not

cluster configuration

2008-11-19 Thread Mike Wannamaker
I'm having an issue with clustering in tomcat and tribes. I get this output, I'm not sure why Tribes can't bind to the multicast address? It then binds to localhost which doesn't allow machines to see each other. Any help is appreciated. 19-Nov-2008 3:30:23 PM

Re: Hard limits in Tomcat?

2008-11-19 Thread Leon Rosenberg
Hello Kees Jan, On Wed, Nov 19, 2008 at 8:25 PM, Kees Jan Koster [EMAIL PROTECTED] wrote: Dear Leon, Oh, don't be so dramatic. There is a whole world out there of smaller companies that have one or two Tomcat servers in production, running on the cheapest shared server environment they could

Re: cluster configuration

2008-11-19 Thread Gustavo Araujo
Instead of puting 127.0.0.1 in your conf file (server.xml) put the real ip adress of your server. Restart the server and look at catalina.out. Regards. 2008/11/19 Mike Wannamaker [EMAIL PROTECTED] I'm having an issue with clustering in tomcat and tribes. I get this output, I'm not sure why

Re: Supporting Large Number of Web Application Instances

2008-11-19 Thread David Wall
John Shilling wrote: I am looking at having to support tens or even hundres of instances of our web application in an ASP Model. We basically do this now using a single Tomcat instance with multiple webapps (https://host.com/App1/, https//host.com/App2/ etc) and don't use virtual

Re: CometProcessor questions

2008-11-19 Thread Filip Hanik - Dev Lists
hi Franck, Franck Wolff wrote: Hi Filip, Ok, my (partly) mistake. I've missread this comment: ///GET method or application/x-www-form-urlencoded/ in BayeuxServlet.checkBayeux... Anyway, I can't change everything now and I need to read the request input stream (I'm getting AMF3 binary

Re: cluster configuration

2008-11-19 Thread Filip Hanik - Dev Lists
just to make sure 1. you are using 6.0.18 and 2. the IP you are trying to bind to is valid and 3. could you be using linux? this is the code that is telling you about the failure 186 : fhanik 586228 if (mcastBindAddress != null) { 187 : try { 188 :

RE: Using Tomcat with ISAPI Redirector

2008-11-19 Thread Patrick Markiewicz
Hi, I finally found an answer to my problem, thanks to a few posts on the interenet. Here they mention the fact that NETWORK SERVICE needs WRITE access to the directory defined by the log_file key under HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi

How to tell Tomcat not to log certain requests?

2008-11-19 Thread blender1968
Hi All, There are certain requests that I don't want written to the AccessLog. In Apache (httpd.conf) I can achieve this by: SetEnvif Remote_Addr [regex] dontlog CustomLog logs/access_log combined env=!dontlog How do I achieve the same in Tomcat? Thanks! Jason -- View this message in

Re: [Http]ServletResponseWrapper.getOutputStream()

2008-11-19 Thread Michael Ludwig
Hi Christopher, thanks for a long and detailed response. Christopher Schultz schrieb am 18.11.2008 um 16:26:23 (-0500): Michael Ludwig wrote: I thought it helpful to have a trace of the methods getting called One way to do it is to use a proxy object. If you haven't used proxies before,

RE: [Http]ServletResponseWrapper.getOutputStream()

2008-11-19 Thread Caldarale, Charles R
From: Michael Ludwig [mailto:[EMAIL PROTECTED] Subject: Re: [Http]ServletResponseWrapper.getOutputStream() Try/catch can't be that much of a problem, can it? Isn't it just a fancy way of conditional branching with information attached? Sorry, but no. The throwing of an exception causes the

Re: Servlets / JSP can't connect to MySQL in Ubuntu Server

2008-11-19 Thread Krapacs Ambrose
On Nov 19, 2008, at 14:53 , Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ambrose, Ambrose Krapacs wrote: catch( Exception e ) { retVal = e.toString(); } And this gives you CommunicationLinkFailure for every URL you

Re: Tomcat 6 getRemoteUser() returns null

2008-11-19 Thread Thangavel Sankaranarayanan
HI , The auth method is form based. Regards, Thangavel Sankaranarayanan [EMAIL PROTECTED] l.com

Re: Tomcat 6 getRemoteUser() returns null

2008-11-19 Thread Thangavel Sankaranarayanan
Hi , The Auth method is form based . Regards, Thangavel Sankaranarayanan [EMAIL PROTECTED] l.com

How to add multiple SSL Certificates to Tomcat Server

2008-11-19 Thread Suneel Saguturu
All- I am facing one problem, i.e. I have to configure two SSL certificates to JBoss server, I know they are internally using Tomcat for web container. Is it possible to add multiple Certificates to one server instance itself? If so, then how?