RE: Serious security problem with mod_jk?

2008-12-18 Thread Terence M. Bandoian
Placing static content inside WEB-INF doesn't seem like good practice so something like: Location /WEB-INF AllowOverride None deny from all /Location should prevent unwanted access. -Terence M. Bandoian Well, this is a bit off topic, since I had meant (and still mean

JSP processing other than .jsp?

2005-11-16 Thread Terence M. Bandoian
should be processed regardless of the file extension. -Terence M. Bandoian P.S. My apologies for the previous reply. [EMAIL PROTECTED] wrote: Hello, how can I define, that e.g. the extension .css shall be processed by tomcat same as a .jsp-file? Regards Marten

JSP processing other than .jsp?

2005-11-17 Thread Terence M. Bandoian
Definitely. -Terence M. Bandoian [EMAIL PROTECTED] wrote: That is correct. However, it's much better not to do this since it wastes a lot of bandwidth by sending the CSS code with every page. Much better to use link... and let the browser cache the file instead. Yaakov. On 11/16/05, Terence

Deploying new virtual hosts

2005-12-02 Thread Terence M. Bandoian
Hi- For that many virtual domains, you may want to investigate using a commercial hosting application that allows you to manage the server from a web interface. They are available for Linux and Windows and may be worth the cost in time saved. -Terence M. Bandoian George Sexton wrote: I'm

Deploying new virtual hosts

2005-12-04 Thread Terence M. Bandoian
. -Terence M. Bandoian Can you recommend a commercial hosting application that would manage tomcat and meet my needs? George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 - To unsubscribe, e-mail

apache, tomcat http to https redirect

