Re: Enabling compression in embedded tomcat 7

2012-05-10 Thread Adam Gordon
Perfect. Thanks. --adam http://gordonizer.com On Thu, May 10, 2012 at 5:16 AM, Konstantin Kolinko wrote: > 2012/5/10 Adam Gordon : > > I see XML options for enabling compression but am not seeing how this > > is done programmatically with an embedded tomcat instance. thank

Enabling compression in embedded tomcat 7

2012-05-09 Thread Adam Gordon
I see XML options for enabling compression but am not seeing how this is done programmatically with an embedded tomcat instance. thanks. --adam - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional command

Re: Classpath issues with Embedded Tomcat 7

2012-04-19 Thread Adam Gordon
On Thu, Apr 19, 2012 at 15:11, Caldarale, Charles R wrote: >> the docs say Tomcat provides a sensible default for a temp >> dir which is why I didn't set one. > > That's true when Tomcat is run as a normal server, but for embedded, it will > use whatever the JVM decides to set for the system pro

Re: Classpath issues with Embedded Tomcat 7

2012-04-19 Thread Adam Gordon
Chris- > If this is an update, why not reply to your original thread? It's > difficult to keep everything in context when you start a new thread. I got in trouble for using Nabble and my original message never posted, just the update.  Since I wasn't sure how to handle or correct it all I just cr

Classpath issues with Embedded Tomcat 7

2012-04-19 Thread Adam Gordon
UPDATE: By adding all my jars in WEB-INF/lib to my launch command classpath, I can get the embedded server to run, but this does not seem correct as then what would be the point of WEB-INF/lib? --- I've been unable to find any decent documentation on how to use Em

Re: mod_jk and jsessionid issue

2009-08-19 Thread Adam Gordon
He shouldn't have to set this option. We're using the same configuration, load balanced apache servers and we don't have this configuration set. Additionally, I think you can choose as to whether the session id is cookied vs appending to the request. Unlessare you serving up static imag

Re: Monitoring Tomcat availability in a load balanced capacity

2008-11-13 Thread Adam Gordon
if we can specify a fake JSESSIONID in cookie form to see if we can dictate to which server Apache will send us. As previously mentioned, we cannot simply put this on the URL as a parameter because we are using sticky sessions. --adam David Rees wrote: On Wed, Nov 12, 2008 at 1:15 PM, Adam Gordon

Re: Monitoring Tomcat availability in a load balanced capacity

2008-11-13 Thread Adam Gordon
ou need to prevent anyone from outside from being able to use it. Were we already using mod-proxy, your solution is fine but essentially obviates the need for mod JK. --adam André Warnier wrote: Adam Gordon wrote: See my reply to Hassan. I think setting up a proxy would be overkill, and bes

Re: Monitoring Tomcat availability in a load balanced capacity

2008-11-12 Thread Adam Gordon
x27;t do anything. --adam André Warnier wrote: Adam Gordon wrote: We're running two Tomcat (5.5.16) instances in a load-balanced capacity behind an Apache server (2.0.55 w/ mod j/k 1.2.14). We'd like to set up some sort of monitoring that would allow us to not just check to see if

Re: Monitoring Tomcat availability in a load balanced capacity

2008-11-12 Thread Adam Gordon
at it can still accept connections. That said, adding another Connector that does not use mod JK actually works, so this is the route we will take. Thanks. --adam Hassan Schroeder wrote: On Wed, Nov 12, 2008 at 9:42 AM, Adam Gordon <[EMAIL PROTECTED]> wrote: We're runni

Re: Monitoring Tomcat availability in a load balanced capacity

2008-11-12 Thread Adam Gordon
Can you please include a link? Google is not helping... Thanks. Alberto Jesus La Rosa Agramonte wrote: application manager, is not free, but with the trial licence you can work with all the functionalities. bye 2008/11/13 Adam Gordon <[EMAIL PROTECTED]>: We're running two Tom

Monitoring Tomcat availability in a load balanced capacity

