RE: Please help ... [MultiThreadedHttpConnectionManager cleanup]

2010-11-24 Thread Rob Gregory
Please let me know if anyone has seen this before. I bet whoever put that in as a feature is really glad for all the posts that followed. http://wiki.apache.org/tomcat/MemoryLeakProtection or a quick google will provide you with some explanation, but basically it's most likely your code ;o)

Starup Order [Filters -- Servlets -- Context]

2010-11-24 Thread Rob Gregory
Hi Guys, Am I correct in my assumption that servlet filters are started before servlets and that the context listeners are not fired until both the filters and servlets have been initialised? What I am trying to do is run some code before the context is started which is actually going to copy

RE: Starup Order [Filters -- Servlets -- Context]

2010-11-24 Thread Rob Gregory
Thanks Pid, see my comment below:- -Original Message- From: Pid [mailto:p...@pidster.com] Sent: 24 November 2010 17:05 To: Tomcat Users List Subject: Re: Starup Order [Filters -- Servlets -- Context] On 24/11/2010 15:38, Rob Gregory wrote: Hi Guys, Am I correct in my

RE: Dynamic GlobalNamingResources / Shared JDBC connection pools

2010-11-18 Thread Rob Gregory
...@christopherschultz.net] Sent: 17 November 2010 16:44 To: Tomcat Users List Subject: Re: Dynamic GlobalNamingResources / Shared JDBC connection pools -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rob, On 11/17/2010 7:07 AM, Rob Gregory wrote: Is it possible to just store my existing

RE: Dynamic GlobalNamingResources / Shared JDBC connection pools

2010-11-18 Thread Rob Gregory
/2010 09:34, Rob Gregory wrote: Thanks Chris, After messing around with JNDI yesterday I came to the same conclusion that Tomcat is doing some isolation and I can understand why. I will look into the JMX approach you suggest as I am running out of options. If That doesn't provide a solution I

RE: Dynamic GlobalNamingResources / Shared JDBC connection pools

2010-11-18 Thread Rob Gregory
: 18 November 2010 10:30 To: Tomcat Users List Subject: Re: Dynamic GlobalNamingResources / Shared JDBC connection pools On 18/11/2010 09:34, Rob Gregory wrote: Thanks Chris, After messing around with JNDI yesterday I came to the same conclusion that Tomcat is doing some isolation

RE: Dynamic GlobalNamingResources / Shared JDBC connection pools

2010-11-18 Thread Rob Gregory
, Rob Gregory wrote: Thanks Chris, After messing around with JNDI yesterday I came to the same conclusion that Tomcat is doing some isolation Random thoughts that may or may not help. If you look in the DataSourceRealm you will see some code that lets a web-app use a DataSource from

RE: Dynamic GlobalNamingResources / Shared JDBC connection pools

2010-11-18 Thread Rob Gregory
To: Tomcat Users List Subject: Re: Dynamic GlobalNamingResources / Shared JDBC connection pools On 18/11/2010 16:54, Rob Gregory wrote: Spot on Mark. I have been googling and playing around for over a day on this, Following your suggestion it boils down to a couple of lines of code

RE: the tomcat encoding

2010-11-17 Thread Rob Gregory
:19 To: Tomcat Users List Subject: Re: the tomcat encoding -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rob, On 11/16/2010 4:31 AM, Rob Gregory wrote: I also use a filter to set the following:- request.setCharacterEncoding(UTF-8); response.setContentType(text/html; charset=UTF-8

Dynamic GlobalNamingResources / Shared JDBC connection pools

2010-11-17 Thread Rob Gregory
Tomcat Users, We are trying to migrate a web application from a single context containing multiple JDBC datasources to a web application deployed over multiple contexts but without duplicating the shared datasources. Reading the docs at

RE: Dynamic GlobalNamingResources / Shared JDBC connection pools

2010-11-17 Thread Rob Gregory
); or something along those lines? Thanks Rob -Original Message- From: Rob Gregory [mailto:rob.greg...@ibsolutions.com] Sent: 17 November 2010 11:09 To: Tomcat Users List Subject: Dynamic GlobalNamingResources / Shared JDBC connection pools Tomcat Users, We are trying to migrate

RE: the tomcat encoding

2010-11-16 Thread Rob Gregory
Hi Xu, Encoding is/can be a real pain. You have to ensure it is consistent throughout the web application to stand any chance. Start with the server.xml with the following declaration:- Connector port=80 redirectPort=443 URIEncoding=UTF-8 useBodyEncodingForURI=true / I also use a filter to set

Single webapp multiple contexts

