Re: what exactly happens when timeouts are set and tomcat has outofmemory errors.

2009-08-05 Thread Anantha Padmanabha
Madhuri, Its better to use max_reply_timeouts also in config so that LB does not mark a worker as 'down' once in a while. We dont use socket_connect_timeout and similar config you are mentioning had worked fine while we did OutOfMemory testing as far as I remember. If someone is not looking at

Export Eclipse Web Service to Tomcat

2009-08-05 Thread Toriacht
Hi, I posted a similar message a while ago but didn't get round to fixing the issue. I'm back at this problem again...basically i want to deploy a web service developed and running within Eclipse to a standalone Tomcat Server. The web service runs fine within Eclipse on a Tomcat 6 Server. I

Re: Export Eclipse Web Service to Tomcat

2009-08-05 Thread Mark Thomas
Toriacht wrote: I know (I think!) I need to FileExportWebWAR File. Is this correct? There must be more to it!! What do the Eclipse docs say you need to do? What do I do with the .jars referenced in Java Build Path and Java EE Module dependencies - do these get added to the WAR or do I need

Re: Export Eclipse Web Service to Tomcat

2009-08-05 Thread Michael Ludwig
Toriacht schrieb: The web service runs fine within Eclipse on a Tomcat 6 Server. I want to deploy this to an external Tomcat server(not running within eclipse) but I am unsure how. I know (I think!) I need to FileExportWebWAR File. Is this correct? There must be more to it!! Make sure you

Re: Upload stop after 30 minutes: Processing of multipart/form-data request failed. Stream ended unexpectedly

2009-08-05 Thread Mateusz Kijowski
2009/8/4 André Warnier a...@ice-sa.com: May or may not be relevant, but I do not see the above attributes in the Tomcat AJP Connector docs. http://tomcat.apache.org/tomcat-6.0-doc/config/ajp.html and only see disableUploadTimeout in the HTTP Connector.

use comet on tomcat

2009-08-05 Thread zhang99
1. in order to use comet in tomcat, i need implement CometProcessor .does that mean my application will be depending on tomcat in order to run since i use the org.apache.catalina.* library? in this case, i will not able to port to other application server like jboss,glassfish 2. is there any

Re: Upload stop after 30 minutes: Processing of multipart/form-data request failed. Stream ended unexpectedly

2009-08-05 Thread André Warnier
Mateusz Kijowski wrote: 2009/8/4 André Warnier a...@ice-sa.com: May or may not be relevant, but I do not see the above attributes in the Tomcat AJP Connector docs. http://tomcat.apache.org/tomcat-6.0-doc/config/ajp.html and only see disableUploadTimeout in the HTTP Connector.

Re: Export Eclipse Web Service to Tomcat

2009-08-05 Thread Toriacht
Hi Mark.. Thanks for your reply... I apologise for the confusion. When I said 'what is the protocol' I wasn't referring to a tech. protocol I just meant..'what is the usual procedure /best practice...where are these files normally stored/referenced and so on...' I'm in work now but I'll

Re: Need some SSL Config help.

