Apparent problem when adding commons jars to war

2005-10-18 Thread Paul Mahoney
This is very strange. When I add commons jars, e.g. commons-bean-utlis.jar, to my webapp lib directory, the webapp will no longer deploy to tomcat 5.5.12. Take the commons jars out (and restart tomcat) then the webapp will deploy. It won't run of course, because of the missing classes... I've

Re: classloader during tomcat startup

2005-10-18 Thread David Delbecq
I don't know from the details of tomcat implementation, but i'll response using common sense and from my experience. Tomcat loads all .jar descriptor at webapp startup so it know which .jar contains which class. But it does not load the .class binary content; Each time a class is required, a

disable transfer encoding chunked

2005-10-18 Thread Enrique Rodriguez
Can I disable transfer encodign chunked on tomcat 5.5.x? I read in tomcat docs that HTTPConnector on tomcat 4.1 has a property allowchunking, but i don't see anything on coyote and tomcat 5.5.x I use apache 2 as web server. Regards, Enrique.

Re: Multi-part response

2005-10-18 Thread ALEX HYDE
Cheers. I think I wanted to know how and if there was a good way of incororating mulitpart response into a framewrok like struts? Let's say I have a page with a number of src tags embeded in it, and I don't want the browser to have to pull in each image individually, how could I write them all

Re: Multi-part response

2005-10-18 Thread David Delbecq
Hi Alex, You should take a look at http protocol ftp://ftp.isi.edu/in-notes/rfc2616.txt And point out what part of the specs you need to manage. As far as i know, there is no way in the http protocol to embed binary content straight into the stream, and certainly not in the middle of the html

Character Encoding -ISo-8859-1 Vs UTF-8 Vs GBK

2005-10-18 Thread birendar . waldiya
Hi, I am trying to read the universal charater form a text file to my java application that stores them in database. When I use encoding type GBK i can read all special charater in chinease, when i use encoding ISO-8859-1 i can read latin but not chinease , but whn i use encoding as UTF-8 i

RE: Multi-part response

2005-10-18 Thread ALEX HYDE
Okay. Thanks for that guys. I guess I was being a bit optimistic. So images basically can't be written straight to the response? Thanks alot for that both of you. --- Peter Bright [EMAIL PROTECTED] wrote: Will a browser accept unsolicited images? Until the browser has parsed the HTML it

Re: Multi-part response

2005-10-18 Thread Jon Wingfield
If the browser supports it you would send the whole page in one multipart response a bit like a mail message. Here's one way to do it: So, you'd have to buffer the response. Then create a javax.mail.internet.MimeMultipart and add BodyParts (javax.mail.internet.MimeBodyPart) for the html and

Re: Tomcat upgrade

2005-10-18 Thread Tim Funk
If its not broke - why upgrade? But if your app is still being actively developed - it may encounter issues/bugs which may be fixed with the currect (or future) version of tomcat. That being said - you still have the source to patch it yourself (if you are comfortable with that) -Tim

Re: Character Encoding -ISo-8859-1 Vs UTF-8 Vs GBK

2005-10-18 Thread afonseca
Hi, In Europe we have lots of languages. I don't think it's true that UTF-8 can handle european character very well.There is a list in the net (I don't know here) with the other ISO encoding for other languages. AF Citando David Delbecq [EMAIL PROTECTED]: Hi, UTF-8 can handle european

Re: Character Encoding -ISo-8859-1 Vs UTF-8 Vs GBK

2005-10-18 Thread David Delbecq
UTF-8 (8-bit Unicode Transformation Format) is a lossless, variable-length character encoding for Unicode created by Ken Thompson and Rob Pike. It uses groups of bytes to represent the Unicode standard for the alphabets of many of the world's languages. UTF-8 is especially useful for transmission

Debugging Tomcat hangs

2005-10-18 Thread David Boyer
We're running Tomcat 5.0.28 with JDK 1.4.2_8 hosting a single commercial web application on our web server which uses MySQL 4.0.26 running on another server. Both servers are Windows 2003 Enterprise, 2x3.0GHz XEON, 4GB RAM. Our Tomcat instance is dedicated to the commercial web app, and the

Re: Debugging Tomcat hangs

2005-10-18 Thread Leon Rosenberg
can you port your application to linux where kill -quit given you complete stacktrace? Unfortunately I don't know how to create full stack trace under windows, but you'd need it definitely. Have you tried the manager? It could show you the servlets/actions/whatever which hangs. Probably you have

Re: Debugging Tomcat hangs

2005-10-18 Thread David Delbecq
One stupid suggestion is to run the tomcat inside an environment like eclipse with an eclipse plugin like sysdeo. Then stress the webapplication. When, it 'hangs' issue a 'pause' inside the tomcat jvm, and explore the various threads. Search for 2 kinds of locks: - non returning http-thread

RE: Debugging Tomcat hangs

2005-10-18 Thread Robert Graf-Waczenski
If I generate a dump of the JVM using Ctrl-Break while running Tomcat as a console app, what's the best resource for interpreting this? I suspect the problem is a thread deadlock, or something similar. This tells us that you succeed in getting a JVM thread dump and you are asking for help

RE: Debugging Tomcat hangs

2005-10-18 Thread David Boyer
I understand synchronization and deadlocks. I'm just looking for some guidance. (1) Based on the problem I've described, is an analysis of a JVM thread dump a good next step for diagnosing the hang, or else what would be and (2) are there any resources that would be helpful with that analysis

RE: Character Encoding -ISo-8859-1 Vs UTF-8 Vs GBK

2005-10-18 Thread afonseca
Sorry, my mistake! I thought we were speaking about something else... AF Citando Peter Crowther [EMAIL PROTECTED]: From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] I don't think it's true that UTF-8 can handle ALL european character very well. If it can't, the Unicode consortium

