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 file:/usr/local/jakarta/apache-tomcat-5.5.25/webapps/istudio/W

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

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

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

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 = Thread.currentThread().getContextCl

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 s

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 element > in the error-page declaration

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 t

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 Len Popp
On Mon, Jan 12, 2009 at 19:58, Nathan Potter 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 wondering..

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

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 proble

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 a

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

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:... ... Generate HTML for GET Request ... ... Exec

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

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. > > /WebRoot/WEB-INF/web.xml AFAICT, expects resources to be relative to the a

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

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 catali

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

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 t

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 Apach

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 config

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: 404 /docs/error404.html Then when I call HttpServletResponse.sendError(): public class DispatchServlet extends HttpServlet {

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.(Payment.java:136) > (at > com.valleyoak.util.IVosTableInfo.findColumnTa

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

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

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.(Payment.java:136) (at com.valleyoak.util.IVosTableInfo.findColumnTables(IVosTableInfo.java:161)) - last line the cluster thread is stuck at at java.lang.Class.fo

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

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 CO

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

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: users-unsubscr...@tomcat.apache.

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

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

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 entry on tomcat's server.xml Also look at docs for firstReadTimeout

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 resolve