2005-12-12 Thread Terence M. Bandoian
-guaranteeCONFIDENTIAL/transport-guarantee /user-data-constraint /security-constraint The web resource name and url pattern will have to be specified according to your requirements. -Terence M. Bandoian Good afternoon, I have a functional apache web server(2.0.52) and Tomcat(5.0.28

Re: Many questions are left unanswered.

2005-12-16 Thread Terence M. Bandoian
Hi- I have found the Tomcat Users List to be an excellent source of information. I don't, however, think that it's a substitute for hard work or basic skills. Nor do I think it should be. Many thanks to the contributors for their efforts. -Terence M. Bandoian -Original Message- From

automating use of webXmlFragment result - how to do?

2006-02-02 Thread Terence M. Bandoian
Hi- If you're using Ant, you might try adding a concat task to combine generated_web.xml with predefined header and footer files. -Terence M. Bandoian Subject: automating use of webXmlFragment result - how to do? From: Olinga K. Abbott [EMAIL PROTECTED] Date: Wed, 1 Feb 2006 14:58:27

MySQL Database / Tomcat Exceptions

2006-02-07 Thread Terence M. Bandoian
Hi- If it isn't already, enabling MySQL error log warnings may provide you with additional information. -Terence M. Bandoian From: Richard S. Huntrods [mailto:[EMAIL PROTECTED] Subject: RE: Would like to know what might be causing this exception in servlet I have one more. This *IS* a real

Re: How can I ensure that client access servlets via HTTPS?

2007-10-24 Thread Terence M. Bandoian
-guaranteeCONFIDENTIAL/transport-guarantee /user-data-constraint /security-constraint I'd suggest taking a look at the URL pattern specified in your original post. -Terence M. Bandoian [EMAIL PROTECTED] - To start

Re: Tomcat on Win2K3 Registry Edit.

2008-03-04 Thread Terence M. Bandoian
\ Tomcat5 \ Parameters Also in Tomcat 5, there appear to be default Java options set in: HKLM \ SOFTWARE \ Apache Software Foundation \ Procrun 2.0 \ Tomcat5 \ Parameters \ Java \ Options -Terence M. Bandoian Subject: Re: Tomcat on Win2K3 Registry Edit. From: Martin Gainty [EMAIL

Re: ServletContext.getContextPath()

2007-10-04 Thread Terence M. Bandoian
request.getContextPath()? -Terence M. Bandoian - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: ServletContext.getContextPath()

2007-10-04 Thread Terence M. Bandoian
Hi- My mistake. I deleted the message before I replied and missed that this needed to take place during startup. -Terence M. Bandoian [EMAIL PROTECTED] Subject: Re: ServletContext.getContextPath() From: Christopher Schultz [EMAIL PROTECTED] Date: Thu, 04 Oct 2007 11:43:34 -0400

Re: Changing the Webapps directory

2008-04-10 Thread Terence M. Bandoian
Hi, Tobias- Is ROOT a subdirectory of z:\webapps? -Terence M. Bandoian Subject: Changing the Webapps directory From: Tobias Meissner [EMAIL PROTECTED] Date: Thu, 10 Apr 2008 13:47:52 +0200 To: users@tomcat.apache.org Hi, I just got a short question. In the context of an actual

Re: 301 permanent redirects in Apache + Tomcat using mod_jk

2008-04-11 Thread Terence M. Bandoian
Hi- I'd suggest using RewriteLog and RewriteLogLevel to determine exactly how your RewriteCond and RewriteRule directives are processed. -Terence M. Bandoian Subject: 301 permanent redirects in Apache + Tomcat using mod_jk From: Shashidhar Rampally [EMAIL PROTECTED] Date: Fri, 11 Apr

Re: [OT] Comodo as a CA

2008-04-27 Thread Terence M. Bandoian
Hi, Chris- I've used Comodo and don't remember any browser issues. -Terence M. Bandoian Subject: Re: [OT] Comodo as a CA From: Christopher Schultz [EMAIL PROTECTED] Date: Sat, 26 Apr 2008 09:40:23 -0400 To: Tomcat Users List users@tomcat.apache.org To: Tomcat Users List users

Re: accessing web.xml

2008-05-29 Thread Terence M. Bandoian
Hi- Another reasonable approach would be to set system properties either in the startup script or in the Windows registry if you're running as a service. -Terence M. Bandoian Subject: Re: accessing web.xml From: Christopher Schultz [EMAIL PROTECTED] Date: Thu, 29 May 2008 11:14:44 -0400

How to populate session after authenticate

2006-03-28 Thread Terence M. Bandoian
Hi- As I understand it, HttpServletRequest.getRemoteUser() returns the user name entered if HTTP authentication (RFC2617) is used. According to the JavaDoc, its return value is Same as the value of the CGI variable REMOTE_USER. -Terence M. Bandoian Subject: Re: How to populate session after

Relative Link Question

2006-04-15 Thread Terence M. Bandoian
application which will pay dividends if you ever have to move the application. One specific example of this would be performing maintenance or further development on a non-production system. -Terence M. Bandoian -Original Message- From: Steven Huey [mailto:[EMAIL PROTECTED] Sent: 14 April 2006 23

Re: Best Basic Auth Approach

2010-01-13 Thread Terence M. Bandoian
You may be able to use the following from HttpServletRequest if REMOTE_USER is passed to Tomcat: getRemoteUser public java.lang.String *getRemoteUser*() Returns the login of the user making this request, if the user has been authenticated, or |null| if the user has not been

Re: PostgreSQL vs MySQL with Tomcat

2009-01-19 Thread Terence M. Bandoian
or in the options file) or dynamically with the SET statement. I have been very pleased with its performance both administratively and as a programmer and you can't beat the price. -Terence M. Bandoian - To unsubscribe, e-mail: users

Re: PostgreSQL vs MySQL with Tomcat

2009-01-21 Thread Terence M. Bandoian
said, I've found it to be straightforward to install and administer. If that contradicts your experience, then so be it. You're welcome to your own opinion. -Terence M. Bandoian Subject: Re: PostgreSQL vs MySQL with Tomcat From: Chris Wareham cware...@visitlondon.com Date: Tue, 20 Jan 2009 15

Re: PostgreSQL vs MySQL with Tomcat

2009-01-23 Thread Terence M. Bandoian
, orphans are easily detected with a simple query and, with good programming practice and testing procedures, just as easily prevented. Once upon a time, CPU cycles, memory and disk space mattered. -Terence M. Bandoian

List etiquette

2006-07-22 Thread Terence M. Bandoian
I agree. That type of behavior has no place in any professional forum. -Terence M. Bandoian On 7/21/06, Mead, Jennifer L - VSCM [EMAIL PROTECTED] wrote: Could this person (inject other undesirable word) please consider the fact that women are in the user's group also. Jennifer, I quite

Re: users Digest 9 May 2007 21:20:30 -0000 Issue 7269

2007-05-09 Thread Terence M. Bandoian
FYI- http://dev.mysql.com/doc/ -Terence M. Bandoian Subject: Re: Msql Connector/J From: Martin Gainty [EMAIL PROTECTED] Date: Wed, 9 May 2007 16:37:56 -0400 To: Tomcat Users List users@tomcat.apache.org To: Tomcat Users List users@tomcat.apache.org you and sven need to search

Re: Msql Connector/J

2007-05-09 Thread Terence M. Bandoian
FYI- http://dev.mysql.com/doc/ -Terence M. Bandoian Subject: Re: Msql Connector/J From: Martin Gainty [EMAIL PROTECTED] Date: Wed, 9 May 2007 16:37:56 -0400 To: Tomcat Users List users@tomcat.apache.org To: Tomcat Users List users@tomcat.apache.org you and sven need to search

Re: Sessions

2007-06-28 Thread Terence M. Bandoian
Hi- Are both users accessing the web application from the same computer? -Terence M. Bandoian [EMAIL PROTECTED] Hi: Thanks David, Chris and Martin for the responses. I appreciate them. May be I didn't explain the situation properly in my posting. I will try to explain better

RE: [OT] SecurityManager and Java Policy Files

2010-03-29 Thread Terence M. Bandoian
Hi, Chris- I don't remember the question exactly but in my experience I've had to grant permissions to all relevant jars that are not within a webapp and to the webapp. (Hopefully, this is at least in the right ballpark for your question.) -Terence Subject: RE: [OT] SecurityManager and

Re: Way to generate a localhost.log instead of localhost-4-20-2010.log?

2010-04-19 Thread Terence M. Bandoian
Here's a Linux script to remove log files older than seven days: find /var/tomcat5/logs -daystart -mtime +7 -type f -exec rm '{}' \; Just in case anyone might find it useful. -Terence Bandoian - To unsubscribe, e-mail:

Re: Re: multiple form submits

2010-05-20 Thread Terence M. Bandoian
How about the following? When the form is submitted, display a page without a submit button that 1) indicates the form is being processed and 2) submits the form data for actual processing. -Terence Bandoian Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pid,

