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 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
> 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)
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
;
> 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
@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
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
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
_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
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
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
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
: 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
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
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
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
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
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
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]
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
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
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
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
>
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:
> >
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
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
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
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.
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
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,
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
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
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
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 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
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
;
> 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
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]
> > >
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
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
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
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
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
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
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
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
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
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
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,
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
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
-
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
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
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
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
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"...
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
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
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
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
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
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
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
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
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.
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
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
67 matches
Mail list logo