Re: How to get Tomcat to send proper charset?

2007-06-13 Thread Eva Allen
Allen,Eva allene at oclc.org writes: * snip * But even though that response header is explicitly set in the code, somehow, somewhere it's changed again, because I've determined that the content type response header looks like this: Content-Type: text/html;charset=ISO-8859-1 Bad form

Tomcat Server CPU utilization goes upto 400%

2007-06-13 Thread Sumit Gaikaiwari
Hello, We are using tomcat 5.0.25 on Red Hat Enterprise Linux server. There two applications in webapps. We are facing an issue from around 3-4 months where the CPU utilization by java process (tomcat) goes quite high: around 400% in every 4-5 days. The application gets very slow and tomcat

Re: Getting nuts with Tomcat 5.5 and log4j

2007-06-13 Thread Georg Sauer-Limbach
Hi Gregor, I am not sure about the definite solution, but as you got no other answers, try this: Drop an additional log4j.jar in the webapps lib folder. Only this, IMHO, makes the webapp load another instance of log4j so it can be configured independently. The log4j.xml would then be searched

Re: Problem with XSL stylesheet not being applied when XML served through Tomcat

2007-06-13 Thread Richard Kaye
Interesting, and I don't know the answer. Doesn't sound like it's an issue with the mimetype of the main document. One small point is that you load your stylesheet with ?xml-stylesheet type=text/xsl href=... ? but the server provides it as application/xml. AFAIK text/xsl was never registered and

RE: How to get Tomcat to send proper charset?

2007-06-13 Thread Andrew Chapman
Eva, This will work. I think the problem in the response.setContentType() is as simple as a typo. An extra quote seems to have crept in, so: response.setContentType(text/html; charset=UTF-8) SHOULD BE response.setContentType(text/html; charset=UTF-8) Andy -Original Message- From:

Re: hi,problem when shutdown tomcat!

2007-06-13 Thread Jon Wingfield
The trace is probably in the catalina.out log file (at least that's where it goes for us running tc5.0.30) Peter wrote: hi all; I just found out that in linux under the /proc generate a fold 26337 does it the place which the information stores? any idea? thanks On 6/13/07, Peter [EMAIL

Re: Base null error is it with tomcat ?

2007-06-13 Thread sandipp
can anybody help me in above? sandip sandipp wrote: Hi, I am using tomcat apache-tomcat-5.5.17,Exadel,JDK 1.5.I am depoying my application(war file) to external tomcat by running my ant script. I am getting following error when I try to login to my application. where

RE: Comet: Unsufficiently synchronized recycling decisions

2007-06-13 Thread Reich, Matthias
Hello, I did not get any response on my post from 2 weeks ago. Even if non-recycling of request/response objects happens only sporadically and only in webapps where asynchronous responses may happen before the event processing has finished, it is definitively a bug. Should I report it as a bug

Re: Problem with XSL stylesheet not being applied when XML served through Tomcat

2007-06-13 Thread Markus Schönhaber
Garey wrote: http://library11.berkeley.edu/~gmills/binds_result.xml http://library11.berkeley.edu/%7Egmills/binds_result.xml http://library11.berkeley.edu:8080/...inds_result.xml http://library11.berkeley.edu:8080/noidbind/binds_result.xml In Firefox 2, the first URL results in the

Re: Help with tomcat 5.0.28 loadbalancing

2007-06-13 Thread Felix Schumacher
Am Di, 12.06.2007, 20:32, schrieb Dwayne A. Ghant: Almost got it loadbalancing almost wokring need minor help finishing off. Things have chang since I havn't did this in about 3 years. I keep getting error messages in my mod_jk.log file below every time apache initializes. The connector

Re: hi,problem when shutdown tomcat!

2007-06-13 Thread Peter
i found that. thanks a lot On 6/13/07, Jon Wingfield [EMAIL PROTECTED] wrote: The trace is probably in the catalina.out log file (at least that's where it goes for us running tc5.0.30) Peter wrote: hi all; I just found out that in linux under the /proc generate a fold 26337 does it

Re: Problem with XSL stylesheet not being applied when XML served through Tomcat

2007-06-13 Thread Owen Rees
--On Wednesday, June 13, 2007 11:27:45 AM +0200 Markus Schönhaber wrote: I don't think this has anything to do with Tomcat. It rather seems to me that Firefox loads and applies the XSL if the URL referencing it points to the same server(?) / base URL (?) the XML file comes from. Drop the XSL

Re: Tomcat Server CPU utilization goes upto 400%

2007-06-13 Thread Tim Funk
This is an old version so you might be see'ing gc issues. (but that is a wild guess). There isn't enough detail to debug, but when the situation arises - do the following - get thread dumps a look for odd stuff 1) kill -3 tomcat when tomcat is running OK - so you have a base line 2) Then when

