tomcat giving a response without parsing the header at all

2008-07-15 Thread tomcat tom
scenarion client sends a http request to tomcat nos, is there anytime tomcat sends a response without parsing the header at all

Re: How to Set up Role in Tomcat

2008-07-15 Thread Alex Mestiashvili
Guojun Zhu wrote: Hi, We are using Tomcat 5.5 in a linux box. And I am trying to set up the Realm security for our webapp. I only want a password and username challenge for this webapp only. So I guess I need to set up a role corresponding to it directly. I look around and did not find much

Re: tomcat, apache with mod_jk and mod_auth_kerb

2008-07-15 Thread Nikhil
On Tue, Jul 15, 2008 at 6:35 PM, Rainer Jung <[EMAIL PROTECTED]> wrote: What do you expect to be the value of the 'REMOTE_USER' variable? Do you > expoect something else, than what you get from request.getRemoteUser()? What > do you mean by variable? Maybe an httpd environment Variable? > > Precis

RE: Tomcat 5.5 hanged . Thread Dump Analyze

2008-07-15 Thread Caldarale, Charles R
> From: Olivier Fourel [mailto:[EMAIL PROTECTED] > Subject: Tomcat 5.5 hanged . Thread Dump Analyze > > our Tomcat production server hanged again. > We made 2 thread dumps with few minutes between them. The only thing I found suspicious is that PermGen is at 99% in both of them. (You also have a

Re: Does mod_jk support chunked encoding?

2008-07-15 Thread Tim Whittington
mod_jk does chunked encoding on all dynamic responses (e.g. From Tomcat) that don¹t already have some form of response end set (e.g. A Content-Length header). To be accurate I think this is more a function of Apache than mod_jk. All you should need to do is connect Tomcat to Apache using mod_jk and

Does mod_jk support chunked encoding?

2008-07-15 Thread Adam Gordon
Hi- We're running Tomcat 5.5.16 behind Apache2 and one functionality of our web app serves up ZIP files which are created on the fly. We'd like to implement chunked-encoding to serve up the ZIP file so we don't have to actually create a temporary file on disk first but also so that we can im

How to Set up Role in Tomcat

2008-07-15 Thread Guojun Zhu
Hi, We are using Tomcat 5.5 in a linux box. And I am trying to set up the Realm security for our webapp. I only want a password and username challenge for this webapp only. So I guess I need to set up a role corresponding to it directly. I look around and did not find much information about h

Re: memory realm => tomcat 6 => null pointer exception

2008-07-15 Thread Leonardo K. Shikida
hooray ;-) thanks! [] Kenji - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Tomcat seems to have stopped servicing requests behind Apache

2008-07-15 Thread Tim Hunt
I figured out my problem, and I thought I should posted it, although I apologize if I'm reducing the signal to noise here, as this is pretty specific, and it didn't get a lot of attention to begin with. Here it is: I mistakenly had iptables blocking traffic from localhost, which I think blocke

RE: memory realm => tomcat 6 => null pointer exception

2008-07-15 Thread Caldarale, Charles R
> From: Leonardo K. Shikida [mailto:[EMAIL PROTECTED] > Subject: Re: memory realm => tomcat 6 => null pointer exception > > yes I did What about the UserDatabase under ? That should also come out when using the MemoryRealm. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWIS

Re: memory realm => tomcat 6 => null pointer exception

2008-07-15 Thread Leonardo K. Shikida
yes I did :-( [] Kenji On Tue, Jul 15, 2008 at 2:59 PM, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: >> From: Leonardo K. Shikida [mailto:[EMAIL PROTECTED] >> Subject: memory realm => tomcat 6 => null pointer exception >> >> when I add to server.xml >> >> right below >> >> I ca

RE: memory realm => tomcat 6 => null pointer exception

2008-07-15 Thread Caldarale, Charles R
> From: Leonardo K. Shikida [mailto:[EMAIL PROTECTED] > Subject: memory realm => tomcat 6 => null pointer exception > > when I add to server.xml > > right below > > I can't start the server and I get the message Works fine for me - as long as I comment out the existing ; did you do

memory realm => tomcat 6 => null pointer exception

2008-07-15 Thread Leonardo K. Shikida
when I add to server.xml right below I can't start the server and I get the message Jul 15, 2008 2:29:07 PM org.apache.tomcat.util.digester.Digester startElement SEVERE: Begin event threw exception java.lang.NullPointerException at sun.misc.Launcher$AppClassLoader.loadCla

Re: Tomcat charset problem

2008-07-15 Thread Mark Thomas
Toby White wrote: Hi, I am a newbie in Tomcat so please be patient. =) I have an application which uses apache tomcat to provide users with browser access. To deploy it I copied a war file into webapps directory. The application uses Cyrillic characters. If I use the windows-based tool everyth

RE: Embedded Tomcat

2008-07-15 Thread Radcliffe, William H.
Joe wrote: > I'm not getting any exceptions on startup, and the exact war file that I'm pointing is found because it's serving HTML > and even my servlet just fine. > But when I get a ServletContext, it's null. I've got a set of tomcat jars in the classpath (catalina, annorations-api, > tomcat-coy

Tomcat charset problem

2008-07-15 Thread Toby White
Hi, I am a newbie in Tomcat so please be patient. =) I have an application which uses apache tomcat to provide users with browser access. To deploy it I copied a war file into webapps directory. The application uses Cyrillic characters. If I use the windows-based tool everything is shown OK. If

Re: Connections timing out even with validation query??

2008-07-15 Thread Ken Bowen
Definitely a plan. I put the following in my context.xml: validationQuery="select 1" testWhileIdle="true" timeBetweenEvictionRunsMillis="1000*60" removeAbandoned="true" I set connect_timeout=5 in /etc/my.cnf, and restarted both mysql and tom

Embedded Tomcat

2008-07-15 Thread Joe Walker
Maybe I missed some docs somewhere, but my embedded Tomcat isn't working properly. I doing essentially this: Embedded embedded = new Embedded(); embedded.setCatalinaBase("."); Engine engine = embedded.createEngine(); Host host = embedded.createHost("localhost", "."); engine.addChild(host); C

Re: Apache/mod_jk serves random files from tomcat

2008-07-15 Thread dave.smith
Thanks, Mark. When I first saw that security notice, I thought, "this is it!". I don't think it is my problem, though, because I don't allow direct SSL requests to get to the web servers. All HTTPS gets terminated to HTTP at the load balancer. The load balancer sends the HTTP requests to Apach

RE: Apache/Tomcat - mod_jk can't receive response from Tomcat

2008-07-15 Thread Bajbutovic, Zoran
Hi Rainer, Thanks a lot for responding. > You mean the number of threads inside Tomcat? We use prefork mod_jk, so basically it is not the number of threads but rather the number of processes created by Apache. When the number of processes (client connections) on Apache side reaches 252, m

Re: Saving file

2008-07-15 Thread Hassan Schroeder
On Tue, Jul 15, 2008 at 4:49 AM, stasins <[EMAIL PROTECTED]> wrote: > > Hi. Is there anybody who can explain me how could i configure tomcat server > for saving files on its webapp using URLConnection or HttpClient. And in > URLConnection API what Content-Type and Method must be setted? Sorry, unc

Re: Connections timing out even with validation query??

2008-07-15 Thread Hassan Schroeder
On Tue, Jul 15, 2008 at 4:04 AM, Ken Bowen <[EMAIL PROTECTED]> wrote: > The problem: With MySQL connect_timeout = 5, I'm getting timeout exceptions > (below) even though I have a > validation query set; Here's my app's META-INF/context-xml: > > > maxActive="100" maxIdle="30" maxWait

Re: Apache/mod_jk serves random files from tomcat

2008-07-15 Thread Rainer Jung
dave.smith schrieb: Yesterday, I upgraded our dev environment to mod_jk 1.2.26, which couldn't have been easier. It will probably take me a couple of days before I can get this done in production, though. I terminate all HTTPS requests before they get to the web server, so from what you have de

Re: Apache/mod_jk serves random files from tomcat

2008-07-15 Thread dave.smith
Yesterday, I upgraded our dev environment to mod_jk 1.2.26, which couldn't have been easier. It will probably take me a couple of days before I can get this done in production, though. I terminate all HTTPS requests before they get to the web server, so from what you have described, it is probab

RE: Setting context in tomcat6

2008-07-15 Thread Caldarale, Charles R
> From: vibhuti [mailto:[EMAIL PROTECTED] > Subject: RE: Setting context in tomcat6 > > I will not be able to access my application using URL > http://localhost:8080/myapp/, I'll just be able to access it using > http://localhost:8080/ > I want the users of my web application to be able to access >

Re: Setting context in tomcat6

2008-07-15 Thread Mark Thomas
vibhuti wrote: Thanks a lot for the prompt reply. I have tried doing that but in that case I will not be able to access my application using URL http://localhost:8080/myapp/, I'll just be able to access it using http://localhost:8080/ I want the users of my web application to be able to access it

Re: Apache/mod_jk serves random files from tomcat

2008-07-15 Thread Mark Thomas
Rainer Jung wrote: Hi David, dave.smith schrieb: Hi Rainer, Thanks a lot for the reply. I am using Tomcat 5.5.25 (rpm from jpackage.org). CentOS Linux 2.6.18. Could you be seeing CVE-2007-6286 ? See http://tomcat.apache.org/security-5.html for info. Mark -

RE: Setting context in tomcat6

2008-07-15 Thread vibhuti
Thanks a lot for the prompt reply. I have tried doing that but in that case I will not be able to access my application using URL http://localhost:8080/myapp/, I'll just be able to access it using http://localhost:8080/ I want the users of my web application to be able to access it using both the U

Re: Apache/mod_jk serves random files from tomcat

2008-07-15 Thread Rainer Jung
Hi David, dave.smith schrieb: Hi Rainer, Thanks a lot for the reply. I am using Tomcat 5.5.25 (rpm from jpackage.org). CentOS Linux 2.6.18. httpd was compiled in prefork mode. The prefork settings are: StartServers 8 MinSpareServers5 MaxSpareServers 20 ServerLimit 256 MaxCl

Re: Apache/mod_jk serves random files from tomcat

2008-07-15 Thread dave.smith
Hi Rainer, Thanks a lot for the reply. I am using Tomcat 5.5.25 (rpm from jpackage.org). CentOS Linux 2.6.18. httpd was compiled in prefork mode. The prefork settings are: StartServers 8 MinSpareServers5 MaxSpareServers 20 ServerLimit 256 MaxClients 256 MaxRequestsPerCh

Re: Setting context in tomcat6

2008-07-15 Thread David Smith
Rename your app ROOT (case is important here) and it will become the default webapp. --David vibhuti wrote: Hi I've been trying to set my application as default application using tomcat6 but none of the approaches I tried worked. First, I created a file .xml in /tomcat/conf/Catali

Setting context in tomcat6

2008-07-15 Thread vibhuti
Hi I've been trying to set my application as default application using tomcat6 but none of the approaches I tried worked. First, I created a file .xml in /tomcat/conf/Catalina/localhost folder but this did not make my application default. It worked on tomcat5 but not on tomcat6. Following

Re: tomcat, apache with mod_jk and mod_auth_kerb

2008-07-15 Thread Rainer Jung
Thats right and clueful. Yes, I modifued my httpd.conf to include the webapp location that I was going through and it updated the remote user, I was able to use have the result now properly set from the request.getRemoteUser call. Fine. BUT, again, I was not able to pass the 'REMOTE_USER' vari

Re: Connections timing out even with validation query??

2008-07-15 Thread Ken Bowen
David...see below... On Jul 15, 2008, at 8:28 AM, David Smith wrote: Looks like for some reason your mysql db is closing the connection in the middle of your query reads. This isn't normal behavior in a tomcat/mysql setup. Setting connect_timeout only impacts the initial handshake and va

Re: Connections timing out even with validation query??

2008-07-15 Thread David Smith
Looks like for some reason your mysql db is closing the connection in the middle of your query reads. This isn't normal behavior in a tomcat/mysql setup. Setting connect_timeout only impacts the initial handshake and validationQuery just tests the connection before you borrow it. I wouldn't

Re: howto stop crawler and bots according to their user agent string

2008-07-15 Thread Markus Fischer
Hello Mathias, Mathias Walter wrote: I don't know it exactly. The problem is that the sites are linked from anywhere. I'm not sure, if a crawler that follows the link http://mydomain:port/servlet/page.jsp, looks for the robots.txt in the ROOT webapp. Just last week we've installed a robots.txt

Saving file

2008-07-15 Thread stasins
Hi. Is there anybody who can explain me how could i configure tomcat server for saving files on its webapp using URLConnection or HttpClient. And in URLConnection API what Content-Type and Method must be setted? -- View this message in context: http://www.nabble.com/Saving-file-tp18462771p184627

Re: does tomcat use any kind of parser

2008-07-15 Thread Mark Thomas
tomcat tom wrote: I'm looking for a scenario like; mod_rewrite and forbidden flag, wherein the server gives the 403 response pls give me the link Try searching the archives. http://tomcat.apache.org/lists.html On 7/15/08, Mark Thomas <[EMAIL PROTECTED]> wrote: tomcat tom wrote: does tomc

Re: tomcat, apache with mod_jk and mod_auth_kerb

2008-07-15 Thread Nikhil
On Tue, Jul 15, 2008 at 2:23 PM, Rainer Jung <[EMAIL PROTECTED]> wrote: > Nikhil schrieb: > >> [Tue Jul 15 12:57:40 2008] [20026:0001] [debug] mod_jk.c (607): Service >> protocol=HTTP/1.1 method=GET host=(null) addr=149.77.175.155 name= >> is3.hyd.deshaw.com port=8080 auth=(null) user=(null) >> la

Re: is there anyone use websphere. ibm http server? I have a question for it of cluster

2008-07-15 Thread Buddy wu
t 2008/7/15 Antonio Petrelli <[EMAIL PROTECTED]>: > 2008/7/15 Buddy wu <[EMAIL PROTECTED]>: >> I'm so sorry. >> but i don't find a websphere list. So I try fortune. > > Well, google "Websphere mailing list" and press "I'm feeling lucky", > or simply go to: > http://www.websphere.org/websphere/jsp

Re: does tomcat use any kind of parser

2008-07-15 Thread tomcat tom
hi mark I'm looking for a scenario like; mod_rewrite and forbidden flag, wherein the server gives the 403 response pls give me the link On 7/15/08, Mark Thomas <[EMAIL PROTECTED]> wrote: > > tomcat tom wrote: > >> does tomcat do header parsing? >> > > Yes. > > > > > -

Re: is there anyone use websphere. ibm http server? I have a question for it of cluster

2008-07-15 Thread Antonio Petrelli
2008/7/15 Buddy wu <[EMAIL PROTECTED]>: > I'm so sorry. > but i don't find a websphere list. So I try fortune. Well, google "Websphere mailing list" and press "I'm feeling lucky", or simply go to: http://www.websphere.org/websphere/jsp/listserv.jsp Antonio --

Re: is there anyone use websphere. ibm http server? I have a question for it of cluster

2008-07-15 Thread Buddy wu
I'm so sorry. but i don't find a websphere list. So I try fortune. or is anyone can give me a list of websphere? I searched a lot , but not found a working one yet 2008/7/15 Peter Crowther <[EMAIL PROTECTED]>: > Why are you asking this on a Tomcat list? > >- Peter > >> -Origin

Connections timing out even with validation query??

2008-07-15 Thread Ken Bowen
Hi All, I get the feeling this was lost over the weekend when I sent it last Saturday. Does anyone have any thoughts on this? Using: Tomcat 5.5.26 ; Java 1.5 ; MySQL 5.0.51 running on CentOs 5.0 hosted in a Virtuozzo container. The problem: With MySQL connect_timeout = 5, I'm getting time

RE: is there anyone use websphere. ibm http server? I have a question for it of cluster

2008-07-15 Thread Peter Crowther
Why are you asking this on a Tomcat list? - Peter > -Original Message- > From: Buddy wu [mailto:[EMAIL PROTECTED] > Sent: 15 July 2008 11:43 > To: Tomcat Users List > Subject: is there anyone use websphere. ibm http server? I > have a question for it of cluster > > I insta

is there anyone use websphere. ibm http server? I have a question for it of cluster

2008-07-15 Thread Buddy wu
I installed ihs, plugins and was. and I create a cluster named testCluster. and in the cluster, I have created two mebers, named s1 ,s2. and the weight set to 2. when I visite the site. the plugin, send my request to the two servers alternatly. it means when i have 4 request, It send firs

RE: howto stop crawler and bots according to their user agent string

2008-07-15 Thread Mathias Walter
Hi, > > I've put a robots.txt in webapps/ROOT, but this file is not > > read again. > > So, to check, the crawlers are not reading your robots.txt > and are crawling your site anyway? I don't know it exactly. The problem is that the sites are linked from anywhere. I'm not sure, if a crawler tha

RE: howto stop crawler and bots according to their user agent string

2008-07-15 Thread Peter Crowther
> From: Mathias Walter [mailto:[EMAIL PROTECTED] > How can I prevent crawler and bots according to their user agent? > > I've put a robots.txt in webapps/ROOT, but this file is not > read again. So, to check, the crawlers are not reading your robots.txt and are crawling your site anyway? > I'd l

howto stop crawler and bots according to their user agent string

2008-07-15 Thread Mathias Walter
Hi, I'm using Tomcat without the Apache Web Server. Now, some bots are crawling my database driven website. How can I prevent crawler and bots according to their user agent? I've put a robots.txt in webapps/ROOT, but this file is not read again. I'd like to stop crawlers by their useragent strin

Re: does tomcat have a rewrite engine of its own

2008-07-15 Thread Mark Thomas
tomcat tom wrote: does tomcat have a rewrite engine of its own other then mod_rewrite of apache? No. There are filters available to do this. More info is available in the archives. - To start a new topic, e-mail: users@tomc

Re: does tomcat use any kind of parser

2008-07-15 Thread Mark Thomas
tomcat tom wrote: does tomcat do header parsing? Yes. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Apache/Tomcat - mod_jk can't receive response from Tomcat

2008-07-15 Thread Rainer Jung
Bajbutovic, Zoran schrieb: We have Apache and Tomcat running on different servers, using mod_jk. From time to time we got the following errors from Tomcat. [Thu Jul 10 16:43:21 2008] [jk_ajp_common.c (1250)]: Tomcat is down or network problems. No response has been sent to the

does tomcat use any kind of parser

2008-07-15 Thread tomcat tom
does tomcat do header parsing?

does tomcat have a rewrite engine of its own

2008-07-15 Thread tomcat tom
does tomcat have a rewrite engine of its own other then mod_rewrite of apache? Tom

Re: tomcat, apache with mod_jk and mod_auth_kerb

2008-07-15 Thread Rainer Jung
Nikhil schrieb: [Tue Jul 15 12:57:40 2008] [20026:0001] [debug] mod_jk.c (607): Service protocol=HTTP/1.1 method=GET host=(null) addr=149.77.175.155 name= is3.hyd.deshaw.com port=8080 auth=(null) user=(null) laddr=149.77.160.20raddr= 149.77.175.155 -- If noticed, auth=(null) and use

Re: Unsubsribe

2008-07-15 Thread Mark Thomas
Frank Fischer wrote: To unsubscribe, send an e-mail to: [EMAIL PROTECTED] and reply to the automated confirmation message. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTEC

Re: Tomcat INFO message

2008-07-15 Thread Mark Thomas
w.delacruz wrote: Hi...when i deploy a java web application in Tomcat 6 i got this error message, Jul 14, 2008 10:30:00 PM org.apache.catalina.loader.WebappClassLoader loadClass INFO: Illegal access: this web application instance has been stopped already. Could not load java.lang.Object. The

Unsubsribe

2008-07-15 Thread Frank Fischer

Re: tomcat based webmail

2008-07-15 Thread Mikolaj Rydzewski
AngeloChen960 wrote: Is there a web based email system that can be used with tomcat without the need of a regular web server like Apache? thanks. http://java-source.net/open-source/web-mail -- Mikolaj Rydzewski <[EMAIL PROTECTED]> --

Re: Tomcat 5.5.25 freezes

2008-07-15 Thread Anthony Chamas
We disabled the keep alive connections and our problem is gone... Thanks guys Tony 2008/7/4 Johnny Kewl <[EMAIL PROTECTED]>: > Tony... just another thought... > I want to change the philosophy a little > > If YOU open a stream... ie File f = new File Buffered streams etc... > Then make ab

Re: tomcat, apache with mod_jk and mod_auth_kerb

2008-07-15 Thread Nikhil
While I am at it, I found this interesting information from the jk_logs: [Tue Jul 15 12:57:40 2008] [20026:0001] [debug] jk_uri_worker_map.c (589): Attempting to map URI '/examples/jsp/rheaders.jsp' from 0 maps [Tue Jul 15 12:57:40 2008] [20026:0001] [debug] jk_uri_

Re: tomcat, apache with mod_jk and mod_auth_kerb

2008-07-15 Thread Nikhil
I am still not able to get this straight. Looking at the server.xml tells me there is a userDatabase resource that is looked which I may need to comment? Could you please confirm? I am posting my server.xml (tomcat-6.0.16) for thoroughness so I do not miss any points here : Please let me know if I