2010-11-09 Thread Rob Gregory
Hello Tomcat Users, I am trying to create multiple 'dynamic' contexts using just a single code base. For example we currently deploy a webapps within a context of let's say 'A'. This listens quite happily for requests coming in the form of http://localhost/A/index.htm. What I need to be able

RE: Single webapp multiple contexts

2010-11-09 Thread Rob Gregory
16:37:21 org.apache.catalina.core.StandardContext start SEVERE: Context [/A] startup failed due to previous errors Thanks Rob From: Rob Gregory [mailto:rob.greg...@ibsolutions.com] Sent: 09 November 2010 16:22 To: Tomcat Users List Subject: Single webapp multiple contexts Hello Tomcat

RE: Single webapp multiple contexts

2010-11-09 Thread Rob Gregory
provided by juergen. (markt) -Original Message- From: Rob Gregory [mailto:rob.greg...@ibsolutions.com] Sent: 09 November 2010 16:44 To: Tomcat Users List Subject: RE: Single webapp multiple contexts Just to expand on this a little. I have previously had something working

RE: Single webapp multiple contexts

2010-11-09 Thread Rob Gregory
- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: 09 November 2010 17:19 To: Tomcat Users List Subject: RE: Single webapp multiple contexts From: Rob Gregory [mailto:rob.greg...@ibsolutions.com] Subject: Single webapp multiple contexts I am trying to create multiple

RE: Single webapp multiple contexts

2010-11-09 Thread Rob Gregory
Subject: Re: Single webapp multiple contexts On 09/11/2010 17:18, Caldarale, Charles R wrote: From: Rob Gregory [mailto:rob.greg...@ibsolutions.com] Subject: Single webapp multiple contexts I am trying to create multiple 'dynamic' contexts using just a single code base. For example we

RE: DBCP abandoned trace - unable to understand the leak

2010-11-04 Thread Rob Gregory
The code you posted looks fine but without the complete class it is hard to say 100% your class is fine. -Original Message- From: sasidhar prabhakar [mailto:sasidhar1...@gmail.com] Sent: 04 November 2010 11:36 To: Tomcat Users List Subject: Re: DBCP abandoned trace - unable to

RE: DBCP abandoned trace - unable to understand the leak

2010-11-04 Thread Rob Gregory
The full class looks ok to me. Your issues must be elsewhere. -Original Message- From: sasidhar prabhakar [mailto:sasidhar1...@gmail.com] Sent: 04 November 2010 12:05 To: Tomcat Users List Subject: Re: DBCP abandoned trace - unable to understand the leak The complete class has

RE: DBCP abandoned trace - unable to understand the leak

2010-11-04 Thread Rob Gregory
Are you sure it is running against the code you think it is running against. Try changing something that is output to the log files and make sure you see this change before the abandoned stack trace is thrown. -Original Message- From: sasidhar prabhakar [mailto:sasidhar1...@gmail.com]

RE: filter order question

2010-11-04 Thread Rob Gregory
What was the URL of your request? -Original Message- From: Aggarwal, Ajay [mailto:ajay.aggar...@stratus.com] Sent: 04 November 2010 16:09 To: Tomcat Users List Subject: filter order question From reading the doc, it seems the filters are invoked in the order in which they appear

RE: Protecting static resources in IIS

2010-11-03 Thread Rob Gregory
: Richard G Curry [mailto:rgcu...@jcpenney.com] Subject: RE: Protecting static resources in IIS From: Rob Gregory [mailto:rob.greg...@ibsolutions.com] Subject: RE: Protecting static resources in IIS Would that then result in having to run Tomcat/Apache/IIS as root/system

RE: Discover the Datasource connection pool maxSize.

2010-11-03 Thread Rob Gregory
The following code fragment is used to auto create the datasource pool and you can then use tds.getMaxWait etc. not sure if this is going to help you with a tomcat specified connection pool but might give you some pointers... DriverAdapterCPDS cpds = new DriverAdapterCPDS();

RE: Protecting static resources in IIS

2010-11-02 Thread Rob Gregory
While this is not a forum nor is the mailing list about IIS a quick suggestion and one we implement is to place a blank (or custom) index.html file into every directory within the site. This will then be served up when requests for resources are received. Hope that helps Rob -Original

RE: Protecting static resources in IIS

2010-11-02 Thread Rob Gregory
url, it shows the image A.gif which needs to be restricted its access. https://hostname/images/TestDir/A.gifhttps://%3chostname%3e/images/Te stDir/ A.gif Please let me know if this can be resolved. Thanks, Siva Prakash On Tue, Nov 2, 2010 at 7:49 PM, Rob Gregory rob.greg

RE: Protecting static resources in IIS

