Re: Prevent Hot Linking

2009-04-19 Thread André Warnier
Graeme Kidd wrote: Hi, Is there a way to configure tomcat to prevent some one from downloading a file I host when they are not within my domain? You may want to have a look here : http://tuckey.org/urlrewrite/ It's a bit like the Swiss Army knife for this kind of thing. You would normally

Re: Prevent Hot Linking

2009-04-19 Thread André Warnier
André Warnier wrote: Graeme Kidd wrote: Hi, Is there a way to configure tomcat to prevent some one from downloading a file I host when they are not within my domain? You may want to have a look here : http://tuckey.org/urlrewrite/ It's a bit like the Swiss Army knife for this kind of

RE: Prevent Hot Linking

2009-04-19 Thread Martin Gainty
Graeme- if I interpret the requirement correctly you need some manner of rewriting the URL? with Tomcat you can use URLRewrite available from tuckey http://tuckey.org/urlrewrite/ anyone? Martin __ Disclaimer and Confidentiality/Verzicht und

Re: Prevent Hot Linking

2009-04-19 Thread David Smith
I think you got it right the first time. The OP wants to make sure the referrer header is present and starts with http://www.mydomain.com as opposed to http://www.anotherdomain.com. It'll help prevent other sites from linking directly to resources on the OP's site. -- David On Apr 19,

Re: Prevent Hot Linking

2009-04-19 Thread André Warnier
David Smith wrote: I think you got it right the first time. The OP wants to make sure the referrer header is present and starts with http://www.mydomain.com as opposed to http://www.anotherdomain.com. It'll help prevent other sites from linking directly to resources on the OP's site.

RE: Need to share JVM for both tomcat and RMI server

2009-04-19 Thread Caldarale, Charles R
From: siranjeevi krishnan [mailto:siranjee...@gmail.com] Subject: Re: Need to share JVM for both tomcat and RMI server But it search the server.xml in C:\Program Files\myApp\conf\server.xml instead of tomcat\conf\server.xml. You need to set the value of the catalina.base and catalina.home

Re: Prevent Hot Linking

2009-04-19 Thread Hassan Schroeder
On Sun, Apr 19, 2009 at 7:37 AM, André Warnier a...@ice-sa.com wrote: But basing the acceptance or rejection on a HTTP request header sent by the browser is not absolutely secure, in the sense that this can easily be faked using any HTTP client agent such as wget, curl, lwp-request etc..

RE: Prevent Hot Linking

2009-04-19 Thread Graeme Kidd
Thanks André, urlrewrite seems a suficiant solution for now as I only want to block people if they try and acess the file from outside my domain. If my understanding is correct blocking by IP although harder to fake would prevent them no matter what. There is an example given in the

15 second for redeployment is to much

2009-04-19 Thread Khlystov Alexandr
Hello guys. I can't fix my maven2+wicket application to be redeployed less than 15 seconds, but I want it to take 5 seconds at least. Could someone provide the fastest in the world practise of webapp on Tomcat redeployment??? Precondition ( inital deployment): copy war dir with my webapp

Re: 15 second for redeployment is to much

2009-04-19 Thread Kees Jan Koster
Dear Khlystov, 1. 5 second (using maven) compile source ( usually it is 1 or 2 files ) 2. 0 second copy *.class file into Tomcat/webapps Stop using Maven for simple compiles and write a small shell script that just calls javac with the webapp's WEB-INF/classes as output dir. 3. 5-7

Re: 15 second for redeployment is to much

2009-04-19 Thread Pid
Kees Jan Koster wrote: Dear Khlystov, 1. 5 second (using maven) compile source ( usually it is 1 or 2 files ) 2. 0 second copy *.class file into Tomcat/webapps Stop using Maven for simple compiles and write a small shell script that just calls javac with the webapp's WEB-INF/classes as

Re: 15 second for redeployment is to much

2009-04-19 Thread Khlystov Alexandr
Thanks, Kees! I'll implement your advices, and will reply with results. Kees Jan Koster пишет: Dear Khlystov, 1. 5 second (using maven) compile source ( usually it is 1 or 2 files ) 2. 0 second copy *.class file into Tomcat/webapps Stop using Maven for simple compiles and write a small

Re: 15 second for redeployment is to much

