Low value for maxHttpHeaderSize causes "server failed to respond" error

2006-11-21 Thread Praveen Balaji
Hi all, I am using Tomcat 5.5.12. When I set the maxHttpHeaderSize to a low value and send a large header, my HTTPClient throws "org.apache.commons.httpclient.NoHttpResponseException: The server localhost failed to respond" exception. Is this the expected behavior? Will Tomcat abort responding i

Re: RSS help

2006-11-21 Thread Santosh Puranshettiwar
Dave wrote: Thanks, It semms that it is easy to write the XML file for a Feed. But how does NewsReader know the page (pointed by feed link) has been changed, what are the changes, updated time? I have not got the idea yet :) The NewsReader /polls/ the feed regularly. As such the

Re: tomcat stop working for some minute regulary

2006-11-21 Thread mast
it seem i still get the problem but the message has changed with the new version : [Wed Nov 22 05:52:08 2006] [85519:] [info] ajp_send_request::jk_ajp_common.c (1170): (ajp13) socket 40 is not connected any more (errno=35) [Wed Nov 22 05:52:08 2006] [85519:] [info] ajp_send_request::jk_

Tomcat hang and port in used problem

2006-11-21 Thread faizul sulaiman
I'm using Tomcat 5.5.15 to deploy a web services using Apache Axis. The problem that I am facing is that sometimes (with unknown reason) the tomcat hang and all services also down. When I try to restart the server, it come out with "port 80 is in used..." message and I have to kill the process

session serialization issue?

2006-11-21 Thread John Wallace
I am working on my first Tomcat based application and while testing the application my boss entered some data into some fields. While he was doing that, I was doing the same thing - entering data into the very same fields in a different session. Unfortunately my values stored in session at

RE: Proxy/Forwarding

2006-11-21 Thread Zach Calvert
I just discovered http://www.ericsson.com/mobilityworld/sub/open/technologies/open_develop ment_tips/docs/odt_proxy_for_tomcat, but it seems that this documentation is outdated. I tried putting the same properties it identifies for catalina.properties in the catalina.policy, jk2.properties, and I

RE: Memory Usage