RE: How can I get the user value in the request forwarded to my Tomcat in my Java app?

2010-05-28 Thread Terence M. Bandoian
Hi, Melinda- It may be helpful to try that again with the JSP expression syntax: %= request.getRemoteUser() % Notice the '=' after the first '%'. -Terence Bandoian Savoy, Melinda wrote: Sorry, I had to leave the office yesterday after I answered part of Ranier's question. When I

POI/XML issues in server environment

2010-06-16 Thread Terence M. Bandoian
Any possibility that the Excel file was modified (e.g. FTP)? I've used POI in a Tomcat 5.5 webapp on Windows Server and didn't see any problems like this. -Terence Bandoian Jorge Moya wrote: Hello guys. For the past couple of days, I've been working as an intern in a local company and I'd

RE: Still having problem retrieving user value from ISAPI Filter for authentication

2010-06-22 Thread Terence M. Bandoian
Hi, Melinda- As Pid suggested, the first part of that string after NTLM in the authorization header decodes in base64 to 'NTLMSSP'. -Terence Bandoian Savoy, Melinda wrote: Thanks Pid, I did do that as well, but I did not see the user value there either. Here is what I got when I did

RE: Still having problem retrieving user value from ISAPI Filter for authentication

2010-06-22 Thread Terence M. Bandoian
immediately, at any rate I'm working thru that, but will this DECODE method show me the USERID that I'm looking for? That is what I'm needing. Thank you. -Original Message- From: Terence M. Bandoian [mailto:tere...@tmbsw.com] Sent: Tuesday, June 22, 2010 12:40 PM To: Tomcat Users List

[OT] Using httpd's mod_rewrite with mod_jk

2010-06-30 Thread Terence M. Bandoian
Hi, Chris- This should redirect to /bad-browser.shtml: RewriteCond %{HTTP_USER_AGENT} Firefox/ RewriteCond %{HTTP_USER_AGENT} !Firefox/(3\.0\.19|3\.5\.9|3\.6\.3)($|[^\.0-9]) RewriteRule .* /bad-browser.shtml [R=307,L] Looks just about like what you already had though. I'm not sure

[OT] Using httpd's mod_rewrite with mod_jk

2010-06-30 Thread Terence M. Bandoian
in the last pair of alternatives of second condition. Did you want not a '.' or digit or not (a '.' followed by a digit)? -Terence Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Terrence, On 6/30/2010 7:55 PM, Terence M. Bandoian wrote: This should redirect to /bad

Re: (Issue) Tomcat 7.0.12 silent install

2011-04-28 Thread Terence M. Bandoian
Nice thread. Nice work. Impressive all the way around. -Terence Bandoian - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Re: Tomcat 6.0.32 on 64-bit 2008 server - Event 1000, Application Error

2011-05-04 Thread Terence M. Bandoian
Seems like I had similar error on 2008 Server R2 and ended up having to uninstall all JREs, manually remove all entries related to all JREs from the registry and then reinstall the JRE I wanted to use. -Terence Bandoian - To

Re: Re: Tomcat 6.0.32 on 64-bit 2008 server - Event 1000, Application Error

2011-05-05 Thread Terence M. Bandoian
On 1:59 PM, fsman...@netscape.net wrote: Andre: I followed your idea and did the following - uninstalled the .exe install of 6.0.32, extracted the 64-bit zip, and copied my old conf folder back on top of the one that the zip created. Added the environment variable JAVA_HOME in Windows. Ran

Re: Request headers created in valve don't make it to application