2009-08-05 Thread Josh Gooding
*Andre wrote: The above is assuming that you would want all accesses which eventually go to Tomcat, to be under SSL from the client point of view. The idea is : SSL creates an overhead (encryption). If the link between Apache and Tomcat is secure (such as, they both run on the same host, or they

Re: Need some SSL Config help.

2009-08-05 Thread Josh Gooding
nevermind, I think I made some headway on this and will ask this over on the httpd list. Thank you for getting me this far, I really appreciate it. On Wed, Aug 5, 2009 at 8:50 AM, Josh Gooding josh.good...@gmail.com wrote: *Andre wrote: The above is assuming that you would want all accesses

Re: Upload stop after 30 minutes: Processing of multipart/form-data request failed. Stream ended unexpectedly

2009-08-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 8/5/2009 8:01 AM, André Warnier wrote: All in all, I believe the on-line doc has a bigger chance of being accurate than the book; and I also believe Tomcat will just ignore attributes that it does not know. I regard both of the above

RE: Upload stop after 30 minutes: Processing of multipart/form-data request failed. Stream ended unexpectedly

2009-08-05 Thread Caldarale, Charles R
From: André Warnier [mailto:a...@ice-sa.com] Subject: Re: Upload stop after 30 minutes: Processing of multipart/form-data request failed. Stream ended unexpectedly All in all, I believe the on-line doc has a bigger chance of being accurate than the book; and I also believe Tomcat will just

Re: How do you handle 'rewrite queries' ?

2009-08-05 Thread Paul Taylor
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paul, On 8/3/2009 11:03 AM, Paul Taylor wrote: Hi writing web app to replace an existing open source application (musicbrainz lucene search) that handles queries of the form http://host/?query=...type=...fmt=... and

Re: Upload stop after 30 minutes: Processing of multipart/form-data request failed. Stream ended unexpectedly

2009-08-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 8/4/2009 3:04 PM, André Warnier wrote: Mateusz Kijowski wrote: Connector port=8009 ... connectionUploadTimeout=360 disableUploadTimeout=true ... May or may not be relevant, but I do not see the

RE: FW: JNDIRealm and roleNested

2009-08-05 Thread Payne, George (ghp5h)
I have tested this and it does exactly what I'd hoped. I tested it with tomcat 6.0.20 as described, and I also, in vain and probably inadvisable hopes I could stick with my yum-updateable RHEL 5.3 tomcat5.5 version, tested it with 5.5 (under server/lib). It didn't throw an exception in 5.5,

RE: Upload stop after 30 minutes: Processing of multipart/form-data request failed. Stream ended unexpectedly

2009-08-05 Thread Martin Gainty
any way to incorporate Javadoc AND translations as part of the build for deutsche? francais? polska? italiano? norsk? svenska? BTW: andre you are awake now so looks like you are one of the early am TC gurus Martin Gainty __ Verzicht und

RE: Upload stop after 30 minutes: Processing of multipart/form-data request failed. Stream ended unexpectedly

2009-08-05 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: Upload stop after 30 minutes: Processing of multipart/form-data request failed. Stream ended unexpectedly disableUploadTimeout is definitely in the HTTP connector documentation. True, but we're talking about the

RE: How do you handle 'rewrite queries' ?

2009-08-05 Thread Caldarale, Charles R
From: Paul Taylor [mailto:paul_t...@fastmail.fm] Subject: Re: How do you handle 'rewrite queries' ? could you tell me how to do the mapping you specify in the tomcat config It's defined in the servlet spec, not the Tomcat config. Read section 11 of the spec. What's in your

Re: How do you handle 'rewrite queries' ?

2009-08-05 Thread Paul Taylor
Caldarale, Charles R wrote: From: Paul Taylor [mailto:paul_t...@fastmail.fm] Subject: Re: How do you handle 'rewrite queries' ? could you tell me how to do the mapping you specify in the tomcat config It's defined in the servlet spec, not the Tomcat config. Read section 11 of the

RE: How do you handle 'rewrite queries' ?

2009-08-05 Thread Caldarale, Charles R
From: Paul Taylor [mailto:paul_t...@fastmail.fm] Subject: Re: How do you handle 'rewrite queries' ? servlet-mapping servlet-nameSearchServerServlet/servlet-name url-pattern//url-pattern /servlet-mapping The above causes the SearchServerServlet to be invoked when there's no

Re: Upload stop after 30 minutes: Processing of multipart/form-data request failed. Stream ended unexpectedly

2009-08-05 Thread Mateusz Kijowski
All in all, I believe the on-line doc has a bigger chance of being accurate than the book; and I also believe Tomcat will just ignore attributes that it does not know. I regard both of the above statements as true. What version of Tomcat does your copy of Tomcat: The Definitive Guide cover?

Re: Service fails to start

2009-08-05 Thread venu007
This worked for me. How did you find out about it. Len Popp wrote: This error occurs when it can't find the Microsoft C runtime library. Try copying the file msvcr71.dll from the Java bin directory to the Tomcat bin directory. -- Len -- View this message in context:

Re: Upload stop after 30 minutes: Processing of multipart/form-data request failed. Stream ended unexpectedly

2009-08-05 Thread Mark Thomas
Mateusz Kijowski wrote: All in all, I believe the on-line doc has a bigger chance of being accurate than the book; and I also believe Tomcat will just ignore attributes that it does not know. I regard both of the above statements as true. What version of Tomcat does your copy of Tomcat: The

Re: use comet on tomcat

2009-08-05 Thread Filip Hanik - Dev Lists
On 08/05/2009 04:23 AM, zhang99 wrote: 1. in order to use comet in tomcat, i need implement CometProcessor .does that mean my application will be depending on tomcat in order to run since i use the org.apache.catalina.* library? in this case, i will not able to port to other application server

Re: How do you handle 'rewrite queries' ?

2009-08-05 Thread Paul Taylor
Caldarale, Charles R wrote: From: Paul Taylor [mailto:paul_t...@fastmail.fm] Subject: Re: How do you handle 'rewrite queries' ? servlet-mapping servlet-nameSearchServerServlet/servlet-name url-pattern//url-pattern /servlet-mapping The above causes the SearchServerServlet to

Re: Service fails to start

2009-08-05 Thread Len Popp
I think I read about it on this mailing list. :-) -- Len On Wed, Aug 5, 2009 at 10:54, venu007 nimmagadd...@yahoo.com wrote: This worked for me. How did you find out about it. Len Popp wrote: This error occurs when it can't find the Microsoft C runtime library. Try copying the

