Log 4j error on tomcat shutdown

2009-01-12 Thread Choudhury
Hi All, During tomcat (version 6.0.18 with jdk 1.5) shutdown , I get the following error in the console : log4j:ERROR LogMananger.repositorySelector was null likely due to error in class reloading, using NOPLoggerRepository. Whats wrong here ? What does this mean and how do I

RE: Tomcat running out of threads.

2009-01-12 Thread Bernardo Cabezas
Hello, According to tomcat documentation, JkOptions +DisableReuse has some performance penalty, because opens new connection for each request. In my case, issue was solved by setting the param: connectionTimeout on the ajp13 connector / entry on tomcat's server.xml Also look at docs for

RE: Log 4j error on tomcat shutdown

2009-01-12 Thread Mark Thomas
From: choudh...@labware.com [mailto:choudh...@labware.com] Hi All, During tomcat (version 6.0.18 with jdk 1.5) shutdown , I get the following error in the console : log4j:ERROR LogMananger.repositorySelector was null likely due to error in class reloading, using

RE: Tomcat running out of threads.

2009-01-12 Thread Mark Thomas
From: Bernardo Cabezas [mailto:ber...@bergantells.net] Hello, According to tomcat documentation, JkOptions +DisableReuse has some performance penalty, because opens new connection for each request. There is actually quite a lot of disagreement between the Tomcat committers about the

RE: Logging configuration in Tomcat

2009-01-12 Thread Jay
Chuck   There are many web apps. Log4j logger is used in all web apps there are no system.out  or system.err If I configure log4j at each web app level using log4j.properties, am abile to achive log file rotation but, this requires one log file per web application.   What I am interested is

Comitting Valve-code to Tomcat

2009-01-12 Thread Gregor Schneider
Dear all, I've got a piece of code here which I think might be useful not only for me but others. Since I believe in sharing knowledge, I'd like to pass it to the ASF so that it might become a part of Tomcat. Problems whch are solved by this Valve:

RE: Comitting Valve-code to Tomcat

2009-01-12 Thread Mark Thomas
From: Gregor Schneider [mailto:rc4...@googlemail.com] Could somebody please let me know the steps required? Create a Bugzilla entry. Add it as an attachment. Mark - To unsubscribe, e-mail:

Re: Comitting Valve-code to Tomcat

2009-01-12 Thread Gregor Schneider
Hi Mark, actually, it's not really a bug within Tomcat since Tomcat follows the servlet-specs regarding j_security_check. Therefore, it's more an enhancement - you still suggest a bugzilla-entry? Cheers Gregor -- just because your paranoid, doesn't mean they're not after you... gpgp-fp:

Can't re-deploy webapp with Manager -- started after upgrade to Tomcat 6

2009-01-12 Thread Lisa L. Woodring
Having issues re-deploying my webapp using Tomcat Manager. Previously used tomcat 5.0.28 with no issues, now using tomcat 6.0.14 and can't re-deploy. I'm getting an exception: java.util.zip.ZipException: error reading zip file. Sequence of actions and my configuration are below. 1)

RE: Comitting Valve-code to Tomcat

2009-01-12 Thread Caldarale, Charles R
From: Gregor Schneider [mailto:rc4...@googlemail.com] Subject: Re: Comitting Valve-code to Tomcat Therefore, it's more an enhancement - you still suggest a bugzilla-entry? Yes; there's a bugzilla category for enhancement - look at the drop-down list. - Chuck THIS COMMUNICATION MAY

RE: Comitting Valve-code to Tomcat

2009-01-12 Thread Mark Thomas
From: Gregor Schneider [mailto:rc4...@googlemail.com] Hi Mark, actually, it's not really a bug within Tomcat since Tomcat follows the servlet-specs regarding j_security_check. Therefore, it's more an enhancement - you still suggest a bugzilla- entry? Yes. Bugzilla is for tracking

Re: Tomcat 6 does not start in a cluster. It simply hangs... Any Idea..

2009-01-12 Thread jsandhu2204
HI Filip: I did three dumps. It is hanging on the same class. Please let me know any ideas... We are in production. I have same setup on development and it works. However, cluster setup on development is on the same box with apache web server in front. In production there are three servers

Re: Tomcat 6 does not start in a cluster. It simply hangs... Any Idea..

2009-01-12 Thread Filip Hanik - Dev Lists
hi Jaspal, the problem seems to be in the com.valleyoak package. The main thread is stuck at at com.valleyoak.model.Payment.clinit(Payment.java:136) (at com.valleyoak.util.IVosTableInfo.findColumnTables(IVosTableInfo.java:161)) - last line the cluster thread is stuck at at

Re: single instance of background job?

2009-01-12 Thread Matt Chambers
What I did was a little bit of extra work on top of quartz. I have a table that stores the configuration for all of my quartz jobs. When a quartz job kicks off, it will first try to update its last execute time in the table. If the last execute time is too new the update will fail and the