2011-06-01 Thread Terence M. Bandoian
On 1:59 PM, Marc Boorshtein wrote: Do you have any filters or other valves that might be wrapping the request and choosing to ignore your extra headers? No, the app is just a servlet that loops over all the headers and cookies and generates a properties response 1) Show us your modified

Re: RE: Static resource mapping in web.xml

2011-06-09 Thread Terence M. Bandoian
On 1:59 PM, falva...@geocom.com.uy wrote: Yes, we would probably use some tools to build the web.xml. Currently our applications has something between 1 to 15000 servlets. Mapping to /servlet/* how it works now, a normal URL is http://host:8080/webapp/servlet/myservlet;. But then I tried

Terminating Timer Thread Gracefully

2011-07-11 Thread Terence M. Bandoian
Hi- I've been testing a web application on: Tomcat 6.0.32 (32-bit) Sun/Oracle JRE 1.6.0_25 (32-bit) Windows Server 2008 R2 The web application includes a ServletContextListener which creates a Timer in the contextInitialized method to perform periodic maintenance. To no avail, I spent

Terminating Timer Thread Gracefully

2011-07-12 Thread Terence M. Bandoian
02:06, Terence M. Bandoian wrote: Hi- I've been testing a web application on: Tomcat 6.0.32 (32-bit) Sun/Oracle JRE 1.6.0_25 (32-bit) Windows Server 2008 R2 The web application includes a ServletContextListener which creates a Timer in the contextInitialized method to perform periodic

Re: Terminating Timer Thread Gracefully

2011-07-12 Thread Terence M. Bandoian
, Jul 12, 2011 at 7:59 AM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Terence M. Bandoian [mailto:tere...@tmbsw.com] Subject: Terminating Timer Thread Gracefully Finally, in contextDestroyed, I inserted a call to Thread.sleep after canceling the timer and the error message

Re: Terminating Timer Thread Gracefully

2011-07-13 Thread Terence M. Bandoian
On 1:59 PM, Pid wrote: ATimerTask is a private instance in AServletContextListener, is this necessary and if so, why? What logic is contained in ATimerTask? Are you overriding TimerTask.cancel() and do you catch InterruptedException? p Hi, Pid- For the sake of clarity, I'll repeat this

Re: Terminating Timer Thread Gracefully

2011-07-13 Thread Terence M. Bandoian
On 1:59 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Terence, On 7/12/2011 3:47 PM, Terence M. Bandoian wrote: executorService.shutdown(); try { while ( !executorService.awaitTermination( 1, TimeUnit.SECONDS ) ); Thread.sleep( 1000 ); } catch

RE: Terminating Timer Thread Gracefully

2011-07-13 Thread Terence M. Bandoian
On 1:59 PM, Bill Miller wrote: The problem is obviously that the thread within the Timer needs time to properly shutdown, the non-obvious part is how long does it need, and how do you detect it's done?. Normally you would do a Thread.join() to ensure a thread has stopped before continuing,

Re: Terminating Timer Thread Gracefully

2011-07-14 Thread Terence M. Bandoian
On 1:59 PM, Pid wrote: On 14/07/2011 06:05, Terence M. Bandoian wrote: On 1:59 PM, Pid wrote: ATimerTask is a private instance in AServletContextListener, is this necessary and if so, why? What logic is contained in ATimerTask? Are you overriding TimerTask.cancel() and do you catch

Re: Terminating Timer Thread Gracefully

2011-07-14 Thread Terence M. Bandoian
On 1:59 PM, Mark Thomas wrote: On 14/07/2011 06:11, Terence M. Bandoian wrote: I can live with this. It's just one of those it would be nice not to have to explain things and if Thread.sleep does the trick, I'm happy. As I mentioned in my original post, I wanted to find out

Re: Terminating Timer Thread Gracefully

2011-07-15 Thread Terence M. Bandoian
On 1:59 PM, Mark Thomas wrote: On 14/07/2011 23:59, Terence M. Bandoian wrote: On 1:59 PM, Mark Thomas wrote: On 14/07/2011 06:11, Terence M. Bandoian wrote: I can live with this. It's just one of those it would be nice not to have to explain things and if Thread.sleep does the trick, I'm

Re: Terminating Timer Thread Gracefully

2011-07-24 Thread Terence M. Bandoian
For anyone who might be interested, this is what I ended up with for a scheduler: public class AServletContextListener implements ServletContextListener { private ScheduledExecutorService executor; /** * Constructs AServletContextListener object. */ public

Re: Leak in Tomcat 7.0.11: a java.util.Timer seems to leave a timerThread in the JVM, and Tomcat says ...has failed to stop it. This is very likely to create a memory leak

2011-07-30 Thread Terence M. Bandoian
On 1:59 PM, Brian Braun wrote: Hi Konstantine, I read all the thread, but I didn't find any conclusive response. Here are my doubts/comments, after everything I have read: For reference: http://markmail.org/thread/oph2acjbdptcvduf - My timer creates a thread, with a name I assign to it.

