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)
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
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
...@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
/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
: 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
, 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
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
: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
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
);
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
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
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
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
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
-
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
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
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
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
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]
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
: 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
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();
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
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
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
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
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;
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
- 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
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
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.
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 =
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
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
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
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
.
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
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
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
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
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
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
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
-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
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
. 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
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
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
]
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
-
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
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
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
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
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
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
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
. 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
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
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
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
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
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
63 matches
Mail list logo