Tomcat shutdown script initiates Heap dump collection

2009-01-12 Thread Prakash Nathan1
Hello It is observed that when ever we initiate tomcat shutdown script, Heap Dumps are collected in catalina.out log file. 1. Is this a normal behavior ? Will it have any impacts on performance ? 2. Could you please let us know the configuration which triggers the heap dump collection ?

Re: Tomcat 6 does not start in a cluster. It simply hangs... Any Idea..

2009-01-12 Thread jsandhu2204
Thanks Filip. I am going to ask the vendor. Filip Hanik - Dev Lists wrote: hi Jaspal, the problem seems to be in the com.valleyoak package. The main thread is stuck at at com.valleyoak.model.Payment.clinit(Payment.java:136) (at

Tomcat returns HTTP status of 200 when HttpServletResponse.sendError() called.

2009-01-12 Thread Nathan Potter
Greetings, In tomcat 6.x (6.0.14 in my case) I am seeing the following behavior: If I designate default error pages in my web.xml file: error-page error-code404/error-code location/docs/error404.html/location /error-page Then when I call

some config issue with Apple supplied Tomcat

2009-01-12 Thread János Löbb
Hi, I am trying to setup a cluster using Apple supplied Apache2 and Tomcat. On OSX, tomcat is in /Library/Tomcat. Apache is configured in a mixed way, because Apple installs 1.3 and 2.2, so there is /etc/httpd for config of 1.3 and /etc/apache2 for config of 2.2. However even the

Tomcat: client disconnects?

2009-01-12 Thread pichels
Hi, We have a RHEL5.2 Linux server running Apache/2.2.3, Tomcat-5.5.26 MySQL 5.0.45. We are experiencing users having issues connecting to our RH server and getting disconnected with errors in their browsers that state there is a DNS error or page cannot be displayed. Users connect to

tomcat 6 apache 2.2 jk connector: auto config?

2009-01-12 Thread johnrock
I am trying to figure out the best way to configure tomcat 6 to work under apache2.2 running on XP. I have seen a way to 'auto configure' the jk connector, and another way to manually configure it in the httpd.conf file. It seems the auto configure is easier, but are there important advantages

RE: Tomcat returns HTTP status of 200 when HttpServletResponse.sendError() called.

2009-01-12 Thread Caldarale, Charles R
From: Nathan Potter [mailto:n...@opendap.org] Subject: Tomcat returns HTTP status of 200 when HttpServletResponse.sendError() called. Tomcat returns the designated page, but with an HTTP status of 200. If I drop the default page then I get the canned response with an HTTP status of 404.

RE: Logging configuration in Tomcat

2009-01-12 Thread Caldarale, Charles R
From: Jay [mailto:difficult...@yahoo.com] Subject: RE: Logging configuration in Tomcat There are many web apps. Log4j logger is used in all web apps there are no system.out or system.err Then where is your catalina.out usage coming from? Tomcat does not itself put anything in

RE: Tomcat shutdown script initiates Heap dump collection

2009-01-12 Thread Caldarale, Charles R
From: Prakash Nathan1 [mailto:mrap...@yahoo.com] Subject: Tomcat shutdown script initiates Heap dump collection Things you didn't bother to tell us: 1) Tomcat version you're using. 2) JRE/JDK version you're using. 3) Platform you're running on. Would you like us to guess? Heap Dumps are

Re: tomcat 6 apache 2.2 jk connector: auto config?

2009-01-12 Thread david
Hello Johnrock, I don't have a solution. Just to let you know that I have been trying auto and mod_proxy on my Linux box but neither one has worked 100% (partial success here is still a loss). If you solve the problem let us know. :-O David. johnrock wrote .. I am trying to figure out the

Re: HTTP Status 404

2009-01-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Satya, satya mahapatra wrote: The web.xml file is inside \WebRoot\WEB-INF\web.xml. According to this I have modified the context.xml inside Tomcat 6.0\conf as below. WatchedResource/WebRoot/WEB-INF/web.xml/WatchedResource AFAICT,

Re: [us...@httpd] Problem with mod_headers ?

2009-01-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, André Warnier wrote: I am using a Tomcat java application which unfortunately sets the Content-Type response header wrongly : it says text/html; charset=iso-8859-1 instead of text/html; charset=iso-8859-2, and there is no way I can change

Tomcat POST Section Execution Size limit

2009-01-12 Thread B T
Hello, I am in the process of developing a small site using JSTL and Tomcat 6.0. I already have a large portion of the site developed. The construct of my standard JSTL .jsp page uses the standard Post-Redirect-Get format and looks similar to:...c:if test=${pageContext.request.method=='GET'}

Re: [us...@httpd] Problem with mod_headers ?