Re: Is there a way to bake in URL parameters to a URL path?

2011-08-24 Thread Terence M. Bandoian
On 1:59 PM, Mattmann, Chris A (388J) wrote: Thanks for your reply Chuck. It looks like you can do what I'm suggesting, but it's pretty complex. I'm also wondering why this isn't part of Tomcat proper. It would seem to be a very useful tool to include. An ALv2 licensed type of filter that does

Re: Conditional Branch from Servlet to URL - Continued

2011-08-27 Thread Terence M. Bandoian
On 1:59 PM, Donald Jolley wrote: JSPs should be used for output with all processing (and, hopefully, anything that can fail) having already been completed by the time the JSP runs. That's a REALLY good point. The JSP can be thought of as simply bieing a view with all (or most) of the heavy

Re: CGIServlet - php

2011-09-03 Thread Terence M. Bandoian
On 1:59 PM, Konstantin Kolinko wrote: 2011/9/3 throwsCodedonmillho...@yahoo.com: I do not quite understand you. I'm trying to implement PHP on tomcat 7.0.20 with no luck. Does anyone know how I can tell whether the CGIServlet is running? I uncommented all of the sections indicated in the

Re: Should Form Authentication Valve restore request body on a PUT?

2011-10-09 Thread Terence M. Bandoian
On 1:59 PM, Nicholas Sushkin wrote: The bug was that if you do an unauthenticated POST, PUT, or DELETE, the Form Authentication valve was trying to do a POST, PUT, or DELETE to the login form. The correct behaviour IMHO is to always GET the login form and return it as a response to the

Re: Compile, build and prepare Webapp for Tomcat in command line

2011-10-31 Thread Terence M. Bandoian
On 1:59 PM, Léa Massiot wrote: @Jürgen : Thank you for advising me to use Maven. @Tim : Thank you for advising me to use Ant. I have been following the following tutorial to get introduced to Ant: http://ant.apache.org/manual/tutorial-HelloWorldWithAnt.html I think it's a good one. Now, I am

Re: Session expiration - browser -Web application

2011-11-06 Thread Terence M. Bandoian
On 1:59 PM, Léa Massiot wrote: @Christopher : Thank you for your answer. Christopher wrote: The new session created is completely empty. It has nothing to do with the user going back in the history, etc. No, you are right. What I meant is that I was/am managing session expiration inside the

Re: making security constraints configureable

2011-11-07 Thread Terence M. Bandoian
On 1:59 PM, Konstantin Kolinko wrote: 2011/11/3 Leon Rosenbergrosenberg.l...@gmail.com: I have a situation where an application is accessable from outside in staging and production environment, but shouldn't be open for public in staging environment. Put it behind Apache HTTPD (or any other

Re: making security constraints configureable

2011-11-08 Thread Terence M. Bandoian
On 1:59 PM, André Warnier wrote: Terence M. Bandoian wrote: On 1:59 PM, Konstantin Kolinko wrote: 2011/11/3 Leon Rosenbergrosenberg.l...@gmail.com: I have a situation where an application is accessable from outside in staging and production environment, but shouldn't be open for public

Re: Grabbing the user's info

2011-11-16 Thread Terence M. Bandoian
On 1:59 PM, chris derham wrote: But for _transparent_ authentication IIS is required as Christopher mentioned. That is not true. You can use SPNEGO to setup transparent authentication directly to tomcat. You do not need IIS. This means that a browser accesses a protected url on the server,

Re: Trying to get Tomcat 6 running as a Windows service

2011-11-17 Thread Terence M. Bandoian
On 1:59 PM, app...@dsl.pipex.com wrote: Hello This follows on from my query yesterday where I was having trouble getting Tomcat 6.0.26 to start as a Windows service on a 64 bit Windows 7 PC. Well, I have set the relevant authorities but I find that although Tomcat will start / stop via the

Re: Connection pooling issue with MySQLNonTransientConnectionException and Java webapp

2011-11-21 Thread Terence M. Bandoian
On 1:59 PM, Martin O'Shea wrote: Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Data source rejected establishment of connection, message from server: Too many connections I'd check into this. -Terence Bandoian

Re: Connection pooling issue with MySQLNonTransientConnectionException and Java webapp

2011-11-21 Thread Terence M. Bandoian
should have? -Original Message- From: Terence M. Bandoian [mailto:tere...@tmbsw.com] Sent: 21 Nov 2011 16 11 To: Tomcat Users List Subject: Re: Connection pooling issue with MySQLNonTransientConnectionException and Java webapp On 1:59 PM, Martin O'Shea wrote: Caused

Re: Babysitting ThreadLocals