2008-11-12 Thread Adam Gordon
We're running two Tomcat (5.5.16) instances in a load-balanced capacity behind an Apache server (2.0.55 w/ mod j/k 1.2.14). We'd like to set up some sort of monitoring that would allow us to not just check to see if the Tomcat Java processes are still running (that's easy) but to actually conn

Tomcat admin webapp LoginModule configuration

2008-08-14 Thread Adam Gordon
I've got the Tomcat admin webapp up and running but am seeing an error (when I try and log in) in catalina.out informing me that there are "no LoginModules configured for " We use JAAS for our web app so I'm familiar with the concept of the LoginModule and we have a JAAS Realm defined in our c

Re: Tomcat admin webapp configuration with mod_jk

2008-08-13 Thread Adam Gordon
a JAAS Realm in admin.xml (like we're doing for our web app) but it's not clear how it needs to be configured. Any ideas? --adam Caldarale, Charles R wrote: From: Adam Gordon [mailto:[EMAIL PROTECTED] Subject: Tomcat admin webapp configuration with mod_jk I've downloaded and

Tomcat admin webapp configuration with mod_jk

2008-08-13 Thread Adam Gordon
We currently use Apache/Tomcat and mod_jk for our webapp. I've downloaded and installed (correctly, I think) the admin web app but am having trouble configuring Apache and Tomcat to recognize that the admin webapp is present. I suspect it's simply a config issue, but can't figure it out. Her

Re: Communicating on the Tomcat admin port

2008-08-13 Thread Adam Gordon
-Original Message- From: Adam Gordon [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2008 10:59 AM To: Tomcat Users List Subject: Communicating on the Tomcat admin port Is there a way to communicate with Tomcat via the admin port but not have to use the web interface? We're lo

Communicating on the Tomcat admin port

2008-08-13 Thread Adam Gordon
Is there a way to communicate with Tomcat via the admin port but not have to use the web interface? We're looking at completely automating our deployment process and it would be nice if we could send a signal to Tomcat to shutdown via the command-line. Additionally, if it is possible, are the

RE: Does mod_jk support chunked encoding?

2008-07-16 Thread Adam Gordon
dynamic responses (e.g. From Tomcat) that don¹t already have some form of response end set (e.g. A Content-Length header). To be accurate I think this is more a function of Apache than mod_jk. All you should need to do is connect Tomcat to Apache using mod_jk and it should work out of the box. tim

Does mod_jk support chunked encoding?

2008-07-15 Thread Adam Gordon
Hi- We're running Tomcat 5.5.16 behind Apache2 and one functionality of our web app serves up ZIP files which are created on the fly. We'd like to implement chunked-encoding to serve up the ZIP file so we don't have to actually create a temporary file on disk first but also so that we can im

Re: Logging individual web applications

2008-03-04 Thread Adam Gordon
Neha- First, I assume you meant to say the WEB-INF/classes directory as that's where the log4j.properties file needs to be placed for a given web app. Second, you probably don't want to set the rootLogger to DEBUG as any libraries you use could potentially be affected by this and if you've e

Re: Tomcat on Windows in India and Poland

2008-03-03 Thread Adam Gordon
Chris- Great, now you tell me - after I went through all the trouble of replying to his first (of three) posts, which all turned out to be on the same topic... :-) --adam Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Peter, Peter Crowther wrote: |> From: Raghuv

Re: encoding - web.xml,struts struts-config.xml

2008-03-03 Thread Adam Gordon
Just a stab in the dark here since I don't know where Polish alphabet characters lie in the code charts, but you will probably want to use UTF-8 instead of ISO-8859. We've had plenty of issues with users cutting and pasting text from RTF applications (e.g. MS Word) into our web app's text area

Re: Leap-year problem with commons-net

2008-02-29 Thread Adam Gordon
well, but I don't think it's worth it for now. Adam Gordon wrote: Dave- Just set a cron job to do it every minute or (some other interval) and then you don't have to worry about it - just don't forget to remove the job tonight. --adam David kerber wrote: Yeah, tha

Re: Leap-year problem with commons-net

2008-02-29 Thread Adam Gordon
ughout the day for a total of 1000 or so, and we need to process them as they come in, so I've been letting them build up and doing it every hour or so. It's a pain, and I hope they get this fixed sometime before the next leap year (and enough before it that I have time to implem

Re: Leap-year problem with commons-net

2008-02-29 Thread Adam Gordon
Short of downloading/patching the source code and redeploying, just a stab in the dark here, but maybe just execute "touch -d " in the offending directory/directories. There's no recursive flag though, bummer. At least it'll only be a problem for 12 more hours (MST). HTH, --adam David kerb

Re: Apache/Tomcat - mod_jk issues

2008-02-28 Thread Adam Gordon
ks for the clarification. --adam Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Adam, Adam Gordon wrote: | 2. While I've not used the redirectPort attribute on the Connector | element, I'm assuming you are redirecting everything to HTTPS. If this | is the case, I

Re: Apache/Tomcat - mod_jk issues

2008-02-28 Thread Adam Gordon
be changed to the IP (or domain name) of the designated webapp? IE: /somedirectory/worker.properties worker.list=tomcat worker.tomcat.host=localhost change "localhost" to "123.234.345.1" or "mydomain.com"??? worker.tomcat.port=8009 worker.tomcat.type=ajp13

Re: Connection Pooling

2008-02-26 Thread Adam Gordon
Hi, I think you may be confusing the number of allowable processes with the number of allowable threads. Per Tomcat's documentation, maxActive refers to the maximum number of DB connections whereas the Oracle error you are seeing refers to the maximum number of processes (threads?) which are n

Re: Apache/Tomcat - mod_jk issues

2008-02-26 Thread Adam Gordon
Lessie- Sorry to hear you're having trouble. We use Apache/Tomcat in the same way and assuming your snippets are reasonably complete I've noticed some issues that may or may not be helping to cause problems: 1. First and foremost, your worker list defines the worker name as "tomcat" yet in

Re: Session expiration and AJAX issues

2008-02-26 Thread Adam Gordon
Not easily. See Christopher's response in this thread chain. There is not currently a way to not tell Tomcat that a request has come in and not update the last ping time (or similar) on the Session. Jason Pyeron wrote: -Original Message- From: Adam Gordon [mailto:[

Re: Session expiration and AJAX issues

2008-02-25 Thread Adam Gordon
Adding a time decay in our timer task is an interesting idea and were it not for IE's JavaScript counting ineptness, that'd probably work. Bob Hall wrote: --- 10:10AM Mon 25 Feb 2008, Adam Gordon <[EMAIL PROTECTED]> wrote: Storing the date/time a user logs in on the sess

Re: Session expiration and AJAX issues

2008-02-25 Thread Adam Gordon
n-with-session.html insert the starting-date-time intio Session variable and then in the logoutAction.execute method do some quick math on the time-delta to determine if you want to quiesce the session HTH M- - Original Message - From: "Adam Gordon" <[EMAIL PROTECTED]> To

Re: Session expiration and AJAX issues

2008-02-25 Thread Adam Gordon
Paul- > Are you saying that certain browser will never expire their sessions? > Or are you saying that certain browsers kill their sessions before 12 > hours (because they can't count that high)? The former, i.e. that browsers will never expire the sessions. > The way I understand it - you are

Session expiration and AJAX issues

2008-02-25 Thread Adam Gordon
A couple of issues: We've set our session expiration to 12 hours (I know it's long) and we're seeing behavior where certain browsers (namely IE) apparently can't count that high (we set the meta Refresh header but the page doesn't reload after the allotted time, session expiration time + 20 m

Re: Debugging tomcat with eclipse

2008-02-13 Thread Adam Gordon
uis R. On Feb 13, 2008 9:19 AM, Adam Gordon <[EMAIL PROTECTED]> wrote: It's actually MUCH easier than that... :-) If you use Tomcat's start and stop scripts, pass the "jpda" parameter to the script, e.g. "/usr/local/tomcat/bin/catalina.sh jpda start" Then

Re: Debugging tomcat with eclipse

2008-02-13 Thread Adam Gordon
It's actually MUCH easier than that... :-) If you use Tomcat's start and stop scripts, pass the "jpda" parameter to the script, e.g. "/usr/local/tomcat/bin/catalina.sh jpda start" Then, in Eclipse, select the Debug Perspective and then click the down arrow in the little green bug icon in the

Re: Tomcat 5.5.23 - Connector URIEncoding="UTF-8"

2008-02-13 Thread Adam Gordon
AFAIK, we had to add two things to support UTF-8 in our environment: 1. We had to add a Filter to Tomcat to set the encoding on every request to UTF-8, see this page: http://wiki.apache.org/tomcat/Tomcat/UTF-8 2. Add "JkOptions +ForwardURICompatUnparsed" to our apache config file in sites-

Avoiding same server to server HTTP calls to generate HTML pages via JSPs

2008-01-03 Thread Adam Gordon
Any one know if there exists a JSP writer engine in the Tomcat API that allows for the generation of HTML pages via JSP code but without having to make server to server HTTP calls? Right now we basically have a URL dispatcher that when a specific request comes in, we make another request to re

Re: Dynamic logging configuration updates in Tomcat

2007-10-15 Thread Adam Gordon
I've never heard of embedded Tomcat. That said, the whole deal w/ embedded systems is that the API is drastically limited so if logging isn't working, and this may sound like a dumb question but, is it possible that logging just isn't supported? Regardless, space isn't really an issue for us

RE: Dynamic logging configuration updates in Tomcat

2007-10-15 Thread Adam Gordon
gging.properties file during subsequent changes. --adam -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Thursday, October 11, 2007 12:39 PM To: Tomcat Users List Subject: Re: Dynamic logging configuration updates in Tomcat -----BEGIN PGP SIGNED MESSAGE- Has

RE: How to share tomcat sessions across multiple IE windows

2007-10-11 Thread Adam Gordon
Hmmm, we have a webapp that requires authentication to launch a specific function and we spawn multiple windows with window.open() and we don't have any problem with the browser session IDs being changed. Are you switching from http to https or vice versa? This would certainly result in different

RE: Tomcat 5 and SSL

2007-10-11 Thread Adam Gordon
The file is called "cacerts" and is located in your Java SDK directory's jre/lib/security folder. I'm running Ubuntu and it's actually a simlink to a sub-directory in /etc. A fellow engineer is running Fedora 7 and it's not a simlink. Regarding your error, do you have gcj installed? And if so,

RE: Dynamic logging configuration updates in Tomcat

2007-10-11 Thread Adam Gordon
apply them to their respective loggers. In fact, my first test was an exact copy of the LogHandler code and the test worked (i.e., dynamic logging worked), whereas using the LogHandler didn'th. --adam -Original Message- From: Adam Gordon [mailto:[EMAIL PROTECTED] Sent: Tu

Dynamic logging configuration updates in Tomcat

2007-10-09 Thread Adam Gordon
Hi- We have a web application in which we'd like to get dynamic logging working. By dynamic logging, I mean live changes to the webapps' logging.properties file are read and applied without having to restart Tomcat. We have all the code written and running but it appears to not work exactly