2010-11-02 Thread Rob Gregory
place my images in Tomcat and get it served by a servlet( a performance penalty ) and neither I can change my image names to ones which are not easily guessable. My tomcat app jsps should continue using the existing images. On Tue, Nov 2, 2010 at 8:22 PM, Rob Gregory rob.greg

RE: Protecting static resources in IIS

2010-11-02 Thread Rob Gregory
credentials and returns a 403 for unauthorised access would be a low cost option. p and neither I can change my image names to ones which are not easily guessable. My tomcat app jsps should continue using the existing images. On Tue, Nov 2, 2010 at 8:22 PM, Rob Gregory rob.greg

RE: Tomcat Re-direct

2010-10-18 Thread Rob Gregory
It doesn't need to be a .jsp file, just place a static index.html file into the root webapp with the following content:- !doctype html public -//w3c//dtd html 4.0 transitional//en http://www.w3.org/TR/REC-html40/strict.dtd; html head meta http-equiv=Content-Type content=text/html;

RE: upgrading apache tomcat on windows 2003

2010-10-14 Thread Rob Gregory
Can you not just manually remove the existing service i.e. from a cmd prompt:- sc delete nameOfService You can determine the name of the service from the services option within control panel but guessing it is called Tomcat. Rob -Original Message- From: Paul Primeau

RE: upgrading apache tomcat on windows 2003

2010-10-14 Thread Rob Gregory
- ITSB - SMD mailto:paul.prim...@pwgsc.gc.ca -Original Message- From: Rob Gregory [mailto:rob.greg...@ibsolutions.com] Sent: Thursday, October 14, 2010 9:26 AM To: Tomcat Users List Subject: RE: upgrading apache tomcat on windows 2003 Can you not just manually remove

Apache Reverse Proxy required or not?

2010-10-14 Thread Rob Gregory
Hi All, Quick question on what people's views are with regard to using Tomcat to host external/internet facing sites. A quick Google search recommends that these should be 'fronted' by Apache running reverse proxy. Is Tomcat classed as insecure and as such requires this proxy in front or is

RE: JSESSIONID weakness Severity in Tomcat 6.0.29?

2010-10-12 Thread Rob Gregory
As far as I know Tomcat will always generate a new id for each session it generates. As for how they have detected that your application is vulnerable to session fixation issues etc. try having a look at Burp Suite http://portswigger.net/burp/ which detects a great deal of web application flaws.

RE: Starting/Stopping Tomcat from Java program

2010-10-11 Thread Rob Gregory
I call the scripts via code to both stop and start Tomcat. There is a problem with even calling these scripts via Unix unless you change (cd) into the bin directory before running startup.sh as the log paths are generated relative to the startup.sh location. String strCatalinaBin =

Deploy Dynamic Contexts

2010-10-07 Thread Rob Gregory
Hi Tomcat Community, Does anyone know if it is possible to dynamically create contexts on demand. I have a requirement to be able to ship a single application.war file and create multiple contexts from this without manually using the manager application etc. Tomcat is the latest version

RE: Deploy Dynamic Contexts

2010-10-07 Thread Rob Gregory
Thanks Chuck, After thinking about it some more I realise the servlet approach is the wrong time to tackle this issue. I will copy the contexts at installation time as we use installshield/install anywhere deployment and this makes much more sense. Regards, Rob I have a requirement to be

RE: Tabbed browsers sharing session - work around.

2010-10-05 Thread Rob Gregory
Hi Chris, Is there any way to dynamically create these contexts or do they require a live.xml, test.xml, etc within conf/Catalina/localhost. The multiple contexts would be my preferred approach although I would like to achieve this with a single code base if this is possible. The multiple

RE: Tabbed browsers sharing session - work around.

2010-10-05 Thread Rob Gregory
Chris, See comments below:- Rob, On 10/4/2010 7:27 AM, Rob Gregory wrote: Using the hostname doesn't really guarantee a unique session for example if I click new tab and paste the URL into the new window I suspect the browser will see the same session from the first tab. Note

RE: Tabbed browsers sharing session - work around.

2010-10-05 Thread Rob Gregory
. Op dinsdag, 5 oktober 2010 10:26 schreef Rob Gregory rob.greg...@ibsolutions.com: Hi Chris, Is there any way to dynamically create these contexts or do they require a live.xml, test.xml, etc within conf/Catalina/localhost. The multiple contexts would be my preferred approach although I

RE: Tabbed browsers sharing session - work around.

