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 otherwis

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 bas

Re: Classloader between Web application and system loader

2010-01-13 Thread Konstantin Kolinko
2010/1/14 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? > In 6.0.20 it is by default: What comes first takes priority in an URLClassLoader. common.loader=${catalina.home}/lib,${catalina.home}

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 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 wrote: > 2010/1/14 youngm : > > > > I am designing my production Tomcat 6 system and would like to have a

Re: Classloader between Web application and system loader

2010-01-13 Thread Konstantin Kolinko
2010/1/14 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 S

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 Web

Re: allowTrace="false" allowing Trace Method

2010-01-13 Thread Konstantin Kolinko
2010/1/13 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 IMPLE

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 /usr/share/tom

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

2010-01-13 Thread Konstantin Kolinko
2010/1/14 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 > simulta

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 auth

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 : apache v

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

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 from the www.ft.com altogether ? I'm deploying one app (ROOT) for the www.ft.com . See 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 and I think your rig

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

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

2010-01-13 Thread Konstantin Kolinko
2010/1/11 Tero Karttunen : > 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 onehttp://tools.ietf.org/html/rfc261

[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 ro

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 For Tomcat I put the followin

Re: Tomcat dies suddenly (was JVM goes away)

2010-01-13 Thread David Kerber
Peter Crowther wrote: 2010/1/13 David kerber : 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 Peter Crowther
2010/1/13 David kerber : > 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: 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 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 with no stack trace.

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 tha

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 exa

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

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: > > > > > I am using Tomcat6 on Ubuntu. Installed with apt-get. > > What am I doing wrong? Not removing the comment markers around the role and user l

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: > > > Might those elements be comment

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 e

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: I am using Tomcat6 on Ubuntu. Installed with apt-get. What am I doing wrong? Is there

RE: Best Basic Auth Approach

2010-01-13 Thread Joseph Morgan
Sounds to me the better solution is to make Tomcat inaccessible from outside, and then have Apache route only authenticated requests. -Original Message- From: cgswtsu78 [mailto:cg...@proofpoint.com] Sent: Wednesday, January 13, 2010 3:34 PM To: users@tomcat.apache.org Subject: Re: Best

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 applica

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 : http://tomcat.apache.org/tomcat-6.0-doc/config/ajp.html

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

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 th

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: http:/

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 the

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

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 configura

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

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-a

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 > in

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 JSPSe

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: 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 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 this

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: 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" To: "Tomcat Users List" Sent: Wednesday, January 13, 2010 1:17 PM Subject: Re: Tomcat dies suddenly (was JVM goes away) Carl wrote: Peter, The memTest is still running but clean so far.

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: users-unsubs

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" To: "Tomcat Users List" Sent: Wednesday, January 13, 2010 12:00 PM Subject: Re: Tomcat dies suddenly (was JVM goes away) 2010/1/13 Christopher Schultz : On 1/13/2010 8:

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

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 libra

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 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 bef

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 resourc

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 not

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, 2

Re: Tomcat dies suddenly (was JVM goes away)

2010-01-13 Thread Peter Crowther
2010/1/13 Christopher Schultz : > 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 physical me

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

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: > > > > > > >

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 t

RE: servlet access to static resources (pictures)

2010-01-13 Thread Holger Rieß
The context elements are defined in /%CATALINA_HOME%/conf/server.xml: ... There are two web appl

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: ... There are two web appl

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: 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 T

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 Reply-To: Tomcat Use

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 writ

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 elements? Looks like the OP was pretty specific about where... > >

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: > > cgi > org.apache.catalina.servlets.CGIServlet > > debug > 1 > > > cgiPathPrefix > WEB-INF/cgi-bin >

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: log viewer

2010-01-13 Thread Kaushal Shriyan
On Wed, Jan 13, 2010 at 8:52 PM, Christopher Schultz 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 wrote: >>> On 13/01/2010 12:20, Kaushal Shriyan wrote: Hi, I am

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 wrote: >> On 13/01/2010 12:20, Kaushal Shriyan wrote: >>> >>> Hi, >>> >>> I am using GUI application lamdaprobe for accessing catalina.out file. >>> the iss

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: > > reloadable="false"/> > reloadable="false"/> > ... > reloadable="false"/> Where did you define these elements? > Is there a

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 ni

Re: log viewer

2010-01-13 Thread Kaushal Shriyan
On Wed, Jan 13, 2010 at 8:05 PM, Pid 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 would

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

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 s

servlet access to static resources (pictures)

2010-01-13 Thread Holger Rieß
We have defined some paths to static resources in the server.xml: ... Is there a way to get the absolute paths of these folders in a servlet? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional comma

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 wrote: > Hi Mark, > > Apparently Java 5 has as well in the documentation of the ExpressionFactory >

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: 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 i

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 Expressio

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 . 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 servlets-cgi.renametojar after the steps in

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 (t

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

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" To: "Tomcat Users List" Sent: Wednesday, January 13, 2010 8:58 AM Subject: Re: Tomcat

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" To: "Tomcat Users List" Sent: Wednesday, January 13, 2010 8:49 AM Subject: Re: Tomcat dies suddenly (was JVM goes away) Very difficult to know what the problem is. One thing you can now do (a

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 suggestion

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 the

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 ex

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 > newInstance

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 mem

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 HotSpot(

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: www.example.com and my vhos

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 t

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

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 : Thanks

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 To: Tomcat Users List Sent: Tue, January 12, 2010 11:15:54 PM Subject: RE: Tips on tracking down memory leaks Greg, you've just awakened a 900 lb gorilla!

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" To: Tomcat Users List Sent: Tue, January 12, 2010 11:31:

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 sen

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: 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 us

  1   2   >