RE: Client authentication problems

2010-01-13 Thread John Watson
The client reports the error, which I presumed came as a response from the server. -Original Message- From: Pid [mailto:p...@pidster.com] Sent: 12 January 2010 17:30 To: Tomcat Users List Subject: Re: Client authentication problems On 12/01/2010 16:32, John Watson wrote: Dear tomcat

Re: Re: rewrite not working in isapi_redirect

2010-01-13 Thread Monu Agrawal
Thanks Mladen. I want to redirect the URL to a new location like: http://dir1.site.com/xyz.do to http://site.com/xyz.do Is it possible to do this using rewite_file? -- -- 'Make Your Own Way' Monu Agrawal

Re: rewrite not working in isapi_redirect

2010-01-13 Thread Mladen Turk
On 01/13/2010 09:08 AM, Monu Agrawal wrote: Thanks Mladen. I want to redirect the URL to a new location like: http://dir1.site.com/xyz.do to http://site.com/xyz.do Is it possible to do this using rewite_file? Did you tried /dir1.site.com/xyz.do=/site.com/xyz.do Although the upper makes no

Re: Tips on tracking down memory leaks

2010-01-13 Thread Greg McCane
Thanks Chuck. Is there any danger in taking a heap dump on our system running in production? Will it cause a significant performance hit or other nasty? Thanks again, Greg From: Caldarale, Charles R chuck.caldar...@unisys.com To: Tomcat Users List

Re: Tips on tracking down memory leaks

2010-01-13 Thread Greg McCane
Thanks a lot Joe, we are checking our code based on your suggestions. Cheers, Greg From: Joseph Morgan joseph.mor...@ignitesales.com To: Tomcat Users List users@tomcat.apache.org Sent: Tue, January 12, 2010 11:15:54 PM Subject: RE: Tips on tracking down memory

Re: Tips on tracking down memory leaks