2011-11-23 Thread Terence M. Bandoian
On 1:59 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, I've got a servlet that needs to log every request (potentially big requests) to files on the disk. In order to do that in a reasonably-tidy way, we write each file into a directory with the current date

Re: Logging

2011-12-02 Thread Terence M. Bandoian
On 1:59 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thom, On 12/1/11 9:39 AM, Thom Hehl wrote: I'm not sure. Whichever log file the stack traces goto. Yes, they're writing to a local drive. Yes as a windows service which came with the installer. As Pid says,

Re: dbcp is mixing up connections

2011-12-15 Thread Terence M. Bandoian
On 1:59 PM, Christopher Schultz wrote: Aitor, On 12/15/11 7:12 AM, Aitor Garcia | Tempel.es wrote: 5) Tomcat, creates ONE (or maybe SOME) Class object and call to the _jspService on every script request What happens if you handle Pool Coonections with a 'java.sql.Connection conn'

Re: dbcp is mixing up connections

2011-12-15 Thread Terence M. Bandoian
On 1:59 PM, Christopher Schultz wrote: Aitor, On 12/15/11 7:12 AM, Aitor Garcia | Tempel.es wrote: 5) Tomcat, creates ONE (or maybe SOME) Class object and call to the _jspService on every script request What happens if you handle Pool Coonections with a 'java.sql.Connection conn'

Re: dbcp is mixing up connections

2011-12-16 Thread Terence M. Bandoian
On 1:59 PM, Pid * wrote: On 16 Dec 2011, at 09:32, Aitor Garcia | Tempel.es agar...@tempel.es wrote: Mark: I'm just declaring variables there, no putting logic. You had overlooked log4jdbc, if you have read books in the same way Library log4jdbc is COOL! Works very Well, is really a

Re: Security Constraints With URL Rewrite filter

2011-12-26 Thread Terence M. Bandoian
On 1:59 PM, Pid * wrote: On 25 Dec 2011, at 22:03, Jerry Malcolm2ndgenfi...@gmail.com wrote: Thanks for the input. This has turned into something really ugly. Let me go back and summarize the situation: I have an established large application made up of about 10 separate webapps

Re: Servlet Mapping w/ Error Page

2012-01-02 Thread Terence M. Bandoian
On 1:59 PM, George Sexton wrote: On 12/31/11 2:04 PM, Konstantin Kolinko wrote: 2011/12/31 George Sextongeor...@mhsoftware.com: I have a servlet mapping for a page named /403.html I can invoke that URL and get a page as expected. In my deployment descriptor, I have an error mapping:

Re: Different session id per page

2012-01-02 Thread Terence M. Bandoian
On 1:59 PM, Jerry Malcolm wrote: Thanks, Tim. But that wasn't the problem. I've figured out what's happening. But I'm even more confused about how to move forward knowing that now. I've got a relatively simple situation. I have three pages that I am mapping to clean URLs in httpd

Re: OT: Breadcrumbs Tomcat 7.0.11

2012-01-11 Thread Terence M. Bandoian
On 1:59 PM, Kiran Badi wrote: Sorry I need some more help, have one more weird issue at my plate now, I am using base tag and pulling out the webapplication context path to it like this so that all links in the page becomes relative to this path,i am doing something like below, base

Re: [OT-ish] Apache Tomcat FTW

2012-01-11 Thread Terence M. Bandoian
On 1:59 PM, Pid wrote: All, A work colleague shared this: http://blog.newrelic.com/2012/01/10/infographic-oss-java-wins-in-the-cloud-era/ p I'm not entirely sure what it means but a 54% share by Tomcat is impressive. Thanks for the info. -Terence Bandoian

Re: Catching Exception in Application

2012-01-27 Thread Terence M. Bandoian
On 1:59 PM, Pid wrote: On 27/01/2012 18:53, Jonathan Rosenberg wrote: On Fri, Jan 27, 2012 at 1:45 PM, Pidp...@pidster.com wrote: On 27/01/2012 18:38, Jonathan Rosenberg wrote: That is in the original CAS server web.xml. I left it untouched. For the rest of the day, as an experiment I

Re: Connectors: Http11Protocol vs. Http11NioProtocol

2012-01-27 Thread Terence M. Bandoian
How much is a lot? 10'000/sec How many Tomcats are you running? 1 How much RAM/CPU per server etc? 8GB/Xeon How big is the average response? 300Kb How many NICs do you have? Have fast are they? -Terence Bandoian

Re: How can I access tomcat's logs using my jsp?