2010-10-05 Thread Rob Gregory
with ctrl-N you have the same session sharing as with tabs. Only if you click the IE6-icon to start a new instance of the process it will not share them. Opening a new tab in IE7 is like using ctrl-n to open a new window in IE6. Ronald. Op dinsdag, 5 oktober 2010 10:26 schreef Rob Gregory

RE: Tabbed browsers sharing session - work around.

2010-10-05 Thread Rob Gregory
Subject: RE: Tabbed browsers sharing session - work around. From: Rob Gregory [mailto:rob.greg...@ibsolutions.com] Subject: RE: Tabbed browsers sharing session - work around. I am surprised this hasn't been a problem for a lot more people. It's not a problem for most because most don't

RE: Tabbed browsers sharing session - work around.

2010-10-05 Thread Rob Gregory
To: Tomcat Users List Subject: RE: Tabbed browsers sharing session - work around. From: Rob Gregory [mailto:rob.greg...@ibsolutions.com] Subject: RE: Tabbed browsers sharing session - work around. I am surprised this hasn't been a problem for a lot more people. It's not a problem

RE: Tabbed browsers sharing session - work around.

2010-10-05 Thread Rob Gregory
as they do now but the browser would store them within each instance. They seem to have changed to now share the sessions/cookies and this was introduced at the same time as tabbed browsers IE7+. Regards, Rob -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rob, On 10/5/2010 5:03 AM, Rob

RE: Tabbed browsers sharing session - work around.

2010-10-05 Thread Rob Gregory
problem why in the world did you hack away at tomcat? Why not filters? You can do a lot with filters that would be much preferable to what you have done including the fact that it would just run without having to modify the servlet container. -Original Message- From: Rob Gregory

RE: Tabbed browsers sharing session - work around.

2010-10-04 Thread Rob Gregory
session - work around. You can run your test environment on another hostname. live.example.com test.example.com train.example.com Maybe use a login.example.com to redirect you to the right url after login. Ronald. Op maandag, 4 oktober 2010 11:03 schreef Rob Gregory rob.greg...@ibsolutions.com

RE: Tabbed browsers sharing session - work around.

2010-10-04 Thread Rob Gregory
-INF, etc. Ronald. Op maandag, 4 oktober 2010 12:58 schreef Rob Gregory rob.greg...@ibsolutions.com: Hi Ronald, Thanks for the prompt response but I am not sure I fully understand your suggestion. Would that approach require knowing the available environments before hand

Tabbed browsers sharing session - work around.

2010-10-04 Thread Rob Gregory
but this was quickly resolved. Any input or criticisms would be greatly appreciated if you can see a flaw in this design or know of a better approach to bypass this shared session behaviour of recent browsers. Many thanks for your time. Rob Gregory

RE: [HELP] Forcing Context Reload (watched resource) via Java Code