Re: How do you handle 'rewrite queries' ?

2009-08-05 Thread Robert Koberg
Don't know if this is an option, but you can use Jersey: https://jersey.dev.java.net/ and something like: @Path(/users/{username}) public class UserResource { @GET @Produces(text/xml) public String getUser(@PathParam(username) String userName) { ... } } On Aug 5, 2009,

Right way to close database connection pool

2009-08-05 Thread Kirill Ilyukhin
I use database connection pool which is described in webapp's META-INF/context.html: Context Resource auth=Container scope=Unshareable name=jdbc/myDS type=javax.sql.DataSource driverClassName=org.postgresql.Driver url=jdbc:postgresql://server/db ... / /Context

Re: Right way to close database connection pool

2009-08-05 Thread Filip Hanik - Dev Lists
you would need to listen for context destroyed, and cast the datasource to call close() on it Filip On 08/05/2009 10:43 AM, Kirill Ilyukhin wrote: I use database connection pool which is described in webapp's META-INF/context.html: Context Resource auth=Container scope=Unshareable

Re: Right way to close database connection pool

2009-08-05 Thread Mark Shifman
I do it in a contextListener. something like this: public void contextDestroyed(ServletContextEvent event) { Context initContext = new InitialContext(); Context envContext = (Context) initContext.lookup(java:/comp/env);

Re: How do you handle 'rewrite queries' ?

2009-08-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 8/5/2009 10:14 AM, Caldarale, Charles R wrote: From: Paul Taylor [mailto:paul_t...@fastmail.fm] Subject: Re: How do you handle 'rewrite queries' ? servlet-mapping servlet-nameSearchServerServlet/servlet-name

Re: How do you handle 'rewrite queries' ?

2009-08-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paul, On 8/5/2009 11:30 AM, Paul Taylor wrote: Thanks actually the default is not picking up the root case, I've got a simpler related issue by war get deployed as searchserver in webapps, is there a way I can leave it then and get it to pick up

Re: Right way to close database connection pool

2009-08-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Filip, On 8/5/2009 1:05 PM, Filip Hanik - Dev Lists wrote: you would need to listen for context destroyed, and cast the datasource to call close() on it When Tomcat re-deploys an application, is the existing DataSource trashed and re-created? When

Re: Upload stop after 30 minutes: Processing of multipart/form-data request failed. Stream ended unexpectedly

2009-08-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 8/5/2009 9:42 AM, Caldarale, Charles R wrote: From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: Upload stop after 30 minutes: Processing of multipart/form-data request failed. Stream ended unexpectedly

RE: How do you handle 'rewrite queries' ?

2009-08-05 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: How do you handle 'rewrite queries' ? Or when no other mapping matches, right? If you hit this webapp with a URI of /foo/bar then the servlet matching / will be invoked with pathInfo=foo/bar, right? I believe it

Documentation error for BackupManager mapSendOptions?

2009-08-05 Thread John Shields
In the configuration reference [1] and in numerous examples, it's stated that the default map send options mode for the BackupManager is 6 (asynchronous). In looking at the source code (6.0.18) it does appear that 6 is the default value: private int mapSendOptions =

Trailer header and tomcat

2009-08-05 Thread Keyur Shah
Tomcat by default sends chunked responses = Transfer-Encoding:chunked I'm calculating the ETag for the response dynamically as the content is being written to the response stream. Since I'll know the final value of the ETag only when the stream is closed, I indicate that using the Trailer header

Re: Right way to close database connection pool

2009-08-05 Thread Filip Hanik - Dev Lists
On 08/05/2009 11:35 AM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Filip, On 8/5/2009 1:05 PM, Filip Hanik - Dev Lists wrote: you would need to listen for context destroyed, and cast the datasource to call close() on it When Tomcat re-deploys an

Re: Right way to close database connection pool

2009-08-05 Thread Filip Hanik - Dev Lists
and if you don't want to depend on a specific implementation, use reflection On 08/05/2009 11:10 AM, Mark Shifman wrote: I do it in a contextListener. something like this: public void contextDestroyed(ServletContextEvent event) { Context initContext = new

Re: Trailer header and tomcat

2009-08-05 Thread Filip Hanik - Dev Lists
On 08/05/2009 02:14 PM, Keyur Shah wrote: Tomcat by default sends chunked responses = Transfer-Encoding:chunked I'm calculating the ETag for the response dynamically as the content is being written to the response stream. Since I'll know the final value of the ETag only when the stream is

Re: Documentation error for BackupManager mapSendOptions?

2009-08-05 Thread Filip Hanik - Dev Lists
On 08/05/2009 01:07 PM, John Shields wrote: In the configuration reference [1] and in numerous examples, it's stated that the default map send options mode for the BackupManager is 6 (asynchronous). In looking at the source code (6.0.18) it does appear that 6 is the default value: private

Re: Trailer header and tomcat

2009-08-05 Thread Keyur Shah
Thanks Filip. Buffering is what I do right now and that is what I'm trying to avoid. With a large number of concurrent users, the buffering is proving to be a performance bottleneck and is causing frequent GC sweeps. I think what I'm trying to do with the Trailer header is valid http usage

RE: Trailer header and tomcat

2009-08-05 Thread Martin Gainty
coding needs to conform to the spec's requirement for [weak]opaque-tag entity-tag = [ weak ] opaque-tag weak = W/ opaque-tag = quoted-string A strong entity tag MAY be shared by two entities of a resource only if they are equivalent by octet equality.(i interpret this

migration to 5.5.27

2009-08-05 Thread Timothy J Schumacher
Hi, I am currently running tomcat 5.0.12 and want to upgrade to 5.5.27. I also have java 1.4 running on an old version of linux (redhat 7.3) and I have installed the compatibility package in my tomcat home directory. I can start and stop the server just fine. The trouble I am running into

Fwd: won't login into apache in mac 10.5.7

2009-08-05 Thread Parminder Mankoo
Hello: I changed my tomcat-users.xml file to include: tomcat-users !-- role rolename=tomcat/ role rolename=manager/ role rolename=role1/ user username=tomcat password=tomcat roles=manager/ user username=both password=tomcat roles=tomcat,role1/ user username=role1 password=tomcat

RE: Trailer header and tomcat

2009-08-05 Thread Keyur Shah
Martin - I can verify that my ETag implementation meets the spec requirements. Both buffered and streaming impls. yield the same ETag. With the buffered implementation tomcat does include the ETag header in the response. With the streaming impl. it does not (even though I set Trailer: ETag)

Re: won't login into apache in mac 10.5.7

2009-08-05 Thread Hassan Schroeder
On Wed, Aug 5, 2009 at 3:34 PM, Parminder Mankooman...@cbio.mskcc.org wrote: I changed my tomcat-users.xml file to include: tomcat-users !--  role rolename=tomcat/  role rolename=manager/  role rolename=role1/  user username=tomcat password=tomcat roles=manager/  user username=both

RE: won't login into apache in mac 10.5.7

2009-08-05 Thread Caldarale, Charles R
From: Parminder Mankoo [mailto:man...@cbio.mskcc.org] Subject: Fwd: won't login into apache in mac 10.5.7 tomcat-users !-- role rolename=tomcat/ role rolename=manager/ role rolename=role1/ user username=tomcat password=tomcat roles=manager/ user username=both password=tomcat

Re: won't login into apache in mac 10.5.7

2009-08-05 Thread Parminder Mankoo
Oh! I didn't realize I am stupid to this extent. :-(. Many thanks for your reply. Best, Parminder On Aug 5, 2009, at 6:37 PM, Hassan Schroeder wrote: On Wed, Aug 5, 2009 at 3:34 PM, Parminder Mankooman...@cbio.mskcc.org wrote: I changed my tomcat-users.xml file to include: tomcat-users

Re: Trailer header and tomcat

2009-08-05 Thread André Warnier
Keyur, I think what Filip was trying to tell you is this : Servlet Specification 2.4, SRV 5.2, Headers : To be successfully transmitted back to the client, headers must be set before the response is committed. Headers set after the response is committed will be ignored by the servlet