2012-02-03 Thread Terence M. Bandoian
On 1:59 PM, Lev A KARATUN wrote: Hello! I'm administering an application running on Tomcat 6.0.0.29. OS is AIX 5.3. I'm trying to write a simple jsp to make some superusers able to download tomcat logs via browser after entering a password. (In my organization it's not permitted to give

Path parameters and getRequestURI

2012-02-09 Thread Terence M. Bandoian
On 1:59 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, There was a change in 6.0.33 (and it has always been the case in 7.0.x?) that HttpServletRequest.getRequestURI now returns path parameters as part of the URI. That notably includes the URL-encoded

Re: Tomcat as Application Server

2012-02-18 Thread Terence M. Bandoian
On 1:59 PM, Anjib Mulepati wrote: Hi All, I was reading an old article (http://www.javaworld.com/javaworld/jw-01-2008/jw-01-tomcat6.html?page=1) about Tomcat to find out whether Tomcat can be used as application serve or not. This article list that Tomcat 6.x support following features:

Re: generic deployment question

2012-02-18 Thread Terence M. Bandoian
On 1:59 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jeffrey, On 2/17/12 10:45 AM, Jeffrey Janner wrote: Thanks. I was under the impression that Tomcat normally explodes the war files when you drop them into the webapps folder, though I know you can disable

RE: generic deployment question

2012-02-21 Thread Terence M. Bandoian
On 1:59 PM, Jeffrey Janner wrote: -Original Message- From: Terence M. Bandoian [mailto:tere...@tmbsw.com] Sent: Saturday, February 18, 2012 5:14 PM To: Tomcat Users List Subject: Re: generic deployment question On 1:59 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE

Re: Java 7 + Tomcat 6.0.35 + Win2k3 Problem

2012-03-11 Thread Terence M. Bandoian
On 1:59 PM, pricyber wrote: Using Orcale Java 7 u3. Will try to get some logs. Thanks A lot! On 2012-03-11, at 5:38 PM, Pid * [via Tomcat] wrote: On 11/03/2012 21:07, Pid wrote: On 11/03/2012 18:28, pricyber wrote: Yes I used Http11NioProtocol , more specifically I used

Re: Precompile JSPs, avoid thousands of servlets?

2012-03-13 Thread Terence M. Bandoian
On 1:59 PM, Nick Williams wrote: We maintain a very large application, with somewhere around 2,000 JSP files (in addition to ~250,000 lines of pure Java). We have decided it is about time we ship our application with precompiled JSP files. The Ant tasks from Tomcat to support this effort

RE: Precompile JSPs, avoid thousands of servlets?

2012-03-17 Thread Terence M. Bandoian
). Nick Hi, Nick- It sounds like migrating JSPs that don't directly respond to servlet requests to Java classes would greatly simplify management of the application. -Terence -Original Message- From: Terence M. Bandoian [mailto:tere...@tmbsw.com] Sent: Tuesday, March 13, 2012 1:46 PM

Re: Precompile JSPs, avoid thousands of servlets?

2012-03-17 Thread Terence M. Bandoian
On 1:59 PM, Christopher Schultz wrote: I've been there. I was on a consulting gig once where we replaced about 70% of the code of the product with 3rd-party OSS libraries that had been written after the inception of the project, but the original developers never had the inclination to switch.

Re: Precompile JSPs, avoid thousands of servlets?

2012-03-21 Thread Terence M. Bandoian
On 1:59 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Terence, On 3/17/12 7:16 PM, Terence M. Bandoian wrote: On 1:59 PM, Christopher Schultz wrote: I've been there. I was on a consulting gig once where we replaced about 70% of the code of the product with 3rd

Re: jdbc driver location in TC 7

2012-03-23 Thread Terence M. Bandoian
On 1:59 PM, David kerber wrote: On 3/23/2012 11:19 AM, Caldarale, Charles R wrote: From: David kerber [mailto:dcker...@verizon.net] Subject: jdbc driver location in TC 7 Where is the recommended location for jdbc driver jars in TC7, when I'm using separate CATALINA_HOME and CATALINA_BASE

Re: jdbc driver location in TC 7

2012-03-24 Thread Terence M. Bandoian
On 1:59 PM, Pid * wrote: On 23 Mar 2012, at 21:59, David Kerberdcker...@verizon.net wrote: On 3/23/2012 6:51 PM, Terence M. Bandoian wrote: On 1:59 PM, David kerber wrote: On 3/23/2012 11:19 AM, Caldarale, Charles R wrote: From: David kerber [mailto:dcker...@verizon.net] Subject: jdbc

Re: jdbc driver location in TC 7

2012-03-26 Thread Terence M. Bandoian
On 1:59 PM, Pid * wrote: On 25 Mar 2012, at 03:10, Terence M. Bandoiantere...@tmbsw.com wrote: On 1:59 PM, Pid * wrote: On 23 Mar 2012, at 21:59, David Kerberdcker...@verizon.net wrote: On 3/23/2012 6:51 PM, Terence M. Bandoian wrote: On 1:59 PM, David kerber wrote: On 3/23/2012 11:19

Re: jdbc driver location in TC 7

2012-03-26 Thread Terence M. Bandoian
On 1:59 PM, Pid * wrote: On 25 Mar 2012, at 03:10, Terence M. Bandoiantere...@tmbsw.com wrote: On 1:59 PM, Pid * wrote: On 23 Mar 2012, at 21:59, David Kerberdcker...@verizon.net wrote: On 3/23/2012 6:51 PM, Terence M. Bandoian wrote: On 1:59 PM, David kerber wrote: On 3/23/2012 11:19

Re: Problem with shutting down tomcat5.5.29

2012-04-05 Thread Terence M. Bandoian
On 1:59 PM, Konstantin Kolinko wrote: 2012/4/5 Petr Hracekphrac...@gmail.com: What I see in the start.log file is: 2012-04-05 15:28:04,557 [main] INFO org.apache.coyote.http11.Http11BaseProtocol - Initializing Coyote HTTP/1.1 on http-8080 2012-04-05 15:28:04,560 [main] INFO

Re: 500 HTTP-status forwarding broken (JSP rendering + Exception occurence)

2012-04-05 Thread Terence M. Bandoian
On 1:59 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Manuel, On 4/5/12 11:42 AM, manuel aldana wrote: Inside web.xml I definederror-page500..., so 500-status is resolving to JSP error pages. I get inconsistent behaviour when an Exception occurs during JSP

Re: Discrepancy between Tomcat's connection pool and tomcat's report on memory leaks

2012-04-05 Thread Terence M. Bandoian
On 1:59 PM, Pid wrote: If you define the DataSource in GlobalNamingResources the pool will be started and stopped with the Tomcat lifecycle. Applications have their own lifecycle inside Tomcat, they are started after Tomcat (obviously) and stopped before Tomcat stops (also obviously). This

Re: Discrepancy between Tomcat's connection pool and tomcat's report on memory leaks

2012-04-05 Thread Terence M. Bandoian
On 1:59 PM, Terence M. Bandoian wrote: On 1:59 PM, Pid wrote: If you define the DataSource in GlobalNamingResources the pool will be started and stopped with the Tomcat lifecycle. Applications have their own lifecycle inside Tomcat, they are started after Tomcat (obviously) and stopped

Re: Tomcat 7 Exception initializing page context; Cannot create a session after the response has been committed

2012-05-03 Thread Terence M. Bandoian
On 1:59 PM, David Wall wrote: We are running Tomcat 7.0.26 (no httpd front end) with BIO/NIO and SSL (entire webapp is in security context) and see this exception periodically on our Linux server: May 2, 2012 3:03:45 AM org.apache.jasper.runtime.JspFactoryImpl internalGetPageContext

Re: Slow downloads through mod_jk on Windows XP

2012-05-10 Thread Terence M. Bandoian
On 1:59 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andy, On 5/8/12 6:41 PM, Andy Wang wrote: Initial benchmarks seem to show that the behavior between tomcats is not an issue. Do you mean that Tomcat performance appears to be the same regardless of version?

Re: Mapping a servlet to the application's context root results in IAE

2012-06-05 Thread Terence M. Bandoian
On 1:59 PM, Violeta Georgieva wrote: Here it is: https://issues.apache.org/bugzilla/show_bug.cgi?id=53356 Thanks Violeta 2012/6/4 Mark Thomasma...@apache.org On 04/06/2012 19:25, Violeta Georgieva wrote: Hi, I'm using Tomcat 7.0.27. I have an application and I want to map my servlet to

Re: heap memory issues

2012-06-18 Thread Terence M. Bandoian
On 1:59 PM, Miguel González Castaños wrote: I know, but how do I know how much ram to assign in a 64 bits jdk? We are planning to move to a bigger server (hopefully 16 or 32 gb). Miguel 16 or 32 GB? Is this a medical image processing system? A control system for a space flight? Sorry

Re: heap memory issues

2012-06-19 Thread Terence M. Bandoian
On 1:59 PM, Miguel González Castaños wrote: On 19/06/2012 06:04, Terence M. Bandoian wrote: On 1:59 PM, Miguel González Castaños wrote: I know, but how do I know how much ram to assign in a 64 bits jdk? We are planning to move to a bigger server (hopefully 16 or 32 gb). Miguel 16 or 32

Re: Wish to use an independent class module in Tomcat

2012-06-27 Thread Terence M. Bandoian
On 1:59 PM, Cotton, Joseph B wrote: My question may be covered by the Tomcat documentation and I am just confused by all the new terminology. I have spent hours in reading and still I am looking to an answer. We wish to have a class running on Tomcat that contains system wide info and

  1   2   3   >