2009-01-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, André Warnier wrote: - the only viable solution in my case is thus to make sure that the Tomcat servlet issues the correct Content-Type header in the first place. If the servlet itself cannot be modified, then a servlet filter wrapping

Re: Tomcat returns HTTP status of 200 when HttpServletResponse.sendError() called.

2009-01-12 Thread Nathan Potter
On Jan 12, 2009, at 3:34 PM, Caldarale, Charles R wrote: Don't think so. Does your code happen to call response.setStatus(200) somewhere along the way? - Chuck Well at first I didn't think so, but now I am wondering After adding some more instrumentation I have determined that I

Permission problems for Downloaded files

2009-01-12 Thread kohanm
Hi, I installed Apache 2.2 + Tomcat 5 + SSL on Linux and they run perfect. The Java web application gives users(after they login) ability to upload files(pdf,ppt..) then creates a record for them, right way users can see their records and can open the documents that they uploaded. The

Re: [OT] Basic int/char conversion question

2009-01-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, André Warnier wrote: an existing webapp reads from a socket connected to an external program. The input stream is created as follows : fromApp = socket.getInputStream(); The read is as follows : StringBuffer buf = new StringBuffer(2000);

Re: Tomcat returns HTTP status of 200 when HttpServletResponse.sendError() called.

2009-01-12 Thread Len Popp
On Mon, Jan 12, 2009 at 19:58, Nathan Potter n...@opendap.org wrote: On Jan 12, 2009, at 3:34 PM, Caldarale, Charles R wrote: Don't think so. Does your code happen to call response.setStatus(200) somewhere along the way? - Chuck Well at first I didn't think so, but now I am

Re: single instance of background job?

2009-01-12 Thread Pid
Quartz has a clustering facility that makes this easy, the OpenSymphony website has more docs on this, investigate the forums/community there. org.quartz.jobStore.isClustered = true Using a JDBC JobStore with the cluster config should ensure that the job only runs once within the cluster. p

Re: Tomcat returns HTTP status of 200 when HttpServletResponse.sendError() called.

2009-01-12 Thread Nathan Potter
On Jan 12, 2009, at 5:38 PM, Len Popp wrote: It sounds like error404.html isn't a plain HTML file, but a page that's generated by a servlet. Is that right? Yes. If so, the servlet should not set the status to 200 for an error page - it should leave the error status alone. I can see

RE: Tomcat returns HTTP status of 200 when HttpServletResponse.sendError() called.

2009-01-12 Thread Caldarale, Charles R
From: Nathan Potter [mailto:n...@opendap.org] Subject: Re: Tomcat returns HTTP status of 200 when HttpServletResponse.sendError() called. Is sendError() using a redirect? No, more like an internal forward. Is there a way to set the value of the location element in the error-page

RE: Tomcat returns HTTP status of 200 when HttpServletResponse.sendError() called.

2009-01-12 Thread Caldarale, Charles R
From: Nathan Potter [mailto:n...@opendap.org] Subject: Re: Tomcat returns HTTP status of 200 when HttpServletResponse.sendError() called. But how do I serve them without a servlet to do it? You don't have to serve them - Tomcat's DefaultServlet does it for you, just as it does for all

How to have multiple loggers with shared code also using the logger?

2009-01-12 Thread removeps-groups
How to have multiple loggers with shared code also using the logger? In ${catalina.home}/lib there is a jar file that contains class MyLog. There is a function in it public class MyLog { public static Logger getLogger() { ClassLoader classLoader =

Configuring Tomcat -- moving to another directory

2009-01-12 Thread Thales
Hello, I want to move Tomcat to another directory. Red5 server requires that I move Tomcat to a directory that has a path with no spaces in it.So, I moved the java sdk and I moved the tomcat server to the same directory. The directories are: C:\jbin\jdk1.6.0_07 C:\jbin\Tomcat6.0 Where is

Re: Tomcat returns HTTP status of 200 when HttpServletResponse.sendError() called.

2009-01-12 Thread Nathan Potter
On Jan 12, 2009, at 6:08 PM, Caldarale, Charles R wrote: But how do I serve them without a servlet to do it? You don't have to serve them - Tomcat's DefaultServlet does it for you, just as it does for all static resources. How do I set the value of the location element in the error page

Reusing form configured in form based authentication

2009-01-12 Thread Charl Gerber
Hi, I have an application using form based authentication. Is it possible to use the same form as a stand-alone login screen? Default, if you enter the url of the form manually (or get it from your browser's history) and you submit it, you get an error message. You always have a smart-ass who

logging

2009-01-12 Thread Angelo Chen
Hi, I have an app that only shows minimal logging info like [INFO], [ERROR] but lately I moved the app to a new server and I have seen a lot of logs in the catalina.out, something like: [Loaded com.mysql.jdbc.JDBC4DatabaseMetaData from