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: >

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 a

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)

RE: Dynamic GlobalNamingResources / Shared JDBC connection pools

2010-11-18 Thread Rob Gregory
010 16:59 > 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 sug

RE: Dynamic GlobalNamingResources / Shared JDBC connection pools

2010-11-18 Thread Rob Gregory
; > 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 > > Random thoughts that may or may not help. > > If you look in the DataSourceRe

RE: Dynamic GlobalNamingResources / Shared JDBC connection pools

2010-11-18 Thread Rob Gregory
@apache.org] > Sent: 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

RE: Dynamic GlobalNamingResources / Shared JDBC connection pools

2010-11-18 Thread Rob Gregory
ools > > 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 and I can understand why. I will look into the > JMX approach you suggest as

RE: Dynamic GlobalNamingResources / Shared JDBC connection pools

2010-11-18 Thread Rob Gregory
er Schultz [mailto:ch...@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

RE: Dynamic GlobalNamingResources / Shared JDBC connection pools

2010-11-17 Thread Rob Gregory
_test", objTestDatasource); 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 connecti

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 http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-ex

RE: the tomcat encoding

2010-11-17 Thread Rob Gregory
r 2010 19: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.setChar

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:- I also use a filter to set the following:- request.setCharacterEncoding("UTF-8"); response.setContentType("t

RE: Single webapp multiple contexts

2010-11-09 Thread Rob Gregory
: 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

RE: Single webapp multiple contexts

2010-11-09 Thread Rob Gregory
age- > 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 &g

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 so

RE: Single webapp multiple contexts

2010-11-09 Thread Rob Gregory
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 Users, > > > > I am trying to create multiple 'dynamic' contexts using j

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 to

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

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: 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

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 u

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(); Conn

RE: Protecting static resources in IIS

2010-11-03 Thread Rob Gregory
esources in IIS > > > From: 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 >

RE: Protecting static resources in IIS

2010-11-02 Thread Rob Gregory
ption. > > 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 > wrote: > >

RE: Protecting static resources in IIS

2010-11-02 Thread Rob Gregory
lead to phishing attack. > Having said that I can't 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

RE: Protecting static resources in IIS

2010-11-02 Thread Rob Gregory
ir/ <https://%3chostname%3e/images/TestDir/> > > but if I hit the following url, it shows the image A.gif which needs to be > restricted its access. > > https:///images/TestDir/A.gif<https://%3chostname%3e/images/Te stDir/ > A.gif> > > Please let me know if

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 Mess

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:- http://www.w3.org/TR/REC-html40/strict.dtd";> eSeries window.location.replace("/idm"); Please Wait... No configuration required.

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 thi

RE: upgrading apache tomcat on windows 2003

2010-10-14 Thread Rob Gregory
n, > > Paul Primeau > CGI Engineering & Technical Support > ETS Midrange Service Line > PWGSC - ITSB - SM&D > mailto:paul.prim...@pwgsc.gc.ca > > > -Original Message- > From: Rob Gregory [mailto:rob.greg...@ibsolutions.com] > Sent: Thursday, October 14,

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 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 [mailto:paul.prim...@tpsgc-p

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. R

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 = System

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

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 6.0.29

RE: Tabbed browsers sharing session - work around.

2010-10-05 Thread Rob Gregory
would just > run without having to modify the servlet container. > > -Original Message- > From: Rob Gregory [mailto:rob.greg...@ibsolutions.com] > Sent: Tuesday, October 05, 2010 10:51 AM > To: Tomcat Users List > Subject: RE: Tabbed browsers sharing session - work around. &g

RE: Tabbed browsers sharing session - work around.

2010-10-05 Thread Rob Gregory
; > On 10/5/2010 5:03 AM, Rob Gregory wrote: > >> Sounds like you need to be pretty careful. Is it possible you've built a > >> fragile application? > > > > Some legacy parts of the application became fragile when the browsers > > started sharing se

RE: Tabbed browsers sharing session - work around.

2010-10-05 Thread Rob Gregory
Charles R [mailto:chuck.caldar...@unisys.com] > > Sent: Tuesday, October 05, 2010 8:40 AM > > To: Tomcat Users List > > Subject: RE: Tabbed browsers sharing session - work around. > > > > > From: Rob Gregory [mailto:rob.greg...@ibsolutions.com] > > >

RE: Tabbed browsers sharing session - work around.

2010-10-05 Thread Rob Gregory
4:40 > 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 f

RE: Tabbed browsers sharing session - work around.

2010-10-05 Thread Rob Gregory
ctrl-n to open a new window in IE6. > > > > Ronald. > > > > > > Op dinsdag, 5 oktober 2010 10:26 schreef Rob Gregory > : > >> Hi Chris, > >> Is there any way to dynamically create these contexts or do they require a > live.xml, test.xml, etc within c

RE: Tabbed browsers sharing session - work around.

2010-10-05 Thread Rob Gregory
o open a new window in IE6. > > Ronald. > > > Op dinsdag, 5 oktober 2010 10:26 schreef 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

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

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 envir

Tabbed browsers sharing session - work around.

2010-10-04 Thread Rob Gregory
s 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: Tabbed browsers sharing session - work around.

2010-10-04 Thread Rob Gregory
of WEB-INF, etc. Ronald. Op maandag, 4 oktober 2010 12:58 schreef Rob Gregory : > > > 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 and r

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 : > > > &g

RE: Only a type can be imported. x.y.MyClass resolves to a package

2006-03-26 Thread Rob Gregory
This usually points to a missing jar file or missing classes. By missing I mean either not available on the classpath, etc. -Original Message- From: prophecy [mailto:[EMAIL PROTECTED] Sent: 22 March 2006 01:07 To: users@tomcat.apache.org Subject: Only a type can be imported. x.y.MyClass r

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

2006-02-26 Thread Rob Gregory
lto:[EMAIL PROTECTED] 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 > > D

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

2006-02-26 Thread Rob Gregory
Code > 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,

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

2006-02-26 Thread Rob Gregory
l Keep us apprised, Martin- - Original Message - From: "Rob Gregory" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" Sent: Sunday, February 26, 2006 7:37 AM Subject: RE: [HELP] Forcing Context Reload (watched resource) via Java Code > Thanks

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

2006-02-26 Thread Rob Gregory
m out. 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

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

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

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

2006-02-24 Thread Rob Gregory
Hi All I'm using Tomcat 5.5.9 on Java 1.5.under mixed OS's. The question is one of forcing a context/webapp reload via java code - is this possible? I know adding a watched resource or adding a new lib triggers a reload (so hopefully to trigger this via code is possible). We use a d

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

2006-01-23 Thread Rob Gregory
a package which provides JNDI 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 assi

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

2006-01-23 Thread Rob Gregory
must define them on the fly" would enable us to give you a better solution. -Original Message- From: Rob Gregory [mailto:[EMAIL PROTECTED] Sent: Sunday, January 22, 2006 5:41 PM To: 'Tomcat Users List' Subject: RE: Setting up connection pools "on the fly"...

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

2006-01-22 Thread Rob Gregory
alogs processed in this way must be accesible to the user specified 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

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 have

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 Li

RE: UTF-8 JavaScript and HTML Files

2006-01-17 Thread Rob Gregory
I don't have the time to fully understand your question (time for bed) but after scanning your issues this post may help:- Topic regarding UTF-8 vs ISO encoding http://wiki.apache.org/tomcat/Tomcat/UTF-8 Sorry if I'm really off topic but the linked document is small and interesting as to why it's

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: Dynamic Datasource Configuration - JNDI read only context

2006-01-17 Thread Rob Gregory
ce in your ServletContext. 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

RE: Images caching

2006-01-17 Thread Rob Gregory
og.isDebugEnabled()) log.debug("Destroy Cache Filter"); this.objFilterConfig = null; } } -Original Message- From: Bello Martinez Sergio [mailto:[EMAIL PROTECTED] Sent: 17 January 2006 07:12 To: Tomcat Users List Subject: RE: Images caching Hi Rob Gregory, I wou

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 Subje

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.

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. I need to provide (apache commons db) datasources 'on the fly' and after trying every thing I can thi

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 serv