2006-02-26 Thread Rob Gregory
. They only get re-written if any details such as password has changed. Thanks Again Rob -Original Message- From: Glen Mazza [mailto:[EMAIL PROTECTED] Sent: 25 February 2006 17:49 To: Tomcat Users List Subject: Re: [HELP] Forcing Context Reload (watched resource) via Java Code Rob

RE: [HELP] Forcing Context Reload (watched resource) via Java Code

2006-02-26 Thread Rob Gregory
apprised, Martin- - Original Message - From: Rob Gregory [EMAIL PROTECTED] To: 'Tomcat Users List' users@tomcat.apache.org Sent: Sunday, February 26, 2006 7:37 AM Subject: RE: [HELP] Forcing Context Reload (watched resource) via Java Code Thanks Glen, A new area for me to investigate

RE: [HELP] Forcing Context Reload (watched resource) via Java Code

2006-02-26 Thread Rob Gregory
From: Rob Gregory [mailto:[EMAIL PROTECTED] Subject: RE: [HELP] Forcing Context Reload (watched resource) via Java Code I'm pretty sure this is possible with just Tomcat as the html manager webapp is already doing the reloads. For experimentation purposes, what happens if you ask

RE: [HELP] Forcing Context Reload (watched resource) via Java Code

2006-02-26 Thread Rob Gregory
] Sent: 26 February 2006 16:09 To: Tomcat Users List Subject: RE: [HELP] Forcing Context Reload (watched resource) via Java Code From: Rob Gregory [mailto:[EMAIL PROTECTED] Subject: RE: [HELP] Forcing Context Reload (watched resource) via Java Code Does this indicate that contexts are unable

RE: [HELP] Forcing Context Reload (watched resource) via Java Code

2006-02-25 Thread Rob Gregory
- From: Glen Mazza [mailto:[EMAIL PROTECTED] Sent: 25 February 2006 03:01 To: Tomcat Users List Subject: Re: [HELP] Forcing Context Reload (watched resource) via Java Code Rob Gregory escribió: Hi All I'm using Tomcat 5.5.9 on Java 1.5.under mixed OS's. The question is one

RE: tomcat catalina.out getting bombed with debug messages on maven-proxy deploy

2006-02-24 Thread Rob Gregory
Please post your log4j.properties file - it sounds like your root logger is too general. Rob -Original Message- From: Brad O'Hearne [mailto:[EMAIL PROTECTED] Sent: 24 February 2006 19:35 To: Tomcat Users List Subject: tomcat catalina.out getting bombed with debug messages on maven-proxy

RE: Setting up connection pools on the fly...

2006-01-23 Thread Rob Gregory
lookups for JUnit test cases. Tim -Original Message- From: Rob Gregory [mailto:[EMAIL PROTECTED] Sent: Monday, January 23, 2006 4:28 AM To: Tomcat Users List Subject: RE: Setting up connection pools on the fly... Hi Tim, Thanks for the assistance. Our basic requirement is during tomcat

RE: Setting up connection pools on the fly...

2006-01-22 Thread Rob Gregory
I also have the same requirement (to provide connection pools on the fly) but also need these pools available to Cocoon (so need them to map to the standard jdbc/mypool jndi location. Tomcat declares it's initial context as being readonly so I have no idea how to go about binding the pools I

RE: Setting up connection pools on the fly...

2006-01-22 Thread Rob Gregory
in the connnection pool properties. I would suggest setting the defaultCatalog property as well, so that you are not accidentally connected to the last-used catalog from the previous borrower of the connection. Tim -Original Message- From: Rob Gregory [mailto:[EMAIL PROTECTED] Sent: Sunday, January

RE: Images caching

2006-01-18 Thread Rob Gregory
You are more than welcome mate. I learnt from you guys on the lists and the Net and we should all try and give back to the community. Rob Gregory -Original Message- From: Bello Martinez Sergio [mailto:[EMAIL PROTECTED] Sent: 18 January 2006 07:43 To: Tomcat Users List Subject: RE

RE: Images caching

2006-01-17 Thread Rob Gregory
To: Tomcat Users List Subject: RE: Images caching Hi Rob Gregory, I would thank a lot those code examples about setting headers with filters. I've read a lot about this problem yesterday and I've discovered that there are a problem with IE6 images caching, so I'm very interested in the workaround

RE: Dynamic Datasource Configuration - JNDI read only context

2006-01-17 Thread Rob Gregory
. Personally I like the idea of putting the javax.sql.DataSource object in the ServletContext and using it from there as needed. --David Rob Gregory wrote: Hi Guys and thanks in advance for any pointers. I am running Tomcat 5.5.9 and would like to remove the need to specify database configuration

RE: Encrypting/Protecting JSP/Struts source code (UNCLASSIFIED)

2006-01-17 Thread Rob Gregory
Good comments, but how would you encrypt the config files when Struts needs these to run out code (hence before I can decrypt). While I personally prefer Cocoon over struts these are pretty much 'Sister' projects so the same solution would help me also. Discussion appreciated. Rob -Original

RE: Classloaders for 'shared' and 'common' cannot load class-data from server?

2006-01-16 Thread Rob Gregory
Obvious question but have you tried placing your required jar in common/endorsed? Regards Rob -Original Message- From: Ken Johanson [mailto:[EMAIL PROTECTED] Sent: 16 January 2006 22:59 To: Tomcat Users List Subject: Classloaders for 'shared' and 'common' cannot load class-data from

Dynamic Datasource Configuration - JNDI read only context

2006-01-16 Thread Rob Gregory
Hi Guys and thanks in advance for any pointers. I am running Tomcat 5.5.9 and would like to remove the need to specify database configuration details within the context.xml file e.g. Resource name=jdbc/one type=javax.sql.DataSource username=user password=pass

RE: Images caching

2006-01-16 Thread Rob Gregory
post code examples if needed. Hope this helps. Rob Gregory -Original Message- From: ALEX HYDE [mailto:[EMAIL PROTECTED] Sent: 16 January 2006 23:38 To: Tomcat Users List Subject: Re: Images caching Hey Bello, I'm fairly new to this but don't mind putting my two pence worth in. I'm

RE: Hibernate debugging problem in Tomcat 5.5.12

2006-01-16 Thread Rob Gregory
What is your development environment? I use Eclipse (EXCELLENT bit of software on par with Tomcat) and this allows me to even debug Tomcat code when required. Rob -Original Message- From: Behrang Saeedzadeh [mailto:[EMAIL PROTECTED] Sent: 16 January 2006 23:50 To: Tomcat Users List