apache 2 + omcat 5 with mod_jk2

2004-05-11 Thread Dionisio Ruiz de Zárate
hello my workers2.properties file i include in apache with: LoadModule jk2_module /usr/lib/apache2/mod_jk2.so JkSet config.file /etc/apache2/workers2.properties the properties file has: [shm] info=Scoreboard. Requried for reconfiguration and status with multiprocess servers. file=anon # Defines

Re: Streaming pdf document fails

2004-05-11 Thread Sasha Borodin
Bert, I just ran across something similar today, read this document: http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com: 80/support/kb/articles/q316/4/31.aspNoWebContent=1 The way I understand it, IE wants to save the file in cache before letting you view it; if you're

error starting tomcat5

2004-05-11 Thread Steven Garrett
Hi, Thanks to those of you who helped me with my previous server.xml include file issue, that worked out like a charmeventually :) Anyways, we're testing out tomcat5 on a RedHat 9 box and I keep getting this error message. java.lang.NoClassDefFoundError:

RE: Streaming pdf document fails

2004-05-11 Thread Summers, Bert W.
Added response.setHeader(Pragma, cache); response.setHeader(Cache-Control, cache); And now it works. I was not adding the cache-control, something else must have but did not override my setting to cache. Mozilla still double downloads, but then 90% of my users are IE. Thanks.

RE: symLinks broken in tomcat 5.0.19

2004-05-11 Thread Randy
Thank you for the response, I have it within the Host. There are no errors or warnings in the log file. I was assuming it should be inside of the Context. From what I could tell you can put it in the engine or host and that would override the defaults for contexts created. I really only want it

Definitive Documentation for RH9, mod_jk2, Apache2 Tomcat 5?

2004-05-11 Thread Dan Barron
Hello, Is anyone aware of any definitive documentation for compiling, installing, and configuring mod_jk2 on Red Hat9 with Apache2 and Tomcat5? Thank you, Dan Barron - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Tomcat.exe w2k Mem limit?

2004-05-11 Thread Stuart Larking
Anyone hit a limit on TC 4.1.x Mem Usage size (or other unexpected limit) with tomcat.exe on w2k? We are running TC 4.1.29, which is running as a service using tomcat.exe. The -Xmx (on the service in the registry as a JVM Option) is set to 1580m as the machine has plenty of RAM and lots of

Configuration free persistence?

2004-05-11 Thread Will Hartung
This is blasphemy, I know...but... As far as I know, there is no portable way that a generic Webapp bundled in a WAR, and dropped into a random container can persist information from one run of the container to another. On the one hand, there is no requirement that a WAR be exploded on deploy,

log in page using tomcat

2004-05-11 Thread Arora, Avinash
Hi, Does tomcat provides any help in creating the log in page. I want to create a login page, that will accept same username and password specified in server.xml particular data source context (for logging to database) in the ResourceParams tag. Thanks. Avinash Arora

Re: log in page using tomcat

2004-05-11 Thread QM
On Tue, May 11, 2004 at 07:53:48PM -0600, Arora, Avinash wrote: :Does tomcat provides any help in creating the log in page. I want : to create a login page, that will accept same username and password : specified in server.xml particular data source context (for logging to : database) in the

Re: [ANN] The Reference Scanner and Jakarta Tomcat - Heap Profiling, Memory Leaks

2004-05-11 Thread Joseph Shraibman
Joerg Baumgaertel wrote: Hi all, because often requested, I added a Jakarta-Tomcat-Howto to the 'jb2works.com' website. You find the following documents - How to scan a Java webapplication http://jb2works.com/refscan/tomcat.html - How to scan Jakarta-Tomcat full-space

RE: Multihosting in tomcat

2004-05-11 Thread k e
I too have questions concerning multihosting with Tomcat. Yoav has mentioned a few times about not needing a connector to IIS or Apache. What I wonder is whether or not the Tomcat Standalone method would work in a situation where you have 20+ instances (Windows Services/JVMs) running on one

RE: Requested Resource Not Available

2004-05-11 Thread Jonathan Quinn
You nailed it. My url was wrong. How silly.. Thanks for the help! Original message Date: Tue, 11 May 2004 13:35:06 -0400 From: Shapira, Yoav [EMAIL PROTECTED] Subject: RE: Requested Resource Not Available To: Tomcat Users List [EMAIL PROTECTED] Hi, Having read that similar

