Re: HttpServletResponse.sendRedirect() not working?

2009-02-16 Thread Qiao Jin
I don't know much about these frameworks either. But from a logical point of view, if you are seeing the error page by TC, that would indicate to me that TC has been triggered to handle the exception. Was the exception rethrown or somehow propagated upward after Spring's exception processing? The e

Re: HttpServletResponse.sendRedirect() not working?

2009-02-16 Thread Brad Whitaker
There's a lot of processing after the sendRedirect(). The sendRedirect() is contained in Grails platform code and I confess that I don't fully understand the motivation behind all of the processing. The sendRedirect() has occurred after an application defined exception has been thrown. A Spring ex

Re: HttpServletResponse.sendRedirect() not working?

2009-02-16 Thread Qiao Jin
What's after the sendRedirect() call in your code? And what's in the final? Can you post a simple code sample that would demonstrate the problem? On Mon, Feb 16, 2009 at 5:55 PM, Brad Whitaker wrote: > > I'm having a problem with Tomcat 6.0.18 that I don't understand. I'm > invoking > HttpServle

RE: HttpServletResponse.sendRedirect() not working?

2009-02-16 Thread Martin Gainty
if you were forwarding..that would be a TC error a redirect sends response back to browser-client its up to browser-client to then accept the response and re-direct the client Request to new url //an alternative strategy would be to build the URL consisting of URL and http-get parameters e.g

HttpServletResponse.sendRedirect() not working?

2009-02-16 Thread Brad Whitaker
I'm having a problem with Tomcat 6.0.18 that I don't understand. I'm invoking HttpServletResponse.sendRedirect() but no redirect is being sent to the browser. Is there a valid reason why this might occur, or is this likley a bug in Tomcat? My code has thrown an exception prior to invoking the red

Re: filter debugging or logging?

2009-02-16 Thread Brad Whitaker
Thanks for the response. I wanted to know about the order primarily because I thought I might be having a problem with configuration, i.e. I was concerned that some filters might or might not be firing on ERROR and REDIRECT. I've done enough debugging at this point to determine this is not my pro

Re: Apache/mod_jk serves random files from tomcat

2009-02-16 Thread dave smith
Sorry for not providing an update sooner. I disabled the APR and the problem went away. On 2/12/09, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Yuval, > > On 2/12/2009 3:12 AM, Yuval Perlov wrote: >> I actually upgraded from mod_jk 1.2.26 to 27 to try and mak

Re: AJP13 Connector and JKOptions]

2009-02-16 Thread Pete Helgren
Andre, Thanks. This Apache instance is running on Windows Server 2003 and already has several web sites running at port 80. Some static, some PHP. I am a Java guy so a Tomcat servlet was my natural way of writing the app. To my knowledge I can't have more than one web server listening on

Re: Tutorial: Load Balancing Tomcat with Apache

2009-02-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 To whom iy may concern, On 2/16/2009 4:21 PM, GF wrote: > I wrote a tutorial about load balancing Tomcat with Apache Proxy Module. > > This is the url: > http://www.zulutown.com/blog/2009/02/16/java-ee-load-balancing-with-tomcat-and-apache/ > Any fee

Re: Running more than one application

2009-02-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Peter, On 2/16/2009 10:29 AM, Peter Flynn wrote: > and modified the sample Host element to match in server.xml > >unpackWARs="true" autoDeploy="true" > xmlValidation="false" xmlNamespaceAware="false"> > debug="9" crossCont

RE: [OT] of the different methods to get a user-id

2009-02-16 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Subject: Re: [OT] of the different methods to get a user-id > Do you mean gcc on win32 worked as you expected? Yes, it produced the same results as Java. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PR

Re: [OT] of the different methods to get a user-id

2009-02-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 2/16/2009 5:19 PM, Caldarale, Charles R wrote: >> From: Christopher Schultz [mailto:ch...@christopherschultz.net] >> Subject: Re: [OT] of the different methods to get a user-id >> >> For instance. >> i = i++ >> >> yields different results de

Re: Fastest method to serve dynamic java content

2009-02-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Keeny, On 2/16/2009 5:15 AM, keenny wrote: > I'm currently working on a system that must be able to serve thousands of > requests per sec. The requests/responses contains only small amounts of data > (ajax XMLHTTPRequests) and are not long lived (conn

Re: Apache2.2 pages won't render in FireFox

2009-02-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin, On 2/15/2009 11:13 AM, Martin Gainty wrote: > Im discovering Firefox wont render Apache2.2 served pages from > Apache2.2/htdoc folder > If I rollback to Apache2 ..Apache2/htdoc Pages the same pages are rendered > with no error Not to be too

Re: Tutorial: Load Balancing Tomcat with Apache

2009-02-16 Thread Ben Stringer
Hi, Nice work on the tutorial. I have some feedback. 1) I would mention the version of the httpd and tomcat that you are using. For instance, the load balancing mechanism you are using in httpd is only supported by Apache Httpd 2.2 2) I don't see why you need to create a virtual host in httpd, u

