Tomcat 7.0.11 embedded does not load context.xml [SEC=UNCLASSIFIED]

2011-06-13 Thread Fraser, James
UNCLASSIFIED Hi, I am trying to embed Tomcat 7.0.11 into my standard web application. This web application defines some Resource elements in META-INF/context.xml - yet, Tomcat is not loading this file. tomcat = new Tomcat(); tomcat.setBaseDir("."); tomcat.setPort(8084)

Re: One process per webapp

2011-06-13 Thread cowwoc
Hi Christopher, Assuming we simply use one webapp per Tomcat instance I'm still looking for two changes: * Restart the entire JVM on webapp redeploy (to avoid JNI and ClassLoader problems) * Faster webapp redeploys if the entire JVM is restarted. I'm aiming for one second but currently we're a

Re: Tomcat 6.0.18 clustering problem

2011-06-13 Thread Mark Eggers
- Original Message - > From: Nilesh - MiKu > To: users@tomcat.apache.org > Cc: > Sent: Monday, June 13, 2011 8:36 AM > Subject: Tomcat 6.0.18 clustering problem > > Hi people... > > Background : > > I have two nodes (say, n1 and n2) running 3 instances of tomcat (say t1, t2, > t3), wi

Re: [Embedded Tomcat 7] - Redeploy WAR File

2011-06-13 Thread Dark Before Dawn
Am 14.06.2011 01:01, schrieb Mark Thomas: On 13/06/2011 23:57, Dark Before Dawn wrote: Hi there! I am running tomcat 7.0.14-embed with JavaSE-1.6 on a Windows7 machine. /Autodeploy/, /DeployOnStartup/ and /UnpackWARs/ works like a charm when creating a new WAR-File at appBase directory for the

Re: [Embedded Tomcat 7] - Redeploy WAR File

2011-06-13 Thread Mark Thomas
On 13/06/2011 23:57, Dark Before Dawn wrote: > Hi there! > > I am running tomcat 7.0.14-embed with JavaSE-1.6 on a Windows7 machine. > /Autodeploy/, /DeployOnStartup/ and /UnpackWARs/ works like a charm when > creating a new WAR-File at appBase directory for the firsttime. If my > application gene

[Embedded Tomcat 7] - Redeploy WAR File

2011-06-13 Thread Dark Before Dawn
Hi there! I am running tomcat 7.0.14-embed with JavaSE-1.6 on a Windows7 machine. /Autodeploy/, /DeployOnStartup/ and /UnpackWARs/ works like a charm when creating a new WAR-File at appBase directory for the firsttime. If my application generates a updated version of the WAR-File while the Tom

Re: Tomcat efficiency (was: RE: Optimal Settings to use Tomcat as a HTTP File Server)

2011-06-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jeff, On 6/13/2011 4:41 PM, Jeff Sturm wrote: >> -Original Message- >> From: Bill Miller [mailto:millebi.subscripti...@gmail.com] >> Sent: Monday, June 13, 2011 3:58 PM >> Enlighten me: what is "the" reason that this is common practice? >

Re: Optimal Settings to use Tomcat as a HTTP File Server

2011-06-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bill, This is fun. On 6/13/2011 3:58 PM, Bill Miller wrote: >>> Enlighten me: what is "the" reason that this is common practice? > > The most obvious reason for having HTTP server in front of an > Application Server (Tomcat) is that there are many t

Re: One process per webapp

2011-06-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gili, On 6/13/2011 1:07 PM, cowwoc wrote: > I posted a RFE at https://issues.apache.org/bugzilla/show_bug.cgi?id=51366 > asking for the ability to seamlessly deploy webapps into separate JVMs. So you want Tomcat to have an option to run as a supervis

Re: How to configure USE_SECURE_RANDOM_FOR_UUID?

2011-06-13 Thread Mark Thomas
On 13/06/2011 22:43, Christopher Schultz wrote: > Frank, > > On 6/13/2011 11:46 AM, franckie frank wrote: >> Ive noticed that in Tomcat 7.0.14s >> org.apache.catalina.tribes.io.ChannelData there is public static field > >> 'public static volatile boolean USE_SECURE_RANDOM_FOR_UUID'. > >> and i

Re: How to configure USE_SECURE_RANDOM_FOR_UUID?

2011-06-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Frank, On 6/13/2011 11:46 AM, franckie frank wrote: > I’ve noticed that in Tomcat 7.0.14’s > org.apache.catalina.tribes.io.ChannelData there is public static field > > 'public static volatile boolean USE_SECURE_RANDOM_FOR_UUID'. > > and it seems to