Re: Tomcat Server CPU utilization goes upto 400%

2007-06-13 Thread Andre Prasetya
i think its more to application problem instead of tomcat problem. Is there any application hosted inside tomcat that get infinite loop or use a kind of loop checking something that utilize the thread fully ? try solving that with the application developer On 6/13/07, Sumit Gaikaiwari [EMAIL

Re: global/separate classloader for each web-app

2007-06-13 Thread Hamster
On 12/06/07, David Delbecq [EMAIL PROTECTED] wrote: [..] Stupid suggestion: Hehe, stupid approach requires stupid solutions ;] What about one of those approach 1) revise war build process to force inclusion of libs 2) have a server lifecyclelistener that, before loading of a webapp, copy

Re: Problem with XSL stylesheet not being applied when XML served through Tomcat

2007-06-13 Thread Markus Schönhaber
Owen Rees wrote: --On Wednesday, June 13, 2007 11:27:45 AM +0200 Markus Schönhaber wrote: I don't think this has anything to do with Tomcat. It rather seems to me that Firefox loads and applies the XSL if the URL referencing it points to the same server(?) / base URL (?) the XML file comes

tomcat 5.5 stdout

2007-06-13 Thread Ilja S.
Hi It seems there is a lot of confusion around new tomcat 5.5 internal logging. I also have a question: Is there a way to separate stdout (which is all by default written to one file catalina.out) to be in files by virtual hosts / context. i.e. each application could have its own file where

Re: tomcat 5.5 stdout