2006-11-21 Thread Caldarale, Charles R
> From: Daniel L. Gross [mailto:[EMAIL PROTECTED] > Subject: Re: Memory Usage > > What appears to be happening is that every time I > execute my app, when it closes, Tomcat leaves an > inactive thread hanging. I seriously doubt that Tomcat is doing this - much more likely that your app is causi

Re: Using Tomcat as UDP server

2006-11-21 Thread Rainer Jung
I assume you would be better served by MINA (mina.apache.org), which is a more general connector framework. No higher level services though. [EMAIL PROTECTED] wrote: Hi I am not in for particularly using HTTP, i was merely thinking of using a GenericServlet instead. Besides this I have read

Global custom 503 error page

2006-11-21 Thread Veit Guna
Hi. Is it really true, that one can't create at least a global error page for 503 errors in tomcat? I understand, that a webapp that is stopped, can't serve it's own custom 503 error page. Sounds clear. But a general one should be possible?! I'm using tomcat behind apache and if tomcat isn't star

Howto Apache LDAP ACL pass to Tomcat ??

2006-11-21 Thread Jack Yu
Try to pass apache ACL authenticated user credential to Tomcat, but failed. System: FreeBSD 6.1, Apache 2.2.3, SUN jdk 1.4.2, Tomcat 5.5 Apache is setup to authenticate against LDAP server AuthLDAPURL ldap://ldap.jackyu.org/dc=jackyu,dc=org?uid AuthLDAPGroupAttributeIsDN off AuthL

Issue accessing Filters

2006-11-21 Thread James Crosson
I am having a bear of a time with Tomcat Filters, I've got the following in my web.xml: Account Filter com.ZZZ.view.filters.AccountFilter2 Account Filter /* REQUEST AccountFilter2 is in /shared/classes/

Re: Webapps inexplicably losing access to common/shared classloaders

2006-11-21 Thread Timothy Collett
On Nov 20, 2006, at 3:07 PM, Timothy Collett wrote: ...And, just as I suspected it would, it has once again ceased to function in the 5.5.20 container. One webapp can't see the shared classloader (for the MySQL jar), and the other can't see the common classloader (for the servlet-api jar).

Re: Tomcat 5.0.28 and /dev/urandom

2006-11-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, Caldarale, Charles R wrote: >> From: Christopher Schultz [mailto:[EMAIL PROTECTED] >> Subject: Re: Tomcat 5.0.28 and /dev/urandom >> >> Yeah, if you are using Linux, the /dev/urandom device >> sometimes stalls. > > Actually, /dev/urandom is

RE: Proxy/Forwarding

2006-11-21 Thread Zach Calvert
I'm looking at the valve list at http://tomcat.apache.org/tomcat-4.1-doc/config/valve.htmland not seeing any kind of proxy/forward valve. The engine configuration docs at http://tomcat.apache.org/tomcat-4.1-doc/config/engine.html, aren't any help for setting up a proxy server either. Thanks agai

Low value for maxHttpHeaderSize causes "server failed to respond" error

2006-11-21 Thread Praveen Balaji
Hi all, I am using Tomcat 5.5.12. When I set the maxHttpHeaderSize to a low value and send a large header, my HTTPClient throws "org.apache.commons.httpclient.NoHttpResponseException: The server localhost failed to respond" exception. Is this the expected behavior? Will Tomcat abort responding i

How to enable APR in windows to work comet with Tomcat 6.0

2006-11-21 Thread Jayant Kumar
Hi everybody, This jayant from iTG Pvt. Ltd. India. I want to use the new feature comet of Tomcat 6.0. to use that feature I have to use NIO connector or APR. but the lack of documentation I couldn't understand how to use APR, could any body suggest me how to do all settings for using APR in windo

Re: RSS help

2006-11-21 Thread Edgar Alves
Send the Last-Modified HTTP header from your web application and check for a If-Modified-Since request header. If you detect that the client has a fresh version of the feed, respond with a 304 (Not Modified) code. -- Edgar Dave wrote: > Is there a way that NewsReader knows whether a page has be

Re: logging

2006-11-21 Thread Gaurav Kushwaha
Can you mail the contents of your log4j.properties file. On 11/21/06, Kevin R. Gutch <[EMAIL PROTECTED]> wrote: I am trying to correctly configure logging in my application. Currently I have placed logging.properties in the /WEB-INF/classes folder. With this I get a log file specific to the ap

Re: RSS help

2006-11-21 Thread Dave
Is there a way that NewsReader knows whether a page has been updated? How? the page is dynamic collecting data from database. Thanks! Santosh Puranshettiwar <[EMAIL PROTECTED]> wrote: Dave wrote: > Thanks, > > It semms that it is easy to write the XML file for a Feed. But how > does NewsRea

tomcat 5.5 multiple contexts using same realm bug?

2006-11-21 Thread Elliott Murray
Hi, I am trying to set up multiple contexts in Tomcat 5.5 but have a problem in logging in. I have them both up and running. They both use realms for login functionality. I wanted to originally use my own custom data source realm (limitations in the use of the Catalina one) This was working fi

Re: when are the apps loaded?

2006-11-21 Thread Mark Thomas
Stephan Schöffel wrote: > hi, > > can some point out to me where in the sourcecoude the apps are loaded? This would probably be the best place to start: http://svn.apache.org/repos/asf/tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/startup/HostConfig.java Mark ---

Re: Using Tomcat as UDP server

2006-11-21 Thread sappib
Hi I am not in for particularly using HTTP, i was merely thinking of using a GenericServlet instead. Besides this I have read som statements saying that is is possible to extend some ProtocolHandler so serve raw socket connections, but i would prefer not to, since I do not have in-depth knowle

RE: tomcat memory usage.

2006-11-21 Thread Steffen Heil
Hi > Description : > right after system(tomcat) is started, the "top" command show > that tomcat process will use 210M memory, the heap size > (using Jprofiler) is 58m/20m(total/used). there is a 150M gap > between total process memory size and java heap size. There needs to be some memory for

RE: Memory Usage

2006-11-21 Thread Caldarale, Charles R
> From: Daniel L. Gross [mailto:[EMAIL PROTECTED] > Subject: Re: Memory Usage > > I have run the lamda probe on the software, but it > didn't show anything useful. It's not a profiler, and was never intended to be. > Where do I turn on the -verbose:gc? In the tomcat start-up script? It's a s

Re: Using Tomcat as UDP server

2006-11-21 Thread Tim Funk
HTTP is a TCP based service. Running it over UDP will not work. -Tim [EMAIL PROTECTED] wrote: Hi I want to use Tomcat as an UDP server instead of TCP. Can this be done just by configuration? If not, then what do I need to do? I have read and searched a lot on the subject but theres is no cl

tomcat memory usage.

2006-11-21 Thread xu cai
Env: Axis1.4/Tomcat 5.0.30/Java 1.5.0_07/Solaris 10. Description : right after system(tomcat) is started, the "top" command show that tomcat process will use 210M memory, the heap size (using Jprofiler) is 58m/20m(total/used). there is a 150M gap between total process memory size and java heap si

Re: Tomcat is sometimes very slow using mod_jk

2006-11-21 Thread Henk Fictorie
Ok, I did the snooping and analyzing. What happens is at follows: - mod_jk sends request - tomcat responds within a fraction of a second - tomcat ends with sending an 'end-response' message with reuseport set to TRUE - exacat 5 minutes (300 seconds) later mod_jk report a client write error (jk_aj

Re: Custom Authentication

2006-11-21 Thread Ravi116
Marcus, Thanks for your response. Let me elaborate on 1st question - Need to authenticate users either using NTLM or SSL based on whether is user in domain or not. Can we implement our own auth-method in login-config in web.xml ? Part of the requirement is to make shared/single-sign-on across web

Help with custom Realm

2006-11-21 Thread Daniel Santos
Hello, I'm implementing a new realm for a custom single sign-on dealie that my company is using (so I can use container managed security with their new system). Everything is going smoothly, except that I can't figure out how to get an object I declared as a under the context, from outside of th

RE: Memory Usage

2006-11-21 Thread Caldarale, Charles R
> From: Daniel L. Gross [mailto:[EMAIL PROTECTED] > Subject: Memory Usage > > I made a simple servlet that just opens a connection to my > MYSQL database and then closes it and does nothing else. > When I look at the windows task manager, the memory usage > of Tomcat jumps each time I run the

Re: Tomcat Performance Concerns

2006-11-21 Thread David Rees
On 11/21/06, Andre Prasetya <[EMAIL PROTECTED]> wrote: On 11/21/06, Harry <[EMAIL PROTECTED]> wrote: > PostgreSQL is excellent, IMHO - fast, and easy to administrate. Yupe agreed, but for database that is used with frequent insert and delete statement, I have to vacuum them frequently. Which is a

RE: Tomcat 5.0.28 and /dev/urandom

2006-11-21 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:[EMAIL PROTECTED] > Subject: Re: Tomcat 5.0.28 and /dev/urandom > > Yeah, if you are using Linux, the /dev/urandom device > sometimes stalls. Actually, /dev/urandom is defined never to block, but the JRE doesn't use it. If either file:/dev/random or file:/de

Re: tomcat stop working for some minute regulary

2006-11-21 Thread mast
I will test thanks ok for the ajp14 :) - Original Message - From: "Rainer Jung" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Tuesday, November 21, 2006 8:24 PM Subject: Re: tomcat stop working for some minute regulary Thanks for the info. I would suggest: Increase JkLogLevel

Re: Global custom 503 error page

2006-11-21 Thread Len Popp
There's no easy way. The 503 error page is hard-coded in org.apache.catalina.valves.ErrorReportValve. You can replace that class with your own implementation, specified by the attribute errorReportValveClass. (I haven't tried that myself, I just read about it in the Tomcat docs.) -- Len On 11/20

Re: tomcat stop working for some minute regulary

2006-11-21 Thread olivier nouguier
Is there something between apache and tomcat (firewall ?). On 11/21/06, Rainer Jung <[EMAIL PROTECTED]> wrote: Please post your mod_jk config (Webserver part, eg. Jk* directoves in httpd.conf, workers.properties, other relevant config and the connector element of the AJP connector in your timca

disableProxyCaching

2006-11-21 Thread tpyhala
Hi, I've got problem with disabling proxy caching. This used to work with context.xml (with 5.0.x) as follows: However, currently this does not make following headers disappear: Pragma: No-cache Expires: Thu, 01 Jan 1970 00:00:00 GMT Cache-Control: no-cache Cache-Control: no-store I'm

Re: Memory Usage

2006-11-21 Thread Gaurav Kushwaha
I would say you are barking on a wrong tree in suspecting the garbage collector to be the culprit. Garbage collection not running in time(or in proper intervals) can cause the applicatin to slow down or have spikes in the performance but it will not cause the applicaiton to stop. Lets try to list

Re: Basic commands to work with a Tomcat

2006-11-21 Thread Gaurav Kushwaha
Here is a quick start guide for Tomcat. Try it out. http://piglet.uccs.edu/~cs526/jwsdp/docs/tutorial/doc/GettingStarted.html On 11/21/06, Vijay Hatewar <[EMAIL PROTECTED]> wrote: Hi All , I am new to use of Tomcat , could anybody write me few basic commands that can help me , for ex I need

Re: Tomcat is sometimes very slow using mod_jk

2006-11-21 Thread Rainer Jung
Hi Henk, I'll try to find the reason. Would it be easy for you to repeat the test with a very raw client? If the URL is easy you could e.g. telnet to the APACHE port and simply write GET /myurlRETURN RETURN I'm asking for that, because the client write error sounds a little strange to me, and I

Re: Tomcat 5.0.28 and /dev/urandom

2006-11-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tim, Tim Full wrote: > Most implementations work fine with using /dev/urandom as a seed for the > sessionid generator for Tomcat (class ManagerBase), but I have 2 instances > that seem to cause Tomcat to hang on open of /dev/urandom. Yeah, if you are

Re: Memory Usage

2006-11-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dan, Daniel L. Gross wrote: > It appears to be running garbage collection, but it doesn't recover all > the memory, so as we make and break connections to the database, the > memory usage just keeps piling up. We never had this problem with the > old

Basic commands to work with a Tomcat

2006-11-21 Thread Vijay Hatewar
Hi All , I am new to use of Tomcat , could anybody write me few basic commands that can help me , for ex I need to setup my application , Thanks & Regards, Vijay G Hatewar |Member of Technical Staff - TQE| |Ph: +91 .20 .3023.5331| Mobile: +91.9890678168| DISCLAIMER == Th

null values with jsp:getProperty call

2006-11-21 Thread matthias
How I can configure tomcat or my application, that the jsp:getProperty function returns a empty string "" instead of a null value? On our old tomcat 4 installation, the same application returns empty strings, but on a tomcat 5.5 and on a other tomcat 4.1 installation we have got null values. I don'

Re: Memory Usage

2006-11-21 Thread Daniel L. Gross
Is there a way to force Tomcat 5.5 to run a garbage collection? Thanks, Dan Caldarale, Charles R wrote: From: Daniel L. Gross [mailto:[EMAIL PROTECTED] Subject: Re: Memory Usage I have run the lamda probe on the software, but it didn't show anything useful. It's not a profiler, and

when are the apps loaded?

2006-11-21 Thread Stephan Schöffel
hi, can some point out to me where in the sourcecoude the apps are loaded? --stephan - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROT

Re: Memory Usage

2006-11-21 Thread Daniel L. Gross
I appreciate your help with this problem. I downloaded JProfiler and ran it on tomcat 5.5.20. The garbage collection is running fine. Memory keeps going up when I make and break connections to the database. What appears to be happening is that every time I execute my app, when it closes, To

Re: Tomcat Basic Authentication Problem

2006-11-21 Thread olivier nouguier
Hi Liu You should look at http://tomcat.apache.org/tomcat-5.5-doc/realm-howto.html#JAASRealm It quite straight forward, even if Jaas stay too generic for me ;-) On 11/20/06, Liu Frank <[EMAIL PROTECTED]> wrote: Hi All, Now I want to use my own method for the basic authentication, does Tomcat p

Re: Memory Usage

2006-11-21 Thread Daniel L. Gross
It appears to be running garbage collection, but it doesn't recover all the memory, so as we make and break connections to the database, the memory usage just keeps piling up. We never had this problem with the old connector running under Tomcat 4. Thanks, Dan Caldarale, Charles R wrote: F

Re: tomcat memory usage.

2006-11-21 Thread Rainer Jung
Usually the term heap is used for the sum of the new space, one of the two semi spaces (both usually around a couple of MB) and tenured. The size of each of these can be viewed e.g. with jconsole, which comes with your JVM. Additional memory is used for perm (class data), which should generally be

Re: Tomcat Performance Concerns

2006-11-21 Thread Andre Prasetya
Yupe agreed, but for database that is used with frequent insert and delete statement, I have to vacuum them frequently. Which is a boring task to do. I created an agent that will vacuum the database every friday. Then I move it to MySql because I think its more suited to my needs. -Andre- On 11/

Re: tomcat stop working for some minute regulary

2006-11-21 Thread Rainer Jung
Please post your mod_jk config (Webserver part, eg. Jk* directoves in httpd.conf, workers.properties, other relevant config and the connector element of the AJP connector in your timcat's server.xml). Also give us the version numbers of apache, tomcat, mod_jk and your OS. Finally: is there anything

Re: Tomcat is sometimes very slow using mod_jk

2006-11-21 Thread Rainer Jung
Hi Henk, do you have a simple app to reproduce the problem? Rainer Jung schrieb: > Hi Henk, > > I'll try to find the reason. Would it be easy for you to repeat the test > with a very raw client? If the URL is easy you could e.g. telnet to the > APACHE port and simply write > > GET /myurlRETURN >

Re: tomcat stop working for some minute regulary

2006-11-21 Thread Rainer Jung
Thanks for the info. I would suggest: Increase JkLogLevel to info. This will most likely give us some more information about what's happening. Don't use multiple JkLogLevel directives with different values, as you do at the moment. If it is possible for you, also update to mod_jk 1.2.19. Check

Getting javax.naming.Context from StandardServer?

2006-11-21 Thread Daniel Santos
Ok, this is question#2, perhaps more simple. How can I retrieve the javax.naming.Context that the Server object uses from outside of a webapplication? I'm writing a custom realm and I want it to use pluggable components to meet different needs. It would appear that when my Realm's start() is ca

Memory Usage

2006-11-21 Thread Daniel L. Gross
I really could use some help here. Has anyone used tomcat 5.5 with the J-Connector? I made a simple servlet that just opens a connection to my MYSQL database and then closes it and does nothing else. When I look at the windows task manager, the memory usage of Tomcat jumps each time I run th

RE: Tomcat Basic Authentication Problem

2006-11-21 Thread Caldarale, Charles R
> From: Liu Frank [mailto:[EMAIL PROTECTED] > Subject: Tomcat Basic Authentication Problem > > Now I want to use my own method for the basic authentication, > does Tomcat provide the methods to realize it? Read the relevant Tomcat doc: http://tomcat.apache.org/tomcat-5.5-doc/realm-howto.html S

Re: logging

2006-11-21 Thread Kevin R. Gutch
handlers = org.apache.juli.FileHandler, java.util.logging.ConsoleHandler # Handler specific properties. # Describes specific configuration info for Handlers. org.apache.jul

Filters doesn't work properly on version 5.5.20

2006-11-21 Thread Ovidiu Hurducas
Hello everybody, I have a web application that worked fine until I’ve recently upgraded the tomcat from version 5.5.17 to 5.5.20. The filters doesn’t work as before and don’t do the required job anymore. So I have definitions like this in web.xml: downloader filters.TestFilter downloader /

Re: session serialization issue?

2006-11-21 Thread Mark Thomas
John Wallace wrote: > Is this the same issue as described above? What is the best way fix my > problem? Maybe. Could be also be a problem with your application. If you can reproduce this error reliably, please provide the steps to reproduce it and any associated test JSP/servlet in the bug report

Re: Basic commands to work with a Tomcat

2006-11-21 Thread David Smith
I hope you realize this is an exceptionally vague request. I would highly recommend you google for some intro articles on tomcat, read the docs at tomcat.apache.org and read the servlet spec. There aren't really any "commands". There's configuration in server.xml, the web applicaton's contex

Re: tomcat 5.5 multiple contexts using same realm bug?

2006-11-21 Thread olivier nouguier
In the web.xml, is the "realm-name" is different ? BASIC | FORM Auth On 11/21/06, Elliott Murray <[EMAIL PROTECTED]> wrote: Hi, I am trying to set up multiple contexts in Tomcat 5.5 but have a problem in logging in. I have them both up and running. They both use realms for login functionality.

Tomcat "virtual hosting" problem

2006-11-21 Thread ibrahim Sayg
Hello, I have a java web application that will serve to provide end users create their wap spaces. What I want is provide the users of site a wap adress as "www.myproject.com/johndoe", but virtually. When user enters that location from wap, it should forward to "www.myproject.com/MYPROJECT/view

Re: Issue accessing Filters

2006-11-21 Thread Mark Thomas
James Crosson wrote: > > Account Filter > com.ZZZ.view.filters.AccountFilter2 > > AccountFilter2 is in /shared/classes/com/ZZZ/view/filters/AccountFilter2 > directory, and is a succesfully compiled java class. If the class is com.ZZZ.view.filters.AccountFilter2 then the file A

Tomcat 5.5.20 Apache 2.2.3 server.xml

2006-11-21 Thread Lars Nielsen Lind
Hi, as mentioned by chavalitt in a former thread: Re: Urgent! Compile JSP Problem, I have removed appBase="" from my in server.xml. The only reference to the webapplication is now docBase="/opt/apache-tomcat-5.5.20/webapps/application1" in my /> in server.xml, and this seems to work just fin

tomcat stop working for some minute regulary

2006-11-21 Thread master
Hi, since few weeks i have a strange problem, sometimes tomcat stop working and then come back (the site is unreachable and come back few mn after) In the log i have : [Tue Nov 21 15:03:11 2006] [error] ajp_service::jk_ajp_common.c (1758): Error connecting to tomcat. Tomcat is probably not started