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

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

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

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
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: 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: 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: 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: 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: [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: 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: 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: 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: 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: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: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
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: 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: 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: 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: 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
> 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
[...] > > 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
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: 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: 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-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
"^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
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: 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
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 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
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-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

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

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

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

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

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: 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: Feature request: "fullstart" command

2011-06-16 Thread Francis GALIEGUE
stand that since this is what I use right now. I make it darn sure that my locale is set up OK, but then any different logging configuration will defeat that. Which is why I am right now switching over completely to the scenario where Tomcat only starts with the manager webapp builtin and further web

Re: Feature request: "fullstart" command

2011-06-16 Thread Francis GALIEGUE
standard in Tomcat can bring great value. If it means modifying the server.xml, I'm fine with it. I'm a systems engineer, and while I know some Java, I'd rather let the Tomcat team do that - they will do a better job than I in any case. -- Francis Galiegue ONE2TEAM Ingénieur systèm

Re: Feature request: "fullstart" command

2011-06-16 Thread Francis GALIEGUE
ould have been the default as far as I'm concerned, but ohwell... Again, connectors are one part of the problem here (I use EXIT_ON_FAILURE now on my deployments). But application deployment is another. Unless there is some hidden meaning to a Connector which I haven't understood. --

Re: Feature request: "fullstart" command

2011-06-16 Thread Francis GALIEGUE
d_ the firmware is loaded and functional". This is a HUGE difference. The fact that the device may fail at run time is akin to running JMX for webapp monitoring, and this can happen as well. But I want a _guarantee_ that the device, when the init routine returns, is fully ready to operate.

Re: Feature request: "fullstart" command

2011-06-16 Thread Francis GALIEGUE
detect what OS it runs on. I mean, C has EXIT_SUCCESS and EXIT_FAILURE, it's only a matter of defining such constants in the Tomcat code as well - unless the JVM already has such exit code defintions handy, in which case all is left to do is implementing them. -- Francis Galiegue ONE2TEAM Ingénieur

Re: Feature request: "fullstart" command

2011-06-16 Thread Francis GALIEGUE
tood the term "exit code" to mean the code returned to the > OS through System.exit(). > You lost me. System.exit() acts at the JVM level anyway, therefore the process level. Don't we talk about the same thing? -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877

Re: Feature request: "fullstart" command

2011-06-16 Thread Francis GALIEGUE
he JVM automatically converts exit 0 to exit 1 to compensate, but > cannot deal with all exit codes]. > It's up to main() to call System.exit(), so how is that a problem? -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 f...@one2team.com 4

Re: Feature request: "fullstart" command

2011-06-16 Thread Francis GALIEGUE
t good an idea: the JVM will return 1 in the event of an uncaught exception (or thrown from main()). So, 1+n, where n is the number of webapps not successfully deployed. But in any case, obey the basic principle that 0 means success, and anything else means a failure. -- Francis Galiegue ONE

Re: Feature request: "fullstart" command

2011-06-15 Thread Francis GALIEGUE
ystemprops.html > >  - Chuck > It doesn't. The only use of it in StandardService is to throw an Error (it will then exit(1) as it is an uncaught error) if connectors initialization fails. But this is not what I'm after (checked in 7.0.14 source code). -- Francis Galiegue ONE2TEAM Ingén

Feature request: "fullstart" command

2011-06-15 Thread Francis GALIEGUE
re as long as it's not 0, but please not -1, think WIFSIGNALED()). -- 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: redirect to another URL in tomcat

2011-06-08 Thread Francis GALIEGUE
; Is there a way in the system we could redirect the URL? > What do you call the "system" exactly? Do you want a visible redirect or a silent redirect? You can do it at the Apache level, and with Java for sure - as I never use Tomcat as a frontend directly, I don't know for

Switching native Tomcat logging system

2011-05-31 Thread Francis GALIEGUE
e. When will Tomcat's logging account at last for 21st century logging systems? I am surprised log4j didn't even become the default for 6.0.x, and 7.0.x still doesn't make it the default... -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 17

Re: access to Manager

2011-05-27 Thread Francis GALIEGUE
rongly recommend AGAINST the HTML version of it. Why? It requires a Web browser for input. Try the text version instead. Everything is documented. -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 f...@one2team.com 40 av

Re: Slow SSL connections after Tomcat 5 to 7 migration

2011-05-04 Thread Francis GALIEGUE
t; > Also, is Tomcat front-ended by anything (e.g., httpd), or are you accessing > it directly? > > Did anything else change when you upgraded Tomcat?  For example, the JVM > version? > Can it be the same problem that I encountered with the long deployment time of the manager we

Re: Tomcat 6.0.x TEMP Directory

2011-04-15 Thread Francis GALIEGUE
if we try to open > websites, hosted by the tomcat. > Attack the root of the problem: fix applications which forget to delete their temporary files after they have used them. -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 f...@one2te