Re: [ANN] The Reference Scanner and Jakarta Tomcat - Heap Profiling, Memory Leaks

2004-05-11 Thread Jacob Kjome
At 11:47 PM 5/11/2004 -0400, you wrote: Joerg Baumgaertel wrote: Hi all, because often requested, I added a Jakarta-Tomcat-Howto to the 'jb2works.com' website. You find the following documents - How to scan a Java webapplication http://jb2works.com/refscan/tomcat.html - How to scan

strange memory problem

2004-05-11 Thread Arne Schirmacher
I try to run several instances of a large web application in one Tomcat. My JAVA_OPTS shell variable is set to -Xmx700m -Xms700m and the web application also reports that 700 MByte RAM are available, and maybe 180 MByte in use. After a few hours I got the java.lang.OutOfMemoryError in

Re: strange memory problem

2004-05-11 Thread Joseph Shraibman
java.lang.OutOfMemoryError is also thrown when java can't start up a thread because it reached the system limit. Could that be your problem? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: [ANN] The Reference Scanner and Jakarta Tomcat - Heap Profiling, Memory Leaks

2004-05-11 Thread Joseph Shraibman
Jacob Kjome wrote: At 11:47 PM 5/11/2004 -0400, you wrote: Joerg Baumgaertel wrote: Hi all, because often requested, I added a Jakarta-Tomcat-Howto to the 'jb2works.com' website. You find the following documents - How to scan a Java webapplication http://jb2works.com/refscan/tomcat.html - How

full URL

2004-05-11 Thread rlipi
Hi, is it possible to (in servlet or JSP) gain full URL string? It means protocol, server, directory, parameters, user identification. There are methods in the servlet that return parts of the URL. But I didn't find method that returns full URL string. Than you, Lipi

Multihosting in tomcat

2004-05-11 Thread Michal Kwiatek
Hello all! I have to set up a multihosting service based on tomcat. What I mean by multihosting is that many people are able to deploy their web application on the server. The problem is that the applications can be badly written (for instance can contain unfinite loops) and thus cause the server

Manager language is wrong

2004-05-11 Thread Jean-Christian Imbeault
I've just installed Tomcat 5.0.19 on an 'English' Windows 2000 machine with the Japanese IME also installed. Tomcat display it index and admin pages in English but when I access the manager the page is displayed in Japanese. This happens under both IE and N7. Can anyone tell me how to 'fix' this

Tomcat 4.1.27 Milestone 2??

2004-05-11 Thread Jens . Mueller
Hello all, I'm looking for the Milestone2-Relase of Tomcat 4.1.27. I found the 4.1.27 in the archive, but is it the Milestone 2? How can I identify this? Jens - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Tomcat 4.1 HttpServletRequest.getServerPort() returns incorrect p ort ?

2004-05-11 Thread Ryan Lissack
Hi, In our setup we have a hardware load-balancer which forwards normal requests to our cluster of Tomcat servers. For SSL requests, the load balancer first forwards to an hardware SSL accelerator and then on to one of our Tomcat servers. Each Tomcat instance has 2 connectors configured. For

Re: tomcat clustering

2004-05-11 Thread keita elhadji
Hi, Thank you for your answer now it's working in my log i have now : 2004-05-11 10:04:21 StandardContext[/jsp-examples]ContextListener: contextInitialized() 2004-05-11 10:04:21 StandardContext[/jsp-examples]SessionListener: contextInitialized() 2004-05-11 10:04:24

Apache2/Tomcat5/mod_jk2 problems

2004-05-11 Thread Adrian Barnett
Hi, I'm having an annoying memory leak problem in tomcat5 on Redhat 9. The memory gradually creeps up until the JVM runs out of memory. (I've been using JMeter to send thousands of requests to tomcat) Now, if I run the tests against tomcat by itself (via port 8080) it is fine and stable, the

apache, mod_jk, tomcat hungs

2004-05-11 Thread Beat De Martin
Hello folks I'm using Tomcat 3.3.1, Apache 1.3.27 and mod_jk 1.2.4. Every two days my Tomcat hungs and I have to restart it. Before Tomcat hungs I can see the following in mod_jk.log: ERROR: can't receive the response message from tomcat, network problems or tomcat is down. err=-1