Re: Tomcat efficiency (was: RE: Optimal Settings to use Tomcat as a HTTP File Server)

2011-06-13 Thread Peter Crowther
On 13 June 2011 21:41, Jeff Sturm wrote: > > From: Bill Miller [mailto:millebi.subscripti...@gmail.com] > > -Static image serving (much more economical because the HTTP server is > much lighter > > "weight" than a JVM/App server) -etc... > > [...] I just tried a trivial benchmark of a static fil

Tomcat efficiency (was: RE: Optimal Settings to use Tomcat as a HTTP File Server)

2011-06-13 Thread Jeff Sturm
> -Original Message- > From: Bill Miller [mailto:millebi.subscripti...@gmail.com] > Sent: Monday, June 13, 2011 3:58 PM > > >> Enlighten me: what is "the" reason that this is common practice? ... > -Static image serving (much more economical because the HTTP server is much > lighter > "we

RE: Optimal Settings to use Tomcat as a HTTP File Server

2011-06-13 Thread Bill Miller
>> Enlighten me: what is "the" reason that this is common practice? The most obvious reason for having HTTP server in front of an Application Server (Tomcat) is that there are many things that you can do at/in the HTTP server that you don't have available to you inside Tomcat. Things like: -Cach

Re: Terminating long running request threads

2011-06-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Peter, On 6/12/2011 5:49 AM, Peter Roßbach wrote: > can we add the unique Thread Id, please? If you can find the java.lang.Thread object, can't you get it's unique id already? Maybe I'm misunderstanding your question. - -chris -BEGIN PGP SIGNATU

Re: Optimal Settings to use Tomcat as a HTTP File Server

2011-06-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sriram, On 6/11/2011 4:00 AM, Sriram Narayanan wrote: > On Sat, Jun 11, 2011 at 1:14 AM, Christopher Schultz > wrote: > Sriram, > > On 6/10/2011 1:49 PM, Sriram Narayanan wrote: Having one application serve static content, and having other

One process per webapp

2011-06-13 Thread cowwoc
Hi, I posted a RFE at https://issues.apache.org/bugzilla/show_bug.cgi?id=51366 asking for the ability to seamlessly deploy webapps into separate JVMs. Tomcat 7.0's parallel deployment sounds nice but it still doesn't solve the JNI and memory leak problems that haunt a single JVM architecture. P

How to configure USE_SECURE_RANDOM_FOR_UUID?

2011-06-13 Thread franckie frank
Hi, I’ve noticed that in Tomcat 7.0.14’s org.apache.catalina.tribes.io.ChannelData there is public static field 'public static volatile boolean USE_SECURE_RANDOM_FOR_UUID'. and it seems to be used only once in the same class. By default its value is false. Do you know if there is a way to c

Tomcat 6.0.18 clustering problem

2011-06-13 Thread Nilesh - MiKu
Hi people... Background : I have two nodes (say, n1 and n2) running 3 instances of tomcat (say t1, t2, t3), with n1 running t1, t3 and n2 running t2. (All running same application.). I want to make clustering for n1-t1 and n2-t2. Clustering cofig for n1-t1 is Cluster

Re: Re: Document of Tomcat 6.0.32.

2011-06-13 Thread Nash
Thank you a lot! Regards! 2011-06-13 Nash 发件人: Markus_Sch鰊haber 发送时间: 2011-06-09 16:23:38 收件人: users 抄送: 主题: Re: Document of Tomcat 6.0.32. 09.06.2011 10:13, Nash: > I want to know how I can get the API Document of Tomcat 6.0.32 so I can refer > it regardless of Internet connecti

Re: user tomcat authentication

2011-06-13 Thread Mark Thomas
On 13/06/2011 09:44, Petr Hracek wrote: > Only the simple question, > What is the flag which URLs are protected? It is time for you to read the Servlet specification. > I have found that link > http://tomcat-configure.blogspot.com/2009/01/tomcat-web-xml.html > and specially section: > > How

Re: user tomcat authentication

2011-06-13 Thread Petr Hracek
Only the simple question, What is the flag which URLs are protected? I have found that link http://tomcat-configure.blogspot.com/2009/01/tomcat-web-xml.html and specially section: How to secure your application with JAAS ? Let's say that my htdocs directory is there: /opt/testApp/htdocs/in

Re: user tomcat authentication

2011-06-13 Thread Pid
On 13/06/2011 07:50, Petr Hracek wrote: > First authentication is done so that if in the browser exists relevant > HTTP COOKIE and validation of that cookie is done then page should be > shown. > How to do that I do not know from the tomcat point of view. > > Is there any possiblity how to che