How to configure Jar scanner in context.xml

2011-04-14 Thread Guofeng Zhang
Hi, I do not find a concrete sample in the doc to demonstrate how to configure jar scanner in context.xml in tomcat 7. Could anyone give me a sample to configure the Jar scanner? I need the scanner only scan web-inf/lib and web-info/classes. I find that Tomcat scan all the jars it

Re: Tomcat Windows Integrated Authentication fails with More than 1 Web Application

2011-04-14 Thread André Warnier
Avni, Itamar wrote: OK. You can follow at http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/c66d9782-f3e7-4317-b6e4-22e0446a63e0/. Right. So I gather that the solution was : quote The solution was to copy sqljdbc.jar to apache’s common\lib, deleting it from both web

Re: [OT] servlet-specific error pages

2011-04-14 Thread Bob Hall
Chris, --- On Wed, 4/13/11 at 1:11 PM, Christopher Schultz ch...@christopherschultz.net wrote: Basically, I want two defaults. If the servlet spec allowed for error-page to include a servlet-name filter, that's what I would use. But it doesn't :( Would an Exception marker interface

Re: Problem with Apache Portable Runtime (APR) based Native library for Tomcat

2011-04-14 Thread Jaroslav Fikker
Hi, I apologize for my stupid question but I am not Linux specialist. Is there some recommendation for using 32bit java (and APR) on 64bit RedHat? JF __ Od: Mladen Turk mt...@apache.org Komu: users@tomcat.apache.org Datum:

Problem while mounting a tomcat webapp under a specific URL-Path in apache via ModJK

2011-04-14 Thread Klaus UNGER
Good morning from rainy Vienna, Configuration facts first: Tomcat 7.0.11 (manually installed) behind Apache HTTP 2.2 (current patch level) on Debian 6 (current patch level) I did search a solution on google but didn't find a solution. - I do have an arbitrary webapp in tomcat ... let's say

Re: Problem with Apache Portable Runtime (APR) based Native library for Tomcat

2011-04-14 Thread André Warnier
Jaroslav Fikker wrote: Hi, I apologize for my stupid question but I am not Linux specialist. Is there some recommendation for using 32bit java (and APR) on 64bit RedHat? It is not a stupid question. Proof : I have the same question. :-) If you allow me to hijack your post, my question is

Re: Fwd: frequent Class unloading/classnotfound problem

2011-04-14 Thread S Arvind
Hi Chris/All, Actually we are getting Exception-Servlet execution threw an exception Exception Cause-java.lang.NoClassDefFoundError: We are running tomcat in centos. Web app initially running fine, and in the high load time this error is happeningo some of the class files randomly. Is

Re: Problem with Apache Portable Runtime (APR) based Native library for Tomcat

2011-04-14 Thread Mladen Turk
On 04/14/2011 12:10 PM, André Warnier wrote: Jaroslav Fikker wrote: I apologize for my stupid question but I am not Linux specialist. Is there some recommendation for using 32bit java (and APR) on 64bit RedHat? It is not a stupid question. Proof : I have the same question. :-) If you allow

Re: [OT] servlet-specific error pages

2011-04-14 Thread sebb
On 14 April 2011 01:10, Justin Randall ran...@hotmail.com wrote: Hi Chris, Of course. I was wondering about other exceptions or errors that maybe I cannot control from that code. Are you referring to internal exceptions within Tomcat's own code or simply unexpected exceptions within the

Re: Tomcat error com.inet.tds.at: [TDS Driver]java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bind Windows 2008

2011-04-14 Thread Arunkumar Janarthanan
I see similar issues / problem in my other Tomcat instances running on same server. On Tue, Apr 12, 2011 at 2:36 AM, André Warnier a...@ice-sa.com wrote: On the face of it, this has absolutely nothing to do with Tomcat. Why did you think it relates to tomcat ? Arunkumar Janarthanan wrote:

Re: Fwd: frequent Class unloading/classnotfound problem

2011-04-14 Thread S Arvind
Chris, The stack trace at the error moment requestURI-/TempContext/jsp/QuickLoginAction Exception-Servlet execution threw an exception Exception Cause-java.lang.NoClassDefFoundError: com/X/hcare/actions/QuickLoginModel javax.servlet.ServletException: Servlet execution threw an

RE: Fwd: frequent Class unloading/classnotfound problem