AW: Tomcat 4.1.27 Milestone 2??

2004-05-11 Thread Jens . Mueller
A point of principle: how is the order of the releases? 1. Milestone 1 - x 2. Release Candidate 1 - x 3. Final ?? So the 4.1.27 wich ist archived is the final and of course better as the Milestone 2? -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet:

Client authentication and customized error pages

2004-05-11 Thread Gustavo Rodríguez
Hi everyone! We were working in this issue some time ago, and reported that when using the clientAuth=want parameter, we got the following exception: java.net.SocketException: Socket Closed at java.net.PlainSocketImpl.setOption(PlainSocketImpl.java:177) We left it for some time, as

tomcat 4.1.30 vs 5.0.19 memory allocation

2004-05-11 Thread Christoph Loibl
hello! i'm evaluating the same application (apache-struts- vm- based) on tomcat 4.1.30 5.0.19 1) using jmeter to create about 1000 sessions 2) waiting until all sessions have timed out (manager-appl. says 0 sessions) 3) repeating these steps a few times (say 10 times) on 5.0.19:

RE: forwarding across contexts?

2004-05-11 Thread Shapira, Yoav
Hi, In short, how does one deploy a war file such that it looks for content (/images/whatever.gif) in a configurable location in the file system? Configure the server to serve that WAR file with a context path of (the empty string). This can be done in tomcat in three ways: - Add a Context

RE: How to know if ANT is Installed correctly

2004-05-11 Thread Shapira, Yoav
Hi, How about running ant -version ;) Yoav Shapira Millennium Research Informatics -Original Message- From: Parker, Mike [mailto:[EMAIL PROTECTED] Sent: Monday, May 10, 2004 10:48 PM To: Tomcat Users List; Tomcat Users List Subject: How to know if ANT is Installed correctly Hi, I

RE: tomcat 4.1.30 vs 5.0.19 memory allocation

2004-05-11 Thread Shapira, Yoav
Hi, from my point of view there is no reason for the application not to memory leak on 4.1.30 but on 5.0.19? Your point of view is far from completely informed, then ;) (In the literal sense of the word, no insult here). Given the magnitude of the changes between tomcat 4 and 5 it'd be fairly

RE: Tomcat 4.1.27 Milestone 2??

