Re: security patch
[EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I am a freshman of tomcat, and my company webserver is running Version 3.2.3 and has never applied any security patches. I would like to know which patches are available to apply? and how to apply the patches? Well, there is 3.2.4 at http://archive.apache.org/dist/tomcat/tomcat-3/archive/v3.2.4/, but that is pretty much the end of the line for the 3.2.x branch (which has been EOL for at least 6 years now, with zero support). Upgrading to 3.3.2 is relatively painless, but that branch has also reached EOL as well. I'd suggest biting the bullet, and converting your apps to at least 5.5.x. Thank you so much. Happy Forever : ) Vivien Ng Assistant Information Systems Manager NEC Logistics Hong Kong Limited TEL: (852) 2731 8241 FAX: (852) 2731 8541 EMAIL: [EMAIL PROTECTED] - 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: %t in access log valve?
Dan Keeley wrote: Hi all, Just a quick one; It's not clear from the docs. is %t in the accessLogValve the request datetime or the response datetime? It makes a difference to us! thanks, Dan End of response (logging time). Caution: for Apache httpd 2.x it's start of request. Thats great, thanks. Dan - 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: How to suppress error page for a response with only the status code set
On Tue, 2008-03-18 at 16:42 -0700, Hassan Schroeder wrote: On Tue, Mar 18, 2008 at 4:28 PM, Martin Grotzke [EMAIL PROTECTED] wrote: Only for the REST api (mapped to a specific path/url-pattern) we do not want to return these error pages but only codes. So write dynamic error pages that return the appropriate content (or lack thereof) based on the request path, eh? If there's no cleaner way we would have to do s.th. like this. Cheers, Martin signature.asc Description: This is a digitally signed message part
Re: How to suppress error page for a response with only the status code set
Hi, just to check if this would be an option: is it possible to tell tomcat not to render its error pages? Of course one configure an empty file as error page, but this would have to be done for *all* error codes AFAICS. Thanx cheers, Martin On Tue, 2008-03-18 at 17:15 -0400, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin, Martin Grotzke wrote: | Is there a way not to return error pages in these cases? You could set an error-page in web.xml that produces no output for these status codes. Something like: error-page ~ error-code400/error-code ~ location/path/to/zero/length/file/location /error-page - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.8 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkfgMPIACgkQ9CaO5/Lv0PDuFQCgkZkgW2+MU2X+LW96TmBtIZx0 KX0An1EyQ7MEpQ+vSzngOlgRgWf8knrq =lkAr -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] signature.asc Description: This is a digitally signed message part
Restarting Tomcat
Hi, I am running several instances of Tomcat 5.5 under Apache on a Linux machine (Debian). On an application on one of the Tomcat instances I have a memory leak, which I have not been able to fix. To overcome the problem, in the short, I want to daily stop/start (restart) Tomcat using a cron job. However, my restart scrip does not work. Can someone, please, send me a working restart script. Thanks Peter Sparkes - 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 6 - Cluster error.
Hi again, After some weeks, Mr. Hanik help us solving the problem. And he found it! The problem was the sticky sessions, and our balancer: pen. Pen, (http://siag.nu/pen/) it's a simple load balancer, and it doesn't care about sessions between nodes. That provokes dead locks at tomcat. The problem had been solved at a tomcat revision: http://svn.apache.org/viewvc?view=revrevision=618823 Right now, our 2 nodes are up and running without errors since 1th of march (2008). Clean logs. Once again, Thanks Filip, and thank you all for this great dev-list. Best Regards Raúl. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat5 cannot call manager
Hi List, i try to install tomcat5 under suse 10.1 After installing and configuring i have the problem that i cannot request the /manager , apache 2.2.8 sends error 404. I dont know what to do now. Here are my steps i used for installing: tomcat-connectors-1.2.26-src is configured with: ./configure --with-apxs=/usr/sbin/apxs -enable-jni make was successful and mod_jk is bind into apache with conf: LoadModulejk_module /usr/lib/apache/mod_jk.so JkWorkersFile /usr/share/tomcat5/conf/workers.properties JkLogFile /srv/www/tomcat5/base/logs/mod_jk.log JkLogLevel warn JKMount /*.jsp ajp13 JKMount /*.srv ajp13 JKMount /admin/* ajp13 JKMount /manager/* ajp13 File /usr/share/tomcat5/conf/workers.properties was copied from other running tomcat4 on other machine: workers.tomcat_home=/usr/share/tomcat5/ workers.java_home=/usr/lib/jvm/java ps=\ worker.list=ajp13, ajp14 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 worker.ajp13.lbfactor=1 worker.ajp14.port=8010 worker.ajp14.host=localhost worker.ajp14.type=ajp14 worker.ajp14.secretkey=secret #worker.ajp14.credentials=myveryrandomentropy worker.ajp14.lbfactor=1 worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=ajp13 worker.inprocess.type=jni worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar worker.inprocess.cmd_line=start worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)classic$(ps)jvm.dll worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr Apache is up and running, no errors. tomcat5 comes with suse-packages tomcat5-5.0.30-27 tomcat5-webapps-5.0.30-27 tomcat5-admin-webapps-5.0.30-27 I cannot call this server over localhost, so i created folder /usr/share/tomcat5/conf/Catalina/mydomainname where standard admin.xml balancer.xml manager.xml are located. now i call http://mydpomainnem/manager/html/ but get 404 error from browser, apache errorlog also says: File does not exist: /www/htdocs/loginname/manager/html mod_jk.log says: [Wed Mar 19 10:46:52.216 2008] [10141:3082197184] [warn] map_uri_to_worker::jk_uri_worker_map.c (608): Uri * is invalid. Uri must start with / But this is possible caused by other domains which are installed on this machine? catalina.out on startup is: 2008-03-19 10:57:09,049 [main] INFO org.apache.coyote.http11.Http11Protocol - Pausing Coyote HTTP/1.1 on http-8080 2008-03-19 10:57:10,049 [main] INFO org.apache.catalina.core.StandardService - Stopping service Catalina 2008-03-19 10:57:10,050 [main] INFO org.apache.catalina.core.StandardHostDeployer - Removing web application at context path /admin 2008-03-19 10:57:10,065 [main] INFO org.apache.catalina.logger.LoggerBase - unregistering logger Catalina:type=Logger,path=/admin,host=localhost 2008-03-19 10:57:10,098 [main] INFO org.apache.catalina.core.StandardHostDeployer - Removing web application at context path /webdav 2008-03-19 10:57:10,100 [main] INFO org.apache.catalina.core.StandardHostDeployer - Removing web application at context path /servlets-examples 2008-03-19 10:57:10,110 [main] INFO org.apache.catalina.core.StandardHostDeployer - Removing web application at context path /jsp-examples 2008-03-19 10:57:10,121 [main] INFO org.apache.catalina.core.StandardHostDeployer - Removing web application at context path /balancer 2008-03-19 10:57:10,123 [main] INFO org.apache.catalina.core.StandardHostDeployer - Removing web application at context path /tomcat-docs 2008-03-19 10:57:10,125 [main] INFO org.apache.catalina.core.StandardHostDeployer - Removing web application at context path 2008-03-19 10:57:10,127 [main] INFO org.apache.catalina.core.StandardHostDeployer - Removing web application at context path /manager 2008-03-19 10:57:10,144 [main] INFO org.apache.catalina.logger.LoggerBase - unregistering logger Catalina:type=Logger,host=localhost 2008-03-19 10:57:10,144 [main] INFO org.apache.catalina.logger.LoggerBase - unregistering logger Catalina:type=Logger 2008-03-19 10:57:10,145 [main] INFO org.apache.coyote.http11.Http11Protocol - Stopping Coyote HTTP/1.1 on http-8080 2008-03-19 10:57:10,145 [main] ERROR org.apache.coyote.tomcat5.CoyoteConnector - Coyote connector has not been started Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location 2008-03-19 10:57:22,299 [main] INFO org.apache.coyote.http11.Http11Protocol - Initializing Coyote HTTP/1.1 on http-8080 2008-03-19 10:57:22,324 [main] INFO org.apache.catalina.startup.Catalina - Initialization processed in 1097 ms 2008-03-19 10:57:22,482 [main] INFO org.apache.catalina.core.StandardService - Starting service Catalina 2008-03-19 10:57:22,489 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet Engine: Apache Tomcat/5.0 2008-03-19 10:57:22,500 [main] INFO org.apache.catalina.core.StandardHost - XML validation disabled 2008-03-19
Re: Tomcat - JMX to get connections per minutes?
Caldarale, Charles R wrote: From: paul womack [mailto:[EMAIL PROTECTED] Subject: Tomcat - JMX to get connections per minutes? How do I get figures on (what I consider) simple stuff like connections per minute/hour/whatever, Kilobytes per second, etc? Probably the easiest thing to do is look at code that already does it. Lambda Probe (http://lambdaprobe.org) is a good open-source utility for that, as is MoSKito (http://moskito.anotheria.net/). Tomcat's own manager app also displays some statistics, and the source is in the src download. I was hoping that there already existed some (web?) or Swing tool that would graph/chart obvious performance/load parameters, analagous to sun PerfMeter, or KDE System Guard. I certainly wasn't intending to write a java app myself (unless forced) BugBear - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Error Page Question
Hi all, How do I display a friendly error page (503 site under maintenance) if my application is taken off-line? I understand how to override error pages with my application running, but can I, and where do I configure a 503 when its down, but Tomcat is still running. Thanks Peter - 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: Error Page Question
The easiest way i found out here was to use the 404 of the ROOT web application ^^ to display a 'site under maintenance'. You could also create a ROOT/webappname/index.html to get same result En l'instant précis du 19/03/08 11:55, Peter Stavrinides s'exprimait en ces termes: Hi all, How do I display a friendly error page (503 site under maintenance) if my application is taken off-line? I understand how to override error pages with my application running, but can I, and where do I configure a 503 when its down, but Tomcat is still running. Thanks Peter - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- http://www.devlog.be (a belgian developer's logs) - 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: Error Page Question
Oh thanks! that sounds quite simple... so I just add my error page descriptor in the ROOT applications web.xml and it will override. David Delbecq wrote: The easiest way i found out here was to use the 404 of the ROOT web application ^^ to display a 'site under maintenance'. You could also create a ROOT/webappname/index.html to get same result En l'instant précis du 19/03/08 11:55, Peter Stavrinides s'exprimait en ces termes: Hi all, How do I display a friendly error page (503 site under maintenance) if my application is taken off-line? I understand how to override error pages with my application running, but can I, and where do I configure a 503 when its down, but Tomcat is still running. Thanks Peter - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat5 cannot call manager - addition
Hi List, Tomcat is now working. The Only Difference is that i startet with /usr/share/tomcat5/bin/startup.sh Former startups used orig. Suse Startscript /etc/init.d/tomcat5 hmm... Andre - 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: RemoteAddrValve Blocking all addresses
Found the problem. The docBase path was wrong. The server node in the file tree was a hangover from Tomcat 5. Mark Leone wrote: Is RemoteAddrValve broken in 6.0.16? I have the following in manager.xml, located at %catalina_home%\Conf\Catalina\Localhost. Context docBase=${catalina.home}/server/webapps/manager privileged=true antiResourceLocking=false antiJARLocking=false !--Uncomment this Valve to limit access to the Admin app to localhost for obvious security reasons. Allow may be a comma-separated list of hosts (or even regular expressions). -- Valve className=org.apache.catalina.valves.RemoteAddrValve allow=127\.0\.0\.\d/ /Context I also tried allow=^127\.0\.0\.\d, but I saw a bug fix for 6.0.12 that said it would work the way I have it in the first example. When I have this valve present, I can;t connect to the manager from localhost. When I remove it, I can connect. I had valves just like this working on Tomcat 5.5.17, but it seems broken on 6.0. -Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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 - JMX to get connections per minutes?
From: paul womack [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat - JMX to get connections per minutes? I was hoping that there already existed some (web?) or Swing tool that would graph/chart obvious performance/load parameters, analagous to sun PerfMeter, or KDE System Guard. Both Lambda Probe and MoSKito will do that for you; download and try them. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - 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 tool similar to top
Caldarale, Charles R wrote: From: Enrique Arizón [mailto:[EMAIL PROTECTED] Subject: Tomcat tool similar to top Time to time one of those apps gets out of control, but standard OS tools like top just show the java process running up to 200% of CPU usage. I'd be suspicious of that tool :-) This happens on servers with multiple processors. top combines all of the threads of a given process into a single entry in the list. Mark - 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: basic authentication with tomcat 4.1.36
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ram, [EMAIL PROTECTED] wrote: | with authentication turned | on, i receive a HTTP 401 error from the server when i try to undeploy. This is how it's supposed to work. | I am using standard code to access the tomcat manager, and am using basic | authentication with Base64 encoder(in catalina.jar) and wondering why I | am unable to obtain the authentication! Please post your code. | In case anyone knows a better method to access the Tomcat Manager | remotely, that would be great also. You could use the tasks built-into 'ant'... that way, you could use someone else's (more perfected) code to do the same thing. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.8 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkfhHd0ACgkQ9CaO5/Lv0PC+5ACeN+QYuqlLy+i09aYfgNTR29Cc 5icAoLwlbRiosvGLWcDgBjw7syDF/bDs =O7v8 -END PGP SIGNATURE- - 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: Error Page Question
Unfortunately this solution doesn't solve it, I can only override 404 pages?, for 503 pages it simply ignores the override in web.xml, anybody got any other suggestions? Peter Stavrinides wrote: Oh thanks! that sounds quite simple... so I just add my error page descriptor in the ROOT applications web.xml and it will override. David Delbecq wrote: The easiest way i found out here was to use the 404 of the ROOT web application ^^ to display a 'site under maintenance'. You could also create a ROOT/webappname/index.html to get same result En l'instant précis du 19/03/08 11:55, Peter Stavrinides s'exprimait en ces termes: Hi all, How do I display a friendly error page (503 site under maintenance) if my application is taken off-line? I understand how to override error pages with my application running, but can I, and where do I configure a 503 when its down, but Tomcat is still running. Thanks Peter - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: how: this configuration for linux
Hello Hassan thanks for the reply i start the tomcat with this command ./catalina.sh run or directly with eclipse with tomcatplugin min/max JVM memory values are set in your startup script how? i see the script and not line to change this configuration suggested by you regards Hassan Schroeder-2 wrote: On Tue, Mar 18, 2008 at 3:46 PM, dr_pompeii [EMAIL PROTECTED] wrote: http://computerlabsolutions.com/support/knowledgebase.php#performance t the second step works fine for windows, the question is how i can do this for linux?? min/max JVM memory values are set in your startup script -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/how%3A-this-configuration-for-linux-tp16132404p16144612.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
forwarding a post
Hi, Can anyone suggest how I can forward a post using servlets? I have a page with 3 forms on it. The forms are paypal, google checkout, and one other payment methods. eg: form method=POST action= https://sandbox.google.com/checkout/api/checkout/v2/checkout/Merchant/***; name=gc input type=hidden name=cartvalue=$googleCart input type=hidden name=signature value=$googleSignature input type=image name=Google Checkout alt=Fast checkout through Google src= http://sandbox.google.com/checkout/buttons/checkout.gif?merchant_id=*** w=180h=46style=whitevariant=textloc=en_GB height=46 width=180 /form etc I want to be able to track which of the buttons users click, so I am using a form like this: form method=POST input type=image name=Google Checkout alt=Fast checkout through Google src= http://sandbox.google.com/checkout/buttons/checkout.gif?merchant_id=*** w=180h=46style=whitevariant=textloc=en_GB height=46 width=180 input type=image src= https://www.sandbox.paypal.com/en_US/i/btn/btn_buynowCC_LG.gif; border=0 name=Paypal alt=PayPal - The safer, easier way to pay online. etc /form Then, depending on which button the user clicks, I want to forward the user on to google/paypal using POST, adding the parameters such as cart, signature. Been playing around with a HttpsURLConnection : URL url = new URL( https://sandbox.google.com/checkout/api/checkout/v2/checkout/Merchant/***;); HttpsURLConnection conn = (HttpsURLConnection) url.openConnection(); conn.setDoOutput(true); conn.setRequestMethod(POST); OutputStreamWriter wr = new OutputStreamWriter(conn .getOutputStream()); wr.write(name=\cart\); wr.write(value=\+encodedCart+\); wr.write(name=\signature\); wr.write(value=\+signedCart+\); wr.flush(); conn.disconnect(); I'm not sure if that sends he info to google, but it certainly doesn't move the user onto google's site. Can anyone help? TIA, John
Re: how: this configuration for linux
On Wed, Mar 19, 2008 at 8:14 AM, dr_pompeii [EMAIL PROTECTED] wrote: i start the tomcat with this command ./catalina.sh run Set min/max values using JAVA_OPTS, e.g. export JAVA_OPTS= -Xms512M -Xmx512M This can be in your dev environment, or in a production startup script, usually something like /etc/init.d/tomcat (to make sure it's started at boot time). HTH, -- Hassan Schroeder [EMAIL PROTECTED] - 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: forwarding a post
From: John Pedersen [mailto:[EMAIL PROTECTED] Can anyone suggest how I can forward a post using servlets? [Shopping cart use case elided] You have to issue a page back to the client browser, and get the browser to auto-submit it to the payment provider. My approach with carts is to issue that page as a form with a whole bunch of hidden form fields, and a body onload event that triggers the form's submit. The browser then submits to the payment provider, neatly redirecting the user to the provider's site. - Peter - 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: Error Page Question
Peter Stavrinides wrote: Unfortunately this solution doesn't solve it, I can only override 404 pages?, for 503 pages it simply ignores the override in web.xml, anybody got any other suggestions? I thought used to be possible to customise the built in error pages with XSL, but I can't seem to find any evidence of that in 6.x. You *might* be able to write a Valve (configured in server.xml, under the Host) that acts early enough in the request / response cycle to return a different page, but I am in fact speculating wildly. The org.apache.catalina.valves.ErrorReportValve uses a StringBuilder to create HTML and sends it to a Writer, which might make things difficult. Valves aren't too tricky to write so it would be easy/quick to experiment and see if it works. p Peter Stavrinides wrote: Oh thanks! that sounds quite simple... so I just add my error page descriptor in the ROOT applications web.xml and it will override. David Delbecq wrote: The easiest way i found out here was to use the 404 of the ROOT web application ^^ to display a 'site under maintenance'. You could also create a ROOT/webappname/index.html to get same result En l'instant précis du 19/03/08 11:55, Peter Stavrinides s'exprimait en ces termes: Hi all, How do I display a friendly error page (503 site under maintenance) if my application is taken off-line? I understand how to override error pages with my application running, but can I, and where do I configure a 503 when its down, but Tomcat is still running. Thanks Peter - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: Error Page Question
You can't override the 503 error page using an error-page declaration. :-( The only way I know of to change it is to replace org.apache.catalina.valves.ErrorReportValve with your own version, which you specify in the errorReportValveClass attribute of the Host element in server.xml. I haven't tried this, but it's documented for Tomcat 5.5 and 6.0. -- Len On Wed, Mar 19, 2008 at 10:36 AM, Peter Stavrinides [EMAIL PROTECTED] wrote: Unfortunately this solution doesn't solve it, I can only override 404 pages?, for 503 pages it simply ignores the override in web.xml, anybody got any other suggestions? Peter Stavrinides wrote: Oh thanks! that sounds quite simple... so I just add my error page descriptor in the ROOT applications web.xml and it will override. David Delbecq wrote: The easiest way i found out here was to use the 404 of the ROOT web application ^^ to display a 'site under maintenance'. You could also create a ROOT/webappname/index.html to get same result En l'instant précis du 19/03/08 11:55, Peter Stavrinides s'exprimait en ces termes: Hi all, How do I display a friendly error page (503 site under maintenance) if my application is taken off-line? I understand how to override error pages with my application running, but can I, and where do I configure a 503 when its down, but Tomcat is still running. Thanks Peter - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: basic authentication with tomcat 4.1.36
Hi Chris, I figured out why the code I wrote did not work(had to look into the Authentication class inside Tomcat source code to figure it out!). The reason was when I was setting Request Property for Authentication, I was missing a space setRequestProperty(Authorization,Basic+Base64.encode(input.getBytes())) must have been instead setRequestProperty(Authorization,Basic +Base64.encode(input.getBytes()); After you mentioned the Ant task for Tomcat Manager, I took a look at their source code, and noticed this difference... Thanks for your help, Ram -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ram, [EMAIL PROTECTED] wrote: | with authentication turned | on, i receive a HTTP 401 error from the server when i try to undeploy. This is how it's supposed to work. | I am using standard code to access the tomcat manager, and am using basic | authentication with Base64 encoder(in catalina.jar) and wondering why I | am unable to obtain the authentication! Please post your code. | In case anyone knows a better method to access the Tomcat Manager | remotely, that would be great also. You could use the tasks built-into 'ant'... that way, you could use someone else's (more perfected) code to do the same thing. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.8 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkfhHd0ACgkQ9CaO5/Lv0PC+5ACeN+QYuqlLy+i09aYfgNTR29Cc 5icAoLwlbRiosvGLWcDgBjw7syDF/bDs =O7v8 -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: Running out of memory too easily in Tomcat 6.0.16
From: Scott Mueller [mailto:[EMAIL PROTECTED] Subject: Running out of memory too easily in Tomcat 6.0.16 I have a very small and simple Spring + Hibernate application Once you throw Spring and Hibernate into the mix, nothing is simple. javax.servlet.ServletException: java.lang.OutOfMemoryError: PermGen space Somewhere, you're hanging onto references to objects or classes from the prior deployments. ThreadLocal usage is a typical way of doing this, as are inappropriate references stored in a Session, but there's no limit to programmer's inventiveness in creating memory leaks. Read the FAQ: http://wiki.apache.org/tomcat/FAQ/Memory Especially this link from there: http://opensource.atlassian.com/confluence/spring/pages/viewpage.action? pageId=2669 - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - 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 stops after client abort
I'm not sure anyone here can. Tomcat is good at recovering from a client abort -- they happen a lot for all sorts of reasons. Sounds like the ARS Mid-Tier (what ever that is) is at fault and doesn't deal with rejection very well. Have you contacted the company regarding this? ratul banerjee wrote: Can some one help me on this its very urgent...? On 3/18/08, ratul banerjee [EMAIL PROTECTED] wrote: Is the download static content, or is it generated? If it's generated, what's the code that generates it? The download content is generated. It is generated through the ARS Mid-Tier. Also... could you give us some more details on OS, Tomcat version, whether it's standalone or fronted by Apache httpd or IIS? The OS is Windows 2003 Server. Tomcat version is 5.5.23...Standalone - Show quoted text - - Peter - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] On 3/18/08, Peter Crowther [EMAIL PROTECTED] wrote: From: ratul banerjee [mailto:[EMAIL PROTECTED] Could not find anything close to that OK. To add something more,this is happening in case of client browser that is requesting a big download and midway during the search the client browser is closed. Is the download static content, or is it generated? If it's generated, what's the code that generates it? Also... could you give us some more details on OS, Tomcat version, whether it's standalone or fronted by Apache httpd or IIS? - Peter - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: Running out of memory too easily in Tomcat 6.0.16
Thank you for the response Chuck. Like I said, this is a very simple webapp (aside from the Spring/Hibernate libraries). Stores nothing ever in any sessions and I can't imagine memory leaks with the simple code. Thank you for those links, I guess I should run a profiler to see exactly what's going on. In the meantime, what's the proper way to increase the memory allocated to tomcat? And should I allocate more than my physical ram? Is there a general formula for how much ram to allocate to tomcat on a machine dedicated to only that function? On Wed, Mar 19, 2008 at 11:03 AM, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Scott Mueller [mailto:[EMAIL PROTECTED] Subject: Running out of memory too easily in Tomcat 6.0.16 I have a very small and simple Spring + Hibernate application Once you throw Spring and Hibernate into the mix, nothing is simple. javax.servlet.ServletException: java.lang.OutOfMemoryError: PermGen space Somewhere, you're hanging onto references to objects or classes from the prior deployments. ThreadLocal usage is a typical way of doing this, as are inappropriate references stored in a Session, but there's no limit to programmer's inventiveness in creating memory leaks. Read the FAQ: http://wiki.apache.org/tomcat/FAQ/Memory Especially this link from there: http://opensource.atlassian.com/confluence/spring/pages/viewpage.action? pageId=2669http://opensource.atlassian.com/confluence/spring/pages/viewpage.action?pageId=2669 - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - 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: Running out of memory too easily in Tomcat 6.0.16
PermGen Space is where classes live. One of the links on the FAQ should get you on track: http://opensource.atlassian.com/confluence/spring/pages/ viewpage.action?pageId=2669 You are likely doing something seemingly innocent, but there is actually a problem. I got similar errors to yours when I had too many simultaneous instances of the same webapp (Apache Roller 4). I ended up with 16000 classes loaded. I now have a goofy config due to hacking that issue and my logging doesn't work as I want. But my few nagging memory problems are solved, ok. I haven't had the luxury of truly figuring out the issues. I hope that you do. Regards, Dave On Mar 19, 2008, at 1:32 PM, Scott Mueller wrote: Thank you for the response Chuck. Like I said, this is a very simple webapp (aside from the Spring/Hibernate libraries). Stores nothing ever in any sessions and I can't imagine memory leaks with the simple code. Thank you for those links, I guess I should run a profiler to see exactly what's going on. In the meantime, what's the proper way to increase the memory allocated to tomcat? And should I allocate more than my physical ram? Is there a general formula for how much ram to allocate to tomcat on a machine dedicated to only that function? On Wed, Mar 19, 2008 at 11:03 AM, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Scott Mueller [mailto:[EMAIL PROTECTED] Subject: Running out of memory too easily in Tomcat 6.0.16 I have a very small and simple Spring + Hibernate application Once you throw Spring and Hibernate into the mix, nothing is simple. javax.servlet.ServletException: java.lang.OutOfMemoryError: PermGen space Somewhere, you're hanging onto references to objects or classes from the prior deployments. ThreadLocal usage is a typical way of doing this, as are inappropriate references stored in a Session, but there's no limit to programmer's inventiveness in creating memory leaks. Read the FAQ: http://wiki.apache.org/tomcat/FAQ/Memory Especially this link from there: http://opensource.atlassian.com/confluence/spring/pages/ viewpage.action? pageId=2669http://opensource.atlassian.com/confluence/spring/ pages/viewpage.action?pageId=2669 - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e- mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: Running out of memory too easily in Tomcat 6.0.16
From: Scott Mueller [mailto:[EMAIL PROTECTED] Subject: Re: Running out of memory too easily in Tomcat 6.0.16 Stores nothing ever in any sessions and I can't imagine memory leaks with the simple code. You can't ignore the Spring and Hibernate libraries, which could easily be the cause of the problem. In the meantime, what's the proper way to increase the memory allocated to tomcat? Use -XX:MaxPermSize=xx to increase the space reserved for classes. This is only a stopgap, since your memory leak still exists. References for heap and GC management are here: http://java.sun.com/javase/technologies/hotspot/gc/index.jsp Most of that is related to the main Java heap rather than PermGen, so is probably not pertinent to your situation. Use JConsole to find out what's actually going on inside the JVM memory spaces. And should I allocate more than my physical ram? Definitely not - that will cause page thrashing and kill your performance. Is there a general formula for how much ram to allocate to tomcat on a machine dedicated to only that function? No, because Tomcat itself uses very little of the heap; it's pretty much all dependent on the webapp(s) you're running. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - 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: Running out of memory too easily in Tomcat 6.0.16
Thanks again guys for these responses, this is helping me understand what's going on. Charles, where's the proper place to put the heap/permgen allocation settings in tomcat's scripts? I very briefly ran through the various scripts tomcat uses to startup, but I didn't see an obvious place to enter the memory sizes. On Wed, Mar 19, 2008 at 11:48 AM, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Scott Mueller [mailto:[EMAIL PROTECTED] Subject: Re: Running out of memory too easily in Tomcat 6.0.16 Stores nothing ever in any sessions and I can't imagine memory leaks with the simple code. You can't ignore the Spring and Hibernate libraries, which could easily be the cause of the problem. In the meantime, what's the proper way to increase the memory allocated to tomcat? Use -XX:MaxPermSize=xx to increase the space reserved for classes. This is only a stopgap, since your memory leak still exists. References for heap and GC management are here: http://java.sun.com/javase/technologies/hotspot/gc/index.jsp Most of that is related to the main Java heap rather than PermGen, so is probably not pertinent to your situation. Use JConsole to find out what's actually going on inside the JVM memory spaces. And should I allocate more than my physical ram? Definitely not - that will cause page thrashing and kill your performance. Is there a general formula for how much ram to allocate to tomcat on a machine dedicated to only that function? No, because Tomcat itself uses very little of the heap; it's pretty much all dependent on the webapp(s) you're running. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - 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: Running out of memory too easily in Tomcat 6.0.16
One thing that can help is to increase the PermGen space memory allocation in the JVM startup. To do this, add the following flag to the Tomcat JAVA_OPTS: -XX:MaxPermSize=256m (or another suitable value for you.) Note however, that this is a workaround and does not solve the core issue of a leak in the PermGen space. But we use it to enable more webapp deployments before a server restart is needed, so it might be part of a solution for you. Chris -Original Message- From: Scott Mueller [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2008 11:32 AM To: Tomcat Users List Subject: Re: Running out of memory too easily in Tomcat 6.0.16 Thank you for the response Chuck. Like I said, this is a very simple webapp (aside from the Spring/Hibernate libraries). Stores nothing ever in any sessions and I can't imagine memory leaks with the simple code. Thank you for those links, I guess I should run a profiler to see exactly what's going on. In the meantime, what's the proper way to increase the memory allocated to tomcat? And should I allocate more than my physical ram? Is there a general formula for how much ram to allocate to tomcat on a machine dedicated to only that function? On Wed, Mar 19, 2008 at 11:03 AM, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Scott Mueller [mailto:[EMAIL PROTECTED] Subject: Running out of memory too easily in Tomcat 6.0.16 I have a very small and simple Spring + Hibernate application Once you throw Spring and Hibernate into the mix, nothing is simple. javax.servlet.ServletException: java.lang.OutOfMemoryError: PermGen space Somewhere, you're hanging onto references to objects or classes from the prior deployments. ThreadLocal usage is a typical way of doing this, as are inappropriate references stored in a Session, but there's no limit to programmer's inventiveness in creating memory leaks. Read the FAQ: http://wiki.apache.org/tomcat/FAQ/Memory Especially this link from there: http://opensource.atlassian.com/confluence/spring/pages/viewpage.action? pageId=2669http://opensource.atlassian.com/confluence/spring/pages/view page.action?pageId=2669 - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: Running out of memory too easily in Tomcat 6.0.16
Thanks Chris! So JAVA_OPTS is where these kinds of parameters go. On Wed, Mar 19, 2008 at 12:00 PM, Chris Hut [EMAIL PROTECTED] wrote: One thing that can help is to increase the PermGen space memory allocation in the JVM startup. To do this, add the following flag to the Tomcat JAVA_OPTS: -XX:MaxPermSize=256m (or another suitable value for you.) Note however, that this is a workaround and does not solve the core issue of a leak in the PermGen space. But we use it to enable more webapp deployments before a server restart is needed, so it might be part of a solution for you. Chris -Original Message- From: Scott Mueller [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2008 11:32 AM To: Tomcat Users List Subject: Re: Running out of memory too easily in Tomcat 6.0.16 Thank you for the response Chuck. Like I said, this is a very simple webapp (aside from the Spring/Hibernate libraries). Stores nothing ever in any sessions and I can't imagine memory leaks with the simple code. Thank you for those links, I guess I should run a profiler to see exactly what's going on. In the meantime, what's the proper way to increase the memory allocated to tomcat? And should I allocate more than my physical ram? Is there a general formula for how much ram to allocate to tomcat on a machine dedicated to only that function? On Wed, Mar 19, 2008 at 11:03 AM, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Scott Mueller [mailto:[EMAIL PROTECTED] Subject: Running out of memory too easily in Tomcat 6.0.16 I have a very small and simple Spring + Hibernate application Once you throw Spring and Hibernate into the mix, nothing is simple. javax.servlet.ServletException: java.lang.OutOfMemoryError: PermGen space Somewhere, you're hanging onto references to objects or classes from the prior deployments. ThreadLocal usage is a typical way of doing this, as are inappropriate references stored in a Session, but there's no limit to programmer's inventiveness in creating memory leaks. Read the FAQ: http://wiki.apache.org/tomcat/FAQ/Memory Especially this link from there: http://opensource.atlassian.com/confluence/spring/pages/viewpage.action? pageId=2669http://opensource.atlassian.com/confluence/spring/pages/view page.action?pageId=2669 - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: Running out of memory too easily in Tomcat 6.0.16
From: Scott Mueller [mailto:[EMAIL PROTECTED] Subject: Re: Running out of memory too easily in Tomcat 6.0.16 Charles, where's the proper place to put the heap/permgen allocation settings in tomcat's scripts? You don't modify the scripts themselves. Set whatever options you need in the JAVA_OPTS environment variable prior to running the scripts. For example: JAVA_OPTS=-XX:MaxPermSize=256m -Dcom.sun.management.jmxremote (The latter lets you run JConsole against the Tomcat instance.) - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 6 Deploy to subdirectory
Hello, I am having problems trying to deploy a web app to Tomcat 6. I initially developed the app with the name LessonDownloader using Eclipse. I can export the app as a war file (LessonDownloader.war) and deploy it using the Tomcat Manager App. This works fine, and going to www.mysite.com/LessonDownloader will run the app. Now I want to deploy the app so that I can run it by going to www.mysite.com/lessons/download. I changed the path in my META-INF/context.xml file to be /lessons/download, but that didn't seem to affect how it was deployed. If I change the name of the war file to be something like download, I can run it by going to www.mysite.com/download, but I can't figure out how to get the lessons directory in there. I also tried to deploy it by manually extracting the war file contents to $CATALINA_HOME/webapps/lessons/download. I restarted Tomcat, and tried to go to www.mysite.com/lessons/download, but I got back the Tomcat 404 error page. Is there something else I need to setup? Thanks for any help! Kelly -- View this message in context: http://www.nabble.com/Tomcat-6-Deploy-to-subdirectory-tp16149844p16149844.html Sent from the Tomcat - User mailing list archive at Nabble.com. - 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 6 Deploy to subdirectory
From: Kelly.Graus [mailto:[EMAIL PROTECTED] Subject: Tomcat 6 Deploy to subdirectory Now I want to deploy the app so that I can run it by going to www.mysite.com/lessons/download. I changed the path in my META-INF/context.xml file to be /lessons/download The path attribute is not allowed in a Context element in META-INF/context.xml, so take it out. To do this directly, you must put the Context element in conf/Catalina/[host]/lessons#download.xml (yes, the # is required), rather than in your webapp's META-INF directory. You will also need to keep the app outside of the Host appBase directory, and add a docBase attribute pointing to the location of the .war file. See the doc for details: http://tomcat.apache.org/tomcat-6.0-doc/config/context.html You could also write a simple filter or a dummy webapp to forward requests for lessons/download to the real URI of the application. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - 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: IE and Mozilla issue with Cookies with setVersion(1)
I misspoke - this is happening on Tomcat 6.0.16 only . 6.0.10 is working fine on all browsers. Any pointers highly appreciated. thanks, -rajeev On Mar 18, 2008, at 8:20 PM, Rajeev Angal wrote: 6.0.10 and 6.0.16. On Mar 18, 2008, at 7:35 PM, Filip Hanik - Dev Lists wrote: tomcat version? Rajeev Angal wrote: setVersion(1) only : cookie.setPath(/ ) doesnt return the cookie on IE and Mozilla. Works fine on Firefox. Code enclosed. TEST is retuned correctly back to the server... but TEST1 is not on IE and Mozilla...Firefox returns both. Any clue? % String val1 = [EMAIL PROTECTED]; String val = Foo=bar; Cookie ck = new Cookie(TEST, val); Cookie ck1 = new Cookie(TEST1, val1); ck.setDomain(.idp.com); ck.setPath(/); ck.setVersion(1); ck1.setVersion(1); response.addCookie(ck); response.addCookie(ck1); % thanks, -rajeev - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: IE and Mozilla issue with Cookies with setVersion(1)
Rajeev Angal wrote: I misspoke - this is happening on Tomcat 6.0.16 only . 6.0.10 is working fine on all browsers. Any pointers highly appreciated. It is a known issue in 6.0.16. A patch is currently under consideration. Mark - 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: Running out of memory too easily in Tomcat 6.0.16
Hi Scott-- tough to say without understanding how you structured your app pls send all configuration files Thanks Martin - Original Message - From: Scott Mueller [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Wednesday, March 19, 2008 12:53 PM Subject: Running out of memory too easily in Tomcat 6.0.16 Hi, I have a very small and simple Spring + Hibernate application running in Tomcat 6.0.16. During testing I'm running into many of the following errors with Tomcat: javax.servlet.ServletException: java.lang.OutOfMemoryError: PermGen space I have to shutdown and startup tomcat every 3rd redeployment. So I have 3 questions for anybody generous enough to help me: Is this normal for a tiny project in the beginning stages of development (I'm guessing due to Spring Hibernate)? What is the proper way to increase memory allocated to Tomcat? If I have 3gbytes of RAM, should I allocate all 3gbytes or possibly more? The idea being memory allocated that I don't have will be swap and not cause tomcat to crash. Thanks so much for any help. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Manager app authentication not working with JDBCRealm
I can't get the manager app working with authentication using JDBCRealm, even though I've configured it identically to an app I developed that uses the same JDBCRealm instance successfully. In both cases, the app requires a user with role manager, and the same authentication setup works for my app but not for manager. I have the following in the file %catalina_home%\webapps\manager\WEB-INF\web.xml (and also in the web.xml for my custom app) security-constraint - # web-resource-collection web-resource-nameHTMLManger and Manager command/web-resource-name url-pattern/jmxproxy/*/url-pattern url-pattern/html/*/url-pattern url-pattern/list/url-pattern url-pattern/expire/url-pattern url-pattern/sessions/url-pattern url-pattern/start/url-pattern url-pattern/stop/url-pattern url-pattern/install/url-pattern url-pattern/remove/url-pattern url-pattern/deploy/url-pattern url-pattern/undeploy/url-pattern url-pattern/reload/url-pattern url-pattern/save/url-pattern url-pattern/serverinfo/url-pattern url-pattern/status/*/url-pattern url-pattern/roles/url-pattern url-pattern/resources/url-pattern /web-resource-collection - # auth-constraint role-namemanager/role-name /auth-constraint /security-constraint - !-- Define the Login Configuration for this Application -- - # login-config auth-methodDIGEST/auth-method realm-nameJDBCRealm/realm-name /login-config - !-- Security roles referenced by this web application -- - # security-role descriptionThe role that is required to log in to the Manager Application/description role-namemanager/role-name /security-role And I have the following in server.xml Realm className=*org.apache.catalina.realm.JDBCRealm* debug=*99* driverName=*com.mysql.jdbc.Driver* connectionURL=*jdbc:mysql:///Tomcat_Realm* connectionName=** connectionPassword= userTable=*users* userNameCol=*user_name* userCredCol=*user_pass* userRoleTable=*user_roles* roleNameCol=*role_name* digest=*MD5* / I give the same credentials when accessing my custom app and the manager app. In the former case, I am granted access; in the latter case, authentication fails (I am prompted to re-enter the credentials). I can access manager with no problem if I remove the security-constraint from web.xml or if I use the UserDatabaseRealm shipped with Tomcat, after putting the proper entry into tomcat-users.xml. But after adding my JDCRealm descriptor entry, I can no longer authenticate successfully using UserDatabaseRealm. Should manager be able to work with JDBCRealm? If not, how can I make it work with userDatabaseRealm while other apps are using JDBCRealm? -Mark - 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: Manager app authentication not working with JDBCRealm
From: Mark Leone [mailto:[EMAIL PROTECTED] Subject: Manager app authentication not working with JDBCRealm I can't get the manager app working with authentication using JDBCRealm, even though I've configured it identically to an app I developed that uses the same JDBCRealm instance successfully. I wonder how many times we have to remind people to provide the Tomcat level they're using. Besides that rather critical piece of information, also tell us where you put your driver classes or jar for accessing the authentication database. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat hangs on SATA Linux server
Hi All, We have a web app running on Tomcat that accesses Oracle via JDBC on a Linux server (Centos 4.5) . The web app runs fine on one server but but locks up or hangs for 20-30 second periods on a Dell sever running with SATA storage. I only mention SATA because that is the only significant difference between the two servers. Anyone have a clue what is causing this? Thanks! Rick - 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 hangs on SATA Linux server
From: Rick Fincher [mailto:[EMAIL PROTECTED] Subject: Tomcat hangs on SATA Linux server Anyone have a clue what is causing this? Must be the day for people to leave out most relevant information. 1) What Tomcat level? 2) What JVM version? 3) What Java heap size have you specified? 4) What does JConsole show is going on during the hiccups? (Hangs are permanent, your situation recovers, so it's not a hang.) 5) What kind of GC activity is going on? 6) Are you experiencing page swapping during the hiccups? 7) What does a thread dump show during the hiccups? That's just for starters. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - 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 on Window XP Pro 64-bit on Intel quad Xenon
On Wed, Mar 12, 2008 at 11:10 AM, David Kramer [EMAIL PROTECTED] wrote: Caldarale, Charles R wrote: From: David Kramer [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat on Window XP Pro 64-bit on Intel quad Xenon Are you saying we should try removing all the registry keys we added and trying to start the service? Definitely remove the registry keys, but then use the tomcat{5|6}w.exe (note the w in the name) program to set the options before starting the service. No point in doing registry editing if the GUI will do it for you in a safe manner. - Chuck That did the trick! Thanks. I never installed Tomcat on Windows (I'm more of a Linux guy) so I had no idea what tomcat5w was. Oh, can someone please explain what does the w mean exactly? I've downloaded both the tomcat6.exe tomcat6w.exe, but never known what their difference. PS: Congrats to Charles - I'll try this as well. - 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: Running out of memory too easily in Tomcat 6.0.16
Hi Martin, I did absolutely zero configuration of tomcat. I use the commons dbcp/pool for hibernate, not tomcat's connection pool. And I use acegi for security, not tomcat or j2ee's mechanism (though this memory problem was happening before I added acegi). The only thing I touch with tomcat is startup/shutdown.bat and copying my .war to webapps. You want me to send all hibernate and spring configuration files? Some configuration is with annotations.. On Wed, Mar 19, 2008 at 4:37 PM, Martin Gainty [EMAIL PROTECTED] wrote: Hi Scott-- tough to say without understanding how you structured your app pls send all configuration files Thanks Martin - Original Message - From: Scott Mueller [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Wednesday, March 19, 2008 12:53 PM Subject: Running out of memory too easily in Tomcat 6.0.16 Hi, I have a very small and simple Spring + Hibernate application running in Tomcat 6.0.16. During testing I'm running into many of the following errors with Tomcat: javax.servlet.ServletException: java.lang.OutOfMemoryError: PermGen space I have to shutdown and startup tomcat every 3rd redeployment. So I have 3 questions for anybody generous enough to help me: Is this normal for a tiny project in the beginning stages of development (I'm guessing due to Spring Hibernate)? What is the proper way to increase memory allocated to Tomcat? If I have 3gbytes of RAM, should I allocate all 3gbytes or possibly more? The idea being memory allocated that I don't have will be swap and not cause tomcat to crash. Thanks so much for any help. - 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: Manager app authentication not working with JDBCRealm
I wonder how many times we have to remind people to provide the Tomcat level they're using. Besides that rather critical piece of information, also tell us where you put your driver classes or jar for accessing the authentication database. - Chuck Sorry about that. I'm using Tomcat 6.0.16. I have my JDBC Connector jar file in %catalina_home%\lib -Mark - 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: Running out of memory too easily in Tomcat 6.0.16
yes providing configuration files would assist in debugging this scenario Thanks Martin- - Original Message - From: Scott Mueller [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Wednesday, March 19, 2008 6:19 PM Subject: Re: Running out of memory too easily in Tomcat 6.0.16 Hi Martin, I did absolutely zero configuration of tomcat. I use the commons dbcp/pool for hibernate, not tomcat's connection pool. And I use acegi for security, not tomcat or j2ee's mechanism (though this memory problem was happening before I added acegi). The only thing I touch with tomcat is startup/shutdown.bat and copying my .war to webapps. You want me to send all hibernate and spring configuration files? Some configuration is with annotations.. On Wed, Mar 19, 2008 at 4:37 PM, Martin Gainty [EMAIL PROTECTED] wrote: Hi Scott-- tough to say without understanding how you structured your app pls send all configuration files Thanks Martin - Original Message - From: Scott Mueller [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Wednesday, March 19, 2008 12:53 PM Subject: Running out of memory too easily in Tomcat 6.0.16 Hi, I have a very small and simple Spring + Hibernate application running in Tomcat 6.0.16. During testing I'm running into many of the following errors with Tomcat: javax.servlet.ServletException: java.lang.OutOfMemoryError: PermGen space I have to shutdown and startup tomcat every 3rd redeployment. So I have 3 questions for anybody generous enough to help me: Is this normal for a tiny project in the beginning stages of development (I'm guessing due to Spring Hibernate)? What is the proper way to increase memory allocated to Tomcat? If I have 3gbytes of RAM, should I allocate all 3gbytes or possibly more? The idea being memory allocated that I don't have will be swap and not cause tomcat to crash. Thanks so much for any help. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: Unconnected sockets not implemented
See Thread at: http://www.techienuggets.com/Detail?tx=8748 Posted on behalf of a User For the sake of anyone else running into this cryptic exception, the FIRST thing to do is verify everything about how SSL is configured in your VM -- make sure the javax.net.ssl.keyStore and javax.net.ssl.trustStore system properties are set and pointing to the right place, the files are readable and all that, the passwords are correct, all the certificates are in place, yadda yadda yadda. This exception is most likely due to a failure with JSSE during the SSL handshake. In Response To: Hi all, I have tomcat ssl configured ant tried to access it with a jsse client but i get the following error: [java] Exception in thread main org.apache.axis2.AxisFault: Unconnected s ockets not implemented; nested exception is: [java] java.net.SocketException: Unconnected sockets not implemented; n any idea? Thanks, Nencho - 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 on Window XP Pro 64-bit on Intel quad Xenon
From: Srinivasan Rangaswamy [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat on Window XP Pro 64-bit on Intel quad Xenon Oh, can someone please explain what does the w mean exactly? I've downloaded both the tomcat6.exe tomcat6w.exe, but never known what their difference. I don't know what the w was intended to mean, but it differentiates the service manager app from the service itself. Documentation is here: http://commons.apache.org/daemon/procrun.html The commons-daemon code originated in the Tomcat project. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - 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: Manager app authentication not working with JDBCRealm
From: Mark Leone [mailto:[EMAIL PROTECTED] Subject: Re: Manager app authentication not working with JDBCRealm I'm using Tomcat 6.0.16. I have my JDBC Connector jar file in %catalina_home%\lib O.k., that looks good. Why do your posted XML fragments have asterisks and odd annotations like #? Since what you posted doesn't appear to be just a copy paste, it would be good to see the actual elements, attributes, and values. Things to try: 1) Make sure the debug level for the Realm is something large (e.g., 99, not *99*). 2) Check the logs after you make a request to the manager. 3) Use database tracing, Wireshark, or equivalent to see if the Realm is actually trying to reach the database when you attempt to use the manager. This is probably something obvious, but I'm not seeing it. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - 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: Manager app authentication not working with JDBCRealm
Why do your posted XML fragments have asterisks and odd annotations like #? Since what you posted doesn't appear to be just a copy paste, it would be good to see the actual elements, attributes, and values. My mistake. I copied from the rendered XML doc instead of from the source. Here's the correct posting of the web.xml excerpt: security-constraint web-resource-collection web-resource-nameHTMLManger and Manager command/web-resource-name url-pattern/jmxproxy/*/url-pattern url-pattern/html/*/url-pattern url-pattern/list/url-pattern url-pattern/expire/url-pattern url-pattern/sessions/url-pattern url-pattern/start/url-pattern url-pattern/stop/url-pattern url-pattern/install/url-pattern url-pattern/remove/url-pattern url-pattern/deploy/url-pattern url-pattern/undeploy/url-pattern url-pattern/reload/url-pattern url-pattern/save/url-pattern url-pattern/serverinfo/url-pattern url-pattern/status/*/url-pattern url-pattern/roles/url-pattern url-pattern/resources/url-pattern /web-resource-collection auth-constraint role-namemanager/role-name /auth-constraint /security-constraint !-- Define the Login Configuration for this Application -- login-config auth-methodDIGEST/auth-method realm-nameJDBCRealm/realm-name /login-config !-- Security roles referenced by this web application -- security-role description The role that is required to log in to the Manager Application /description role-namemanager/role-name /security-role And here's the server.xml excerpt (which I should have pointed out is inside the server/service/engine container): Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=com.mysql.jdbc.Driver connectionURL=jdbc:mysql:///Tomcat_Realm connectionName= connectionPassword= userTable=users userNameCol=user_name userCredCol=user_pass userRoleTable=user_roles roleNameCol=role_name digest=MD5 / 1) Make sure the debug level for the Realm is something large (e.g., 99, not *99*). Debug was set correctly, as shown above. 2) Check the logs after you make a request to the manager. Here's the contents of catalina.date-time.log. The only thing I see that seems perhaps relevant is the warning about no matching property for debug. Does it mean I have the realm descriptor in the wrong location (server/service/engine/realm)? I placed it right after the userDatabaseRealm that comes with the Tomcat distribution. There are warnings about docBases inside the host appbase that are being ignored. I don't understand these, but they don't seem related to my problem. These warnings pertain to appname.xml files inside ${catalina.home}\conf\catalina\localhost\, with context elements defined with IP address and access log valves. Mar 19, 2008 10:21:23 PM org.apache.catalina.startup.HostConfig checkResources INFO: Undeploying context [/admin] Mar 19, 2008 10:21:28 PM org.apache.coyote.http11.Http11Protocol pause INFO: Pausing Coyote HTTP/1.1 on http-8080 Mar 19, 2008 10:21:29 PM org.apache.catalina.core.StandardService stop INFO: Stopping service Catalina Mar 19, 2008 10:21:30 PM org.apache.coyote.http11.Http11Protocol destroy INFO: Stopping Coyote HTTP/1.1 on http-8080 Mar 19, 2008 10:21:33 PM org.apache.tomcat.util.digester.SetPropertiesRule begin WARNING: [SetPropertiesRule]{Server/Service/Engine/Realm} Setting property 'debug' to '99' did not find a matching property. Mar 19, 2008 10:21:33 PM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Apache Software Foundation\Tomcat 6.0\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\Perl\site\bin;C:\Perl\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ActivIdentity\ActivClient Mini\;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\MySQL\MySQL Server 5.0\bin Mar 19, 2008 10:21:33 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Mar 19, 2008 10:21:33 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 509 ms Mar 19, 2008 10:21:33 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Mar 19, 2008 10:21:33 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/6.0.16 Mar 19, 2008 10:21:34 PM org.apache.catalina.startup.HostConfig deployDescriptor WARNING: A docBase C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\gators inside the host appBase has been specified, and will be ignored Mar 19, 2008 10:21:34 PM org.apache.catalina.startup.HostConfig deployDescriptor WARNING: A docBase C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\manager inside the host appBase has been specified, and will be ignored Mar 19, 2008
RE: Manager app authentication not working with JDBCRealm
From: Mark Leone [mailto:[EMAIL PROTECTED] Subject: Re: Manager app authentication not working with JDBCRealm Mar 19, 2008 10:21:23 PM org.apache.catalina.startup.HostConfig checkResources INFO: Undeploying context [/admin] There is no admin webapp for Tomcat 6; is that your own, or did you copy over stuff from a previous level of Tomcat? If you did, that's likely the cause of your problem, since the configs and built-in webapps are not compatible across levels. Mar 19, 2008 10:21:34 PM org.apache.catalina.startup.HostConfig deployDescriptor WARNING: A docBase C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\gators inside the host appBase has been specified, and will be ignored All of those warnings need to be fixed; it's more evidence of copying config files from a previous level, which is a definite no-no. You should start over with a clean installation of Tomcat 6, and then port (not copy) whatever you need from the older level. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - 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: Manager app authentication not working with JDBCRealm
There is no admin webapp for Tomcat 6; is that your own, or did you copy over stuff from a previous level of Tomcat? If you did, that's likely the cause of your problem, since the configs and built-in webapps are not compatible across levels. I copied the admin app from Tomcat 5 after seeing that the manager app wasn't working right, just to see if I could get a clue from how it was configured. (Tomcat 6 still has the html page for the admin app that says it can be downloaded if desired, so I assumed it was still supported for 6.0.) I got rid of it, now, however. See below. All of those warnings need to be fixed; it's more evidence of copying config files from a previous level, which is a definite no-no. You should start over with a clean installation of Tomcat 6, and then port (not copy) whatever you need from the older level. To enable a systematic approach, I started from scratch. I de-installed Tomcat and deleted all its files. Here's how it went. 1. I re-installed 6.0.16, specifying a user name with manager role for tomcat-users.xml. I was able to access manager using these credentials. 2. I added to server.xml the JDBCRealm descriptor that I showed earlier in the thread. I made no other changes. At this point, I could no longer authenticate to manager using the credentials in Tomcat-users.xml. (Perhaps when there was only one realm, UserDatabaseRealm was used as the default. Now that there are two, I have to point manager to the one to use? I tried earlier to do this using a ResourceLink element as described in Tomcat docs and the comments to manager's web.xml, but I must not have done it right, as I couldn't get it to work. I'd prefer anyway to get it working with JDBCRealm.). 3. I put the JDBC connector jar into ${catalina.home}\lib and copied into webapps my custom app that uses JDBCRealm for authentication, and tested it. It works fine, using the JDBC connection to authenticate a user with role manager. 4. I modified manager's web.xml login-config to be login-config auth-methodDIGEST/auth-method realm-nameJDBCRealm/realm-name /login-config which is the same as my custom app. I cannot authenticate to manager using the JDBC credentials. I now have no error messages (I believe) in my log file except the one about no matching property for debug. I don't know what's causing that, but perhaps it's the relevant clue. Here's my catalina.date-time.log file, showing restart and attempt to access manager app. Mar 19, 2008 11:57:57 PM org.apache.catalina.core.StandardService stop INFO: Stopping service Catalina Mar 19, 2008 11:57:57 PM org.apache.coyote.http11.Http11Protocol destroy INFO: Stopping Coyote HTTP/1.1 on http-8080 Mar 19, 2008 11:58:00 PM org.apache.tomcat.util.digester.SetPropertiesRule begin WARNING: [SetPropertiesRule]{Server/Service/Engine/Realm} Setting property 'debug' to '99' did not find a matching property. Mar 19, 2008 11:58:00 PM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Apache Software Foundation\Tomcat 6.0\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\Perl\site\bin;C:\Perl\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ActivIdentity\ActivClient Mini\;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\MySQL\MySQL Server 5.0\bin Mar 19, 2008 11:58:00 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Mar 19, 2008 11:58:00 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 491 ms Mar 19, 2008 11:58:00 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Mar 19, 2008 11:58:00 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/6.0.16 Mar 19, 2008 11:58:01 PM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8080 Mar 19, 2008 11:58:01 PM org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 Mar 19, 2008 11:58:01 PM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/16 config=null Mar 19, 2008 11:58:01 PM org.apache.catalina.startup.Catalina start I have manager app directly under ${catalina.home}\webapps. Is that correct? -Mark - 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: Manager app authentication not working with JDBCRealm
From: Mark Leone [mailto:[EMAIL PROTECTED] Subject: Re: Manager app authentication not working with JDBCRealm 2. I added to server.xml the JDBCRealm descriptor that I showed earlier in the thread. I made no other changes. O.k., I think that will break the world. As far as I know, you may have only one Realm inside a given container (Engine, Host, Context); a Realm at a lower level overrides any at a higher one. If you want all apps to use your JDBCRealm, you have to remove (or comment out) the default one for the Engine. Mar 19, 2008 11:58:00 PM org.apache.tomcat.util.digester.SetPropertiesRule begin WARNING: [SetPropertiesRule]{Server/Service/Engine/Realm} Setting property 'debug' to '99' did not find a matching property. Interesting, since it's shown in the docs. Will have to dig into that one. I have manager app directly under ${catalina.home}\webapps. Is that correct? Yes. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Web WIFI application
Hi We have been Developing a Web WIFI application that acts as a AAA processor for ROUTER [ CISCO ] for provision of Internet Access. The application is HOSTED as ROOT in Tomcat 5523 web server Reason : CISCO ROUTER uses IP /Port Only to identify and route the HTTP requests for AAA process Question Is it possible to set up APACHE 2.x HTTP SERVER to route the Requests to ROOT application of an jakartha Apache Tomcat 5523 web server. Please Help with regards Karthik - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]