Re: Mod_jk/firewall configuration problems

2006-06-21 Thread Francis Galiegue
t is in the middle of our navigation some pages just won't display and either IE or Firefox say "Server timeout". Do you think it can be related to this? -- Francis Galiegue, [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] One2team - 12bis rue de la Pierre Levée, 75011 Paris - 01

Tomcat 5.0 : howto make a webapp the ROOT webapp the proper way

2005-11-08 Thread Francis Galiegue
ught up no results at all, but then I may have entered the wrong keywords :( Can anyone enlighten me? -- Francis Galiegue, [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] One2team - 12bis rue de la Pierre Levée, 75011 Paris - 0143381980 "When it comes to performance, w

Re: Tomcat 5.0 : howto make a webapp the ROOT webapp the proper way

2005-11-08 Thread Francis Galiegue
that if I do things this way, the application won't be under / but under /one2team, and I need it to be under / :( I can do with the Catalina/localhost/ROOT.xml file, I just rm -f it when I uninstall the RPM... It's just this / thing which is annoying, and the way I found around the proble

Re: Tomcat 5.0 : howto make a webapp the ROOT webapp the proper way

2005-11-08 Thread Francis Galiegue
2005/11/8, Caldarale, Charles R <[EMAIL PROTECTED]>: [...] > > At least for 5.5, the proper way is to put your application in ROOT.war > (caps required) rather than any other name. I think this applies to 5.0 > as well, but I haven't used that level in some time. > That's a solution, except that

Re: Tomcat 5.0 : howto make a webapp the ROOT webapp the proper way

2005-11-08 Thread Francis Galiegue
der /. This, AFAICS, the documentation does NOT cover. -- Francis Galiegue, [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] One2team - 12bis rue de la Pierre Levée, 75011 Paris - 0143381980 "When it comes to performance, weight is ev

Re: How to deploy my webapp as root context webapp without tomcat loading it twice?

2005-12-01 Thread Francis Galiegue
problem a month ago or so and came up with this solution, asking if there weren't any better ones. Renaming the webapp dir to ROOT is a nono so far, so I defined a nonexisting appBase and put an absolute path in . It works, but it's ugly, for sure :( I wonder whether creating Catalina//R

Tomcat 5.0 : 401 errors do NOT send back a www-authenticate field :(

2005-12-19 Thread Francis Galiegue
on runs tomcat5 and Apache 2.0.x, x being 47 or 52, both from RedHat (I had to recompile the .52 RPM for it to work on our RH3 based systems). Any ideas? I've long run short of them myself :( Merry Christmas BTW, and thanks in advance for your help, -- Francis Galiegue, [EMAIL PROTECTED], [EMAI

[Repost...] Tomcat 5.0 : 401 errors do NOT send back a www-authenticate field :(

2005-12-19 Thread Francis Galiegue
.ShowDocumentContent [...] content /servlet/ShowDocumentContent -- And that's it, really... Any ideas? I've long run short of them myself :( Merry Christmas BTW, and thanks in advance for your help, -- Francis Galiegue, [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECT

Re: Tomcat 5.0 : 401 errors do NOT send back a www-authenticate field :(

2005-12-21 Thread Francis Galiegue
2005/12/19, Francis Galiegue <[EMAIL PROTECTED]>: > Hello, > > As the subject says, we have a problem with Tomcat 5.0 (5.0.27 through > 5.0.30 to be precise) where a servlet invoked from tomcat5 does NOT > send a www-authenticate header back, resulting in a definitive 401 &

Re: rotating tomcat logs

2006-02-01 Thread Francis Galiegue
2006/2/1, Tim Lucia <[EMAIL PROTECTED]>: > I use log4j as the logging implementation, and then chose the > RollingFileAppender (Daily or Size--your choice) > Or use logrotate (that is, if you use some Unix variant and the program exists). -- Francis Galiegue, [EMAIL PROTECTED], [

Re: Does mod_jk work with Tomcat 5.5?

2006-02-21 Thread Francis Galiegue
#x27;s probably installed somewhere else, just locate it and update the path. -- Francis Galiegue, [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] One2team - 12bis rue de la Pierre Levée, 75011 Paris - 0143381980 "When

Re: Does mod_jk work with Tomcat 5.5?

2006-02-21 Thread Francis Galiegue
r file, that its looking for? > Your worker.properties, maybe? I think you've done it already, though... Try and ldd the module in question: does it show a missing link? -- Francis Galiegue, [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] One2team - 12bis rue de la Pierre Levé

[BUG] Tomcat 5.0.x doesn't handle permission errors on classes correctly

2006-03-14 Thread Francis Galiegue
or something, but no, it was as simple as a chmod o+rx on a directory... -- Francis Galiegue, [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] One2team - 12bis rue de la Pierre Levée, 75011 Paris - 0143381980 "Whe

Re: Here is site, not getting spidered.

2006-03-27 Thread Francis Galiegue
2006/3/27, Scott Purcell <[EMAIL PROTECTED]>: > Here is the site: > > http://www.theuniquepear.com > I'm not very fluent with HTML, but why are there two DOCTYPE declarations in the generated code? -- Francis Galiegue, [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTE

Tomcat 5.0 : how to "redirect" a 401 error to a specific page

2006-04-25 Thread Francis Galiegue
nice to reply-all, since the two CC are not on the list, -- Francis Galiegue, [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] One2team - 12bis rue de la Pierre Levée, 75011 Paris - 0143381980 "When it comes to performance, weight is everything" - Tiff Needell ---

mod_jk : "connection aborted or network problems", but apache and tomcat are on the same machine??

2006-05-04 Thread Francis Galiegue
for this problem? If so, what information would be necessary to diagnose the problem? I thought about the mod_jk parameters in Apache configuration and the worker.properties, but maybe something else would help? Thanks and have a nice day, -- Francis Galiegue, [EMAIL PROTECTED], [EMAIL PROTECTED],

Re: mod_jk : "connection aborted or network problems", but apache and tomcat are on the same machine??

2006-05-05 Thread Francis Galiegue
rvers 2 MaxClients 150 MinSpareThreads 25 MaxSpareThreads 75 ThreadsPerChild 25 MaxRequestsPerChild 0 -- But I cannot tell, I'm no expert at all... Please help :( Thanks, -- Francis Galiegue, [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] One2team - 12

"This page contains secure and non secure elements" (was "mod_jk : "connection aborted or network problems", but apache and tomcat are on the same machine??")

2006-05-08 Thread Francis Galiegue
d an answer for is what mod_jk actually calls the client... TIA, -- Francis Galiegue, [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] One2team - 12bis rue de la Pierre Levée, 75011 Paris - 0143381980 "When it comes to

Re: "This page contains secure and non secure elements" (was "mod_jk : "connection aborted or network problems", but apache and tomcat are on the same machine??")

2006-05-08 Thread Francis Galiegue
2006/5/8, Marc Farrow <[EMAIL PROTECTED]>: You said it gives a warning in Firefox, but IE doesn't allow page to be pulled up. No, both fail to load it. The only benefit of Firefox is its more accurate error message. -- Francis Galiegue, [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAI

Tomcat 5.0.x: AccessLogValve's "%B" pattern specifier shows -1 bytes??

2006-05-17 Thread Francis Galiegue
g? 2. does the %t pattern specifier accept the Apache {} extension, such as %{%Y%m%d,%H:%M:%S}t which I use for my Apache logs? Thanks, -- Francis Galiegue, [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] One2team - 12bis rue de la Pierre Levée, 75011 Paris - 0143381980 "When it comes to per

Re: Tomcat 5.0.x: AccessLogValve's "%B" pattern specifier shows -1 bytes??

2006-05-18 Thread Francis Galiegue
but then it uses mod_deflate, so... 1) Setting timeFormat to a format not friendly to SimpleDateFormat will probably yeild bad results. 2) No Pity, really. I think these should be corrected in a future release. It's hard to integrate it into my environment because of this :( -- Francis

Tomcat 5.5.x or 6.x: ROOT limitation removed?

2008-04-08 Thread Francis Galiegue
ed twice: once under /, which is what we want, and another time under /one2team, which we don't want either... Does tomcat5.5 remove this limitation? Or even tomcat 6.x? Thanks in advance, -- Francis Galiegue, [EMAIL PROTECTED], [EMAIL PROTECTED] One2team - 42 Av. Raymond Poincaré - 7511

Re: Tomcat 5.5.x or 6.x: ROOT limitation removed?

2008-04-08 Thread Francis Galiegue
't deploy AFAIR). Can you show what your look like? Maybe this can make a difference... Thanks, -- Francis Galiegue, [EMAIL PROTECTED] "When it comes to performance, weight is everything" - Tiff Needell - To start

Re: Tomcat 5.5.x or 6.x: ROOT limitation removed?

2008-04-09 Thread Francis Galiegue
tried the "real" appBase, changing the docBase of the to one2team: app deploys as /one2team, even though the context file is named ROOT.xml :( -- Francis Galiegue, [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] One2team - 12bis rue de la Pierre Levée, 75011 Pari

Re: Tomcat 5.5.x or 6.x: ROOT limitation removed?

2008-04-09 Thread Francis Galiegue
xist. Sure, I'd like to do it in a cleaner way but then there are elements over which I don't have control of - the two main of them being: the webapp lies in a directory, and the directory has to be named one2team... -- Francis Galiegue, [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTE

Re: 301 permanent redirects in Apache + Tomcat using mod_jk

2008-04-11 Thread Francis Galiegue
webapp root, you see what I mean. I've been playing that trick before, and it worked. I think I'm missing something though. -- Francis Galiegue, [EMAIL PROTECTED] "When it comes to performance, weight is everything" - Tiff Needell --

Re: 301 permanent redirects in Apache + Tomcat using mod_jk

2008-04-11 Thread Francis Galiegue
ugh, in most cases, the hostname of the server is its real FQDN! mod_jk and VitrtualHosts are NOT incompatible. Meh, I even have my defined as only responding to localhost! -- Francis Galiegue, [EMAIL PROTECTED] "When it comes to performance, weight i

Re: 301 permanent redirects in Apache + Tomcat using mod_jk

2008-04-11 Thread Francis Galiegue
ish to permanently redirect these HTML pages too. > > So what would really help me is a URL rewriting module/plug-in like > mod_rewrite. > Please clarify. What are these "10 links"? Individual files or whole directories/webapps? Also, have you considered mod_proxy (ProxyPass and

Re: 301 permanent redirects in Apache + Tomcat using mod_jk (solved partly)

2008-04-12 Thread Francis Galiegue
wSymLinks # # Redirect-only VHost # ServerName cookiejar.kitchen.eel RedirectMatch permanent ^/(.*)$ https://frontend.kitchen.eel/$1 CUT I don't use mod_rewrite, as you can see. -- Francis Galiegue, [EMAIL PROTECTED] "When it comes to performance,

Re: Is it possible to serve static pages from Tomcat?

2008-04-12 Thread Francis Galiegue
everse / http://localhost:8080/ This way, Tomcat will serve everything AND your 8080 port will not even show in the URL. Heck, your Tomcat/JBoss can even be on a different machine (just change localhost). -- Francis Galiegue,

Re: 301 permanent redirects in Apache + Tomcat using mod_jk (solved partly)

2008-04-12 Thread Francis Galiegue
2008/4/12, Christopher Schultz <[EMAIL PROTECTED]>: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Francis, > > Francis Galiegue wrote: > | Apache is much better at serving static content... > > To be fair, Apache httpd and Tomcat are about equal.

Re: 301 permanent redirects in Apache + Tomcat using mod_jk (solved partly)

2008-04-13 Thread Francis Galiegue
> www.xyz.com:80, the first has precedence, perhaps you need a > NameVirtualHost directive > Have you put a NameVirtualHost your.ip.add.ress:{443,80} before defining your virtual hosts? -- Francis Galiegue, [EMAIL PROTECTED] "When it comes to performance, weig

Re: Too many open files error

2011-08-24 Thread Francis GALIEGUE
XML document after > doing a series of database queries. > file-max is not what you want to modify. It's the user's limit: RMILIT_NFILE. Look in /etc/security/limits.d. You'll need to restart Tomcat. -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel :

Re: Too many open files error

2011-08-24 Thread Francis GALIEGUE
amed tomcat in it (or whatever name you want) and put in these two lines: tomcat softnofile 16384 tomcat hardnofile 16384 (if the user running Tomcat is indeed called tomcat) If you want to see the current limit, as root, run: su tomcat -c "ulimit -n&

Re: Performance for many small requests

2011-08-31 Thread Francis GALIEGUE
te it, > and write it to disk after doing a checksum test.  So it's minimal > processing, but there are a LOT of them. > > Thanks for any insight! Well, first things first, ensure keepalive works properly for the connector(s) you use, but I guess you have it covered already, ri

tomcat 7.0.21: bug in RemoteAddrValve?

2011-09-14 Thread Francis GALIEGUE
and doesn't work anymore with 7.0.21, I get 403 each time... Anyone seeing the same problem? -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 f...@one2team.com 40 avenue Raymond Poincaré 75116

Re: tomcat 7.0.21: bug in RemoteAddrValve?

2011-09-14 Thread Francis GALIEGUE
On Wed, Sep 14, 2011 at 17:28, André Warnier wrote: > Francis GALIEGUE wrote: [...] >>    >        allow="127\.0\.0\.1|::1"/> [...] >> > Maybe try to modify that regexp somewhat, like to > allow="(127\.0\.0\.1)|(::1)" > or > allow="127

Re: tomcat 7.0.21: bug in RemoteAddrValve?

2011-09-15 Thread Francis GALIEGUE
tp://localhost:8080//manager/text/list But even so, using "127\\.0\\.0\\.1", I get 403... There definitely is something broken :( -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 f...@one2team.com 40 avenue Raymond Poincaré 75116 Paris --

Re: tomcat 7.0.21: bug in RemoteAddrValve?

2011-09-15 Thread Francis GALIEGUE
On Thu, Sep 15, 2011 at 10:06, Francis GALIEGUE wrote: > On Wed, Sep 14, 2011 at 20:49, Mark Eggers wrote: > [...] >> >> I've not tried this in Tomcat, but here's a thought. >> >> According to: >> >> http://tomcat.apache.org/tomcat-7.0-doc/con

Re: tomcat 7.0.21: bug in RemoteAddrValve?

2011-09-15 Thread Francis GALIEGUE
On Thu, Sep 15, 2011 at 10:26, Francis GALIEGUE wrote: [...] > > I have added 0:0:0:0:0:0:0:1 as an alternative instead of ::1 and it > does work... > Which makes me think: the documentation SHOULD specify that regexes in the "allow" and "deny" parameters of t

Re: tomcat 7.0.21: bug in RemoteAddrValve?

2011-09-15 Thread Francis GALIEGUE
nchored... But anyway, the "allow" and "deny" as they exist currently just don't cut the mustard, and are far from being as potent as, say Apache's Allow from and Deny from. This should be the goal. RemoteAddrValveEvolved? -- Francis Galiegue ONE2TEAM Ingénieu

Re: tomcat 7.0.21: bug in RemoteAddrValve?

2011-09-15 Thread Francis GALIEGUE
> That may allow for some optimisation.  I'm sure the impact would be tiny, > but since this is code that gets invoked at just every request and generally > quite early, it may be significant. > I was rather thinking about a completely new valve, allowing to specify CIDR ranges, s

Re: Display a static page while application loading.

2011-09-19 Thread Francis GALIEGUE
few months ago, and is why I have my current setup. It is the only way for me to have the behavior I seek. -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 f...@one2team.com 40 avenue Raymond Poincaré 75116 Paris --

[OT] Tomcat on its own SVN repository?

2011-09-29 Thread Francis GALIEGUE
plan to move each project at least to its own SVN repo, if not git? -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 f...@one2team.com 40 avenue Raymond Poincaré 75116 Paris - To

Re: [OT] Tomcat on its own SVN repository?

2011-09-29 Thread Francis GALIEGUE
copy code from other ASF projects. > > BTW, there are read-only git mirrors at ASF elsewhere. > > http://www.apache.org/dev/contributors.html > http://git.apache.org/ > Yep, I see that! I'll use this as a base then. Thanks, -- Francis Galiegue ONE2TEAM Ingénieur système

Request for comments: Apache-like allow/deny remote host filtering

2011-10-02 Thread Francis GALIEGUE
ave tested that it essentially works using a main() (not in the patch). Right now I'm struggling to build the thing and figure out the build.xml... The patch can be seen here: https://github.com/fge/tomcat70/commit/79e0ab03188e00163ef7f97ca84bd8a8d0815f33 Any comments are welcome! -- F

Re: Request for comments: Apache-like allow/deny remote host filtering

2011-10-02 Thread Francis GALIEGUE
On Sun, Oct 2, 2011 at 19:46, Konstantin Kolinko wrote: > 2011/10/2 Francis GALIEGUE : > > 1. If you want to submit it as a patch for Tomcat, you should attach > it to a Bugzilla issue. OK, will do. > 2. Coding conventions: > http://tomcat.apache.org/getinvolved.html &g

Re: Denying IPs using the Valve command in context.xml

2011-10-04 Thread Francis GALIEGUE
matches() method of Matcher instead of .lookingAt(), which means you _must_ specify the whole hostname in the regex... -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 f...@one2team.com 40 avenue Raymond P

Re: Request for comments: Apache-like allow/deny remote host filtering

2011-10-04 Thread Francis GALIEGUE
On Tue, Oct 4, 2011 at 20:43, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Francis, > > On 10/2/2011 3:57 PM, Francis GALIEGUE wrote: >> On Sun, Oct 2, 2011 at 19:46, Konstantin Kolinko >> wrote: >>> 2011/10/2 Francis

Re: Denying IPs using the Valve command in context.xml

2011-10-04 Thread Francis GALIEGUE
On Tue, Oct 4, 2011 at 20:46, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Francis, > > On 10/4/2011 2:37 PM, Francis GALIEGUE wrote: >> On Tue, Oct 4, 2011 at 19:49, André Warnier wrote: >> [...] >> >>> In this

Re: Request for comments: Apache-like allow/deny remote host filtering

2011-10-04 Thread Francis GALIEGUE
On Tue, Oct 4, 2011 at 21:02, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Francis, > > On 10/4/2011 2:50 PM, Francis GALIEGUE wrote: >> Patch attached. I didn't know Bugzilla would treat patches this >> way... > > Ca

Re: Denying IPs using the Valve command in context.xml

2011-10-04 Thread Francis GALIEGUE
retty much the definition of regex matching, and which is why Java's .matches() methods are misnomers... -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 f...@one2team.com 40 avenue Raymond Poincaré 75116 Paris --

Re: Denying IPs using the Valve command in context.xml

2011-10-04 Thread Francis GALIEGUE
"^re$"), even if your re is already anchored. Unfortunately, this method's misleading name and the prevalence of Java has led a lot of people to believe that regex matching was done on the whole input, which is of course false. -- Francis Galiegue ONE2TEAM Ingénieur système Mob :

Re: Denying IPs using the Valve command in context.xml

2011-10-04 Thread Francis GALIEGUE
deny is already automatically anchored at the > beginning and end of the string. Agreed. The Tomcat documentation also suffered the same problem (wrt regex usage in its IIRC) and I've had the doc fixed :p -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +

Re: Denying IPs using the Valve command in context.xml

2011-10-04 Thread Francis GALIEGUE
nd here you see the incoherency of Java vocabulary vs the rest of the regex world ;) The Javadoc should really read "attempts to match the _whole_ input". Bah. Too late to fix things... -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178

Re: Denying IPs using the Valve command in context.xml

2011-10-05 Thread Francis GALIEGUE
fun. > (But don't hold your breath waiting for it.) > Ideally, all of Apache's "allow from" and "deny from" (along with Order while we are at it) could/should be implemented. I'm starting with the most simple case of all. It'll be fun to implement, s

Re: URL "simplification"

2011-10-10 Thread Francis GALIEGUE
d be to install Apache and configure a vhost with proxying. -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 f...@one2team.com 40 avenue Raymond Poincaré 75116 Paris - To unsubscribe,

Re: URL "simplification"

2011-10-10 Thread Francis GALIEGUE
[...] > > What I use: > -A PREROUTING -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 8080 > You're forgetting "-t nat" before -A. REDIRECT is a target only valid from the nat table. -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875

Re: URL "simplification"

2011-10-10 Thread Francis GALIEGUE
> C (and C++ and many others) has seteuid() and fork(), Java doesn't. Apache starts as root, binds to port 80 (therefore opens an fd on it), then forks. The fd is inherited by the child, which calls seteuid(). Then the parent exits. Done. -- Francis Galiegue ONE2TEAM Ingénieur système Mob

Re: URL "simplification"

2011-10-10 Thread Francis GALIEGUE
seteuid(). >> Then the parent exits. Done. > > Tomcat can. > > Exactly the same process is used by the jsvc wrapper from Commons Daemon. > And jsvc is native... -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 f...@o

Re: URL "simplification"

2011-10-10 Thread Francis GALIEGUE
On Mon, Oct 10, 2011 at 16:04, Léa Massiot wrote: [...] > > I'm interested in Francis' proposal... please can you give me more details? > Thanks! I will but in private, this is getting offtopic ;) -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Te

Re: TOMCAT_BASE and TOMCAT_HOME

2011-10-18 Thread Francis GALIEGUE
e set of jar files? > It is entirely possible, of course. But you'll have some maintenance work to do if ever you wish to change the jars for _one_ Tomcat installation among many. -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875

Re: TOMCAT_BASE and TOMCAT_HOME

2011-10-18 Thread Francis GALIEGUE
On Tue, Oct 18, 2011 at 16:58, wrote: > > Yes, but is there a technical, i.e. JVM, reason that two running instances of > tomcat can't concurrently use the same shared libraries? > No there isn't. -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875

Re: AJP Errors. Apache + Tomcat

2011-10-19 Thread Francis GALIEGUE
for Tomcat to be fully started: wait to see the port specified in open for listening. Then you are sure Tomcat is fully loaded. This is what I use and it's very reliable. -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683

Re: AJP Errors. Apache + Tomcat

2011-10-19 Thread Francis GALIEGUE
On Wed, Oct 19, 2011 at 11:27, André Warnier wrote: > Francis GALIEGUE wrote: [...] > > Yes, that would be more reliable than my 2 seconds above. > Although if one really wanted to split hairs in 4 parts (lenghtwise), one > could argue that the fact that the port mentioned

Re: AJP Errors. Apache + Tomcat

2011-10-19 Thread Francis GALIEGUE
On Wed, Oct 19, 2011 at 11:42, Francis GALIEGUE wrote: [...] > >                lsof -u $TOMCAT_USER -i tcp:8005 &>/dev/null > Sorry, that's a non working version: forget the -u option. But with only the -i, it works. -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +3

Re: AJP Errors. Apache + Tomcat

2011-10-19 Thread Francis GALIEGUE
On Wed, Oct 19, 2011 at 11:47, André Warnier wrote: > Francis GALIEGUE wrote: >> >> On Wed, Oct 19, 2011 at 11:42, Francis GALIEGUE wrote: >> [...] >>> >>>               lsof -u $TOMCAT_USER -i tcp:8005 &>/dev/null >>> >> >>

Re: AJP Errors. Apache + Tomcat

2011-10-19 Thread Francis GALIEGUE
On Wed, Oct 19, 2011 at 11:56, Mikolaj Rydzewski wrote: > On Wed, 19 Oct 2011 11:42:36 +0200, Francis GALIEGUE wrote: > >> Extract from the script (note that the server port is not randomized, >> it should probably be): > > Hi all, > > Why do you want to go into su

Re: Static files not being displayed

2011-10-28 Thread Francis GALIEGUE
this same element on disk. > What may also help is the content of the ./WEB-INF/web.xml file of your > application, and the ./META-INF/context.xml if there is one (all comments > and passwords removed). > > And also tell us where you got your Tomcat from, and where you find Tomcat&#x

Re: Static files not being displayed

2011-10-28 Thread Francis GALIEGUE
reason, but we don't know yet if it is really Tomcat > sending the 404 replies. Which is exactly why I suggested that ;) If 404 is not seen in the Tomcat access log file, then we know Tomcat isn't the culprit ;) -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Te

Re: [OT] Static files not being displayed

2011-10-28 Thread Francis GALIEGUE
On Fri, Oct 28, 2011 at 22:58, Christopher Schultz wrote: [...] > > For some reason, the US likes to spend most of it's money > "its" ;) -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 f...@one2team.com 40 avenue Raym

Re: Tomcat OOM errors..

2011-11-03 Thread Francis GALIEGUE
M at the permgen level, so yes you need to use -XX:MaxPermSize. -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 f...@one2team.com 40 avenue Raymond Poincaré 75116 Paris - To unsubscri

Re: CsrfPreventionFilter - LRU cache

2011-11-04 Thread Francis GALIEGUE
the LRU case: when a CSRF attack appears for whatever app is out there, for whatever defintion of "appears", it is more likely that the same attack pattern will appear even on unaffected sites. -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178

Re: Server crash for memory limit

2011-11-29 Thread Francis GALIEGUE
the JVM allows for a max of 3 GB heap size to be specified, not 2. Well, with the 1.6 versions of them at least. And no, there's no way around it except upgrading to a 64bit arch and OS. -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 f...@on

Re: Server crash for memory limit

2011-11-29 Thread Francis GALIEGUE
On Tue, Nov 29, 2011 at 16:26, hi tanin wrote: > Thanks for your reply. If i upgrated into 64-bit system __AND__ 64bit JDK... > then what will be the memory limit for Tomcat 5.0.27? Is there any way to > find out the mamimum memoery limit ? More than you will be able to buy! --

Re: Maximum memory that can be assigned to Tomcat on windows platform

2011-11-30 Thread Francis GALIEGUE
y do you still use a 32bit OS and JVM" is the question here. -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 f...@one2team.com 40 avenue Raymond Poincaré 75116 Paris --

Re: Maximum memory that can be assigned to Tomcat on windows platform

2011-11-30 Thread Francis GALIEGUE
o one process at any given moment) is still 2^32. [1] Physical Address Extension -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 f...@one2team.com 40 avenue Raymond Poincaré 75116 Paris --

Re: Maximum memory that can be assigned to Tomcat on windows platform

2011-11-30 Thread Francis GALIEGUE
in memory usage by itself, it is the JVM which limits what it can consume. In the best of cases (32bit Linux and 32bit Sun 1.6 JVM), you are limited to a 3 GB heap size. Use a 64bit OS and JVM. -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178

[OT] Re: Maximum memory that can be assigned to Tomcat on windows platform

2011-11-30 Thread Francis GALIEGUE
S on a 64bit CPU, you eat up two registers whereas a 64bit OS will take only one. And of course, this is without considering wasted TLB space or the sheer time to address just one memory page. -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 f.

Re: [OT] Re: Maximum memory that can be assigned to Tomcat on windows platform

2011-11-30 Thread Francis GALIEGUE
er will take up 8 bytes, but so will any byte. In general, the alignment is 4 bytes, except for long values of course. With a 4 byte alignment, this means you can store two ints in a register, and it's then only a matter of logical ands/shifting to obtain the value you want. And these operations are

Re: [OT]RE: Maximum memory that can be assigned to Tomcat on windows platform

2011-12-01 Thread Francis GALIEGUE
6-bit wide address. It uses TLBs (Translation Lookaside Buffers) for that, and it is the OS' role to have the correct TLB in place at any time. -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33

Re: [OT] Recommendations for Amazon EC2 Linux Flavor

2011-12-06 Thread Francis GALIEGUE
rvers and haven't had an OS crash for five _years_ with it). And you have EPEL if you want extra packages which RHEL does not provide. -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 f...@one2team.com 40 avenue Raymond Poincaré 75116 Paris ---

Re: [OT] Recommendations for Amazon EC2 Linux Flavor

2011-12-07 Thread Francis GALIEGUE
On Wed, Dec 7, 2011 at 02:02, André Warnier wrote: [...]> > > I'd comment too on the lack of packages in RHEL. > I know that lots of missing perl modules won't bother you much, but maybe a > missing mod_jk will leave you less serene ? > Why use mod_jk when you have

Re: Tomcat Silently Dies and then Won't Restart -- Error 1067

2011-12-09 Thread Francis GALIEGUE
art. We have to reboot the whole server and then tomcat will > work fine again for a couple of days. Has anyone else seen a problem > like this? > It looks like a native error, ie a JVM error. Can you locate some hs_err_ files in your Tomcat installation? -- Francis Galiegue ONE2TEAM

Re: path used for tc-natuve

2011-12-12 Thread Francis GALIEGUE
ersion 1.1.17 Can you: perl -ple 's,\00,\n,g' /proc/$(pgrep java)/environ and see what LD_LIBRARY_PATH is, if anything? (this is provided that only one java process is running, otherwise adapt the pgrep command) -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33

Re: path used for tc-natuve

2011-12-12 Thread Francis GALIEGUE
le? I have never used it, but I'd definitely look there. There is no reason at all why the JVM alone would play with shared objects unless you ask it to. -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945

Re: Caching of protected static content with Expires header: Expires Thu, 01 Jan 1970 03:00:00 EET?

2012-01-20 Thread Francis GALIEGUE
using Tomcat's caching directives, so... Show us the relevant portions of the configuration file. -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 f...@one2team.com 40 avenue Raymond Poincaré 75116 Paris -

Re: Caching of protected static content with Expires header: Expires Thu, 01 Jan 1970 03:00:00 EET?

2012-01-20 Thread Francis GALIEGUE
#x27;t want caching. It is enough to "Cache-control: no-cache" (or "no-store", though the latter wreaks havoc on IE and downloads) or, if you are _still_ using HTTP/1.0, "Pragma: no-cache". The "Expires" is not needed at all. -- Francis Galiegue ONE2TEAM Ingé

Re: Restarting tomcat 7.0.23 on MAC OS X 10.6

2012-01-24 Thread Francis GALIEGUE
." is required to > trick the JVM into using the alternate random byte source. > I was about to suggest this but wasn't sure that the problem also existed for Mac OS X... -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +

Tomcat 7: manager application takes forever to deploy - or not

2011-03-18 Thread Francis GALIEGUE
tried to switch the loglevel to TRACE in logging.properties but it doesn't change anything in catalina.out, which is strange. How do I go about logging wh -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 f...@one2team.com 40 avenue Ray

Re: Tomcat 7: manager application takes forever to deploy - or not

2011-03-18 Thread Francis GALIEGUE
Sorry, keyboard error, so I'll continue here. > > How do I go about logging wh ...at the manager application is doing while it deploys? Note, I use the default Tomcat logging mechanism. -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 17

Re: Tomcat 7: manager application takes forever to deploy - or not

2011-03-18 Thread Francis GALIEGUE
On Fri, Mar 18, 2011 at 11:46, Mark Thomas wrote: > On 18/03/2011 10:20, Francis GALIEGUE wrote: >> Sorry, keyboard error, so I'll continue here. >> >>> >>> How do I go about logging wh >> >> ...at the manager application is doing while it

Re: Tomcat 7: manager application takes forever to deploy - or not

2011-03-18 Thread Francis GALIEGUE
On Fri, Mar 18, 2011 at 11:53, Konstantin Kolinko wrote: > 2011/3/18 Francis GALIEGUE : [...] > > 1) You are using HTTP connector only, no AJP, no HTTPS? > I use AJP, which has no address restriction. I don't use HTTPS. [...] > > 2) Take 3 thread dumps with several sec

Re: Tomcat 7: manager application takes forever to deploy - or not

2011-03-18 Thread Francis GALIEGUE
filter 'CSRF' Mar 18, 2011 2:47:02 PM org.apache.coyote.AbstractProtocolHandler start INFO: Starting ProtocolHandler ["http-bio-8080"] Mar 18, 2011 2:47:02 PM org.apache.coyote.AbstractProtocolHandler start INFO: Starting ProtocolHandler ["ajp-bio-8009"] Mar 18, 2011 2:47:02 PM org.apache.catalina.startup.

Re: Tomcat 7: manager application takes forever to deploy - or not

2011-03-18 Thread Francis GALIEGUE
On Fri, Mar 18, 2011 at 14:47, Caldarale, Charles R wrote: >> From: Francis GALIEGUE [mailto:f...@one2team.com] >> Subject: Re: Tomcat 7: manager application takes forever to deploy - or not > >> On a 30 seconds start sequence, I collected 3 traces and >> all look

Re: Tomcat 7: manager application takes forever to deploy - or not

2011-03-18 Thread Francis GALIEGUE
/urandom will not work. Duh. Reference: http://stackoverflow.com/questions/137212/how-to-solve-performance-problem-with-java-securerandom This is actually a JVM bug, which Sun/Oracle doesn't consider as being one (yeah, right), see http://bugs.sun.com/view_bug.do?bug_id=6202721 Thanks a lot! -- Fra

Re: [OT] Tomcat 7: manager application takes forever to deploy - or not

2011-03-18 Thread Francis GALIEGUE
On Fri, Mar 18, 2011 at 17:58, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Francis, > > On 3/18/2011 6:16 AM, Francis GALIEGUE wrote: >> I build my own CATALINA_HOME, the difference between the bundled >> tar.gz and my home are: &

Re: [OT] Tomcat 7: manager application takes forever to deploy - or not

2011-03-19 Thread Francis GALIEGUE
l also be used for shutdown... Which means you can't >> shutdown at all: EADDRINUSE. Unless you arrange for different >> JAVA_OPTS on startup and shutdown, which I don't need to do with my >> scripts. > > As Chuck suggests, you haven't read the doc

Re: How to detect down of tomcat.

2011-03-20 Thread Francis GALIEGUE
h is that Unix shell expertise is far more common, and Unix shell is much more powerful than Windows' batch files anyway. -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 f...@one2team.com 40 avenue Raymond Poincaré 75116 Paris --

Re: Max value of MaxPermSize

2011-03-21 Thread Francis GALIEGUE
d be in $CATALINA_BASE/setenv.sh. This file will be sourced by catalina.sh if it exists. -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 f...@one2team.com 40 avenue Raymond Poincaré 75116 Paris --

  1   2   >