RE: Failing a JK Worker thread
We have an application running as a webapp which requires legacy systems and network resources which are not fault-tolerant. Luckily these resources are stateless. So we have replicated these resources so that one is available per tomcat instance. When we attempt to use one of these resources from within the webapp and it fails, we need a way to try the next pair (tomcat legacy) in the group. This will allow us to provide a balanced fault-tolerant service with a webapp interface. Since the tomcat instance is responding and functioning, the reply_timeout was not met so apache webserver considered the request a success. Providing a application error from tomcat (maybe a 503 or 401 instead of 500) seemed like the rightest way to do it. I see a few other options: 1. Put a layer on top of apache that tests the response and makes a new request. This doesn't buy us anything and circumvents the use of jk 2. (some how/maigcally) Send an out of process message from tomcat back to apache that the resource is down. 3. Modify AJP to handle this error (this may already have a mechanism that I missed) Does any one have any other suggestions for ensuring reliability when there is a 3rd party piece of hardware/software which your webapp relies on that has no fault-tolerance of its own? I may be totally missing the point here, but isn't this something that could be handled in a servlet filter. If you have an availability problem, set a flag in the response header that the filter can check for and take appropriate action? Regards Roger __ This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to get know what version of TC is running behind Apache
Hi all, Is it possible to know what version of Tomcat is running behind an Apache. The connector used is JK. Try asking for a non-existant servlet in your web-app. The 404 page is issued by Tomcat and, I think, tells you the version. Regards Roger __ This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Question for Tomcat Developers - How to Plug In Encryption for JDBC passwords
If I can see your encrypted passwords, then I can see the code that decrypts them. And with that I have your passwords. It only adds a step to my effort to crack your security. Is that strictly true? If you use the method that is used to encrypt Unix passwords (google for JCrypt for an implementation) then isn't this a one-way hash and you can't decrypt the passwords by reversing the algorithmn? Regards Roger __ This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Errors after upgrading Tomcat to 5.0.28
Hi I have upgraded from Tomcat 4.3.31 to 5.0.28. While testing, a previously running application now fails with the error org.apache.jasper.JasperException: Cannot find any information on property 'tcCheckBoxErrorMessage' in a bean of type 'uk.co.brakes.CustomerRegistrationFormData' Can anyone give me a pointer as to why this message is appearing when the only thing thats changed is upgrading Tomcat and what I need to do about it. Regards Roger __ This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Errors after upgrading Tomcat to 5.0.28
I have upgraded from Tomcat 4.3.31 to 5.0.28. While testing, a previously running application now fails with the error org.apache.jasper.JasperException: Cannot find any information on property 'tcCheckBoxErrorMessage' in a bean of type 'uk.co.brakes.CustomerRegistrationFormData' Please ignore this. Upgrading Tomcat was *not* the only thing that changed. I should have checked before posting. Please accept my apologies. Regards Roger __ This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Multiple mappings to same servlet query
Hi I know that if I have multiple mappings to the same servlet, then I get two seperate objects instantiated. However, where does the engine instantiate the copy from? For example, I want to run two copies of the same servlet with different URLs, one in test mode, one in live mode. I was planning on configuring a different set of parameters for the two cases in my web.xml file but I need to be sure that I will get two instances, each with its own set parameters rather than the engine cloning a copy of the servlet it has already loaded. Regards Roger __ This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
HttpServletInputStream is corrupting data?
Hi I don't think that this is a Tomcat problem per-se, but it involves Tomcat so I'm asking here in the hope that someone else has seen this before. An external program reads XML from a file on disk into a ByteArrayOutputStream to calculate the length of the data. The byte array is extracted from the stream and written to the OutputStream of a URLConnection object which is pointing to my servlet running under Tomcat 4.1.31. The servlet reads the XML from the HttpServletRequest InputStream and performs an XSLT transformation on it. If I point the URL to the normal port 80, the request is routed through Microsoft IIS server and passed to Tomcat. The input stream read by Tomcat is corrupt - parts of the file are missing. However, if I point the URL to Tomcat directly via port 8080 everything works fine. I've verified that the original disk file is valid, the byte array created by the external program is correct and contains correct data and that all the correct data is written to the URLConnection by the external program. Has anyone either seen something like this before or have any suggestions as to where to start looking. Regards Roger __ This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: HttpServletInputStream is corrupting data?
I'd worry about character encoding if I were you. I bet someone is transcoding. I'd thought about that, but if it was an encoding issue, wouldn't I expect the same problem regardless of whether I routed the request through IIS first or sent it directly to Tomcat? The XML header specifies iso-8859-1 - I wouldn't have expected a problem in a UK locale with this. Regards Roger -Original Message- From: Varley, Roger [mailto:[EMAIL PROTECTED] Sent: Monday, February 21, 2005 11:00 AM To: Tomcat Users List (E-mail) Subject: HttpServletInputStream is corrupting data? Hi I don't think that this is a Tomcat problem per-se, but it involves Tomcat so I'm asking here in the hope that someone else has seen this before. An external program reads XML from a file on disk into a ByteArrayOutputStream to calculate the length of the data. The byte array is extracted from the stream and written to the OutputStream of a URLConnection object which is pointing to my servlet running under Tomcat 4.1.31. The servlet reads the XML from the HttpServletRequest InputStream and performs an XSLT transformation on it. If I point the URL to the normal port 80, the request is routed through Microsoft IIS server and passed to Tomcat. The input stream read by Tomcat is corrupt - parts of the file are missing. However, if I point the URL to Tomcat directly via port 8080 everything works fine. I've verified that the original disk file is valid, the byte array created by the external program is correct and contains correct data and that all the correct data is written to the URLConnection by the external program. Has anyone either seen something like this before or have any suggestions as to where to start looking. Regards Roger __ __ __ This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. __ __ __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: performance/scalability impact of many webapps in one container
For reasons beyond my control, a web application (apache/Tomcat/PostgreSQL) that I support will need to be partitioned into one context per customer (to support one database per customer). I'm wondering: Do you really need one database per customer? In a similair situation, we resolved this by adding a client code to all our database tables indexes. Each customer/client was given their own URL to access the system and a filter used the incoming url to load a client code into the request headers before passing the request to a single servlet. Regards Roger __ This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Apache, Tomcat, WebDAV, and Web Folders... Oh, my!
About the only thing left to try is to allow the PROPFIND on /webapp/ . So here's the Tomcat question---how can I allow a PROPFIND on /webapp/ and return, for example, a 403 forbidden, rather than a 501 Not Implemented? Do I have to override org.apache.catalina.servlets.DefaultServlet? (There goes container independence.) But surely Tomcat returns 501 when accessed via Localhost and you've already said that scenario works. Regards Roger __ This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Serving files from Tomcat...sorta
a) Authenticate the users against the generic /etc/passwd unix scheme (/etc/shadow in our case). Provided you have read access to the password file, look for JCrypt for a java implementation of the Unix password encryption scheme. Regards Roger __ This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: INFO: connection Timeout reached
I've just upgraded to 4.1.31 and I'm getting org.apache.jk.common.ChannelSocket processConnection INFO: connection Timeout received messages at the console every second or so. Everything seems to be working OK so do I need to do anything about these messages? If this is normal behaviour, is there anyway I can stop Tomcat from logging these messages as it makes it impossible to see any other messages since they scroll off the console too quickly? I realise that this is probably an FAQ but I would be grateful if someone could point me in the right direction on this as I don't seem to be getting anywhere. Googling has revealed a suggestion that I should be setting the verbosity parameter on the Logger in my server.xml to suppress INFO messages, but the documentation at http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/logger.html suggests that the default out-of-the-box setting should be to display error messages only. Regards Roger __ This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat fails - Can't read body, waited #0 Seems size related (SOLVED)
Whatever it was, it doesn't do it in 4.1.31. Regards Roger -Original Message- From: Varley, Roger Sent: 29 October 2004 11:32 To: [EMAIL PROTECTED] Subject: Tomcat fails - Can't read body, waited #0 Seems size related I have a servlet that recieves data from a client. All the servlet is doing is reading from the InputStream of the HttpServletResponse (BufferedReader br = new BufferedReader( new InputStreamReader(request.getInputStream()));) and writing the data to a disk file. Periodically Tomcat refuses to read the data and dumps with an IOException (attached below). I've googled for the error message but all I can find is references to CVS versions of the AJP13 code - which puts me out of my depth. I can't find any reference to the error message in the list archives. The odd thing is this seems to be related to the size of the data stream. The data is actually an Order Confirmation and when the order contains five lines at 7745 bytes everything works OK. When the order contains 6 lines (or more) at 8862 bytes then I get the dump. It's not related to the data content - I've tested this by using known good data. I'm using Tomcat 4.1.7-LE-jdk14 - upgrading is an option, but not one I will be able to undertake lightly. Regards Roger 29-Oct-2004 11:14:15 org.apache.jk.common.ChannelSocket receive WARNING: can't read body, waited #0 java.io.IOException at org.apache.jk.common.JkInputStream.receive(JkInputStream.java:304) at org.apache.jk.common.JkInputStream.refillReadBuffer(JkInputStream.jav a:372) at org.apache.jk.common.JkInputStream.doRead(JkInputStream.java:284) at org.apache.jk.server.JkCoyoteHandler.doRead(JkCoyoteHandler.java:223) at org.apache.coyote.Request.doRead(Request.java:431) at org.apache.coyote.tomcat4.CoyoteInputStream.readBytes(CoyoteInputStre am.java:195) at org.apache.coyote.tomcat4.CoyoteInputStream.read(CoyoteInputStream.ja va:152) at sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:406) at sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:446) at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:180) at java.io.InputStreamReader.read(InputStreamReader.java:167) at java.io.BufferedReader.fill(BufferedReader.java:136) at java.io.BufferedReader.readLine(BufferedReader.java:299) at java.io.BufferedReader.readLine(BufferedReader.java:362) at PlayReceiveXMLAsPost.processRequest(PlayReceiveXMLAsPost.java:57) at PlayReceiveXMLAsPost.doPost(PlayReceiveXMLAsPost.java:123) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF ilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV alve.java:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex t.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV alve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex t.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java: 2350) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j ava:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex t.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche rValve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex t.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j ava:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex t.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal ve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex t.invokeNext
INFO: connection Timeout reached
Hi I've just upgraded to 4.1.31 and I'm getting org.apache.jk.common.ChannelSocket processConnection INFO: connection Timeout received messages at the console every second or so. Everything seems to be working OK so do I need to do anything about these messages? If this is normal behaviour, is there anyway I can stop Tomcat from logging these messages as it makes it impossible to see any other messages since they scroll off the console too quickly? Regards Roger __ This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat fails - Can't read body, waited #0 Seems size related
I have a servlet that recieves data from a client. All the servlet is doing is reading from the InputStream of the HttpServletResponse (BufferedReader br = new BufferedReader( new InputStreamReader(request.getInputStream()));) and writing the data to a disk file. Periodically Tomcat refuses to read the data and dumps with an IOException (attached below). I've googled for the error message but all I can find is references to CVS versions of the AJP13 code - which puts me out of my depth. I can't find any reference to the error message in the list archives. The odd thing is this seems to be related to the size of the data stream. The data is actually an Order Confirmation and when the order contains five lines at 7745 bytes everything works OK. When the order contains 6 lines (or more) at 8862 bytes then I get the dump. It's not related to the data content - I've tested this by using known good data. I'm using Tomcat 4.1.7-LE-jdk14 - upgrading is an option, but not one I will be able to undertake lightly. Regards Roger 29-Oct-2004 11:14:15 org.apache.jk.common.ChannelSocket receive WARNING: can't read body, waited #0 java.io.IOException at org.apache.jk.common.JkInputStream.receive(JkInputStream.java:304) at org.apache.jk.common.JkInputStream.refillReadBuffer(JkInputStream.jav a:372) at org.apache.jk.common.JkInputStream.doRead(JkInputStream.java:284) at org.apache.jk.server.JkCoyoteHandler.doRead(JkCoyoteHandler.java:223) at org.apache.coyote.Request.doRead(Request.java:431) at org.apache.coyote.tomcat4.CoyoteInputStream.readBytes(CoyoteInputStre am.java:195) at org.apache.coyote.tomcat4.CoyoteInputStream.read(CoyoteInputStream.ja va:152) at sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:406) at sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:446) at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:180) at java.io.InputStreamReader.read(InputStreamReader.java:167) at java.io.BufferedReader.fill(BufferedReader.java:136) at java.io.BufferedReader.readLine(BufferedReader.java:299) at java.io.BufferedReader.readLine(BufferedReader.java:362) at PlayReceiveXMLAsPost.processRequest(PlayReceiveXMLAsPost.java:57) at PlayReceiveXMLAsPost.doPost(PlayReceiveXMLAsPost.java:123) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF ilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV alve.java:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex t.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV alve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex t.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java: 2350) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j ava:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex t.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche rValve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex t.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j ava:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex t.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal ve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex t.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:22 3) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:253) at
RE: Tomcat fails - Can't read body, waited #0 Seems size related
As a follow-up to my original post - further testing shows that this problem only appears when I access Tomcat via IIS. If I connect to Tomcat directly via port 8080 then everything works as expected. Regards Roger __ This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat fails - Can't read body, waited #0 Seems size related
Hi, Ahh, it's great that you tried this: I was just going to ask if the connector is to blame ;) The range of data sizes you mentioned immediately starts the buffer size alarm horn in my head ;) 8192 = 8k is the default buffer size for many connector versions, including probably the one you're using. See if adjusting the buffer size (if it's possible at all) to a higher value like 16K makes this go away. Hi Yoav Thanks for your response. Any idea where I should be looking. I've found the AJP13 config entry in server.xml but there is nothing that looks like a buffersize parameter. I've looked on the AJP13 page at http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/ajp.html and that doesn't seem to mention buffersizes either. Regards Roger __ This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat fails - Can't read body, waited #0 Seems size related
As a follow-up to my original post - further testing shows that this problem only appears when I access Tomcat via IIS. If I connect to Tomcat directly via port 8080 then everything works as expected. Now I'm even more confused. If I go back to accessing Tomcat via IIS, it will fail if I try to get the data through the HttpServletRequest InputStream, but will succeed if I retrieve the data through the getParameter() method. Regards Roger __ This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Detecting The Stop Button
If your application is for internal use *and* you have control over your client configuration you may want to investigate placing an invisible applet on your page that talks to your pinger program. Regards Roger __ This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Is it possible to force Tomcat to drop a servlet?
Hi I'm experiencing odd failures when a servlets init procedure is called for a second time. What I *think* is happening is that Tomcat is deactivating the servlet (as it is allowed to do) but some of the singleton objects created by the servlet initialisation routine are not being culled at the same time. As a result, when Tomcat receives a request for this servlet and starts to re-load it, my servlet is falling over when it tries to create objects that already exist. Obviously this is a logic problem with my servlet rather than with Tomcat but so that I can test my theory (and soloution), how can I force tomcat to drop my servlet and reload it under controlled conditions without re-loading the entire web-app? Reloading the entire application through the manager doesn't appear to exhibit the problem. Regards Roger __ This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Class Load Order
Hi In what order does Tomcat search ./common/classes, ./shared/classes and ./webapp/classes for .class files? I have a number of web-apps that use class files located in ./shared/classes to connect to a backend ERP system. There has always been an implicit assumption that there would only ever be one backend system hence locating the class files in ./shared/classes - that assumption was blown apart this morning. Regards Roger __ This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Class Load Order
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-h owto.html Thanks, I'd missed that. Regards Roger __ This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Serving up static content through apache using mod_jk
Hi, As always, consider using tomcat standalone for all your traffic, static and dynamic. This is the third time I have heard this piece of advice recently. When I started off with Tomcat back in the 3.x days the recommendation was always to run Tomcat for the dynamic servlet/jsp stuff and a real web server (Apache/IIS) for the static content. Are we now saying that Tomcat is as good a web server for static content as is Apache? Regards Roger __ This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
URL Mapping Question
Hi I have Tomcat 4.4.18 running behind Microsofts IIS web server. In IIS I have two virtual directories defined InboundA and InboundB both of which are mapped to the same physical directory $TOMCAT_HOME/webapps/Inbound. In workers2.properties I have added the lines ... [uri:/InboundA/*] context=/Inbound [uri:/InboundB/*] context=/Inbound and I have added the context Inbound to the server.xml in $TOMCAT/conf After restarting IIS and Tomcat, the Tomcat manger application sees the Inbound context loaded and I can run the servlets contained in the context by accessing Tomcat directly via port 8080 (http://hostname:8080/Inbound/servletname, however when I use the browser to access http://hostname/InboundA/servletname or InboundB I get a 404 response from IIS rather than a response from Tomcat which implies that the forwarding is not taking place. What am I missing? Regards Roger __ This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat and restricting the size of HttpServletRequest
Hi I have an application where a client transmits data to a servlet by opening a URLConnection to the servlet and writing the data to the outputStream as a POST request which the servlet processes by reading the HttpServletRequest inputStream. What can I do to protect my servlet against a rogue client that opens the outputStream and trying to write multi-gigabytes of data and running the server out of memory or does Tomcat already have mechanisms in place to prevent this. Regards Roger __ This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: URL Mapping Question
-Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: 23 April 2004 13:54 To: Tomcat Users List Subject: RE: URL Mapping Question You definately did a hard IIS restart..? I have done simple stop/start ones using the controls and found this does not reload the mappings. What do you mean a hard IIS restart? I stopped and started the www publishing service from the control panel. I've now physically re-booted the server and now when I try http://hostname/InboundA/servletname I get a 404 response from Tomcat which, I suppose, is a step further. So now it appears that IIS is forwarding requests for InboundA and InboundB to Tomcat but is not mapping either of the requests to Inbound. Regards Roger -Original Message- From: Varley, Roger [mailto:[EMAIL PROTECTED] Sent: 23 April 2004 13:51 To: [EMAIL PROTECTED] Subject: URL Mapping Question Hi I have Tomcat 4.4.18 running behind Microsofts IIS web server. In IIS I have two virtual directories defined InboundA and InboundB both of which are mapped to the same physical directory $TOMCAT_HOME/webapps/Inbound. In workers2.properties I have added the lines ... [uri:/InboundA/*] context=/Inbound [uri:/InboundB/*] context=/Inbound and I have added the context Inbound to the server.xml in $TOMCAT/conf After restarting IIS and Tomcat, the Tomcat manger application sees the Inbound context loaded and I can run the servlets contained in the context by accessing Tomcat directly via port 8080 (http://hostname:8080/Inbound/servletname, however when I use the browser to access http://hostname/InboundA/servletname or InboundB I get a 404 response from IIS rather than a response from Tomcat which implies that the forwarding is not taking place. What am I missing? Regards Roger __ This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat and restricting the size of HttpServletRequest
There is a max POST size limit attribute on the Connectors. Otherwise - you can code for it too: request.getContentLength() == Size of posted content. -1 if the client did not provide a Content length. I wondered about request.getContentLength() but was worried that it was calculated by Tomcat rather than relying on it being set by the client. Either way, if the client doesn't specify the length or lies about it then I'm still in danger of running out of room. This also begs the question as to when my servlet gets to see an incoming request - I was concerned that by the time my servlet gets to see the incoming request Tomcat had already read the incoming data and stored it in the HttpServletRequest object - in which case request.getContentLength() is of no help. Regards Roger __ This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: URL Mapping Question
I have now managed to get it to work. I have defined two contexts (InboundA and InboundB) in server.xml and specified Inbound as the docBase for both contexts. So, what does the context parameter in workers2.properties actually do? Regards Roger -Original Message- From: Varley, Roger [mailto:[EMAIL PROTECTED] Sent: 23 April 2004 13:51 To: [EMAIL PROTECTED] Subject: URL Mapping Question Hi I have Tomcat 4.4.18 running behind Microsofts IIS web server. In IIS I have two virtual directories defined InboundA and InboundB both of which are mapped to the same physical directory $TOMCAT_HOME/webapps/Inbound. In workers2.properties I have added the lines ... [uri:/InboundA/*] context=/Inbound [uri:/InboundB/*] context=/Inbound and I have added the context Inbound to the server.xml in $TOMCAT/conf After restarting IIS and Tomcat, the Tomcat manger application sees the Inbound context loaded and I can run the servlets contained in the context by accessing Tomcat directly via port 8080 (http://hostname:8080/Inbound/servletname, however when I use the browser to access http://hostname/InboundA/servletname or InboundB I get a 404 response from IIS rather than a response from Tomcat which implies that the forwarding is not taking place. What am I missing? Regards Roger __ This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat and restricting the size of HttpServletRequest
I remember a previous discussion on this and one of the solutions was to use an applet that would check the file size prior to transmission. I can do that if the remote end is using my client - my concern is that once the URL is known anyone could write a program that writes huge amounts of data to that URL. Is this not a general problem for any servlet that receives data in a POST request over the internet? Is there anyway to monitor the size of the object as it is uploaded and terminate it if it exceeds a certain size? Just a thought. I guess this what I'm asking :) Regards Roger There is a max POST size limit attribute on the Connectors. Otherwise - you can code for it too: request.getContentLength() == Size of posted content. -1 if the client did not provide a Content length. I wondered about request.getContentLength() but was worried that it was calculated by Tomcat rather than relying on it being set by the client. Either way, if the client doesn't specify the length or lies about it then I'm still in danger of running out of room. This also begs the question as to when my servlet gets to see an incoming request - I was concerned that by the time my servlet gets to see the incoming request Tomcat had already read the incoming data and stored it in the HttpServletRequest object - in which case request.getContentLength() is of no help. Regards Roger __ This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat Class Load Order
Hi I've inherited responsibility for a web application that is, quite frankly, a bit of a mess. I have some classes that are located under $TOMCAT_HOME/webapps/appname/web-inf/classes and are also in jar file under $TOMCAT_HOME/webapps/appname/web-inf/lib. I've even got a couple of class files that are in those two directories and are in a jar file under $TOMCAT_HOME/shared/lib! Needless to say they've all got different modification dates. Could someone point me to some documentation on the order Tomcat looks for classes so at least I can determine wich versions are being used? Regards Roger __ This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat and IIS Web Server
Hi I have Tomcat running behind Microsofts IIS Web server. All requests go first to IIS and IIS forwards any URL specified in workers.properties to Tomcat. All standard stuff and it works well. I now need to use HTTPS to send a request to IIS which is going to be forwarded to Tomcat. My question is where does the authentication take place? Does IIS handle the authentication and certificates *before* it passes the request to Tomcat or does IIS pass control to Tomcat expecting it to handle the authentication and certificates? Or do I need to configure both IIS and Tomcat to handle HTTPS? Regards Roger __ This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat and IIS Web Server
IIS will handle the https. That means that actually the connection between IIS and tomcat is not secure, so take that into consideration as you make your decision. Thanks Daniel. Both the IIS server and Tomcat are located on the same server behind a firewall - so that really shouldn't be an issue should it? Even if they were on different servers behind a firewall given that I'm not worried about internal snooping it's still not an issue - or am I missing something important here? Regards Roger Varley, Roger wrote: Hi I have Tomcat running behind Microsofts IIS Web server. All requests go first to IIS and IIS forwards any URL specified in workers.properties to Tomcat. All standard stuff and it works well. I now need to use HTTPS to send a request to IIS which is going to be forwarded to Tomcat. My question is where does the authentication take place? Does IIS handle the authentication and certificates *before* it passes the request to Tomcat or does IIS pass control to Tomcat expecting it to handle the authentication and certificates? Or do I need to configure both IIS and Tomcat to handle HTTPS? Regards Roger _ _ This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. _ _ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 4.0 and 5.0
Hi Is there a URL that details what is going to be different between Tomcat 4.0 and 5.0. I'm looking for something more in the style of a tutorial, descriptive how it works type of thing rather than a list of features. Regards Roger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Telegraph Crossword (Saturday 14th)
Anyone finished this weeks? Oook Roger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Telegraph Crossword (Saturday 14th)
Anyone finished this weeks? Oook Roger Sorry - wrong group. Regards Roger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: What is the maximum session handling capability
It sucks when the answer really is it depends. What hardware are you using? The only want to get a REALLY accurate answer is to use a stress testing tool from http://www.opensourcetesting.org/performance.php and see what happens using your hardware/application set up. Then do some config file tuning to see if you can improve on the results. With the data provided I think the best possible answer is A lot. Excellent URL - thanks. Does anyone know off-hand if any of these tools will handle keying data and mouseclicks into a java applet? Regards Roger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Stop logging from isapi_redirector2.dll
-Original Message- From: Konrad Rusz [mailto:[EMAIL PROTECTED] Sent: 04 March 2003 14:22 To: Tomcat Users List Subject: Re: Stop logging from isapi_redirector2.dll Hello Jay. Thanks for Your help but it doesn't work still. If You will be know how can I resolve my problem, please contact me. At the risk of asking the obvious, did you shut down the IIS (World Wide Publishing Service) service via the control panel after changing the registry and then restarting it? Regards Roger. - Original Message - From: Jay Lee [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Monday, March 03, 2003 7:14 PM Subject: RE: Stop logging from isapi_redirector2.dll emerg should work and it worked on isapi_redirector.dll. Could you try to take out logFile=C:\\jakarta-tomcat\\logs\\iis_redirector2.log? If that doen't work, you need to download isapi_redirector2.dll source codes and fix it yourself. -Original Message- From: Konrad Rusz [mailto:[EMAIL PROTECTED] Sent: Monday, March 03, 2003 2:52 AM To: Tomcat Users List Subject: Stop logging from isapi_redirector2.dll Hi everyone. I have a problem. I have connected IIS 5.0 and Tomcat 4.1.18. I use JK2 and I cannot stop logging events in Windows Application Log from isapi_redirector2.dll. I have added reg key as follow (in Windows 2000 Server SP3): [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\2.0] serverRoot=C:\\jakarta-tomcat extensionUri=/jakarta/isapi_redirector2.dll workersFile=C:\\jakarta-tomcat\\conf\\workers2.properties authComplete=0 threadPool=20 logFile=C:\\jakarta-tomcat\\logs\\iis_redirector2.log logLevel=ERROR I tied typed different parameters in logLevel, such as: ERROR, DEBUG, INFO, emerg. Unfortunatelly it does not work. Can You have any ideas how can I resolve my problem? Best regards, Konrad Rusz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Configuring Tomcat with IIS Web Server
I'm working on Configuring Tomcat with IIS Web Server http://www.onjava.com/pub/a/onjava/2002/12/18/tomcat.htmlfro m O'Reilly Net. I think that I have followed everything exactly. I get a 404. tomcat is the first and only ISAPI redirector in my list, it has a green arrow. I've triple-checked my conf files. Who/What is issuing the 404? IIS or Tomcat? Check the IIS logs. Regards Roger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] free Database with Transaction (Sorry for the noise)
I'm surprised that no-one has mentioned SAPDB ( www.sapdb.org ). If this will support a production SAP R3 system then it shoud be able to give Oracle a run for its money. Regards Roger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: compression filter problem
I am Developing Web application using tomcat. I want to Comopress my all jsp pages in web application, for that i have make some java filter classes and make changes in web.xml. but I am facing two problems 1. in jsp i have to put header content encoding is gzip, without that brower display zip data 2. browser keep showing that page is comeing and showing progress bar in status bar even data is display completely. Jason Hunter has an article on Servlet Filters at http://www.javaworld.com/javaworld/jw-06-2001/jw-0622-filters.html http://www.javaworld.com/javaworld/jw-06-2001/jw-0622-filters.html Page Three of the article talks specifically about Compression Filters. Regards Roger
Tomcat 4.1.18, JK2 - no iis_redirect.log
Hi I've just upgraded from Tomcat 3.2 to Tomcat 4.4.18 with IIS using JK2. It's been a struggle to get it to work, but I've now got everything working except I don't seem to have an iis_redirect.log file (or it's equivalent) despite setting logLevel = debug in the registry entries. Have I missed something or is there no such log file (or equivalent) with Tomcat 4x? Regards Roger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 4.1.18, JK2 - no iis_redirect.log
Thanks Reynir I found it. Is it possible to change this behaviour back to its original 3.2 behaviour. Our development server is physically located at the other end of the building and I would like to be able to view the log without taking a long walk :) Regards Roger -Original Message- From: Reynir Hübner [mailto:[EMAIL PROTECTED]] Sent: 06 February 2003 12:35 To: Tomcat Users List Subject: RE: Tomcat 4.1.18, JK2 - no iis_redirect.log Check your event log (controlpanel - administrator tools - event viewer) Hope it helps -reynir -Original Message- From: Varley, Roger [mailto:[EMAIL PROTECTED]] Sent: 6. febrúar 2003 12:29 To: Tomcat Users List (E-mail) Subject: Tomcat 4.1.18, JK2 - no iis_redirect.log Hi I've just upgraded from Tomcat 3.2 to Tomcat 4.4.18 with IIS using JK2. It's been a struggle to get it to work, but I've now got everything working except I don't seem to have an iis_redirect.log file (or it's equivalent) despite setting logLevel = debug in the registry entries. Have I missed something or is there no such log file (or equivalent) with Tomcat 4x? Regards Roger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 4.1.18, JK2 - no iis_redirect.log
Thanks Reynir I found it. Is it possible to change this behaviour back to its original 3.2 behaviour. Our development server is physically located at the other end of the building and I would like to be able to view the log without taking a long walk :) Yes it's possible add this to your wk2.p file, if the secttions are created already, only add the values.. 8--- #creates a new File logger to use instaead of the #default one, for IIS the default it's the event log [logger.file:0] file=${serverRoot}/logs/jk2.log #uses the newly created File logger as the default one.. [workerEnv:] logger=logger.file:0 8--- Thanks Ignacio, that seems to be working. Is there anywhere where the possible contents of workers2.properties is documented. This has been the major cause of my problems in getting Tomcat to work. For example, I only found out about the need for [shm] through the archives of this list. Regards Roger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 4.1.18, JK2 - no iis_redirect.log
has been the major cause of my problems in getting Tomcat to work. For example, I only found out about the need for [shm] through the archives of this list. [shm] is needed section is needed to run i_r2.dll ? i'll test this.. shouldnt be needed at all.. or at least have a plausible default that to not cause any problems if not needed.. I think it's a bug.. Please report this issue at http://nagoya.apache.org/bugzilla.. Thanks.. If I try to start Tomcat without [shm] file=e:\java\jakarta-tomcat\logs\shm.file size=1048576 in the workers2.properties then I get [Thu Feb 06 16:00:41 2003] (error ) [jk_shm.c (333)] shm.init(): No file in the tomcat logfile and I cannot load the examples webapp. Before I report this as a bug I need to tidy up what I've been doing, I've been trying to get this to work for a couple of days now and it is entirely possible that I've got some crud/unneccassary configuration floating around. Incidentally, does the path http://domainname/global/ have a special meaning to Tomcat 4.x. I have a web application global that I have not yet mapped into server.xml yet, but trying to load a static html page domainname/global/default.htm is returning a 404 from Tomcat rather than finding it with IIS which I would have expected. Regards Roger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 4.1.18, JK2 - no iis_redirect.log
There are two places that you define shm.file, tomcat jk2.properties and apache workers2.properties. If you comment out one, you have to comment out another. It's not in jk2.properties. My jk2.properties is empty, in so far as all the entries are commented out. [shm] appears to be required in workers2.properties otherwise the isapi_redirector2.dll complains. I'm not using Apache, I'm using IIS. I've attached my jk2.properties and workers2.properties below. Regards Roger - J2K.PROPERTIES - # THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED ## WHEN YOU EDIT THE FILE. ## COMMENTS WILL BE _LOST_ ## DOCUMENTATION OF THE FORMAT IN JkMain javadoc. # Set the desired handler list # handler.list=apr,request,channelJni # # Override the default port for the socketChannel # channelSocket.port=8019 # Default: # channelUnix.file=${jkHome}/work/jk2.socket # Just to check if the the config is working # shm.file=${jkHome}/work/jk2.shm # In order to enable jni use any channelJni directive # channelJni.disabled = 0 # And one of the following directives: # apr.jniModeSo=/opt/apache2/modules/mod_jk2.so # If set to inprocess the mod_jk2 will Register natives itself # This will enable the starting of the Tomcat from mod_jk2 # apr.jniModeSo=inprocess -- WORKERS2.PROPERTIES - [shm] file=e:\java\jakarta-tomcat\logs\shm.file size=1048576 # Define the communication channel [channel.socket:localhost:8009] info=Ajp13 forwarding over socket tomcatId=localhost:8009 # Creates a new File logger to use instaead of the # default one, for IIS the default it's the event log [logger.file:0] file=${serverRoot}/logs/jk2.log # uses the newly created File logger as the default one.. [workerEnv:] logger=logger.file:0 # Map the Tomcat examples webapp to the WebServer uri space [uri:/examples/*] info=Map the whole webapp # Map the Customer Administration stuff [uri:/CustomerAdministration/*.jsp] [uri:/CustomerAdministration/servlet/*] -Original Message- From: Varley, Roger [mailto:[EMAIL PROTECTED]] Sent: February 6, 2003 11:10 AM To: 'Tomcat Users List' Subject: RE: Tomcat 4.1.18, JK2 - no iis_redirect.log has been the major cause of my problems in getting Tomcat to work. For example, I only found out about the need for [shm] through the archives of this list. [shm] is needed section is needed to run i_r2.dll ? i'll test this.. shouldnt be needed at all.. or at least have a plausible default that to not cause any problems if not needed.. I think it's a bug.. Please report this issue at http://nagoya.apache.org/bugzilla.. Thanks.. If I try to start Tomcat without [shm] file=e:\java\jakarta-tomcat\logs\shm.file size=1048576 in the workers2.properties then I get [Thu Feb 06 16:00:41 2003] (error ) [jk_shm.c (333)] shm.init(): No file in the tomcat logfile and I cannot load the examples webapp. Before I report this as a bug I need to tidy up what I've been doing, I've been trying to get this to work for a couple of days now and it is entirely possible that I've got some crud/unneccassary configuration floating around. Incidentally, does the path http://domainname/global/ have a special meaning to Tomcat 4.x. I have a web application global that I have not yet mapped into server.xml yet, but trying to load a static html page domainname/global/default.htm is returning a 404 from Tomcat rather than finding it with IIS which I would have expected. Regards Roger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
sendRedirect() fails on first call only within a session
Hi I'm using IIS to serve the top level html pages from a web application that runs under Tomcat 3.2. The first page (default.htm) in the top level directory (http://domain/applicationname is displayed and prompts for userid and password and passes this data to a servlet /domain/applicationname/servlet/doLogin in a POST request. If the userid/password is invalid the servlet issues response.sendRedirect(response.encodeRedirectURL(../default.htm)); to redisplay the original form. What actually happens is that if an invalid password is entered into default.htm when it is displayed for the first time in a session, the redirection displays the standard IIS 404 Not Found page. If I then navigate back to default.htm by either using the browsers back button, or re-entering the URL in the adress bar and re-enter an invalid password, then the re-direction call works and re-displays default.htm and will continue to do so for as long as I keep entering invalid passwords. Any ideas what's going on? Regards Roger -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: sendRedirect() fails on first call only within a session
I've done some more investigation. If I replace 'response.sendRedirect(response.encodeRedirectURL(../default.htm))' with 'response.sendRedirect(../default.htm);' then everything works as expected, so there is something about response.encodeRedirectURL() that I'm not uderstanding. I've looked through the isapi.log and I've noticed that when using response.encodeRedirectURL() that the resulting call for the first call (and the first call only) in a session is something like /application/default.htm;jsessionid=0c1stutim1 - which is the correct path. I was wondering, could IIS be considering the ';jsessionid=' string as being part of the actual path to the page? Regards Roger -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
URL mapping problem
Hi (Tomcat 3.2, IIS 4.0 Win NT5.0 Sp6) I have a commercial web application (to which I have no access to the source) that exists in two configurations (i.e two sets of web directories below Inetpub/wwwroot). The application ends by calling exit.htm in their respective html directories (ipshtml and elcomhtml). I need to do some extra processing and want to replace these calls to exit.htm with calls to servlets that exist in a Tomcat web application. Each call needs a different servlet although they are in the same Tomcat web application I've put the following entries in uriworkermap.properties (one for each of the applications) /ipshtml/exit.htm=$(default.worker) /elcomhtml/exit.htm=$(default.worker) and after restarting both tomcat and IIS, I can see from the isapi.log that IIS is correctly identifying both these calls as servlet URLS and hands off to tomcat. What I'm having problems with is configuring the web.xml file to find the servlet. I started with servlet-mapping servlet-nameExitReplacement/servlet-name url-pattern/ipshtml/exit.htm/url-pattern /servlet-mapping servlet-mapping servlet-nameElcomExit/servlet-name url-pattern/elcomhtml/exit.htm/url-pattern /servlet-mapping but calls to either ipshtml/exit.htm and elcomhtml/exit.htm both return 404. If I change to servlet-mapping servlet-nameExitReplacement/servlet-name url-pattern/exit.htm/url-pattern /servlet-mapping servlet-mapping servlet-nameElcomExit/servlet-name url-pattern/exit.htm/url-pattern /servlet-mapping then Tomcat logs that it's removing duplicate exit.htm's during startup and calls to both /ipshtml/exit.htm and /elcomhtml/exit.htm resolve to ElcomExit. If I reverse the order of the servlet mapping entries then both resolve to ExitReplacement. So, how do I map /ipshtml/exit.htm to ExitReplacement and /elcomhtml/exit.htm to ElcomExit when both ExitReplacement and ElcomExit exist in the same Tomcat Web Application. I hope that this makes sense. Regards Roger -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: URL mapping problem
Howdy, You realize one page can only map to one servlet, right? There can only be one /exit.htm for your webapp. My mistake, I assumed that Tomact would see /ipshtml/exit.htm and /elcomhtml/exit.htm as two. You can, however, code that servlet to see whether the request came from ip or elcom and do different things accordingly. No problem, thanks for your help. Regards Roger -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: JSP source
Hi I want to do some reporting that is to be called by a cron job. I do not want to use a reporting tool. Can use JSP * to talk to the database * fetch the relevant details * format the details as a report * fetch the HTML source of the generated report * and email it to intended recipients My doubt is is it possible to fetch the HTML source of a JSP? I know I could use java mail to email if I could manage to get the source. Please pour in your suggestions This is probably not what you want to hear, but if I had to do this, then I would be looking to provide the report data as XML and then use an XSLT stylesheet (call it your template if you wish) to transform the XML data into HTML or whatever I wanted. Regards Roger -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Java method equal to perl crypt()?
The only problem I have is if I migrate to JSP, how can I compare passwords that are supplied in the JSP page to the password in the DB that was stored via the Perl crypt() function? Assuming that the Perl crypt() function is an implementation of the Unix crypt command then try either http://manticore.2y.net/Java/examples/crypt.zip or google for Jcrypt.java Regards Roger -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: servlet communication
Could you just rely on the manager application to reload the webapp? Then there is no code to maintain. I've been looking for an effective way to emulate the unix 'kill -HUP' command for ages. It's not always practical to kill off the webapp, since you need to ensure that no-one is using it at the time. Otherwise - your in a kludge. You can: - Put a status object in your application context - When a servlet is executed - it can first check its status instance locally stored against the application version. If out of sync - the servlet can reload its config. But this requires a syncronization block on the servlet which is a pain. IMO - Use the manager app. You may be able to minimise the synchronization effect by adapting the technique used by the fast collections implemented in the Apache Commons project. These allow unsynched read access unless a change is taking place, in which case the read access is only synced until the change is finished. Regards Roger -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
iis_redirect.log
Hi I'm using Tomcat 3.2 as a servlet engine for Microsofts IIS. Is there anyway that I can either force the iis_redirect.log to rotate on a regular basis, or stop/reduce the volume of data that's getting spat into the log file. Regards Roger -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Auto Start Tomcat
Can anybody out there please tell me how to AutoStart Tomcat in the background on a RedHat Linux box without having to log in and start the service manually? This came up a couple of days ago. Scan the archives for the thread Automatic start from /etc/rc3.d ??? and you'll find everything that you need in there, including some example startup scripts. Regards Roger Information in this message is confidential and may be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please notify the sender and delete the message immediately. Unauthorised disclosure, distribution and copying of this email is strictly prohibited. The opinions expressed within this message are those of the individual author. Whilst Brakes takes reasonable steps to scan this email it does not accept liability for any virus that may be contained in it. Brake Bros plc. Registered Office: Enterprise House, Eureka Business Park, Ashford, Kent TN25 4AG. Registered in England Wales number 2035315. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]