Re: [OT cluster]Request to comment

2011-04-13 Thread Francis GALIEGUE
On Wed, Apr 13, 2011 at 19:01, János Löbb wrote: [...] > > The first 3 paragraphs are done.  I have two machines  with OSX 10.6.5, httpd > 2.2.17, mod_jk 1.2.31, tomcat 7.0.10. [...] > Just one thing: since you use Apache 2.2.x, why don't you use mod_proxy_ajp? -- Francis

Re: [OT] servlet-specific error pages

2011-04-13 Thread Francis GALIEGUE
is defined in if you use .sendError(), and you can .setResponse(SC_ANYTHINGOTHERTHANOK). -- 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: Simple Tomcat monitoring ?

2011-04-12 Thread Francis GALIEGUE
On Tue, Apr 12, 2011 at 14:26, André Warnier wrote: > Francis GALIEGUE wrote: >> >> On Tue, Apr 12, 2011 at 12:20, André Warnier wrote: >> [...] >>> >>> Considering all the above, which would be the easiest/quickest way of >>> starting to fig

Re: OT: Versioning in Javascript Files

2011-04-12 Thread Francis GALIEGUE
an If-None-Match header. Apache does this by default with a combination of mtime and inode number IIRC. I don't know, I never use ETags but only adapted Cache-Control directives. -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877

Re: Simple Tomcat monitoring ?

2011-04-12 Thread Francis GALIEGUE
is thrown. If you are interested in any of it, I can tell you how we do it. And, considering that your server has 12 GB RAM, you could indeed do with a little more heap space! -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 f...@one2team.com 40

Re: OT: Versioning in Javascript Files

2011-04-12 Thread Francis GALIEGUE
ould be /static/dojo-1.5.js, 1.6 would be /static/dojo-1.6.js, etc. I don't know your setup exactly, but it is highly probable that the server sends back cache control headers saying that this file at this URL expires some time in the future. If the URL doesn't change, the browser won't ev

Re: java.lang.ClassNotFoundException: org.apache.jasper.servlet.JspServlet when embedding tomcat 7.0.11

2011-04-07 Thread Francis GALIEGUE
n't either of jsp-api or servlet-api in your classpath. -- 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: Apache Tomcat Process is getting killed automatically.

2011-04-07 Thread Francis GALIEGUE
M is 4GB and Tomcat's xmx parameter is set to use from 512MB to 2GB. > > Now almost once in two days my Tomcat process is getting killed > automatically and I have to restart the Tomcat server again and again to > resume the application back. > Killed by what? What do the

Re: tomcat integrity

2011-04-06 Thread Francis GALIEGUE
s, so I guess you can sign wars and use the same tools to check validity. But this means signing the war at build/package time. Otherwise you can just use whatever the system provides you with. I don't know for Windows, but Linux has {md5,sha1,sha256}sum, etc etc. -- Francis Galiegue ONE2

Re: Tomcat 7.0.11: bug with manager application when undeploying

2011-03-28 Thread Francis GALIEGUE
On Mon, Mar 28, 2011 at 00:55, Konstantin Kolinko wrote: > 2011/3/25 Francis GALIEGUE : >> Scenario: >> >> * tomcat starts, as user u1, with only the manager application in place; >> * it is configured as to not deploy automatically; >> * user u1 copies a webapp

Tomcat 7.0.11: bug with manager application when undeploying

2011-03-25 Thread Francis GALIEGUE
the webapp tree to its rightful owner, then the webapp is indeed undeployed in the full meaning of it: all "artifacts" are indeed destroyed. -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +3

Re: Tomcat 7.0.11, manager application: is this expected?

2011-03-24 Thread Francis GALIEGUE
he undeploying command will work for this context, the webapp files are not removed (tested). I haven't tried the stop, start and reload command but I suspect they may also behave strangely. Which turns this "feature" into a bug :p -- Francis Galiegue ONE2TEAM Ingénieur systè

Tomcat 7.0.11, manager application: is this expected?

2011-03-24 Thread Francis GALIEGUE
er:running:2:/usr/share/tomcat7/webapps/manager /../cockpit:running:0:..#cockpit 2011-03-24 16:49:18 URL:http://localhost:8080/manager/text/list [139] -> "-" [1] Strange that a path with a .. in it should be accepted imho... -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33

Re: email to system admin

2011-03-24 Thread Francis GALIEGUE
t an email > to my inbox with the exception details . > > can i configure this with tomcat. > > please help me with this. > > Thank you so much. > You can do this with log4j. -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 f.

Re: Advantages of using tomcat manager over the conventional approach of copy-it-to-deploy/undeploy

2011-03-24 Thread Francis GALIEGUE
ication, the command you issue will terminate only when it is finished (either well or badly). In short, it is ideally suited for scripting purposes. -- 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: 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 --

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

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

  1   2   >