2010-01-13 Thread Ronald Klop
No. But historical results are not a guarantee for the future. It is very easy to make a heapdump with jmap and analyze it with MAT (http://www.eclipse.org/mat/) or other tools as suggested by others on this list. Ronald. Op woensdag, 13 januari 2010 11:44 schreef Greg McCane

log viewer

2010-01-13 Thread Kaushal Shriyan
Hi, I am using GUI application lamdaprobe for accessing catalina.out file. the issue is that it doesnot contain search feature for finding out exceptions in catalina.out file since i do not want to give physical ssh access to the tomcat server Please guide/suggest. Thanks and Regards, Kaushal

ExpressionFactory.newInstance() undefined.

2010-01-13 Thread Roxana
Hi all, I have to port our web application from Tomcat 5.5 to Tomcat 6.0.20. Everything went fine up till now. In the previous implementation we have used the ExpressionEvaluatorImpl that was part of the api in commons-el.jar from jakarta-tomcat-5.0.25 In the tomcat 6.0.20 i can see that the

tomcat + apache + proxy = very slow response

2010-01-13 Thread pionier
Hi all, I have a problem with configuration tomcat with apache... i have to use proxy to map every request from port 80 to 8080... my tomcat connection configuration: ?xml version='1.0' encoding='utf-8'? Server port=8005 shutdown=2464132ddb92d21 !--APR library loader. Documentation at

Tomcat dies suddenly (was JVM goes away)

2010-01-13 Thread Carl
From the original posting: This is a new server, a Dell T110 with a Xeon 3440 processor and 4GB memory. I have turned off both the turbo mode and hyperthreading. The environment: 64 bit Slackware Linux java version 1.6.0_17 Java(TM) SE Runtime Environment (build 1.6.0_17-b04) Java

Re: Tomcat dies suddenly (was JVM goes away)

2010-01-13 Thread Peter Crowther
Very difficult to know what the problem is. One thing you can now do (as you've switched to another production server) is to run a memory test across the bad server. A T110 doesn't use error-correcting memory, as I recall, so a dodgy bit could cause problems. Give it a couple of hours with

Re: ExpressionFactory.newInstance() undefined.

2010-01-13 Thread Mark Thomas
On 13/01/2010 12:23, Roxana wrote: I have looke din the documentation of the *ExpressionFactory *: http://java.sun.com/javaee/6/docs/api/javax/el/ExpressionFactory.html and i decided to use the method

Re: Tomcat dies suddenly (was JVM goes away)

2010-01-13 Thread Paolo Santarsiero
In order to monitor java memory at chrash time you can add to JAVA_OPTS these directives -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/your/tomcat/folder/memorydump.hprof In this way, if tomcat goes in out of memory, you have an image of memory (memorydump.hprof) that you can analyze by an

Re: ExpressionFactory.newInstance() undefined.

2010-01-13 Thread Roxana
Hi Mark, Thank you for your answer. You are of course perfectly right..I have looked at the documentation of Java EE6. The org.apache.el.ExpressionFactoryImpl is not part of any jar files that comes with Tomcat6...so i suppose that your suggestions is to manually copy the commons-el.jar into

Re: ExpressionFactory.newInstance() undefined.

2010-01-13 Thread Mark Thomas
On 13/01/2010 14:04, Roxana wrote: Hi Mark, Thank you for your answer. You are of course perfectly right..I have looked at the documentation of Java EE6. The org.apache.el.ExpressionFactoryImpl is not part of any jar files that comes with Tomcat6...so i suppose that your suggestions is

Re: Tomcat dies suddenly (was JVM goes away)

2010-01-13 Thread Carl
In process... thanks for the suggestion. Carl - Original Message - From: Peter Crowther peter.crowt...@melandra.com To: Tomcat Users List users@tomcat.apache.org Sent: Wednesday, January 13, 2010 8:49 AM Subject: Re: Tomcat dies suddenly (was JVM goes away) Very difficult to know

Re: Tomcat dies suddenly (was JVM goes away)

2010-01-13 Thread Carl
Done. Thanks for the suggestion. Plan to place this machine back on the firing line after running the memory test suggested by Peter. Thanks, Carl - Original Message - From: Paolo Santarsiero paolo.santarsi...@gmail.com To: Tomcat Users List users@tomcat.apache.org Sent:

log the time between each request being read and the first byte of the response served.

2010-01-13 Thread LE
Hello List! I would like to measure the server performance (request time) without the client's connection speed. mod-log-firstbyte for apache does this. http://code.google.com/p/mod-log-firstbyte/ Ever tried logging Apache page serve times using '%D'? You'll have discovered that they aren't a

RE: Tips on tracking down memory leaks

2010-01-13 Thread Caldarale, Charles R
From: Greg McCane [mailto:gregmcc...@yahoo.ca] Subject: Re: Tips on tracking down memory leaks Is there any danger in taking a heap dump on our system running in production? Will it cause a significant performance hit or other nasty? No; taking a heap dump will cause a momentary blip

Re: how do I enable CGI scripts in Tomcat 6?

2010-01-13 Thread Grossman, Robert B
Thanks for your reply, Chuck. (1) We do indeed have Context privileged=true. The lower-case C was my typo. I'm not sure why my collaborator decided to set the value here rather in the web app, but we have only one web app running on this machine anyway. (2) We only copied

Re: ExpressionFactory.newInstance() undefined.

2010-01-13 Thread Roxana
Hi Mark, Apparently Java 5 has as well in the documentation of the ExpressionFactory the method newInstance http://java.sun.com/javaee/5/docs/api/javax/el/ExpressionFactory.html#ExpressionFactory() Nevertheless , when i try to use it, the method actually is not there. How can i use the

Re: log viewer

2010-01-13 Thread Pid
On 13/01/2010 12:20, Kaushal Shriyan wrote: Hi, I am using GUI application lamdaprobe for accessing catalina.out file. the issue is that it doesnot contain search feature for finding out exceptions in catalina.out file That would be a problem with lambdaprobe rather than with Tomcat. since

Re: ExpressionFactory.newInstance() undefined.

2010-01-13 Thread Mark Thomas
On 13/01/2010 14:34, Roxana wrote: Hi Mark, Apparently Java 5 has as well in the documentation of the ExpressionFactory the method newInstance http://java.sun.com/javaee/5/docs/api/javax/el/ExpressionFactory.html#ExpressionFactory() I believe that is an error in the Java EE 5 docs. The

Re: ExpressionFactory.newInstance() undefined.

2010-01-13 Thread Roxana
Ahsorry...I'he been staring to much in my monitor today and i've lost it:) ExpressionFactoryImpl is an ExpressionFactory Thanks a lot!!! Roxana On Wed, Jan 13, 2010 at 3:34 PM, Roxana missbl...@gmail.com wrote: Hi Mark, Apparently Java 5 has as well in the documentation of the

servlet access to static resources (pictures)

2010-01-13 Thread Holger Rieß
We have defined some paths to static resources in the server.xml: Context docBase=c:\pictureroot\applpictures path=/shop/applpictures reloadable=false/ Context docBase=c:\pictureroot\drawings path=/shop/drawings reloadable=false/ ... Context docBase=c:\pictureroot\prodpictures

NIO-connector problems (excessive CPU-usage)

2010-01-13 Thread Tobias Lind
Hi! We've been using Tomcat on Linux for a very long time (and the good old JServe before it), and we recently started testing the NIO-connector instead of the old blocking one. We are currently running the latest Tomcat v6.0.20. We have a pretty large website with quite a lot of traffic, and

Re: More on Tomcat Sessions - limiting cluster session replication to sessions that will last longer than 'n' duration

2010-01-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Robin, On 1/12/2010 5:19 PM, Robin Wilson wrote: Your point is well taken about not creating the short-duration sessions, but alas, Tapestry is the chosen framework - and it uses the session as a mechanism to pass (more-or-less) global values

Re: log viewer

2010-01-13 Thread Kaushal Shriyan
On Wed, Jan 13, 2010 at 8:05 PM, Pid p...@pidster.com wrote: On 13/01/2010 12:20, Kaushal Shriyan wrote: Hi, I am using GUI application lamdaprobe for accessing catalina.out file. the issue is that it doesnot contain search feature for finding out exceptions in catalina.out file That

Re: NIO-connector problems (excessive CPU-usage)

2010-01-13 Thread Filip Hanik - Dev Lists
yes, the issue is known. However, we have not been able to create a use case for it, since I've never been able to reproduce it. One of the work arounds would be to close the selector, but that is a royal pain, since you'd then have to reregister all keys and you'd end up in a synchronization

Re: servlet access to static resources (pictures)

2010-01-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Holger, On 1/13/2010 9:52 AM, Holger Rieß wrote: We have defined some paths to static resources in the server.xml: Context docBase=c:\pictureroot\applpictures path=/shop/applpictures reloadable=false/ Context docBase=c:\pictureroot\drawings

Re: log viewer

2010-01-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kaushal, On 1/13/2010 10:07 AM, Kaushal Shriyan wrote: On Wed, Jan 13, 2010 at 8:05 PM, Pid p...@pidster.com wrote: On 13/01/2010 12:20, Kaushal Shriyan wrote: Hi, I am using GUI application lamdaprobe for accessing catalina.out file. the

Re: log viewer

2010-01-13 Thread Kaushal Shriyan
On Wed, Jan 13, 2010 at 8:52 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kaushal, On 1/13/2010 10:07 AM, Kaushal Shriyan wrote: On Wed, Jan 13, 2010 at 8:05 PM, Pid p...@pidster.com wrote: On 13/01/2010 12:20, Kaushal Shriyan

Re: log viewer

2010-01-13 Thread Mark Thomas
On 13/01/2010 15:31, Kaushal Shriyan wrote: Please Suggest me a step by step guide to configure logger to email all the exceptions in catalina.out file Step 1: read this: http://catb.org/~esr/faqs/smart-questions.html Step 2: Follow its advice. Mark

Re: how do I enable CGI scripts in Tomcat 6?

2010-01-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Robert, On 1/13/2010 9:25 AM, Grossman, Robert B wrote: servlet servlet-namecgi/servlet-name servlet-classorg.apache.catalina.servlets.CGIServlet/servlet-class init-param param-namedebug/param-name

RE: servlet access to static resources (pictures)

2010-01-13 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: servlet access to static resources (pictures) We have defined some paths to static resources in the server.xml: Where did you define these Context elements? Looks like the OP was pretty specific about where...

Re: log the time between each request being read and the first byte of the response served.

2010-01-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 LE, On 1/13/2010 9:23 AM, LE wrote: I am able to write my own AccessLogValve Class but i have no idea how to get the first byte of the response. You have to wrap the response in an object which can record the time of the first byte being written

Re: how do I enable CGI scripts in Tomcat 6?

2010-01-13 Thread Grossman, Robert B
Well, butter my butt and call me a biscuit. Accessing that URL works! I think I can handle it from here. Thanks again. P.S. Sorry for the nomenclature confusion, I'm really a chemist, not a computer programmer. From: Christopher Schultz

Re: tomcat + apache + proxy = very slow response

2010-01-13 Thread pionier
I found that i cant use ProxyRequests On it have to be sat to Offf... but how to map port 80 to 8080 without proxy ? how can i solve this problem ? -- View this message in context: http://old.nabble.com/tomcat-%2B-apache-%2B-proxy-%3D-very-slow-response-tp27144316p27147115.html Sent from the

RE: tomcat + apache + proxy = very slow response

2010-01-13 Thread Robin Wilson
What is your actual goal (other than mapping port 80 to 8080)? It sounds like you just want to be able to respond to incoming requests on port 80 - so you don't have to tell users to use :8080 on their requests - is that right? If that's the case, you have a couple of options: 1) run tomcat

