RE: Embedded tomcat and unit testing.. Tomcat either stops or my unit tests don't execute? [SEC=UNCLASSIFIED]

2011-06-15 Thread Fraser, James
UNCLASSIFIED Thanks Chris! -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Thursday, 16 June 2011 5:01 AM To: Tomcat Users List Subject: Re: Embedded tomcat and unit testing.. Tomcat either stops or my unit tests don't execute? [SEC=UNCLASSIFIED]

Re: Tomcat 6.0.18 clustering problem

2011-06-15 Thread Mark Eggers
- Original Message - > From: Nilesh - MiKu > To: Tomcat Users List ; Mark Eggers > > Cc: > Sent: Tuesday, June 14, 2011 4:01 AM > Subject: Re: Tomcat 6.0.18 clustering problem > >T hanks Mark. :) > > My comments inlined... > > Over and above, the underlined network pipeline system a

Re: Feature request: "fullstart" command

2011-06-15 Thread Francis GALIEGUE
On Wed, Jun 15, 2011 at 22:11, Caldarale, Charles R wrote: [...] > > Check the system property org.apache.catalina.startup.EXIT_ON_INIT_FAILURE > and see if it meets your needs.  (It might not be setting an exit code.) > > http://tomcat.apache.org/tomcat-7.0-doc/config/systemprops.html > >  - Chu

RE: Feature request: "fullstart" command

2011-06-15 Thread Caldarale, Charles R
> From: Francis GALIEGUE [mailto:f...@one2team.com] > Subject: Feature request: "fullstart" command > Proposal: implement a fullstart command to Bootstrap which: > * does NOT return until ALL webapps configured at start time are > (attempted to be) deployed; > * exits with a positive error code

Feature request: "fullstart" command

2011-06-15 Thread Francis GALIEGUE
Tomcat has many abilities to deploy applications at run time (war, tree, context, you name it). However, when used in production, these abilities are used cautiously, if they are used at all. In many scenarios, Tomcat just starts, spends its life, and stops, with a defined set of webapps, and has

Re: Embedded tomcat and unit testing.. Tomcat either stops or my unit tests don't execute? [SEC=UNCLASSIFIED]

2011-06-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 James, On 6/15/2011 12:09 AM, Fraser, James wrote: > Thanks for your help. I got it working in the end. I suspect the main > problem had to do with not terminating the running instance of Tomcat > correctly in a tear-down method. That might do it, de

Re: Null-pointer exception from response.encodeUrl under Windows Tomcat 7

2011-06-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jocelyn, On 6/15/2011 1:43 PM, Jocelyn Ireson-Paine wrote: > ResponseHolder rh = (ResponseHolder)this_session.getAttribute( > "response_holder" ); Here is the beginning of your errors. By saving a reference to the response that was used for y

RE: Null-pointer exception from response.encodeUrl under Windows Tomcat 7

2011-06-15 Thread Martin Gainty
the error is here: org.apache.catalina.connector.ResponseFacade.encodeURL(ResponseFacade.java:398) at org.apache.jsp.Test1_jsp._jspService(Test1_jsp.java:93) if you look in /work/Catalina/localhost/WebAppName/org/apache/jsp/Test1_jsp.java at line 93 you will see the offending line you are crea

Re: Null-pointer exception from response.encodeUrl under Windows Tomcat 7

2011-06-15 Thread Konstantin Kolinko
2011/6/15 Jocelyn Ireson-Paine : >     ResponseHolder rh = (ResponseHolder)this_session.getAttribute( >  "response_holder" ); >     out.println( "rh = " + rh + "." ); >     if ( rh == null ) { >       out.println( "rh is null." ); >       rh = new ResponseHolder( response ); >       this_session.se

Re: Null-pointer exception from response.encodeUrl under Windows Tomcat 7

2011-06-15 Thread Jocelyn Ireson-Paine
About a week ago, I reported what seemed like a sporadic null-pointer exception from response.encodeUrl. I've managed to simplify the code that provokes it, and will show it below. My original report, with details of the Tomcat version and so on, is after this mail. The error occurred in a lar

Re: One process per webapp

2011-06-15 Thread Pid
On 15/06/2011 14:20, cowwoc wrote: > If this functionality was built into Tomcat It wouldn't be built into Tomcat, you're asking for a management application and/or proxy. The first might run inside Tomcat and the second sits in front of it - frequently implemented with Apache HTTPD (mod_proxy, m

Re: Static content not displaying

2011-06-15 Thread Pid
On 15/06/2011 13:41, Flaherty, Brennen F wrote: > we have an application that works as expected on tomcat version 6.0.29 on a > windows server . If I try to copy the war to a machine running version 6.0.32 > none of the static content will display. If I copy the war file to a > different machine

Re: tomcat 7: common.loader property in catalina.properties does not take ANT style variable

2011-06-15 Thread Konstantin Kolinko
2011/5/11 Yongqin Xu : > > I would love to see that happen. thanks. > >> Date: Wed, 11 May 2011 10:01:48 -0400 >> From: ch...@christopherschultz.net >> To: users@tomcat.apache.org >> Subject: Re: tomcat 7: common.loader property in catalina.properties does >> not take ANT style variable >> >>

Re: One process per webapp

2011-06-15 Thread cowwoc
Hi Tim, Tim Funk-2 wrote: > > 1) If relying on native - it might be easiest to place the > System.loadLibrary() and its classes in the common classloader. Then use a > Valve to call System.loadLibrary() so it's only called once. Hack, yes ... > also very simple to do. This might allow webapps t

Re: One process per webapp

2011-06-15 Thread Mladen Turk
On 06/15/2011 02:27 PM, Tim Funk wrote: ** Observations ... Hack, yes ... also very simple to do. This might allow webapps to be reloaded without a problem [depending on the nature of the change.] 2) apache httpd can easily handle the proxy scenario. There are "hacks" and "use that other web se

Re: Static content not displaying

2011-06-15 Thread Konstantin Kolinko
2011/6/15 Flaherty, Brennen F : > we have an application that works as expected on tomcat version 6.0.29 on a > windows server . If I try to copy the war to a machine running version 6.0.32 > none of the static content will display. If I copy the war file to a > different machine with version 6.

Static content not displaying

2011-06-15 Thread Flaherty, Brennen F
we have an application that works as expected on tomcat version 6.0.29 on a windows server . If I try to copy the war to a machine running version 6.0.32 none of the static content will display. If I copy the war file to a different machine with version 6.0.29 installed the static content displa

Re: One process per webapp

2011-06-15 Thread Tim Funk
** Observations ... 1) If relying on native - it might be easiest to place the System.loadLibrary() and its classes in the common classloader. Then use a Valve to call System.loadLibrary() so it's only called once. Hack, yes ... also very simple to do. This might allow webapps to be reloaded witho

Re: One process per webapp

2011-06-15 Thread Federico Fissore
for the record, for this very need, with tomcat 6, we made our own "cloud" of tomcats we have tens of embedded tomcats running each a single webapp and each with its own jvm as needed, we start the same webapp on another server, then switch the front end proxy setting to forward the traffic to