RE: [OT] of the different methods to get a user-id

2009-02-16 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Subject: Re: [OT] of the different methods to get a user-id > > For instance. > i = i++ > > yields different results depending on what language > you are using. C and Java produce different outputs > (which really surprised me!).

Re: filter debugging or logging?

2009-02-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brad, On 2/13/2009 7:34 PM, Brad Whitaker wrote: > Is there a logger that can emit information about when servlet filters are > invoked? Not a logger per-se, but there is an internal event fired and can presumably be listened-to. See the source for j

Re: Resource JDBC connection pooling USING LDAP

2009-02-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tim, On 2/13/2009 5:02 PM, trames wrote: > My goal is to NOT embed the database connection user name, password, or even > server url like it is shown below. I have the ApacheDS LDAP server set up, > and would like to retrieve the credentials/server

Re: catalina.out

2009-02-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mohit, On 2/15/2009 11:57 AM, Mohit Anchlia wrote: > Thanks. There doesn't seem to be mention of catalina.out. Only one > line that it has referes to other catalina. file that tomcat > creates > > 1catalina.org.apache.juli.FileHandler.prefix = catali

Re: [OT] of the different methods to get a user-id

2009-02-16 Thread Alan Chaney
Chris, I offer my opinions here as a real "grey beard" (literally). I certainly agree with you that people should have a breath of skills allowing them to use the right tool at the right time. However, notwithstanding the fact that the other day I worked out that I have actually used about 15

RE: accepting requests from outside the host?

2009-02-16 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Subject: Re: accepting requests from outside the host? > > Strictly speaking, they can be the same port, as long > as the isn't bound to 127.0.0.1. True, as long as you don't expect anything useful from pointing a browser to loc

Re: accepting requests from outside the host?

2009-02-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 2/14/2009 9:49 AM, Caldarale, Charles R wrote: >> From: Frank D. Greco [mailto:fgr...@crossroadstech.com] >> Subject: RE: accepting requests from outside the host? >> >> I had the port set to 8080 > > ??? The port attribute in the element

Re: ssl connector

2009-02-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ryan, On 2/13/2009 12:09 AM, epicwin...@hotmail.com wrote: > The application I > am developing uses tomcat on the back end and a swing client on the > front with the Spring HttpInvoker. > > So first I got it working without apr. After I set up the c

Tutorial: Load Balancing Tomcat with Apache

2009-02-16 Thread GF
Hello everyone I wrote a tutorial about load balancing Tomcat with Apache Proxy Module. This is the url: http://www.zulutown.com/blog/2009/02/16/java-ee-load-balancing-with-tomcat-and-apache/ Any feedback will be really appreciated. Thank You.

Re: [OT] of the different methods to get a user-id

2009-02-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, What the hell.. let's start a holy war?! On 2/13/2009 10:25 AM, André Warnier wrote: > Their merit is all the greater since > they work in the obscure non-graphical background, they never get any of > the attention, and they have to share mach

Re: [OT] of the different methods to get a user-id

2009-02-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 2/12/2009 10:27 PM, Caldarale, Charles R wrote: >> From: Christopher Schultz [mailto:ch...@christopherschultz.net] >> Subject: Re: [OT] of the different methods to get a user-id >> >> I don't understand that, either. I suppose this works dif

Re: Tomcat 5.0.30 - Session Storage?

2009-02-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris, On 2/11/2009 12:07 PM, memblin wrote: > I see the PersistenceManager + Filestore/JDBCStore as an option but I see > certain places that PersistenceManager is experimental and does not keep > sessions completely up to date. Note that Tomcat 5.

Re: tomcat admin console set values

2009-02-16 Thread Srinivas Jonnalagadda
Chris, Thank you very much for the answer. This is really a nice help. Srinivas Jonnalagadda -Original Message- >From: Christopher Schultz >Sent: Feb 13, 2009 6:52 PM >To: Tomcat Users List >Subject: Re: tomcat admin console set values > >-BEGIN PGP SIGNED MESSAGE- >Hash: SHA1

Running more than one application

2009-02-16 Thread Peter Flynn
I have been running Cocoon 2.1.11 successfully on its own for some time in Tomcat 5.5.23 under RHEL5 with Apache httpd 2.2.3 but I now need to add Lucene and some other apps. The cocoon.war was unwrapped in webapps, and the only installation mods I made were to add the virtual host block to Ap

RE: LifecycleException: No UserDatabase component found under keyUserDatabase by Tomcat 6

2009-02-16 Thread Pieter Temmerman
Didn't see this one. Suppose that was the problem. -Mensaje original- De: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Enviado el: lun 16/02/2009 15:26 Para: Tomcat Users List Asunto: RE: LifecycleException: No UserDatabase component found under keyUserDatabase by Tomcat 6