2011-04-14 Thread Caldarale, Charles R
From: S Arvind [mailto:arvindw...@gmail.com] Subject: Re: Fwd: frequent Class unloading/classnotfound problem Exception Cause-java.lang.NoClassDefFoundError: com/X/hcare/actions/QuickLoginModel The usual cause is either the class really doesn't exist, or that it exists in more than

RE: Fwd: frequent Class unloading/classnotfound problem

2011-04-14 Thread Caldarale, Charles R
From: S Arvind [mailto:arvindw...@gmail.com] Subject: Re: Fwd: frequent Class unloading/classnotfound problem Is there any relation between max-open-files in linux and NoClassDefFoundError in runtime. There certainly can be. Are your webapps failing to close files (including sockets) when

Re: 'Parametrizing' context.xml?

2011-04-14 Thread Laicreparc_
Ok, I have added the line DBVAL=mydb_dev to catalina.properties. Now I define a Realm in my webabb's context.xml: Realm className=org.apache.catalina.realm.JDBCRealm driverName=org.postgresql.Driver connectionURL=jdbc:postgresql://myserver:5432/${DBVAL}

Load Balancer configuration guide

2011-04-14 Thread Harsimranjit singh Kler
Using Folowing to test Load Balanacing Os:Linux apache 2.2.17 mod_jk1.2.3/ AJP 1.3 tomcat 5.5.27 with Above Setup i am able transfer load on tomcat instances.I am setting test bed with 3 tomcat with (Max thread 500 on each,Individual tomcat able to accept 400 concurent in long run). Now

RE: Trying to find session.org.apache.catalina.filters.CSRF_NONCE

2011-04-14 Thread Mathew Samuel
Hi Chris, So I do in fact have a reference to the HttpSession related to the currently-running request. However I do a getAttributeNames() to it but the Enumeration I get back is empty (i.e. non-null but empty so that a hasMoreElements() call to the HttpSession object says false). The

Re: Problem with merged responses - possibly a reused Response or OutputBuffer

2011-04-14 Thread Chris Dumoulin
It turns out the problem was with the AsyncContext timing out and then writing to the HttpServletResponse afterward. Be sure to use an AsyncListener to be notified of these events. Hopefully this might help someone with a similar problem in the future. - Chris On April 13, 2011 11:12:30 am

Re: Tomcat Windows Integrated Authentication fails with More than 1 Web Application

2011-04-14 Thread Mark Eggers
- Original Message From: André Warnier a...@ice-sa.com To: Tomcat Users List users@tomcat.apache.org Sent: Thu, April 14, 2011 12:31:41 AM Subject: Re: Tomcat Windows Integrated Authentication fails with More than 1 Web Application Avni, Itamar wrote: OK. You can follow at

RE: Help with CsrfPreventionFilter

2011-04-14 Thread Mathew Samuel
Hi Chris, You are correct, cookies need to be enabled for the webapp to work. And yeah the XSLT processor is web-aware so that there is access to the servlet objects. I guess the link that I am missing then, with something that I'm doing or not doing, is that I'm not seeing access to

Re: Load Balancer configuration guide

2011-04-14 Thread Harsimranjit singh Kler
Using Folowing to test Load Balanacing Os:Linux apache 2.2.17 mod_jk1.2.3/ AJP 1.3 tomcat 5.5.27 with Above Setup i am able transfer load on tomcat instances.I am setting test bed with 3 tomcat with (Max thread 500 on each,Individual tomcat able to accept 400 concurent in long run).

Filters and JSP

2011-04-14 Thread Bill Davidson
Tomcat 6.0.29 I've written a response filter for my web app and it seems to work fine for servlets but not for JSP's. I public void doFilter( ServletRequest request, ServletResponse response, FilterChain chain ) throws IOException, ServletException { chain.doFilter(request, new

RE: Trying to find session.org.apache.catalina.filters.CSRF_NONCE

2011-04-14 Thread Mathew Samuel
Hi, I can see stuff such as: ServletContext - org.apache.catalina.jsp_classpath HttpServletRequest - org.apache.catalina.ASYNC_SUPPORTED But still no org.apache.catalina.filters.CSRF_NONCE. The HttpSession object did not have it, actually it did not seem to have any attributes. Is there

Embbeded tomcat utilizing more CUP Usage.

2011-04-14 Thread Rushikesh.Pisal
Hello, While running two instance of embedded tomcat in our application the CPU usage gets 100%. We are using Tomcat 5.0.30 version. I know Tomcat 5.X is bit old but it is very much danger for project to replace at this point of time. Secondly , We are using only one servlet in our