2004-05-11 Thread Shapira, Yoav
Hi, There's no milestone release for tomcat 4.1.27 or any other tomcat releases. We use a different point release for each one, no milestone convention. So there's only one 4.1.27 archived release. Yoav Shapira Millennium Research Informatics -Original Message- From: [EMAIL

Tomcat 4.0.6 and Japanese chars urgent

2004-05-11 Thread jyotsna
Hello all I am facing the following problem with tomcat 4.0.6 when using Japanese characters : 1. The default encoding of the browser is not being set to the Japanese charset (shift-jis). I have to change the setting manually to see the chars. 2. My japanese chars though being displayed in the

Re: Muiltipul Tomcat 5.19 Servers on the same machine.

2004-05-11 Thread Bond
Windows 2000 SP4 Thanks --- Parsons Technical Services [EMAIL PROTECTED] wrote: What OS? Doug - Original Message - From: Bond [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, May 10, 2004 10:18 PM Subject: RE: Muiltipul Tomcat 5.19 Servers on the

RE: Directory recursion with mod_jk2.

2004-05-11 Thread Cox, Charlie
Did you set the welcome-file-list in web.xml so that it knows to use index.cfm as a welcome page? Also, I think your Directory is wrong for Apache. Apache doesn't know about the directories used by tomcat, so it will never match your path. I think you want something like this: Location /

Re: Directory recursion with mod_jk2.

2004-05-11 Thread Brett Simpson
On Tuesday 11 May 2004 08:21 am, Cox, Charlie wrote: Did you set the welcome-file-list in web.xml so that it knows to use index.cfm as a welcome page? If I set that then it does work but I would rather control it through Apache since that will function much closer to our existing Apache +

Can you ever update a sessions access time?

2004-05-11 Thread Balunas, Jay
All, I need to update a session access time (as if a request had just occurred). I have a application that sends a keep-a-live message to tomcat (with a sessionID). I wrote a session tracker to retrieve the already created session (via an earlier web-page request) When I our servlet

Re: maxThreads

2004-05-11 Thread Hollerman Geralyn M
At 03:03 AM 5/11/2004 +, Bill Barker wrote: By default, Tomcat will start maxThreads/2 threads incase it needs lots of threads in a hurry. Almost all of them will be blocked, so there generally isn't that much OS overhead in creating them. However, if you set the 'maxSpareThreads'

Re: Filter on url example - Filter out hack attempts

2004-05-11 Thread lrnobs
Yoav, So from what I know so far my /usr/local/tomcat/webapps/myapplication/WEB-INF/web.xml should look like the following: web-app filter filter-nameUrlFilter/filter-name filter-classUrlFilter/filter-class *Don't know how this should layout.* /filter filter-mapping

RE: forwarding across contexts?

2004-05-11 Thread Fred Toth
Thanks once again. This is very helpful. Now here's what I really want (it never ends, does it): Is there a way, within a single context, to separate out the static content to some other file system location. I'd like to be able to deploy my war file with library jars, configuration info,

Re: Filter on url example - Filter out hack attempts

2004-05-11 Thread Nathan Maves
First of this is not a Tomcat question. This type of information is always available at http://java.sun.com or http://forum.java.sun.com/ To answer your questionYes. in-fact you can place the class where ever you want as long as it is in your classpath. Of course you will also have to

RE: Multihosting in tomcat

2004-05-11 Thread Shapira, Yoav
Hi, Good luck ;) Yoav Shapira Millennium Research Informatics -Original Message- From: Michal Kwiatek [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 11, 2004 3:42 AM To: [EMAIL PROTECTED] Subject: Multihosting in tomcat Hello all! I have to set up a multihosting service based on

RE: Looking for debug solutions

2004-05-11 Thread Shapira, Yoav
Hi, Ask on a linux list: this has much more to do with how the process listings work in your RH9 kernel and utilities than it does with tomcat. Yoav Shapira Millennium Research Informatics -Original Message- From: Randy [mailto:[EMAIL PROTECTED] Sent: Monday, May 10, 2004 8:51 PM To:

RE: Filter on url example - Filter out hack attempts

2004-05-11 Thread Shapira, Yoav
Hi, First of this is not a Tomcat question. This type of information is always available at http://java.sun.com or http://forum.java.sun.com/ Right, but we do encourage general servlet and JSP related discussions here too. So from what I know so far my

RE: forwarding across contexts?

2004-05-11 Thread Shapira, Yoav
Hi, Is there a way, within a single context, to separate out the static content to some other file system location. Of course, there are many ways, none of them advised. You want to keep your webapp as a whole, that's the whole point of a WAR file. You can symlink (at the filesystem level) or

RE: Can you ever update a sessions access time?

2004-05-11 Thread Shapira, Yoav
Hi, Why are you doing this at all? Any time you try to circumvent the Servlet Specification this way, you'll get burned in the long run. More specifically, any solution you come up with here will be specific not only to tomcat, but to this tomcat version, as the façade or its implementation

Re: Filter on url example - Filter out hack attempts

2004-05-11 Thread lrnobs
Nathan, I am a newbie to Java and Tomcat, and I did spend two days with two Tomcat books I bought and Google trying to find some instructions I could understand before posting a question to this list. Please let me know if there is a list more appropriate for new users. Thanks, Larry Nobs

JVM startup options for Windows Service

2004-05-11 Thread Damon Henderson
I need to know how to specify JVM startup options when 5.0.24 is installed as a Windows service. Can I add my options to service.bat and install the service with options? if so how ? Or does Tomcat5.exe call catalina.bat in which case I can just use JAVA_OPTS= Thanks

RE: Multihosting in tomcat

2004-05-11 Thread Michal Kwiatek
To add another point to my earlier post: I'm not concerned with malicious code like System.exit(1) because a custom SecurityManager will take care of that. What worries me is the abuse of resources causing the server to go low on resources and crash. Perhaps installing a separate Tomcat instance

Re: apache, mod_jk, tomcat hungs

2004-05-11 Thread Daniel Gibby
All I can say is you are not alone. Requests of our sort never seem to be answered, and we've been asking them for months. Actually, by being answered I'm not saying that people don't post replies, I just mean that I don't know of anyone who has fixed this issue on their system. It sure sounds

FW: Directory recursion with mod_jk2.

2004-05-11 Thread Cox, Charlie
-Original Message- From: Brett Simpson [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 11, 2004 8:55 AM To: [EMAIL PROTECTED] Cc: Cox, Charlie Subject: Re: Directory recursion with mod_jk2. On Tuesday 11 May 2004 08:21 am, Cox, Charlie wrote: Did you set the welcome-file-list in

Re: Help with Simple JDBC Connection (sry, kinda long)

2004-05-11 Thread Keg
Parsons Technical Services wrote: Keg, Don't see anything at this point. Post the context section for this app. Doug - Original Message - From: Keg [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Saturday, May 08, 2004 9:47 PM Subject: Re: Help with Simple JDBC

RE: Multihosting in tomcat

2004-05-11 Thread Benjamin Armintor
Michal- We're in exactly the same situation (running 4.1.x), and our solution is to isolate the most critical application(s) in their own jvm (and tomcat instance). Because everything is running as a single process, it's difficult to get very fine-grained control over an app's resource use

RE: Bad Cookie Name when NOT using cookies?

2004-05-11 Thread Patrick Willart
Too bad you didn't get a reply on this. My log file is full with similar messages and had hoped to learn what was causing them. Anyone? Patrick -Original Message- From: Evgeny Gesin [mailto:[EMAIL PROTECTED] Sent: Monday, May 10, 2004 1:49 PM To: Tomcat Users List Subject: Bad Cookie

RE: Can you ever update a sessions access time?

2004-05-11 Thread Balunas, Jay
Thanks for the reply, The problem is that just setting, getting, or removing an attribute from the session will not update the access time. This is what I was originally going to do, but after looking at the tomcat source this is not the case. I would prefer not to circumvent

Re: Filter on url example - Filter out hack attempts

2004-05-11 Thread Adam Buglass
Hi Larry, as someone who has only been using tomcat (apart from the deploy tool) since August and who has had to greatly improve my Java skills since the same time... I suggest the best way to learn is to get your hands dirty, so to speak. Thoroughly read the provided Tomcat docs including any

Re: Filter on url example - Filter out hack attempts

2004-05-11 Thread lrnobs
Yoav, Make sure you understand what a request URI is for the HTTP protocol. It will have neither the GET (method name) nor the protocol spec (HTTP/1.1 above). Read and understand the JavaDocs for the HttpServletRequest interface completely. I have been looking at the Access Logs daily.

RE: Multihosting in tomcat

2004-05-11 Thread Shapira, Yoav
Hi, To add another point to my earlier post: I'm not concerned with malicious code like System.exit(1) because a custom SecurityManager will take care of that. What worries me is the abuse of resources causing the server to go low on resources and crash. Perhaps installing a separate Tomcat

RE: Multihosting in tomcat

2004-05-11 Thread Shapira, Yoav
Hi, Oh, BTW: JDK 1.4 has a JVM option to ignore explicit System.exit calls. I forget the exact syntax but you can look it up on Sun's VM Options web page. Yoav Shapira Millennium Research Informatics -Original Message- From: Benjamin Armintor [mailto:[EMAIL PROTECTED] Sent: Tuesday,

Re: Apache2/Tomcat5/mod_jk2 problems

2004-05-11 Thread Daniel Gibby
I *really* wish I knew the answers to your questions. Connectors are the most frustrating part of using tomcat. But then again, I haven't tried session replication ;-) I don't know if the problem that I'm having is the same as yours, but I have to kill and restart tomcat every other day or so.

RE: Can you ever update a sessions access time?

2004-05-11 Thread Shapira, Yoav
Hi, Our need for this is that we have a java application that is launched remotely by a control web-page. As long as the remove application is active we do not want to the session that launched it to die. Unfortunately these were the requirements given to me, I just need to see if it is

Re: JVM startup options for Windows Service

2004-05-11 Thread Hector Adolfo Alonso
Damon: I've developed the following scripts for install/deinstall Tomcat 5.0.19. They are based on bin\service bat in Tomcat distribution, and Apache Commons Daemon project info. Modify as you need. I hope this help you. Hector./ ServiceInstall.bat @echo off set PATH= set CLASSPATH= set

RE: Filter on url example - Filter out hack attempts

2004-05-11 Thread Shapira, Yoav
Hi, I have been looking at the Access Logs daily. Anytime a legitimate user accesses my site everything is preceded with a GET or POST and a jsp or gif that I can recognize. Initially a session starts off with a plain GET / HTTP/1.1 or 1.0 so I should allow these, but all other legitimate

RE: Can you ever update a sessions access time?

2004-05-11 Thread Dale, Matt
One method i've used to maintain a session is a meta refresh on the html pages, this may or may not be appropriate to your app though. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 11 May 2004 15:36 To: Tomcat Users List Subject: RE: Can you ever update a

Re: Bad Cookie Name when NOT using cookies?

2004-05-11 Thread Daniel Gibby
Some questions that might help: 1) Do you have cookies turned off completely on all of your contexts? That means that you should be seeing ;jsessionid= in any of your URLs unless they are just hard coded html urls, right? In other words, if you use response.encodeURL() for links, you should

Re: Filter on url example - Filter out hack attempts

2004-05-11 Thread lrnobs
Adam, Thanks for the additional links. I'm a twenty year IT professional and I feel like I am in kindergarden all over again. It is hard to make the switch from Microsoft products and not lose the house in the process. I've taken a Unix class and a Java class at the local community college,

RE: Filter on url example - Filter out hack attempts

2004-05-11 Thread Ralph Einfeldt
It's not always easy easy to find the right list for a question. The opinions about what is right or wrong vary with the members of the list. (In my opinion your question is right in this list, although I can understand that others have different opinions in this case) I have seen questions

Re: Bad Cookie Name when NOT using cookies?

2004-05-11 Thread Evgeny Gesin
Of course, I not disabled cookies in Tomcat and my program invokes session.getAttribute() and session.setAttribute(), but the program not creates/reads cookies. So, I will think about (2), if another appl on my server might be setting cookies in the root path... By the way how I can check that?

RE: Can you ever update a sessions access time?

2004-05-11 Thread Balunas, Jay
Thanks for all the responses here are my thoughts: the -1 idea causes a problem because a user could just close the browser and we would not know when to invalidate the session (memory leak) the html page sends a pseudo request is a good one, but we really only wanted to have the keep alive

Re: Apache2/Tomcat5/mod_jk2 problems

2004-05-11 Thread QM
On Tue, May 11, 2004 at 11:05:34AM +0100, Adrian Barnett wrote: : After trying numerous different things, suspicion falls on mod_jk2. The : docs on mod_jk2 are not very helpful. Some say that mod_jk2 is better than : mod_jk and should be used in place of it, others say that mod_jk2 is not :

Re: apache, mod_jk, tomcat hungs

2004-05-11 Thread Beat De Martin
Thank for being in te same boat ... Do you mean restarting nightly could help getting less of these locks ? Kind regards Beat De Martin Switzerland All I can say is you are not alone. Requests of our sort never seem to be answered, and we've been asking them for months. Actually, by being

RE: Manager access problems

2004-05-11 Thread Yansheng Lin
Yeah, that makes sense. You may want to take a look on how to set up a virtual host in tomcat, it's part of the server configuration. Just remember that your ip-address is the same as a server name(www.myCompany.com). http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/host.html Hope this

Re: apache, mod_jk, tomcat hungs

2004-05-11 Thread Daniel Gibby
Well, I just started restarting nightly last night. My lockups have been happening less often than that, so I'm guessing that this will prevent further lockups, unless my site usage goes up significantly. Daniel Beat De Martin wrote: Thank for being in te same boat ... Do you mean restarting

Re: Bad Cookie Name when NOT using cookies?

2004-05-11 Thread Daniel Gibby
Do you have that many applications that might be setting cookies? From the log posted, the cookie that tomcat seemed to be complaining about was: Path /Value: /myapplName It doesn't say anything about what the name of the cookie is... unless that is what Value is showing. Does myapplName ring

Re: apache, mod_jk, tomcat hungs

2004-05-11 Thread QM
On Tue, May 11, 2004 at 12:26:47PM +0200, Beat De Martin wrote: : I'm using Tomcat 3.3.1, Apache 1.3.27 and mod_jk 1.2.4. ^ Do you have a test system on which you can try out Tomcat 4.1 or 5? Even if you've found a legit Tomcat 3.x bug, IIRC that product is not under active

RE: Tomcat 4.0.6 and Japanese chars urgent

2004-05-11 Thread Yansheng Lin
Next time please do not put the word urgent in your msg title... What happens if you add a page directive on top of the jsp page? %@ page contentType=text/html;charset=UTF-8 pageEncoding=UTF-8% I am a bit weary of TC4.0's. But give that a try with Shift-JIS encoding. And let me know if it

Re: Filter on url example - Filter out hack attempts

2004-05-11 Thread lrnobs
Yoav, Ok, thank you. I appreciate all your help. Larry Nobs - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, May 11, 2004 9:37 AM Subject: RE: Filter on url example - Filter out hack attempts Hi, I have been

Re: Filter on url example - Filter out hack attempts

2004-05-11 Thread Nathan Maves
True every alias is subject to the occasional OT question. I think for the most part people are not aware of other areas where information is available. my $.02 On May 11, 2004, at 8:55 AM, Ralph Einfeldt wrote: It's not always easy easy to find the right list for a question. The opinions

Re: OutOfMemoryError after 5.0.24 update

2004-05-11 Thread Remy Maucherat
Stefan Proels wrote: Sorry, I wasn't precise enough here. I'm not statically precompiling JSPs that way. Sometimes we do need the feature to update a JSPs while the application is running. I'm running a simple script which invokes every JSP with jsp_precompile=true instead and since this script

Re: Apache2/Tomcat5/mod_jk2 problems

2004-05-11 Thread Chong Yu Meng
Hi, Another way to verify if the connectors are really giving you the problems (as opposed to the application) is to setup Apache as a reverse proxy and proxy all requests to Tomcat. There is documentation on this on the Tomcat site. My suspicion is that it could be your application. Daniel

having webapp reachable at two URLs

2004-05-11 Thread Mats Henrikson
Hi, I want to make a certain Tomcat webapp available at two different URLs, but still be coming from the same source. I seem to remember having seen documentation on how to do this, but I can't find it now. I am using Tomcat 4.1.30. Say I have the following being served by a Tomcat instance:

RE: forwarding across contexts?

2004-05-11 Thread Fred Toth
Yoav, Let me describe a bit about our application, just in case you (or anyone else) have some specific advice. My client is a publisher, and the bulk of the site will be many thousands of published articles and associated content such as figure, tables, etc. The HTML content, however, will be

How can you limit the max life-time for a servlet using filters?

2004-05-11 Thread tom ly
Once in a while we're getting out of thread errors with Tomcat. We have a requirement timeout of 5 seconds. Is there a way to use Filters (or whichever any other method) so that we can limit the time that a thread/servlet stays alive. - Do you

Re: having webapp reachable at two URLs

2004-05-11 Thread Mats Henrikson
Right, I managed to find some more info on this pointing me in the direction of setting up two different contexts in server.xml, with the same docBase but different path. However, as doing this would also double the database connections etc, is there a way of doing this with just a single context

RE: having webapp reachable at two URLs

2004-05-11 Thread Shapira, Yoav
Hi, You can have a simple redirect filter mapped to /* in one context that just redirects to the other. Yoav Shapira Millennium Research Informatics -Original Message- From: Mats Henrikson [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 11, 2004 12:16 PM To: Tomcat Users List Subject: Re:

RE: having webapp reachable at two URLs

2004-05-11 Thread Mats Henrikson
Yoav, You can have a simple redirect filter mapped to /* in one context that just redirects to the other. This sounds like a good way to do it, but I can't seem to find any docs on how to do redirects from inside a context definition. Am I missing something obvious here? Mats

Difference between org.apache.axis.client.Stub.setTimeout() vs. org.apache.axis.client.Call.setTimeout()?

2004-05-11 Thread tom ly
What's the difference between org.apache.axis.client.Stub.setTimeout() vs. org.apache.axis.client.Call.setTimeout()? - Do you Yahoo!? Win a $20,000 Career Makeover at Yahoo! HotJobs

Re: Help with Simple JDBC Connection (sry, kinda long)

2004-05-11 Thread PTS
If you did not create a context for the app, it is using the default context. In that case you need to add a link statement to the default context in the server.xml In order for any application to be able to see the globalresource it needs a link to tell it where it is. ResourceLink

Difference between org.apache.axis.client.Stub.setTimeout() vs. Call.setTimeout()?

2004-05-11 Thread tom ly
tom ly [EMAIL PROTECTED] wrote:What's the difference between org.apache.axis.client.Stub.setTimeout() vs. org.apache.axis.client.Call.setTimeout()? - Do you Yahoo!? Win a $20,000 Career Makeover at Yahoo! HotJobs

RE: having webapp reachable at two URLs

2004-05-11 Thread Shapira, Yoav
Howdy, You can have a simple redirect filter mapped to /* in one context that just redirects to the other. This sounds like a good way to do it, but I can't seem to find any docs on how to do redirects from inside a context definition. Am I missing something obvious here? Yeah: my solution

Re: Passing init parameters to event listener

2004-05-11 Thread Dennis Dai
Thanks a lot Yoav. I actually meant ServletContext init parameters (found that out after pressing the send button) ... :p So you mean I should also implement ServletContextListener in my (session event) listener so I can get the ServletContext (thus the init parameters) when context

RE: Passing init parameters to event listener

2004-05-11 Thread Shapira, Yoav
Hola, You got it... Yoav Shapira Millennium Research Informatics -Original Message- From: Dennis Dai [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 11, 2004 1:20 PM To: Tomcat Users List Subject: Re: Passing init parameters to event listener Thanks a lot Yoav. I actually meant

Requested Resource Not Available

2004-05-11 Thread Jonathan Quinn
Hi, I'm a new tomcat user, but not generally a newbie, so I'm surprised that I'm so stuck. I've been trying to get the simple hello world servlet running to verify that I've setup everything. (The apps that come pre-setup with the distribution are working fine. I'm trying to get one of my

RE: Requested Resource Not Available

2004-05-11 Thread Shapira, Yoav
Hi, Having read that similar new users had this kind of problem, I've stared at the mappings for about 16 hours now, and I Ouch, 16 hours ;) servlet-mapping servlet-nameHelloServlet/servlet-name url-pattern/my-hello/hello/url-pattern /servlet-mapping With this mapping, you

Do Filters and the servlets part of the same thread?

2004-05-11 Thread tom ly
Are the servlets and the Filters that filters that particular servlet part of the same thread? - Do you Yahoo!? Win a $20,000 Career Makeover at Yahoo! HotJobs

Re: Bad Cookie Name when NOT using cookies?

2004-05-11 Thread Evgeny Gesin
Do you have that many applications that might be setting cookies? Those apps are clones of myapplName, and no one set cookie. May be I need to look at Apache or Tomcat configuration files, but what directives to search? Can Apache redirect generate such error Path /Value: /myapplName ? Does

Windows XP and Apache

2004-05-11 Thread Martinez de Pinillos, Joaquin
To All, I am using Apache 1.3.27 and tomcat 3.3. I am running this on Windows XP. I am trying to get Apache and Tomcat to work together unfortunately I keep running into an issue. Here are the symptoms. When I compile the examples JSP pages using Tomcat (port 8080) everything compiles

RE: having webapp reachable at two URLs

2004-05-11 Thread Mike Curwen
If you use Apache in front with jk, could you supply two different jkmount directives ? (I'm actually asking a question, since I don't know). ;) -Original Message- From: Mats Henrikson [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 11, 2004 11:00 AM To: Tomcat User Subject:

RE: Do Filters and the servlets part of the same thread?

2004-05-11 Thread Shapira, Yoav
Hi, A request (including its entire pipeline: valves, filters, servlets...) is processed by one thread in its entirety. Be careful relying on ThreadLocal-type designs. Yoav Shapira Millennium Research Informatics -Original Message- From: tom ly [mailto:[EMAIL PROTECTED] Sent: Tuesday,

Re: Memory Options

2004-05-11 Thread Paul Mitchell
Posting this again. Anyone run into this problem ever ? Thanks. --- Paul Mitchell [EMAIL PROTECTED] wrote: Hello All, I am trying to configure Tomcat 4.1.27 on Windows XP and for some reason when I set the CATALINA_OPTS option in my environment variables, the catalina jpda start

  1   2   >