Re: Image Viewing

2003-12-12 Thread Erik Wright
How does an image get displayed in a page? 1. The browser receives an HTML page with an IMG tag in it. The IMG tag contains a src attr (an HTTP URL). 2. The browser makes another request, for the URL of the image. 3. The server returns the image, which is displayed. Clearly, if you want an

Re: Confusing - Compression 5.0.16 - Filter or connector???

2003-12-09 Thread Erik Wright
You will be compressing images?! :( Remember that most image formats - gif, jpeg, png, etc, are already compressed. In most cases compressing them again will only gain you 2-3% improvement if anything at all. So you will be spending time compressing for nothing. Notice that the

Re: [off-topic] jakarta, java, indonesia

2003-11-21 Thread Erik Wright
Jakarta is a major city on the island of Java... in addition to being capital of indonesia. The city of Jakarta was built on the island of Java. This is the kind of complex thinking that brought us product names like javabeans, kaffe, hotjava, espresso, etc... Who said geeks weren't creative?

Re: apache + tomcat + ssl + mod_rewrite

2003-11-10 Thread Erik Wright
If you really believe your mod_rewrite rule is properly configured to send *ALL* traffic to the same URL but via https then: I would double/triple check the access.log files to see if the request is actually getting served from the port 80 server. If I visit www.foo.com and then change the

Re: Severe notification ...

2003-11-04 Thread Erik Wright
Hi, I have had this problem exactly, and have been told that it is a bug in 4.1.24 to 4.1.27 that has been fixed in 4.1.29. Essentially, when working at or near the maximum connections (as defined in the Connector config in server.xml) some threads get permanently deadlocked or something. I

Re: Severe notification ...

2003-11-04 Thread Erik Wright
, November 4, 2003, at 02:45 PM, Erik Wright wrote: Hi, I have had this problem exactly, and have been told that it is a bug in 4.1.24 to 4.1.27 that has been fixed in 4.1.29. Essentially, when working at or near the maximum connections (as defined in the Connector config in server.xml) some

Re: HOW CAN I USE THREADS IN TOMCAT

2003-11-01 Thread Erik Wright
A servlet is just a Java class. You can do anything you can do with the java language, including start threads. The following starts a thread that runs some task every 10 minutes. The thread is started in the servlet init method. I choose to set the thread to daemon mode, meaning that when the

Re: instanceof drives me nuts!

2003-10-31 Thread Erik Wright
This is definitely due to the class being loaded twice in two different classloaders. An object's type is in fact not only its class name, but a combination of its class name and the class loader from which the class was loaded. Note that class loaders can be heirarchical, but if classloader A

Re: Opinions

2003-10-31 Thread Erik Wright
Francois, can you tell me more about this: Tomcat 4.1.27 bug when running at the MaxConnector limit I am certainly experiencing this problem and really banging my head against it. Is there documentation about this bug? What is your workaround? I was planning to make the MaxConnector limit

Re: generate images on the fly

2003-10-31 Thread Erik Wright
Of course, there is always java.awt. In order to write the images out, you need to use javax.imageio, which is included in recent JDKs and can write to a variety of formats. I use this combination to accept image uploads, determine their size, store them in a database, and then serve them back

Re: Tomcat + JK2 == Host (sous domaines) dynamiques ?

2003-10-31 Thread Erik Wright
Essayez [uri:*.monsite.com] i.e., sans pas (path en anglais) Aux documentations, on trouve: If the uri name doesn't have a slash then it is considered as a virtual host directive. ou, si le nom d'URI n'a pas une '/', c'est consideré comme directive d'hôte virtuel. Mais, la tienne a une '/',

Re: Windows freeze...

2003-10-28 Thread Erik Wright
Leo Larraquy wrote: Excuse me about not beeing happy with your response, I understand that your not the person who made Tomcat, but I really can`t understand why Linux doesn`t have these problem and Windows does. It's a problem with Windows and has nothing to do with Tomcat. More

Re: Windows freeze...

2003-10-28 Thread Erik Wright
I run my production server on Linux so I've never bothered to try, but a quick google search shows: http://www.mattkelli.com/tech/tomcat/ntservice.htm and http://web.bvu.edu/staff/david/tcservcfg/ -e Leo Larraquy wrote: I`ve never done that, that`s the a fine way to avoid the problem,

problems with JK2... does max_connections do anything?!

2003-10-25 Thread Erik Wright
Hi, I have found what appears to be a serious problem in JK2. Am I doing something wrong? I'm tracking down a problem wherein some requests get lost. At first I saw this when doing a large number of requests, but I was able to narrow the problem down to a situation that avoids memory issues.

Re: Content length

2003-10-24 Thread Erik Wright
Which connector are you using? I'm just theorizing here, but if it is a JK/JK2 AJP connector you may find that the reason it is cutting off the extra space is to avoid breaking the AJP protocol... Another option for you might be to put a proxy somewhere between client and server that can just

lost requests using mod_jk, tomcat 4.1.27

2003-10-22 Thread Erik Wright
Hello, I have tomcat set up to serve requests via mod_jk and apache. While testing using JMeter, I see strange behavior. If I make, say, 100 requests at 1 second intervals (on separate connections), 96 complete successfully, and the other 4 never return. In fact, the other 4 never make it to

Re: Un-authorized page 403

2003-10-22 Thread Erik Wright
Look closer, it's listed in the error message you provided. Cheers, -erik Thai Nguyen wrote: Thanks so much Shapira, The element I added in is error-page. This element does not exist in the element's list from the error message. I guess my question now is how do I add that element. Thanks,

manual deploy works, but manager deploy is defective

2002-12-18 Thread Erik Wright
Hello, I've been experiencing a strange problem with the Tomcat Manager tool. I've setup Ant to deploy my WAR via the supplied plugin, and created the appropriate manager user. When I run the task, the tool reports success, and I can see my application in the listing (both HTML and via Ant).