Caching static content - Bug in Filter implementation?

2005-07-07 Thread juergen . dufner
Hello I do some further analysis in this problem and got following result: Precondition: The filter manipulates the HTTP header when returning a static resource (e.g. image). HTTP 200 In case of a HTTP 200 (OK) result the header is not added when the doFilter method is like following:

Apache + Tomcat with Mod_jk

2005-07-07 Thread Shailendra Gatade
Hi All, I am trying to connect Apache 2 ( Linux ) with Tomcat 5.0 ( Win2K ) using mod_jk. I'm facing several problems regarding this ... Initially i was using mod_jk2.so which is deprecated and also not recomended for Production Environment. I am not able to find the proper mod_jk.so for

RE: Apache + Tomcat with Mod_jk

2005-07-07 Thread Toshio SUGAHARA
Hi Shailendra, What your Apache MPM are you using? I think you should use JK_module that accord with Apcahe MPM. Thanks, -Toshio -Original Message- From: Shailendra Gatade [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 06, 2005 11:25 PM To: tomcat-user@jakarta.apache.org

EL not working...

2005-07-07 Thread Richard Reyes
Hello Guys, EL is not working under tomcat 4. how can i make it work? Please help Thanks Richard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: EL not working...

2005-07-07 Thread Allistair Crossley
EL comes with the Servlet 2.4 spec which is supported in Tomcat 5x. I believe you may be able to get EL like behaviour with the Struts-EL taglib, but you won't get it out of the box on Tomcat 4. Allistair. -Original Message- From: Richard Reyes [mailto:[EMAIL PROTECTED] Sent: 07

Re: Tomcat 5.5.9 and log4j problem

2005-07-07 Thread Jørgen Nørgaard
In appears that bin/catalina.sh does not add these directories to the initial classpath. Therefore neither jar file, nor configuration is found during start. Adding common/classes to classpath in catalina.sh and putting the jar files to the jvm lib is one way to solve the problem. Jørgen

Re: EL not working...

2005-07-07 Thread Richard Reyes
Hi Guys/Allistair, I got this code . bean:cookie name=%= Konstants.COOKIE_USERNAME % id=username/ . . . td align=lefthtml:text property=usernamesize=15 value=${username.value} //td Any suggestions how to access the cookie value? Thanks Richard On 7/7/05, Allistair Crossley [EMAIL

Multi-click from the same user

2005-07-07 Thread Antonio PAROLINI
Hello, We have a Struts intranet-web site running under tomcat 4.1.24. Some of the application function are pretty slow ( more than 10 secondes), and sometime users get mad and click 10 times on the same button. Tomcat raise 10 thread and on such slow operation, the server can get very slowed

RE: EL not working...

2005-07-07 Thread Allistair Crossley
Yes it will be in pageContext, so %= pageContext.getAttribute(username) % Hi Guys/Allistair, I got this code . bean:cookie name=%= Konstants.COOKIE_USERNAME % id=username/ . . . td align=lefthtml:text property=usernamesize=15 value=${username.value} //td Any suggestions how

Re: Caching static content - Bug in Filter implementation?

2005-07-07 Thread Jon Wingfield
I think that's expected behaviour: You can't set headers after the response has been committed (more body data has been written to the outputstream than the buffer size). In the case of the 200 response code the call to filterChain.doFilter(...) actually serves the content. Setting of the

RE: Multi-click from the same user

2005-07-07 Thread Allistair Crossley
Your idea sounds like it makes sense but I can see that you may have trouble, since even if you can identify a duplicate request, you will have lost (I think) the request/response link on each subsequent click of the button (which generates unique requests). I do not think you'd be able to

Re: Multi-click from the same user

2005-07-07 Thread Mikolaj Rydzewski
Antonio PAROLINI wrote: Aside of javascript solutions ( blocking the button to be clicked twice), is there a tomcat configuration solution for this probleme ? You can use session context to store information that request is being processed by another thread and return quickly after another

Re: EL not working...

2005-07-07 Thread Richard Reyes
Thanks Allistair, But it throws an error... E:\LABDRIVE\jakarta-tomcat-5.0.28\work\Catalina\localhost\wds-ap\org\apache\jsp\bigler\serverpages\login_jsp.java:237: cannot resolve symbol symbol : method setValue (java.lang.Object) location: class org.apache.struts.taglib.html.TextTag

Re: EL not working...

2005-07-07 Thread Richard Reyes
Hi Allistair, This is the value of [EMAIL PROTECTED] %= pageContext.getAttribute(username) % On 7/7/05, Richard Reyes [EMAIL PROTECTED] wrote: Thanks Allistair, But it throws an error...

Re: error messages during tomcat 4.1 startup

2005-07-07 Thread Jon Wingfield
It looks like your web.xml DOCTYPE definition is either missing or incorrect. Digester is using a validating parser and so barfs. Review your web.xml document(s). Jon Tewari,kuldeep wrote: Hi, I am getting following messages during tomcat 4.1 startup. What could be the cause? Jul 7, 2005

RE: EL not working...

2005-07-07 Thread Allistair Crossley
Hi, I've just checked the bean taglib api and id is the page scope variable name that the cookie value gets put into, therefore bean:cookie name=%= Konstants.COOKIE_USERNAME % id=username / %= pageContext.getAttribute(username) % Really ought to be doing the job :) -Original

Re: Multi-click from the same user

2005-07-07 Thread Hemi Taka
Try googling RequestControlFilter. You may be able to modify the code and check for a matching request from the sessionor use it as is...this may work for you. H - Original Message - From: Antonio PAROLINI [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Thursday, July 07,

init-params from web.xml not come in right order

2005-07-07 Thread Sallo Laszlo
Hi, I am using tomcat 4.1.30. I introduced some init-params and I need them in the same order as in web.xml. Right now I am getting in an arbitrary order with : Enumeration urlPatternEnum = filterConfig.getInitParameterNames(); How can I fix this ? Is a higher version of tomcat

Re: init-params from web.xml not come in right order

2005-07-07 Thread Mikolaj Rydzewski
Sallo Laszlo wrote: I introduced some init-params and I need them in the same order as in web.xml. Why do you need them this way? I would use another parameter, let's say params-list, with ordered list of other parameters' names, i.e.: param nameparams-list/name valueparam1,

RE: init-params from web.xml not come in right order

2005-07-07 Thread Sallo Laszlo
Hi, Unfortunately this is not what I need. My list is like : init-param param-name/index.jsp/param-name param-valuenone/param-value /init-param init-param

Re: init-params from web.xml not come in right order

2005-07-07 Thread Mikolaj Rydzewski
Sallo Laszlo wrote: Unfortunately this is not what I need. My list is like : init-param param-name/index.jsp/param-name param-valuenone/param-value /init-param init-param

Rép. : Re: Multi-click from the sam e user

2005-07-07 Thread Antonio PAROLINI
Yes, this is definitively interresting, even though I am looking for a lower-level solution (HttpConnector and Tomcat thread managment level). I will be always surprised with all we can acheave with of sevlets filters... The beaviour proposed by this filter gets pretty close to my wishes, but I

2 apps

2005-07-07 Thread Sergey Livanov
I have 2 applications. The first is to be allowed from internet, the second is to enter data. Two apps are in the webapps. How can I configure tomcat to make cms unvisible from outside. -- regards, Sergey mailto:[EMAIL PROTECTED]

Re: UK tomcat hosting recommendations?

2005-07-07 Thread Mark Benussi
Julian, Interesting that you recomend nameonthe.net. They have been down since Tuesday morning and none of my customers who host with them are recieveing e-mail or have access to their sites. They have not called me all week and I had to drive to their listed company address to speak to

Rép. : RE: Multi-click from the sam e user

2005-07-07 Thread Antonio PAROLINI
Allistair, I have the same doubts you have... if the filter solution is not enough, I'll try to dig deeper into the tomcat source to find out... Antonio [EMAIL PROTECTED] 07/07 11:16 Your idea sounds like it makes sense but I can see that you may have trouble, since even if you can identify

Re: 2 apps

2005-07-07 Thread Tim Funk
The safest way is to run 2 instances of tomcat on the device. Once instance runs on port 80 for the world to see. Then a firewall can block all access to any other port from the outside. The other instance runs on a high port for internal use. Otherwise, look at RemoteAddressValve:

Re: UK tomcat hosting recommendations?

2005-07-07 Thread Oscar Mechanic
I use webhost.ie They are in Ireland I am in the UK but the service is second to none for me. On Thu, 2005-07-07 at 14:25 +, Mark Benussi wrote: Julian, Interesting that you recomend nameonthe.net. They have been down since Tuesday morning and none of my customers who host with them

RE: 2 apps

2005-07-07 Thread Peter Crowther
From: Sergey Livanov [mailto:[EMAIL PROTECTED] I have 2 applications. The first is to be allowed from internet, the second is to enter data. Two apps are in the webapps. How can I configure tomcat to make cms unvisible from outside. At least: 1) Use a filter or valve to examine the IP

RE: Multi-click from the same user

2005-07-07 Thread Mark
how about this: http://java.sun.com/developer/EJTechTips/2003/tt0114.html Mark. --- Allistair Crossley [EMAIL PROTECTED] wrote: Your idea sounds like it makes sense but I can see that you may have trouble, since even if you can identify a duplicate request, you will have lost (I think) the

RE: Rép. : RE: Multi-click from the same user

2005-07-07 Thread Allistair Crossley
The common way that this is achieved is similar to the previous poster. When a user clicks the button, you would actually move them to another page straightaway that spawns the 1 request thread and makes it very clear not to refresh the page. This is the strategy you can see with online booking

Make webapp jars downloadable

2005-07-07 Thread Andrea Aime
Hi, I have the following problem: I'm deploying a web app that exposes web services and allows the client to install a web started client. Now, the client and the web application share a lot of jars, so I would like to make the jars in web-inf/lib downloadable, so that the web start can access

RE: Make webapp jars downloadable

2005-07-07 Thread Peter Crowther
From: Andrea Aime [mailto:[EMAIL PROTECTED] Now, the client and the web application share a lot of jars, so I would like to make the jars in web-inf/lib downloadable, so that the web start can access them. At the moment I've put the jars both in web-inf/lib and in the root, but this

RE: UK tomcat hosting recommendations?

2005-07-07 Thread Mark Benussi
I don't see any mention of their Tomcat support? I said that I needed Tomcat support without having to install it myself -Original Message- From: Oscar Mechanic [mailto:[EMAIL PROTECTED] Sent: 07 July 2005 15:33 To: Tomcat Users List Cc: [EMAIL PROTECTED] Subject: Re: UK tomcat hosting

handling of requests over AJP 1.3

2005-07-07 Thread simdis
Hello everyone, i'd like to develop an independent connector based on TCP following the AJP 1.3 case. I'd like to know if AJP 1.3 handles requests sent from a generic client as http 1.1. Does it forward the requests to a servlet?Does it works in the same logic of HTTP 1.1? Thanks in advance

Re: handling of requests over AJP 1.3

2005-07-07 Thread Mladen Turk
[EMAIL PROTECTED] wrote: Hello everyone, i'd like to develop an independent connector based on TCP following the AJP 1.3 case. I wish you all the luck ;) I'd like to know if AJP 1.3 handles requests sent from a generic client as http 1.1. No. Does it forward the requests to a servlet?

Re: Make webapp jars downloadable

2005-07-07 Thread Christoph Kutzinski
Write a Servlet that streams the JAR content to the Webstart clients and point to the servlet in the JNLP files. Andrea Aime wrote: Hi, I have the following problem: I'm deploying a web app that exposes web services and allows the client to install a web started client. Now, the client and

RE: Rép. : RE: Multi-click from the same user

2005-07-07 Thread Antonio PAROLINI
Hello, The previous poster (Mark) gives a solution where the server is no longer overloaded, but the second click makes the browser loose the result of the first click... Your proposal is the standard javascript solution, where you act on the GUI to avoid mutli-click. Maybe I should pick

Turning off jsessionid on URL?

2005-07-07 Thread William Stranathan
Is there a configuration parameter to ONLY send the jsessionid by cookie, not on the URL bar? Picture this, user goes to your site http://www.yoursite.com/yourapp yoursite redirects to the menu page, which gives a jsessionid. That page is under an auth-constraint and requires login, so you get

RE: Rép. : RE: Multi-click from the same user

2005-07-07 Thread Maarten Janssen
another solution... make two layers...one for the form and one (waitlayer) with a text or image with something like system is busy. after submit hide the layer of the form (and so also the buttons) and show the waitlayer. So one request is only possible. regards, Maarten -Oorspronkelijk

Swing (JFC) in JSP example sought

2005-07-07 Thread Christoph P. Kukulies
I need to edit a server side file in a browser window. I'm thinking of putting some EditorPanel or something out of the JFC into a JSP. Anyone knowing of an example showing this. And where to put the swing.jar or whatever files required ? -- Chris Christoph P. U. Kukulies kuku_at_kukulies.org

OS X.3.8 Server help...

2005-07-07 Thread Martin Hoffsten
Title: OS X.3.8 Server help... Im looking for a quick walkthrough to install Tomcat 4.x on my OS 10.3.8 server. My Java is up to date and I need a very detailed list of instructions. By detailed, I mean I have no idea what Im doing in the Terminal... Martin Hoffsten 612.333.3233 x119

control ports on windows

2005-07-07 Thread Tony Smith
Hi, I am running Tomcat 5.0 on Windows. But what I want to do it not link to Tomcat. I would like to know how to control all those ports. For example, I would like to open 8080 but close 8089, etc... Thanks, Sell on Yahoo!

Re: Turning off jsessionid on URL?

2005-07-07 Thread Tim Funk
Please stop posting the same question 4 times and please wait for a response. The answer to the question below is no. There is no switch. To not use URL rewriting, do not utilize the method HttpServletResponse.encodeURL(). Of course - this requires a code rewrite. The easier solution is to

Datasource Drivers Question

2005-07-07 Thread James Reynolds
I'm having trouble setting up a data source in Tomcat 5.5.7. I'm not certain if I'm having a configuration problem, or if the drivers I'm trying to use are not compatible with Tomcat. Starting with the latter question, I'm attempting to use the jdbc oracle drivers that ship with Sun's Java

Re: Turning off jsessionid on URL?

2005-07-07 Thread William Stranathan
I only sent the message once. I apologize for any inconvenience, but I wonder if gmail and/or ezmlm are having issues today - I've received the welcome message from ezmlm four times now. w On 7/7/05, Tim Funk [EMAIL PROTECTED] wrote: Please stop posting the same question 4 times and please

How do you set up JMX remote for Tomcat 5.5.9?

2005-07-07 Thread andy gordon
Help, How do you set up JMX remote for Tomcat 5.5.9? For instance where do you specify the JVM startup option -Dcom.sun.management.jmxremote.port=9998 that enables remote monitoring and management? THank you - andy - Sell on

mod_jk 1.2.8 socket_timeout property on solaris 2.8 - doesn't work

2005-07-07 Thread Java Developer
We have mod_jk 1.2.8 with apache 2.0.53 on solaris 2.8 connecting to JBoss 4.0.2 on solaris 2.8 setup. The number of apache child processes grows gradaully and upon reaching around 150 the system response degrades forcing us to restart the apache server. On investigation it is found from

Re: How do you set up JMX remote for Tomcat 5.5.9?

2005-07-07 Thread Tim Funk
http://jakarta.apache.org/tomcat/faq/misc.html#properties -Tim andy gordon wrote: Help, How do you set up JMX remote for Tomcat 5.5.9? For instance where do you specify the JVM startup option -Dcom.sun.management.jmxremote.port=9998 that enables remote monitoring and management?

mod_jk 1.2.8 socket_timeout property on solaris 2.8 - doesn't work

2005-07-07 Thread Java Developer
We have mod_jk 1.2.8 with apache 2.0.53 on solaris 2.8 connecting to JBoss 4.0.2 on solaris 2.8. The number of apache child processes grows gradaully and upon reaching around 150 the system response degrades forcing us to restart the apache server. On investigation it is found from the

Re: Turning off jsessionid on URL?

2005-07-07 Thread Michael Jouravlev
See my question about two weeks ago on how to detect jsessionid in the URL. Looks like it is not directly possible, but you can use our own request parameter to find this out. After you detect that jsessionid is in the URL (the harder part), make another redirect to the same location, and URL will

Re: How do you set up JMX remote for Tomcat 5.5.9?

2005-07-07 Thread andy gordon
Thank you for the info but I don't think it helped. Your insight is valued. I set an environment variable called JAVA_OPTS to -Dcom.sun.management.jmxremote.port=9998 and started tomcat using startup.bat. The cmd window opened and closed. Meaning tomcat didn't start. Suggestions? I

generate image by servlet for large amount of requests

2005-07-07 Thread Tony Smith
Let's think about maps.yahoo.com. I do not know how they handle millions of request and generate the map pictures quickly. If I use a servlet, in the post or get method I use: BufferedImage mapImage = myTookKit.generateMap(String address); response.setContentType(image­/png);

Authentication 401 not passing login box to apache2

2005-07-07 Thread Phil Jones
Hi First apologies, I am a total newbie to this stuff so please don't eat me alive. :) I'm driving myself up the wall with this one and hope you can help. although there doesn't seem to be anything in the archive. I've got tomcat 5.5 setup and working on localhost directly. I've complied and

Trouble with JDBC Session Persistence (Tomcat 4.1)

2005-07-07 Thread lawrence
I am having some troubles getting JDBC session persistance to work. I have set up my Oracle DB and server.xml correctly (as I have verified that the session is indeed stored in the DB), but then after restarting tomcat, it appears that the session is not getting swapped in correctly. Here

invalidated session

2005-07-07 Thread Nishant Deshpande
I store a bunch of objects in my session. After the session timeout, I see the session getting invalidated (via my listener). Now I am expecting to see the finalizers from the objects in the session being called - I'm pretty sure I don't have any other references to them. I don't see the

Mapping everything to Tomcat? (mod_jk)

2005-07-07 Thread Luis Torres
Hello Everyone, first post to the list =) I have a test setup with Solaris 9, Apache 2.043, mod_jk and two tomcats (4.131 JDK 1.5.0) To have the Tomcats handling the applications, first I used the following lines but the problem was that my jsp's where taken by tomcat but my images, css

Tomcat manager using mod_jk?

2005-07-07 Thread Luis Torres
Hello again, Same setup: Solaris 9, Apache 2.043, mod_jk and two tomcats (4.131 JDK 1.5.0) Any of you guys know if there's a way to access the tomcat manager application or something similar when using mod_jk?? Right now the only way I have found is to leave tomcat accepting requests

Re: invalidated session

2005-07-07 Thread Len Popp
I'm pretty sure that the finalizers are only called when garbage collection reclaims the objects, and that will be some time after the session is invalidated. Possibly a very long time after, if Tomcat isn't busy and isn't using much memory. -- Len On 7/7/05, Nishant Deshpande [EMAIL PROTECTED]