RE: how do I enable CGI scripts in Tomcat 6?

2010-01-13 Thread Holger Rieß
The context elements are defined in /%CATALINA_HOME%/conf/server.xml: Server ... Service ... Engine ... Host ... Context docBase= ... Context docBase= ...

RE: servlet access to static resources (pictures)

2010-01-13 Thread Holger Rieß
The context elements are defined in /%CATALINA_HOME%/conf/server.xml: Server ... Service ... Engine ... Host ... Context docBase= ... Context docBase= ...

Re: Tomcat dies suddenly (was JVM goes away)

2010-01-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Peter, On 1/13/2010 8:49 AM, Peter Crowther wrote: Very difficult to know what the problem is. One thing you can now do (as you've switched to another production server) is to run a memory test across the bad server. Usually, I would agree that

Re: servlet access to static resources (pictures)

2010-01-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Holger, On 1/13/2010 11:23 AM, Holger Rieß wrote: The context elements are defined in /%CATALINA_HOME%/conf/server.xml: Server ... Service ... Engine ... Host ... Context

Re: tomcat + apache + proxy = very slow response

2010-01-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pionier, On 1/13/2010 7:45 AM, pionier wrote: I have a problem with configuration tomcat with apache... i have to use proxy to map every request from port 80 to 8080... Why are you using Apache httpd at all? Your VirtualHost *:80 sends 100% of

Re: Tomcat dies suddenly (was JVM goes away)

2010-01-13 Thread Peter Crowther
2010/1/13 Christopher Schultz ch...@christopherschultz.net: On 1/13/2010 8:49 AM, Peter Crowther wrote: Very difficult to know what the problem is.  One thing you can now do (as you've switched to another production server) is to run a memory test across the bad server. Usually, I would

Re: servlet access to static resources (pictures)

2010-01-13 Thread Patrick Flaherty
Generally speaking, should your docBase point to the location containing your application ? For example Host : www.myapp.com appBase: c:\all-my-apps Application: app1 Location: c:\all-my-apps\app1 Generally speaking would point my docBase to c:\all-my-apps\app1? Thanks -P On Jan 13,

Re: Tomcat dies suddenly (was JVM goes away)

2010-01-13 Thread Carl
Chris, Carl: when the JVM dies and you use top to see free memory, does it say that 2.4GB of memory is in use by a particular process, It shows the 2.4GB as 'Used' but does not show it attached to any process (remember that the Tomcat process has disappeared... ps aux | grep tomcat yields

RE: servlet access to static resources (pictures)

2010-01-13 Thread Caldarale, Charles R
From: Patrick Flaherty [mailto:pflah...@rampageinc.com] Subject: Re: servlet access to static resources (pictures) Generally speaking, should your docBase point to the location containing your application ? Yes, but these aren't real applications - they're simply sets of static resources

RE: NIO-connector problems (excessive CPU-usage)

2010-01-13 Thread Tobias Lind
Ok, so chances are that we will not encounter this issue if we upgrade to a newer kernel (and/or another machine - we are currently also thinking about upgrading the hardware)? It would be nice to see that others are using the NIO-connector on Linux in a productive environment without problems

allowTrace=false allowing Trace Method

2010-01-13 Thread iainmac
Hi, I need to disable TRACE to pass a security scan, so I added allowTrace=false to all my connectors, but its still allowing TRACE! I had to work around with urlrewrite and a jsp with 1 line which was response.sendError(response.SC_NOT_IMPLEMENTED , NOT IMPLEMENTED); However I would prefer

Re: NIO-connector problems (excessive CPU-usage)

2010-01-13 Thread Filip Hanik - Dev Lists
On 01/13/2010 10:25 AM, Tobias Lind wrote: Ok, so chances are that we will not encounter this issue if we upgrade to a newer kernel (and/or another machine - we are currently also thinking about upgrading the hardware)? not necessarily. The bug was in the JDK and how it uses the kernel

Re: tomcat + apache + proxy = very slow response

2010-01-13 Thread pionier
Christopher Schultz-2 wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pionier, On 1/13/2010 7:45 AM, pionier wrote: I have a problem with configuration tomcat with apache... i have to use proxy to map every request from port 80 to 8080... Why are you using Apache httpd at

Re: Tomcat dies suddenly (was JVM goes away)

2010-01-13 Thread Carl
Peter, The memTest is still running but clean so far. Thanks, Carl - Original Message - From: Peter Crowther peter.crowt...@melandra.com To: Tomcat Users List users@tomcat.apache.org Sent: Wednesday, January 13, 2010 12:00 PM Subject: Re: Tomcat dies suddenly (was JVM goes away)

Re: Tomcat dies suddenly (was JVM goes away)

2010-01-13 Thread David kerber
Carl wrote: Peter, The memTest is still running but clean so far. Make sure you let it run for quite a while. I've had memory failures show up as late as 11 passes into a test run. D - To unsubscribe, e-mail:

Re: Tomcat dies suddenly (was JVM goes away)

2010-01-13 Thread Carl
David, Will do... thanks for the heads up. Carl - Original Message - From: David kerber dcker...@verizon.net To: Tomcat Users List users@tomcat.apache.org Sent: Wednesday, January 13, 2010 1:17 PM Subject: Re: Tomcat dies suddenly (was JVM goes away) Carl wrote: Peter, The

Re: Exception in localhost file

2010-01-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mohit, On 1/11/2010 9:10 PM, Mohit Anchlia wrote: I am seeing following exception in localhost file with no stack trace. [snip] Jan 11, 2010 4:12:57 PM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet

Re: More on Tomcat Sessions - limiting cluster session replication to sessions that will last longer than 'n' duration

2010-01-13 Thread Filip Hanik - Dev Lists
The sensible approach would be 1. Refactor DeltaManager and BackupManager to defer the session creation message until the request is complete 2. Then simply swap out the ReplicationValve with an implementation that makes sense Filip On 01/12/2010 11:42 AM, Robin Wilson wrote: REPOSTING

Re: tomcat + apache + proxy = very slow response

2010-01-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pionier, On 1/13/2010 12:53 PM, pionier wrote: Christopher Schultz-2 wrote: If you aren't using Apache httpd for anything, why not take it out of your setup? i dont exacly uderstand u... I bought virtual server with tomcat and apatch...

RE: More on Tomcat Sessions - limiting cluster session replication to sessions that will last longer than 'n' duration

2010-01-13 Thread Robin Wilson
This is more-or-less what we've done. It seems to work for our situation. We've added some variables to the DeltaManager config, so we can control the behavior as well. We can now set the minimum threshold for a session duration, where sessions less than this threshold will not get replicated

Re: allowTrace=false allowing Trace Method

2010-01-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ian, On 1/13/2010 12:37 PM, iainmac wrote: I need to disable TRACE to pass a security scan, so I added allowTrace=false to all my connectors, but its still allowing TRACE! Can you give us an example? Recently, someone complained that the

Re: tomcat + apache + proxy = very slow response

2010-01-13 Thread pionier
Christopher Schultz-2 wrote: That's strange that your root user cannot bind to port 80. Perhaps Apache httpd is already running on port 80? You will have to shut down httpd before running Tomcat on port 80. You shouldn't run Tomcat as root for a number of reasons. You can find

Re: servlet access to static resources (pictures)

2010-01-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Patrick, Aside from Chuck's comments... On 1/13/2010 12:01 PM, Patrick Flaherty wrote: Generally speaking, should your docBase point to the location containing your application ? For example Host : www.myapp.com appBase: c:\all-my-apps

Re: tomcat + apache + proxy = very slow response

2010-01-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pionier, On 1/13/2010 3:49 PM, pionier wrote: I know that... that is whay im asking for help. Okay, I'm trying to give it to you. Im know also that port 80 is free i checked it useing telnet. ...and what did you get? Apache is down and still

Best Basic Auth Approach

2010-01-13 Thread cgswtsu78
Hello, I'm new to tomcat and apache and I've seen some of the tomcat basic auth examples on the web and all of them hardcode a user id/password for a role in the tomcat-users.xml file. What if there is a 1000 userid/pwd combinations for that role that are valid, how can the userid/pwd

Re: Tomcat memory settings

2010-01-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Leo, On 1/11/2010 2:29 PM, Leo Donahue - PLANDEVX wrote: org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet servlet name threw exception java.lang.OutOfMemoryError: Java heap space To add to what others

Re: Best Basic Auth Approach

2010-01-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Colin, On 1/13/2010 4:01 PM, cgswtsu78 wrote: I'm new to tomcat and apache and I've seen some of the tomcat basic auth examples on the web and all of them hardcode a user id/password for a role in the tomcat-users.xml file. Yuck! What if there

RE: Best Basic Auth Approach

2010-01-13 Thread Caldarale, Charles R
From: cgswtsu78 [mailto:cg...@proofpoint.com] Subject: Best Basic Auth Approach I've seen some of the tomcat basic auth examples on the web and all of them hardcode a user id/password for a role in the tomcat-users.xml file. Stop there, and read the Tomcat doc on the subject:

RE: Best Basic Auth Approach

2010-01-13 Thread cgswtsu78
Thanks for the info. Is there anyway to configure tomcat to just check the httpd flag? If its not set challenge the user if it is set allow access to the resource? n828cl wrote: From: cgswtsu78 [mailto:cg...@proofpoint.com] Subject: Best Basic Auth Approach I've seen some of the tomcat

Re: tomcat + apache + proxy = very slow response

2010-01-13 Thread pionier
Christopher Schultz-2 wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pionier, On 1/13/2010 3:49 PM, pionier wrote: I know that... that is whay im asking for help. Okay, I'm trying to give it to you. Im know also that port 80 is free i checked it useing telnet. ...and

RE: Best Basic Auth Approach

2010-01-13 Thread Caldarale, Charles R
From: cgswtsu78 [mailto:cg...@proofpoint.com] Subject: RE: Best Basic Auth Approach Is there anyway to configure tomcat to just check the httpd flag? I believe all you need to do is set tomcatAuthentication to false in the AJP Connector:

Re: Best Basic Auth Approach

2010-01-13 Thread cgswtsu78
Chris, Thanks for the info below. The problem I have is that the authentication is already being done on the apache side as my java/tomcat web application lives within an apache perl application. I'm just trying to prevent anyone from being able to deep dive directly to the java/tomcat

Trouble installing Tomcat.

2010-01-13 Thread Rick Bragg
Hi, I have installed Tomcat, and I get the It Works page perfect, however, when I try to go to the manager webapp I get the unauthorized 401 error. I have the following in my conf/tomcat-users.xml file: role rolename=manager/ user username=testuser password=s3cret roles=manager/ I am using

Re: mod_jk: plus-character causes %-encoding problems

2010-01-13 Thread Tero Karttunen
Thank you for another reply, Chris! I was secretly hoping that somebody would stand up and tell me that I have missed something obvious, but the more I look into this issue, the messier it seems. But let's not get ahead of things. I apologize for the inconsistency in the log lines I posted in my

Re: Trouble installing Tomcat.

2010-01-13 Thread Mark Thomas
On 13/01/2010 22:48, Rick Bragg wrote: Hi, I have installed Tomcat, and I get the It Works page perfect, however, when I try to go to the manager webapp I get the unauthorized 401 error. I have the following in my conf/tomcat-users.xml file: role rolename=manager/ user

RE: Trouble installing Tomcat.

2010-01-13 Thread Caldarale, Charles R
From: Rick Bragg [mailto:li...@gmnet.net] Subject: Trouble installing Tomcat. I have the following in my conf/tomcat-users.xml file: role rolename=manager/ user username=testuser password=s3cret roles=manager/ I am using Tomcat6 on Ubuntu. Installed with apt-get. What am I doing

Re: mod_jk: plus-character causes %-encoding problems

2010-01-13 Thread Mark Thomas
On 13/01/2010 22:47, Tero Karttunen wrote: Thank you for another reply, Chris! I was secretly hoping that somebody would stand up and tell me that I have missed something obvious, but the more I look into this issue, the messier it seems. But let's not get ahead of things. I apologize for

Re: servlet access to static resources (pictures)

2010-01-13 Thread Patrick Flaherty
On Jan 13, 2010, at 3:54 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Patrick, Aside from Chuck's comments... On 1/13/2010 12:01 PM, Patrick Flaherty wrote: Generally speaking, should your docBase point to the location containing your application ? For

RE: servlet access to static resources (pictures)

2010-01-13 Thread Caldarale, Charles R
From: Patrick Flaherty [mailto:pflah...@rampageinc.com] Subject: Re: servlet access to static resources (pictures) Based on my setup as described above which is not a war file but a directory that we just plunk down into appBase, should I remove the docBase parameter altogether (is that

Re: Exception in localhost file

2010-01-13 Thread Mohit Anchlia
I am looking at file in vi and don't see stack trace On Wed, Jan 13, 2010 at 11:02 AM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mohit, On 1/11/2010 9:10 PM, Mohit Anchlia wrote: I am seeing following exception in localhost file

Re: Tomcat dies suddenly (was JVM goes away)

2010-01-13 Thread Peter Crowther
2010/1/13 David kerber dcker...@verizon.net: Make sure you let it run for quite a while.  I've had memory failures show up as late as 11 passes into a test run. That's dedication - I usually end up stopping it after a couple of runs. Thanks David, I've learned something! - Peter

Re: Tomcat dies suddenly (was JVM goes away)

2010-01-13 Thread David Kerber
Peter Crowther wrote: 2010/1/13 David kerber dcker...@verizon.net: Make sure you let it run for quite a while. I've had memory failures show up as late as 11 passes into a test run. That's dedication - I usually end up stopping it after a couple of runs. Thanks David, I've learned

Mapping properties file

2010-01-13 Thread Roman Sokolyuk
Tomcat 6.0 Windows Vista Java 6 Hi, I am trying to migrate a web app from a different web server to Tomcat and I am running into a problem - it depends on a properties file. In the previous server the file was mapped in the configuration file for the container in an env-entry For Tomcat I put

[T6.0.20] -Dcatalina.config ignored on server shutdown?

2010-01-13 Thread Rob S.
During development, we specify an alternate configuration file via JAVA_OPTS: -Dcatalina.config=file://... In it, we create properties like foo.port.http and foo.port.shutdown which we then use in server.xml. We do this so that we can run multiple servers simultaneously as well as not require

Re: mod_jk: plus-character causes %-encoding problems

2010-01-13 Thread Konstantin Kolinko
2010/1/11 Tero Karttunen karttunen.mailingl...@gmail.com: Apache Tomcat access log: 131.177.146.160 - - [11/Jan/2010:12:58:04 +0200] GET /ts_core_virtual_repository/TeamCenterEmulator/sites/one+one%3cfive HTTP/1.1 200 399 What my application actually sees after decoding: sites/one onefive

Re: mod_jk: plus-character causes %-encoding problems

2010-01-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 1/13/2010 5:51 PM, Mark Thomas wrote: On 13/01/2010 22:47, Tero Karttunen wrote: Thank you for another reply, Chris! I was secretly hoping that somebody would stand up and tell me that I have missed something obvious, but the more I look

Re: servlet access to static resources (pictures)

2010-01-13 Thread Patrick Flaherty
Hi Charles, I have attached my server.xml. Can I remove the context from the www.ft.com host altogether ? I'm deploying one app (ROOT) for the www.ft.com host . See host near the bottom of the server xml. If it's safer that way then that's what I'll do. I understand the needs for it now

Re: Exception in localhost file

2010-01-13 Thread Konstantin Kolinko
I have asked already: what is your Tomcat version and your Java version? If you do not know, please run catalina.sh version org.apache.juli.FileHandler uses java.util.logging.SimpleFormatter by default, and you should look in your JDK sources to see how that class is implemented. As of 6u16 it

Tomcat + Apache + AJP = high cpu usage:/

2010-01-13 Thread pionier
When i configured Tomcat to work with Apache I discovered that immediately after i run Apache, Tomcat i using 100% of cpu usage ;/ can someone tell me whay is this happening ? tomcat configuration : ?xml version='1.0' encoding='utf-8'? Server port=8005 shutdown=2464132ddb92d21 !--APR

Re: Best Basic Auth Approach

2010-01-13 Thread Terence M. Bandoian
You may be able to use the following from HttpServletRequest if REMOTE_USER is passed to Tomcat: getRemoteUser public java.lang.String *getRemoteUser*() Returns the login of the user making this request, if the user has been authenticated, or |null| if the user has not been

Re: [T6.0.20] -Dcatalina.config ignored on server shutdown?

2010-01-13 Thread Konstantin Kolinko
2010/1/14 Rob S. r...@tintri.com: During development, we specify an alternate configuration file via JAVA_OPTS: -Dcatalina.config=file://... In it, we create properties like foo.port.http and foo.port.shutdown which we then use in server.xml.  We do this so that we can run multiple servers

Re: Trouble installing Tomcat.

2010-01-13 Thread Mark Witczak
A couple of things I can think of (having the same problem just a few weeks ago): 1. Restart Tomcat after you make the change to the file. 2. Make sure you're editing the correct tomcat-users.xml. I believe the one I had to edit was in /etc/tomcat6. I had been editing a file in

Re: allowTrace=false allowing Trace Method

2010-01-13 Thread Konstantin Kolinko
2010/1/13 iainmac iain_macau...@hotmail.com: Hi, I need to disable TRACE to pass a security scan, so I added allowTrace=false to all my connectors, but its still allowing TRACE! I had to work around with urlrewrite and a jsp with 1 line which was

Classloader between Web application and system loader

2010-01-13 Thread youngm
I am designing my production Tomcat 6 system and would like to have a classloader where I can put emergency patch jars (e.g. database drivers, etc) and configuration (e.g. tweaked spring config). These artifacts would need to be loaded in a classloader between the System Classloader and the

Re: Classloader between Web application and system loader

2010-01-13 Thread Konstantin Kolinko
2010/1/14 youngm you...@gmail.com: I am designing my production Tomcat 6 system and would like to have a classloader where I can put emergency patch jars (e.g. database drivers, etc) and configuration (e.g. tweaked spring config). These artifacts would need to be loaded in a classloader

Re: Classloader between Web application and system loader

2010-01-13 Thread Rob S.
Konstantin, do you have to modify one of the loaders in catalina.properties to check in CATALINA_BASE/lib? Or it does that automagically? On Wed, Jan 13, 2010 at 5:21 PM, Konstantin Kolinko knst.koli...@gmail.comwrote: 2010/1/14 youngm you...@gmail.com: I am designing my production Tomcat

Re: Exception in localhost file

2010-01-13 Thread Mohit Anchlia
Using CATALINA_BASE: /usr/local/tomcat Using CATALINA_HOME: /usr/local/tomcat Using CATALINA_TMPDIR: /usr/local/tomcat/temp Using JRE_HOME: /usr/local/java Server version: Apache Tomcat/6.0.18 Server built: Jul 22 2008 02:00:36 Server number: 6.0.18.0 OS Name:Linux OS Version:

Re: Classloader between Web application and system loader

2010-01-13 Thread Konstantin Kolinko
2010/1/14 Rob S. r...@tintri.com: Konstantin, do you have to modify one of the loaders in catalina.properties to check in CATALINA_BASE/lib?  Or it does that automagically? In 6.0.20 it is by default: What comes first takes priority in an URLClassLoader.

MemoryRealm Setup

2010-01-13 Thread cgswtsu78
Hello, I'm trying to setup basic auth with tomcat using a MemoryRealm but I'm unsure as to how to set the username and password for a given role. I don't have just one username and password for auth but 1000s. My users are logging into an apache/perl application which has a link to a tomcat

Re: Classloader between Web application and system loader

2010-01-13 Thread youngm
Put expanded classes into WEB-INF/classes. Likewise, in CATALINA_BASE/lib So CATALINA_BASE/lib jars and classes are used before the application (WEB-INF/lib and /classes)? http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html under Class Loader Definitions seems to indicate