2007-06-13 Thread Gregor Schneider
One option is to use log4j (http://logging.apache.org/log4j). you can specify loggers for each application writing to pre-defined locations. however, you will also have to maintain some disciplin, since log4j or the java-logging-api are not able to redirect stdout. That means: Do not use

Re: Problem with XSL stylesheet not being applied when XML served through Tomcat

2007-06-13 Thread Robert Koberg
On Wed, 2007-06-13 at 13:00 +0200, Markus Schönhaber wrote: Another comment targeted @ the OP: IMO XSL transformations should be done on the server side, not on the client side. Doing it on the client side may be OK if you have a very specific user base and you can be sure that their clients

JSVC with JDK 6 on Intel Xenon x86_64

2007-06-13 Thread ben short
Hi, I'm trying to compile jsvc on a RedHat 4 ES box. I have installed JDK 6 and typing java -version at the shell prompt tells me its installed OK. I then compile jsvc with that jdk and it completes ok. When I try and run the following startup script I get the following debug output.

role of threads - profiling?

2007-06-13 Thread paul womack
I'm just trying to do some simple profiling on an app running under tomcat 4. I've enabled profiling using: JAVA_OPTS=-Xrunhprof:cpu=samples,depth=40,thread=y; export JAVA_OPTS and am successfully getting a java.hprof.txt file when tomcat is stopped. (after a 70 second run, with a perl script

Re: tomcat 5.5 stdout

2007-06-13 Thread Ilja S.
Thanks a lot for quick reply! To conclude: 1. stdout can NOT be redirected to multiple files and can be only in one file (usually catalina.out) 2. All uncaught exceptions / System.out from ALL applications are going to this one file. And we can not do anything about this. Right?

Re: role of threads - profiling?

2007-06-13 Thread David Delbecq
En l'instant précis du 13/06/07 14:35, paul womack s'exprimait en ces termes: I'm just trying to do some simple profiling on an app running under tomcat 4. I've enabled profiling using: JAVA_OPTS=-Xrunhprof:cpu=samples,depth=40,thread=y; export JAVA_OPTS and am successfully getting a

Stess Test Software

2007-06-13 Thread Will Holmes
Could anyone recommend some good stress test software for Tomcat. Thanks in advance! Will Holmes Programmer Analyst Fremont Insurance Company Ph: 231-924-0302 Ext. 145 E-Mail: [EMAIL PROTECTED]

Re: tomcat 5.5 stdout

2007-06-13 Thread Gregor Schneider
hi illja, On 6/13/07, Ilja S. [EMAIL PROTECTED] wrote: Thanks a lot for quick reply! To conclude: 1. stdout can NOT be redirected to multiple files and can be only in one file (usually catalina.out) that's right. the only workaround is to use jsvc

Re: Problem with XSL stylesheet not being applied when XML served through Tomcat

2007-06-13 Thread Markus Schönhaber
Robert Koberg wrote: I don't know about konqueror, but Safari supports it. Safari does not have an interface to apply transformations with JS, however. And Opera does not support the document function. Though I tend not to like using a PI in the source XML to trigger the transform (can't

Re: Stess Test Software

2007-06-13 Thread Rob Kirkbride
Hi Will, If you're talking about load testing - we use grinder with lots of success. Writing scripts for this turned out to be a lot more cost effective than paying a company to load test. Rob Will Holmes wrote: Could anyone recommend some good stress test software for Tomcat. Thanks in

Re: Stess Test Software

2007-06-13 Thread David Delbecq
JMeter En l'instant précis du 13/06/07 15:05, Will Holmes s'exprimait en ces termes: Could anyone recommend some good stress test software for Tomcat. Thanks in advance! Will Holmes Programmer Analyst Fremont Insurance Company Ph: 231-924-0302 Ext. 145 E-Mail: [EMAIL PROTECTED]

how to populate userPrincipal in request object

2007-06-13 Thread shahab
Hi: Would you please let me know how can I set the userPrincipal in request Object. I am setting the Principal and roles in Subject (2 Principal object according to JAAS implementation). When i run the code in debugger, I see the Subject in reuqest null, also userPrincipal is null. Also,

Re: Stess Test Software

2007-06-13 Thread Martin Gainty
Will- You can also use unittestsgen which will automatically create the Junit tests based on the supplied folder http://wttools.sourceforge.net/unittestsgen/ It doesnt cover look and feel and or UI issues but covers the errors of NPE for Parameters sent in on stack etc.. M-- This email

Re: Help with tomcat 5.0.28 loadbalancing

2007-06-13 Thread Dwayne A. Ghant
Thanks Felix That seemed to be the problem. Who can resist typo's !!! lol When I say weird I mean that I changed both instances of the tomcat homes(12)/webapps/ROOT/index.jsp to read: Tomcat A = html body bgcolor=red center %= request.getSession().getId() %

Directory listings on a per-context level

2007-06-13 Thread lightbulb432
I've set listings to true on TOMCAT_BASE/conf/web.xml's DefaultServlet, but that allows directories to be seen for all contexts. Is there a way to set directory listings for certain contexts but not others? Thanks. -- View this message in context:

RE: Directory listings on a per-context level

2007-06-13 Thread Caldarale, Charles R
From: lightbulb432 [mailto:[EMAIL PROTECTED] Subject: Directory listings on a per-context level I've set listings to true on TOMCAT_BASE/conf/web.xml's DefaultServlet, but that allows directories to be seen for all contexts. Is there a way to set directory listings for certain contexts

Re: Stess Test Software

2007-06-13 Thread Carlos Avilan
i used badboy to create scripts and then used jmeter 2.2 from jakarta to run it... 2007/6/13, Will Holmes [EMAIL PROTECTED]: Could anyone recommend some good stress test software for Tomcat. Thanks in advance! Will Holmes Programmer Analyst Fremont Insurance Company Ph: 231-924-0302 Ext.

RE: Help with tomcat 5.0.28 loadbalancing

2007-06-13 Thread Caldarale, Charles R
From: Dwayne A. Ghant [mailto:[EMAIL PROTECTED] Subject: Re: Help with tomcat 5.0.28 loadbalancing When I say weird I mean that I changed both instances of the tomcat homes(12)/webapps/ROOT/index.jsp to read: Since I have changed both of them the old index.jsp file keep coming up as

Key store password via console

2007-06-13 Thread Moritz
Hi, I have defined a TLS connector, but I don't want to write the password for my key store in plain text into the server.xml file. Is it possible to enter the password via the console during startup? Or is there any other workaround? Thanks! Moritz

Stop deployOnStartup for only one webapp

2007-06-13 Thread Joseph Valerio
Hi Tomcat Users, We have a little application called Sakai that uses a custom class loader, much cross context communication and a bunch of other stuff that is non-standard. Since it is such a beast we are ModJK load balancing 6 tomcat machines. One of which is an administrative machine that

Re: Key store password via console

2007-06-13 Thread Moritz
I agree with you that only those userids that actually need to access the server.xml file should be able to read it. But still I think it's never a good idea to write a password in plain text in any file. If the password is stored in plain text and something goes wrong an attacker could be

Re: Key store password via console

2007-06-13 Thread David Wall
Moritz wrote: But still I think it's never a good idea to write a password in plain text in any file. If the password is stored in plain text and something goes wrong an attacker could be able to steal my private key and use it. And this would be really bad. Obviously, this depends on your web

Tomcat 6, SQL Server 2005 JDBC Realm not working

2007-06-13 Thread Richard Sayre
I have a web app that connects to my SQL Server 2005 Database with no trouble using this code: Class.forName(com.microsoft.sqlserver.jdbc.SQLServerDriver); con = DriverManager.getConnection(jdbc:sqlserver://server-2006;databaseName=v362;user=user;password=dbase); My application runs

Re: Comet: Unsufficiently synchronized recycling decisions

2007-06-13 Thread Filip Hanik - Dev Lists
Reich, Matthias wrote: Hello, I did not get any response on my post from 2 weeks ago. Even if non-recycling of request/response objects happens only sporadically and only in webapps where asynchronous responses may happen before the event processing has finished, it is definitively a bug.

RE: how to populate userPrincipal in request object

2007-06-13 Thread Mark Claassen
I am not sure what your exact situation here is, but the user certificate stuff is only available if Tomcat requests it. And Tomcat only does this if Tomcat is using certificate based SSL authentication. I don't believe this will work if an Apache webserver is handling the SSL negotiation. Mark

Re: how to populate userPrincipal in request object

2007-06-13 Thread shahab
Hi: I am trying to find out how to poulate the userPrincipal from HttpServletRequest. I have the following code to retrieve the principal - HttpServletRequest request = ServletActionContext.getRequest(); Principalprincipal = request.getUserPrincipal(); // get a Principal object My qn is to

Nio problems on OSX

2007-06-13 Thread Peter
Hi I'm trying to use the Nio connector with Tomcat 6.0.13 running with Java 1.5.0_07 on OSX 10.4.9. When trying to access port 8080 which was declared with the Nio connector I just get a blank response and see the following in catalina.out: Jun 13, 2007 10:47:02 AM

Deployment issues

2007-06-13 Thread Sumit Gupta
Hi, We have multiple applicaitons running on tomcat (24 x 7). Sometimes, the appications gets undeployed automaticaly without any changes. Can you please let me know the reason? Also, at times some applications does not work and we need to restart the Tomcat server to run those

Re: Nio problems on OSX

2007-06-13 Thread Filip Hanik - Dev Lists
documented here http://tomcat.apache.org/tomcat-6.0-doc/config/http.html -Djava.net.preferIPv4Stack=true Filip Peter wrote: Hi I'm trying to use the Nio connector with Tomcat 6.0.13 running with Java 1.5.0_07 on OSX 10.4.9. When trying to access port 8080 which was declared with the Nio

Re: Thread Pool

2007-06-13 Thread Filip Hanik - Dev Lists
you need to call start(), not run() Filip Siraj Haider wrote: Hello, Now I have changed my servlet. I have created a new class ResultFetcher extended by thread and now I am doing the checking part inside that Thread.run() method. and calling the new class like this : ResultFetcher

Re: Erratic HTTP response behavior

2007-06-13 Thread Len Popp
It's pretty obvious by now that no-one's going to be able to email you a solution to your problem, which seems unique or at least very unusual. You're going to have to dig deeply into this one yourself. Here's what I'd do, if it helps you any. I would track the problem requests from the browser

mod_jk along side mod_dir -- How to get PHP to be seen as a default page

2007-06-13 Thread Dan D.
Hello, First the versions: Apache : 1.3.33 Tomcat: 6.0.13 mod_jk: 1.2.23 I am currently working on upgrading our environment to a newer version of Tomcat and mod_jk, and seem to be running into an issue with mod_jk and mod_dir. More specifically, the issue I am running into is the default

Re: mod_jk along side mod_dir -- How to get PHP to be seen as a default page

2007-06-13 Thread Mark Thomas
Dan D. wrote: Hello, snip / When starting a new thread (ie sending a message to the list about a new topic) please do not reply to an existing message and change the subject line. This is known as thread hijacking and to many of the list archiving services and mail clients used by list

Re: how to populate userPrincipal in request object

2007-06-13 Thread Bill Barker
shahab [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi: I am trying to find out how to poulate the userPrincipal from HttpServletRequest. I have the following code to retrieve the principal - HttpServletRequest request = ServletActionContext.getRequest(); Principalprincipal

Re: Key store password via console

2007-06-13 Thread Bill Barker
Moritz [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I have defined a TLS connector, but I don't want to write the password for my key store in plain text into the server.xml file. Is it possible to enter the password via the console during startup? Or is there any other

Re: JSVC with JDK 6 on Intel Xenon x86_64

2007-06-13 Thread Bill Barker
Easiest is to symlink amd64 to i386. Second easiest is to edit Makefile and change the CPU variable to be i386 and recompile. You could also edit location.c and add the right path and recompile. ben short [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I'm trying to compile

Re: Erratic HTTP response behavior

2007-06-13 Thread Martin Gainty
if you are setting Transfer-encoding to 'chunked' as in response.setHeader( Transfer-Encoding, chunked); then read and follow these directives http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html Caveat Emptor! Martin- This email message and any files transmitted with it contain confidential

[CVE-2007-2449] Apache Tomcat XSS vulnerabilities in the JSP examples

2007-06-13 Thread Mark Thomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 CVE-2007-2449: Apache Tomcat XSS vulnerabilities in the JSP examples Severity: low (cross-site scripting) Vendor: The Apache Software Foundation Versions Affected: Tomcat 4.0.0 to 4.0.6 Tomcat 4.1.0 to 4.1.36 Tomcat 5.0.0 to 5.0.30 Tomcat 5.5.0 to

RE: Tomcat Server CPU utilization goes upto 400%

2007-06-13 Thread Sumit Gaikaiwari
There is an application deployed that refreshes after every 30 seconds. After every 30 seconds, it requeries database and fetches the data. This was a design requirement for this application. Generally large numbers of sessions of this application are running (450-500). Regards, Sumit

Re: Tomcat Server CPU utilization goes upto 400%

2007-06-13 Thread PTS
Sumit, Look at the design of the app. Is each session doing a query every 30 seconds? Also is the database on the same server? I had an app that was originally designed to be for a few users that each session hit the database. Due to the amount of processing of the data it had a snowball

Re: Erratic HTTP response behavior

2007-06-13 Thread Matt Cosentino
Thanks, I've been using Firebug to track the requests and responses from Firefox, which is how I found the strange chunked transfer encoding behavior. I'll try some of the other things you mentioned. - Original Message From: Len Popp [EMAIL PROTECTED] To: Tomcat Users List

Re: Erratic HTTP response behavior

2007-06-13 Thread Matt Cosentino
I'm not setting the transfer-encoding, but thanks. - Original Message From: Martin Gainty [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Wednesday, June 13, 2007 8:47:28 PM Subject: Re: Erratic HTTP response behavior if you are setting Transfer-encoding to