Re: Debugging Tomcat hangs

2005-10-18 Thread Leon Rosenberg
On 10/18/05, David Boyer [EMAIL PROTECTED] wrote: (2) are there any resources that would be helpful with that analysis (e.g. something that I can use as a tutorial for understanding everything the dump contains). Take a look at: http://issues.apache.org/bugzilla/show_bug.cgi?id=36541 We had

RE: Debugging Tomcat hangs

2005-10-18 Thread Robert Graf-Waczenski
OK. Well, feel free to attach your stack dump then. Some curious soul (including myself if i had the time) may either see the problem immediately or use your own stack trace to guide you through it. Robert -Original Message- From: David Boyer [mailto:[EMAIL PROTECTED] Sent: Tuesday,

Re: Is it even possible to retrieve a custom user principal? (Was: Tomcat user principal)

2005-10-18 Thread Brad O'Hearne
Mark, Thanks for the response. In the code below, are you manually calling JAAS, rather than via the j_security_check mechanism? The proper way to access the authentication mechanism in Tomcat is to post to j_security_check from a login form -- I wasn't sure from your post below whether

RE: Is it even possible to retrieve a custom user principal? (Was: Tomcat user principal)

2005-10-18 Thread LORESERVO.COM
-Mensaje original- De: Brad O'Hearne [mailto:[EMAIL PROTECTED] Enviado el: Martes, 18 de Octubre de 2005 09:31 a.m. Para: Tomcat Users List Asunto: Re: Is it even possible to retrieve a custom user principal? (Was: Tomcat user principal) Mark, Thanks for the response. In the code

loading pdf hangs after around 300000 regeusts

2005-10-18 Thread Steve Gaunt
Hi I am using jboss 4,01, which is uses tomcat 5. WE have a web server(IIS) and use jk2 as the connection to the backend server(jboss 4,01). I have a web app mapped to a network drive to serve static pdf and html files. This uses tomcat because of authentication purposes(one of these reasons is

BSF patch for Tomcat

2005-10-18 Thread Norman Barker
Hi, I am looking to use BSF so that I can write JSPs in languages other than Java. However according to the BSF website I need to patch Jasper, however it doesn't actually tell you how to do this! Can anyone point me in the direction of the patch, or the instructions on how to do it. Many

Re: Is it even possible to retrieve a custom user principal? (Was: Tomcat user principal)

2005-10-18 Thread Brad O'Hearne
Mark, Thanks so much for your help. That is very enlightening, and I'll consider doing the same, depending on whether I get a response about this from my post on the Tomcat dev mailing list. One complication of mine is that I've implemented single-signon, and need that behavior as well. I

RE: Is it even possible to retrieve a custom user principal? (Was: Tomcat user principal)

2005-10-18 Thread Mark Benussi
Oh dear. Now you're asking my friend. You are now going to have highlighted to you my ignorance in running my own businesses and learning as I go along. I 'think' you mean with the Container Managed Security stuff like defining roles and paths that are locked down in your web.xml? I can't say

Re: hacking the tomcat DefaultServlet

2005-10-18 Thread Maurice Yarrow
Tim I *LIKE* this idea. Yes! And it simply does an endrun around my machinations here. But, actually, I have a question. For this to work for me, it would have to be the case that this filter is in front of the tomcat DefaultServlet. Which means that filter and filter-mapping elements need

Re: tomcat caching issue

2005-10-18 Thread Santosh Asbe
Hi , Well we have log4j and debugging in our code. We thought the singleton might be an issue. so we tried the following without the singleton. we made a single servlet call without the singleton.We make a remote call to Websphere Application Server ( on AIX) using corbaloc like

Re: Tomcat upgrade

2005-10-18 Thread Santosh Asbe
Thanks for the info. Santosh On 10/18/05, Tim Funk [EMAIL PROTECTED] wrote: If its not broke - why upgrade? But if your app is still being actively developed - it may encounter issues/bugs which may be fixed with the currect (or future) version of tomcat. That being said - you still have

tomcat hangs

2005-10-18 Thread Santosh Asbe
Hi all, I am also facing an issue with tomcat 4.1.30 on RHEL 3.0. After few days my server doesnot respond to any request. When i check the process id, it is running. But when i try to shutdown the tomcat , it doesnot stop. the process id still exists So i kill -9 the PID and the start the

RE: Problems with web.xml generated from RAD and from Ecplise.

2005-10-18 Thread Richard Mixon
I'm pretty familiar with Tomcat, but have no idea what RAD is and how its Tomcat related. If you explain that someone might be able to better help. -Original Message- From: Developer Developer [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 18, 2005 8:59 AM To: Tomcat Users List

Re: Problems with web.xml generated from RAD and from Ecplise.

2005-10-18 Thread Wendy Smoak
From: Richard Mixon [EMAIL PROTECTED] I'm pretty familiar with Tomcat, but have no idea what RAD is and how its Tomcat related. If you explain that someone might be able to better help. Rational Application Developer, I assume. The problem seems to be here: web-app id=WebApp_ID version=2.2