2009-04-19 Thread Khlystov Alexandr
Thanks, for reply Pid. Hardware is fast enough 2 Gb RAM, 2 Ghz CPU dual core athlon 64. Sorry, I did not get your message. What do you think is not meaningful? Some times and need to redeploy webapp 10 times in 10 minutes. Pid пишет: Kees Jan Koster wrote: Dear Khlystov, 1. 5

Re: 15 second for redeployment is to much

2009-04-19 Thread Khlystov Alexandr
I have 10 seconds now instead of 15 with 2 of 3 options: backgroundProcessorDelay=1 Context docBase=hello-webapp path=/hello-webapp reloadable=true antiJARLocking=true backgroundProcessorDelay=1/ and lazy-init for all beans. Cool! thanks again. Now I'm going to sleep, and will implement

Re: 15 second for redeployment is to much

2009-04-19 Thread André Warnier
Hi. I am far from being the specialist here, but my inner application designer core revolts at the idea of having a thread in Tomcat busy at nothing else but checking 86,400 times a day, just in case you redeploy an application from time to time. There must exist a more efficient mechanism

windows 2k3 / Tomcat 6 / IIS configuration - randomly losing sessions

2009-04-19 Thread Menachem Husarsky
I'll start by giving a brief history: We have multiple sites on our old host that ran under IIS and Resin fine for years, we recently switched to a dedicated server using windows 2k3. Under IIS we installed the isapi connector tool from apache version 1.2.27, and we are currently using

Re: 15 second for redeployment is to much

2009-04-19 Thread Ronald Klop
Fix for step 3. Don't wait for Tomcat to detect changes. See http://tomcat.apache.org/tomcat-6.0-doc/manager-howto.html or use org.apache.catalina.ant.ReloadTask (which uses the manager). My compile command automaticly calls this after a succesful compile. Another tip: test business logic

RE: 15 second for redeployment is to much

2009-04-19 Thread Caldarale, Charles R
From: André Warnier [mailto:a...@ice-sa.com] Subject: Re: 15 second for redeployment is to much I'm curious to see Chuck's reaction to this thread. How about pointless? Somewhat akin to debating the number of angels that can dance on the head of a pin. - Chuck THIS COMMUNICATION MAY

Re: Building Tomcat 5.5.27 tomcat-native

2009-04-19 Thread Mark Thomas
Andre-John Mas wrote: the only thing which seems odd is the generated tar balls are marked as 5.5.26. Is this normal? No :). That is a bug. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional

Re: Building Tomcat 5.5.27 tomcat-native

2009-04-19 Thread Mark Thomas
Caldarale, Charles R wrote: From: Andre-John Mas [mailto:aj...@sympatico.ca] Subject: Building Tomcat 5.5.27 tomcat-native I am trying to build 5.5.27, but it is asking for tomcat-native 1.1.12, though I see that only 1.1.16 is available. This being the case, a couple of questions: - is

Re: Tomcat 6 and Windows 2003 -Xmx1024 Problem

2009-04-19 Thread garidan
I have the same problem: just applied windows update to my windows 2003 server and tomcat 6 doesn't start due to Could not reserve enough space for object heap. I see a lot of free ram, and disk space, but the only way to start has been to lower -Xmx value. No clue to what happened, but it's

Re: 15 second for redeployment is to much

2009-04-19 Thread Andre-John Mas
On 19-Apr-2009, at 14:57, André Warnier wrote: Hi. I am far from being the specialist here, but my inner application designer core revolts at the idea of having a thread in Tomcat busy at nothing else but checking 86,400 times a day, just in case you redeploy an application from time to

Re: Building Tomcat 5.5.27 tomcat-native

2009-04-19 Thread Andre-John Mas
On 19-Apr-2009, at 16:45, Mark Thomas wrote: Andre-John Mas wrote: the only thing which seems odd is the generated tar balls are marked as 5.5.26. Is this normal? No :). That is a bug. I suppose it is the wrong time to open a ticket for this, but for 5.5.28 would it be worth opening a

Iterate LinkedHashMap gives HTTP 500 in a JSP (NPE)

2009-04-19 Thread Tommy Pham
Hi, I have a problem iterating a LinkedHashMapInteger, Object lhmObject. The lhmObject.size() gives correct size and lhmObject.keySet().toString gives the correct values. However, if I try iterate the object with lhmObject.keySet() with an empty loop: for (Integer key : lhmObject.keySet() ) {