RE: LifecycleException: No UserDatabase component found under keyUserDatabase by Tomcat 6

2009-02-16 Thread Pieter Temmerman
Would you mind telling us the solution? -Mensaje original- De: thomas2004 [mailto:thomas200...@yahoo.de] Enviado el: lun 16/02/2009 15:55 Para: users@tomcat.apache.org Asunto: RE: LifecycleException: No UserDatabase component found under keyUserDatabase by Tomcat 6 Hi all, I solve t

RE: LifecycleException: No UserDatabase component found under keyUserDatabase by Tomcat 6

2009-02-16 Thread thomas2004
Hi all, I solve the problem now. Caldarale, Charles R wrote: > >> From: thomas2004 [mailto:thomas200...@yahoo.de] >> Subject: LifecycleException: No UserDatabase component found >> under keyUserDatabase by Tomcat 6 >> >> but it doesn't help and I got excpetion "LifecycleException: No >> Us

RE: LifecycleException: No UserDatabase component found under keyUserDatabase by Tomcat 6

2009-02-16 Thread Caldarale, Charles R
> From: thomas2004 [mailto:thomas200...@yahoo.de] > Subject: LifecycleException: No UserDatabase component found > under keyUserDatabase by Tomcat 6 > > but it doesn't help and I got excpetion "LifecycleException: No > UserDatabase component found under key UserDatabase". Looks like you broke the

Re: Starting tomcat from jar file‏ (from another service)

2009-02-16 Thread dissection
I am still waiting for reply, please help! Thanks... Hello all, I want to make a service program for windows that runs tomcat standalone in it. I did a win32 .exe that creates service and runs jar file with JNI code. Firstly I made my own jar file which writes to a file with start command and it

LifecycleException: No UserDatabase component found under key UserDatabase by Tomcat 6

2009-02-16 Thread thomas2004
Hi all, I used to set the global data resource in in Tomcat 5 as follow: Since I use the Tomcat6, I got problem. I read from internet that one has to add the following code in /conf/context.xml, but it doesn't help and I got excpetion "LifecycleException: No Use

Re: Fastest method to serve dynamic java content

2009-02-16 Thread keenny
Not in this case, but the requirements this poses on the back-end system is similar. As explained above, the latency will be high, but so must the throughput. awarnier wrote: > > keenny wrote: >> Hello all, >> >> I'm currently working on a system that must be able to serve thousands of >> requ

Re: Fastest method to serve dynamic java content

2009-02-16 Thread keenny
awarnier wrote: > > keenny wrote: >> Hello all, >> >> I'm currently working on a system that must be able to serve thousands of >> requests per sec. The requests/responses contains only small amounts of >> data >> (ajax XMLHTTPRequests) and are not long lived (connection keep). I'm >> using >>

RE: Fastest method to serve dynamic java content

2009-02-16 Thread Peter Crowther
> From: keenny [mailto:kee...@start.no] > I was just wondering if anybody has any opinions > as to how this > can be done most effectively (highest throughput, low cpu > consumption etc). > Some alternatives being: > > lighttpd -> mod_proxy -> tomcat -> application code Lots of moving parts. Ther

Re: Fastest method to serve dynamic java content

2009-02-16 Thread André Warnier
keenny wrote: Hello all, I'm currently working on a system that must be able to serve thousands of requests per sec. The requests/responses contains only small amounts of data (ajax XMLHTTPRequests) and are not long lived (connection keep). Whenever I see a description like the above, my imme

Re: Apache2.2 pages won't render in FireFox

2009-02-16 Thread Juha Laiho
Martin Gainty wrote: > All- > > Im discovering Firefox wont render Apache2.2 served pages from > Apache2.2/htdoc folder > If I rollback to Apache2 ..Apache2/htdoc Pages the same pages are rendered > with no error > > Advice? Could be an issue with file extension -> MIME-type mapping . If you

Re: Fastest method to serve dynamic java content

2009-02-16 Thread André Warnier
keenny wrote: Hello all, I'm currently working on a system that must be able to serve thousands of requests per sec. The requests/responses contains only small amounts of data (ajax XMLHTTPRequests) and are not long lived (connection keep). I'm using java to generate the responses. Static conten

Re: Deploying to a subfolder

2009-02-16 Thread mkalioby
I know it is late but I faced the same problem in Linux and successfully solve it. The WAR was deploying correctly at the first time and then when i restart the server it didn't deploy again, I SOLVED this by Deleting the context file in TOMCAT_HOME/conf/Catalina/localhost/APPNAME.xml before t

Fastest method to serve dynamic java content

2009-02-16 Thread keenny
Hello all, I'm currently working on a system that must be able to serve thousands of requests per sec. The requests/responses contains only small amounts of data (ajax XMLHTTPRequests) and are not long lived (connection keep). I'm using java to generate the responses. Static content are served se