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

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

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

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). Whenever I see a description like the above, my

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 java to generate

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 requests per

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 GlobalNamingResources/ in Tomcat 5 as follow: Resource auth=Container driverClassName=oracle.jdbc.OracleDriver maxActive=20 maxIdle=10 maxWait=-1 name=jdbc/MyDataSource

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

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

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

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

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

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 ch...@christopherschultz.net Sent: Feb 13, 2009 6:52 PM To: Tomcat Users List users@tomcat.apache.org Subject: Re: tomcat admin console set values

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

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

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

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

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 Server port set to 8080 ??? The port attribute in the Server

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 Connector isn't bound to 127.0.0.1. True, as long as you don't expect anything useful from pointing a browser to

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: 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.date file that tomcat creates 1catalina.org.apache.juli.FileHandler.prefix =

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

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!). Java

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,

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

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 depending on

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

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 Host name=my.server.name appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false

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

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: 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 ch...@christopherschultz.net 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

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

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

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

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 dbw...@yahoo.com wrote: I'm having a problem with Tomcat 6.0.18 that I don't understand. I'm

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