RE: Images caching

2006-01-16 Thread Bello Martinez Sergio
Hi Rob Gregory, I would thank a lot those code examples about setting headers with filters. I've read a lot about this problem yesterday and I've discovered that there are a problem with IE6 images caching, so I'm very interested in the workaround you've suggested. Thanks a lot (thanks to Alex Hy

Re: Classloaders for 'shared' and 'common' cannot load class-data from server?

2006-01-16 Thread Ken Johanson
Rob Gregory wrote: Obvious question but have you tried placing your required jar in common/endorsed? Regards Rob I tried that, (leaving a copy of the jar in some of the directories to be sure it was available), but the server would exit writing to stderr.log: java.lang.reflect.InvocationTa

RE: UTF-8 JavaScript and HTML Files

2006-01-16 Thread Caldarale, Charles R
> From: Erik Onnen [mailto:[EMAIL PROTECTED] > Subject: UTF-8 JavaScript and HTML Files > > 1) Not using APR, sendfile should not be an issue > 2) My locale is set: "export LC_ALL=en_US.utf8" > 3) File encoding is set for the JDK: "-Dfile.encoding=UTF-8" > 4) contextDefaultEncoding is set to "UTF

RE: Hibernate debugging problem in Tomcat 5.5.12

2006-01-16 Thread Rob Gregory
What is your development environment? I use Eclipse (EXCELLENT bit of software on par with Tomcat) and this allows me to even debug Tomcat code when required. Rob -Original Message- From: Behrang Saeedzadeh [mailto:[EMAIL PROTECTED] Sent: 16 January 2006 23:50 To: Tomcat Users List Subje

RE: Images caching

2006-01-16 Thread Rob Gregory
Hey Guys, We had the exact same issue when last tested for performance and even thou the image had not changed the webapp made a request back to the server to check... I resolved this by setting headers on the images when they were originally served up by Tomcat (using a servlet filter). I can pos

Dynamic Datasource Configuration - JNDI read only context

2006-01-16 Thread Rob Gregory
Hi Guys and thanks in advance for any pointers. I am running Tomcat 5.5.9 and would like to remove the need to specify database configuration details within the context.xml file e.g. I need to provide (apache commons db) datasources 'on the fly' and after trying every thing I can thi

UTF-8 JavaScript and HTML Files

2006-01-16 Thread Erik Onnen
All, I'm experiencing irregularities with Tomcat serving JavaScript and HTML files on a certain platform, various Google searches and tricks haven't managed to change the behavior. This behavior has been confirmed on 5.0.28, 5.5.15 and 5.5.15, all running on JDK 1.5.05-b05, SUSE 10. I've als

RE: Classloaders for 'shared' and 'common' cannot load class-data from server?

2006-01-16 Thread Rob Gregory
Obvious question but have you tried placing your required jar in common/endorsed? Regards Rob -Original Message- From: Ken Johanson [mailto:[EMAIL PROTECTED] Sent: 16 January 2006 22:59 To: Tomcat Users List Subject: Classloaders for 'shared' and 'common' cannot load class-data from serv

Hibernate debugging problem in Tomcat 5.5.12

2006-01-16 Thread Behrang Saeedzadeh
Hi all, When I want to debug my Hibernate 3.1/WebWork 2.1.7 Web app (which is deployed into Tomcat) with IDEA, when I add Hibernate related classes to the watches, I cannot inspect them and instead I see a red message reading: "Debug info unavailable..." Does anybody know what's possibly causing t

Re: Images caching

2006-01-16 Thread ALEX HYDE
Hey Bello, I'm fairly new to this but don't mind putting my two pence worth in. I'm not that sure about the client side but I've heard mention of something called Squid which can cache static content quite well and would sit as a proxy in front of Tomcat. Gluck --- Bello Martinez Sergio <[EM

RE: I can't install TomCat in my computer

2006-01-16 Thread Patricio
In logs folder of Tomcat 5.5 I have this messages: java.lang.NoClassDefFoundError: start Exception in thread "main" java.lang.NoClassDefFoundError: start Exception in thread "main" java.lang.NoClassDefFoundError: start Exception in thread "main" java.lang.NoClassDefFoundError: start Exception i

RE: I can't install TomCat in my computer

2006-01-16 Thread Patricio
This is the message I received when I tried to start Tomcat: The Apache Tomcat 4.1 service on Local Computer started and then stopped. Some services stop automatically if they have no work to do, for example, the Performance Logs and Alerts service. I have two files in Logs dir. They were attached

Classloaders for 'shared' and 'common' cannot load class-data from server?

2006-01-16 Thread Ken Johanson
Hello, I'm building some utility wrappers for Tomcat (using 5.0.30 in this case). Since they need to be accessed by all webapps, I'm placing their jars in shared/lib (I also even tried common/lib to resolve the problem below). These jars reference classes in org.apache.catalina.* ('ServerFac

Re: Catalina Startup Error: Socket bind failed: 730048

2006-01-16 Thread Markus Schönhaber
Joe Reger, Jr. wrote: > Hi! I've been getting a bind error lately on Windows XP development > instances using Tomcat 5.5.12. It looks like the web connector is > trying to bind to port 730048 but I have it set to port 8080 in > server.xml. I've searched my config files and don't see 730048 > any

RE: Embedded intance and server.xml

2006-01-16 Thread Claudio Sanchez
Thanks Sriram, I've already done that and it's working fine. Now, the only problem that I have is I don't know how to configure digester so that a rule is not executed until another rule is executed. My english is bad but I think an example is better :) I ve done some minor changes to rules in pa

Images caching

2006-01-16 Thread Bello Martinez Sergio
Hi all, I have a web application in Tomcat 5.0 (standalone) that does image swapping for some mouse events. My problem is that IE does a GET request everytime I change an image's src atribute. No matter if I preload all document images with imgX=new Image(); imgX.src = '...', the browser always re

Re: I can't install TomCat in my computer

2006-01-16 Thread andy gordon
There is a logs directory under your main tomcat directory and look at the log files and see if there is an message that describes the problem. There likely is. Have you looked at the setup instructions on the tomcat website? Patricio Silva <[EMAIL PROTECTED]> wrote: I tried TomCat 4.1 and 5.*

Re: I can't install TomCat in my computer

2006-01-16 Thread Patricio Silva
I tried TomCat 4.1 and 5.* .I tried too a version without installer, that you have to go to dos prompt and type startup.bat in bin directory I guess it is 5.0.28 or something. I'm sorry but I'm a dummy in tomcat, what are you meaning when you said "What does the log say?"Thanks 2006/1/16, andy go

FW: Extending PersistentValve ?

2006-01-16 Thread Gary Blomquist
I can't use SimpleTcpCluster because I am not permitted to use multicast on our network. Gary -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Yoav Shapira Sent: Monday, January 16, 2006 2:34 PM To: Tomcat Developers List Subject: Re: Extending Persisten

Re: Embedded intance and server.xml

2006-01-16 Thread Sriram Narayanan
On 1/17/06, Claudio Sanchez <[EMAIL PROTECTED]> wrote: > Hi, > I want to configure an embedded server using an external configuration file. > Is there a way to configure an Embedded server instance using server.xml? > server.xml is digested. You can easily do something like this yourself by just c

How do you programmatically determine Tomcat Version

2006-01-16 Thread andy gordon
All, Is there are way to determine the version of tomcat that is running from an application that is connecting to tomcat via JSR 160 on a local machine. I would like to be able to find the tomcat version from an MBean if possible. Thank you - andy gordon

Re: Question regarding tomcat class path handling

2006-01-16 Thread Sriram Narayanan
On 1/12/06, Oded Arbel <[EMAIL PROTECTED]> wrote: > On Wednesday, 11 בJanuary 2006 18:38, Sriram Narayanan wrote: > > I wrote something that works for me: > > http://issues.apache.org/bugzilla/show_bug.cgi?id=38223 > > Thanks. I didn't use your implementation for the reason noted in the > comment I

Embedded intance and server.xml

2006-01-16 Thread Claudio Sanchez
Hi, I want to configure an embedded server using an external configuration file. Is there a way to configure an Embedded server instance using server.xml? Thanks, Claudio

Re: I can't install TomCat in my computer

2006-01-16 Thread andy gordon
What does the log say? Which version are you running? Patricio Silva <[EMAIL PROTECTED]> wrote: Hi, I installed TomCat in my pc but it can't get started. I receive a message "TomCat started but stopped.Some services do it when they don't have anything to do in system" or something like that. May

I can't install TomCat in my computer

2006-01-16 Thread Patricio Silva
Hi, I installed TomCat in my pc but it can't get started. I receive a message "TomCat started but stopped.Some services do it when they don't have anything to do in system" or something like that. May you help me? -- Obrigado. Patricio.

Re: forwarding JDOM-Objects

2006-01-16 Thread Christian Stalp
Im still hanging on this problem: The calling servlet receives data from the web-interface and builds a JDOM-object call mydoc. Then I build a ServletContext-object and put the JDOM-object into it: ServletContext con = this.getServletContext(); con.setAttribute("jdom_object",mydoc); //

RE: Catalina Startup Error: Socket bind failed: 730048

2006-01-16 Thread Caldarale, Charles R
> From: Joe Reger, Jr. [mailto:[EMAIL PROTECTED] > Subject: Catalina Startup Error: Socket bind failed: 730048 > > It looks like the web connector is trying to bind to port > 730048 but I have it set to port 8080 in server.xml. I've > searched my config files and don't see 730048 anywhere. AFAI

Re: Alternative Realm impl. that supports: boolean authenticate(String user, String pass) or void doLogin(Prinicipal p)?

2006-01-16 Thread Ken Johanson
Nicholas Irving wrote: What class is that? I cannot find it in any of the classes I have available? I am using 5.0.28, so perhaps this is a 5.5.x thing? -Original Message- From: Ken Johanson [mailto:[EMAIL PROTECTED] Sent: Monday, 16 January 2006 6:54 AM To: Tomcat Users List Cc: [EMA

Re: Strange Authentication Behavior

2006-01-16 Thread Leonardo Kenji Shikida
two curious things about this 1) firefox 1.5 did not solved my problem 2) re-deploying it into a new webapps directory (instead of the default ROOT I was using before) solved my problem good luck Peter regards Kenji On 1/16/06, Leonardo Kenji Shikida <[EMAIL PROTECTED]> wrote: > Hi Peter > >

Catalina Startup Error: Socket bind failed: 730048

2006-01-16 Thread Joe Reger, Jr.
Hi! I've been getting a bind error lately on Windows XP development instances using Tomcat 5.5.12. It looks like the web connector is trying to bind to port 730048 but I have it set to port 8080 in server.xml. I've searched my config files and don't see 730048 anywhere. On one of the dev boxes

jk2 BufferOverflow error

2006-01-16 Thread Chris Mooring
Hi All, We are having trouble getting our web connector set up so that it is stable. We have managed to set it up OK on a couple of sites with slightly different configurations, but on our new production server, it seems to be unstable and fail quite frequently. Sometimes when we go to hit one o

Re: Strange Authentication Behavior

2006-01-16 Thread Leonardo Kenji Shikida
Hi Peter The same problem is happening to me I am using tomcat 4.1.30, it's configured like this 1) server.xml is configured like this and I commented the default memory realm 2) I've created the database tables correctly and the authentication seems to be working, since I get the fo

RE: File upload issue

2006-01-16 Thread Abh N
You are correct. I probably should not have posted this question here. I was just in a hope that if anybody have worked on multiple platform and are aware of known issue might be able to help me. "Caldarale, Charles R" <[EMAIL PROTECTED]> wrote: > From: Abh N [mailto:[EMAIL PROTECTED] > Sub

RE: File upload issue

2006-01-16 Thread Caldarale, Charles R
> From: Abh N [mailto:[EMAIL PROTECTED] > Subject: File upload issue > > We are migrating our application from Tomcat to Webshpere > environment. It seems odd to me to ask about how to move away from a product on that product's mailing list. Shouldn't you be asking for help on a WebSphere

Re: Jsvc memory management experiences

2006-01-16 Thread Philipp Jäggi
Hi Marco What are your JAVA_OPTS? If the -Xms and the Xmx values are not set, it's clear. Normally, from my experience, when you specify Xmx, tomcat stops to allocate more and more memory. But activate the verbose garbage collection. If the garbage collection is alway very quick and tomcat col

weird behaviour when loading images

2006-01-16 Thread Cristian
Hello, I have a problem with a tomcat 5.5.12 using jre 1.5.0_06 on a FC4 system (kernel 2.6 latest update). There are huge delays when loading images(and they are corrupted when displayed in the browser) or they are not loaded at all. The same tomcat works correctly on a FC1 system using kernel

Re: Jsvc memory management experiences

2006-01-16 Thread Marco Rossi
For performance reasons, Tomcat tends to hold onto the memory that it allocates, and reuses it. Interesting enough: but when memory is needed no more, shoud it be collected out and brought it back to the system as available memory, or is is a normal situation that memory once obtained is never

Re: need help to get Realm information in Tomcat

2006-01-16 Thread Amila Suriarachchi
hi, i am not familiar with the method u have used. but try to access the resource in noramal way we acess the resources. 1. put an resource reference to ur web.xml as follows. ( change the type and name) DB Connection jdbc/TestDB javax.sql.DataSource Container 2. then