HttpSession usage

2005-01-17 Thread Pawson, David
I need to maintain state across two form submissions; the first one requires that a user confirm an int and string; the second one records a small amount of metadata, user information and transaction information. Am I right in thinking that HttpSession getAttribute and putAttribute are the right

RE: HttpSession usage

2005-01-17 Thread Allistair Crossley
Hi, Sounds to me like you need to do some reading on JSP/Servlets, any book will explain sessions to you and provide examples. There are numerous online resources too. Yes, session is the object you should use and the getAttribute and setAttribute methods would retrieve and set variables in

RE: HttpSession usage

2005-01-17 Thread Pawson, David
Sounds to me like you need to do some reading on JSP/Servlets, any book will explain sessions to you and provide examples. There are numerous online resources too. No problem, nice to know I'm reading the right stuff though! You don't need to worry about identifying the

Re: JK unable to perform POST

2005-01-17 Thread Anders Falk
Ok, I found the answer myself. There was a bug in windows http://support.microsoft.com/?kbid=250397 and is corrected in Service Pack for windows 2000. Regards Anders Anders Falk wrote: Hey I am having problem with connecting IIS and Tomcat. Having configured it all, it works fine with method GET.

RE: Tomcat service crashes unexpectedly, no trace in logs

2005-01-17 Thread David Vandaele
Hi Greg, Thanks, great idea, I'm certainly going to try it out asap. However, at this point I don't think we're chasing the same problem (correct me if I'm wrong): In your case there is not really a crash, as opposed to my situation where I can see a message in the Windows Event Log + I also

Re: precompilation trouble

2005-01-17 Thread Marcus Beyer
Marcus Beyer schrieb: Using Tomcat 5.0.26 I have some problems precompiling my pages with: org.apache.jasper.JspC The precompiler instantiates some beans, altough I don't exactly know why. During instatiation some beans need to access managed beans, so they call something like this:

Re: latest set of Benchmark results

2005-01-17 Thread Remy Maucherat
On Sun, 16 Jan 2005 13:15:01 -0500, Peter Lin [EMAIL PROTECTED] wrote: Here is the latest set of benchmark results. I discovered an error in my test plan for 40K PNG, so the results for that one was off. All of the other results should be accurate. I re-ran the tests. Server: AMD 2ghz 1Gb

RE: HttpSession usage

2005-01-17 Thread James Milks
FYI - putAttribute() has been depricated and you shoud use setAttribute() when working with sessions. -Original Message- From: Pawson, David [mailto:[EMAIL PROTECTED] Sent: January 17, 2005 4:37 AM To: Tomcat Users List Subject: RE: HttpSession usage Sounds to me like you need to

Re: HttpSession usage

2005-01-17 Thread Christoph Kutzinski
Pawson, David wrote: Which then raises the question, do I (can I) check that a user has cookies enabled? HttpSession sess = request.getSession(true); if( sess.isNew() ) logger.info(pNew Session/p); else logger.info(pExisting Session/p); Hi, check the API. You can probably

TOMCAT + HttpURLConnection

2005-01-17 Thread Karthik N S
Hi Apologies I would like to use the 'HttpURLConnection' API to POST 'start/stop/reload' to Tomcat Manager URL 'http://192.168.10.64:8080/manager/html/start?path=/XYZ' , So can I Code this and Do I need the Proxy Authorization to do the same. Please send Some Code

Re: TOMCAT + HttpURLConnection

2005-01-17 Thread Ben Souther
This might be of interest to you: http://jakarta.apache.org/commons/httpclient/ On Mon, 2005-01-17 at 06:41, Karthik N S wrote: Hi Apologies I would like to use the 'HttpURLConnection' API to POST 'start/stop/reload' to Tomcat Manager URL

RE: HttpSession usage

2005-01-17 Thread Pawson, David
-Original Message- From: Christoph Kutzinski check the API. You can probably use: request.|*isRequestedSessionIdFromCookie http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/http/Ht tpServletRequest.html#isRequestedSessionIdFromCookie%28%29*() Looks good

Website downloading old file

2005-01-17 Thread Paul Taylor
Puzzled. I have a Tomcat 5 application, associated with it a file that can be downloaded from the website, which is in the root directory of the context. (So if the context is called myapp the file is in myapp). Everything was fine but then I realised that there was a problem with the file so

Re: precompilation trouble

2005-01-17 Thread Tim Funk
There here, but your 1st post was a on a Friday afternoon. And the errors were not very clear. Stack traces and a better description is probably in order. -Tim Marcus Beyer wrote: Marcus Beyer schrieb: Using Tomcat 5.0.26 I have some problems precompiling my pages with:

please help -SEVERE: Parse error in application web.xml - webapp does not start after cpanel upgrade

2005-01-17 Thread Carlos Martins
After upgrading cpanel on the server, tomcat throws the error message attached. I swear I did not change a thing in my web.xml file. Never the less tomcat says I now have an error in the /servlet tag. I forward the error and the contects of my web.xml. please help, if you can. Sincerely yours

Failin to start tomcat 5.0

2005-01-17 Thread hicham
Hello trying to get to start tomcat 5 under netbeans , I get the following exception thanks for your help - Using CATALINA_BASE: /home/hicham/.netbeans/4.0/jakarta-tomcat-5.0.28_base Using CATALINA_HOME:

RE: Failin to start tomcat 5.0

2005-01-17 Thread Peter Crowther
From: hicham [mailto:[EMAIL PROTECTED] trying to get to start tomcat 5 under netbeans , I get the following exception thanks for your help [...] java.net.BindException: Address already in use:8084 [...] You have another service using port 8084. Find it and change its port, or change

[Tomcat] jsp and iframe problems!!

2005-01-17 Thread Omar Adobati
Good Morning, I have a problem with iframe, this is what happend: I'm using a code like this one ...some html code... iframe src=myPage.jsp/iframe ...some code here too... myPage.jsp has a form, I sumbit the form and then if something will happen I redirect to newPage.jsp. Well, now, if I'm on

Re: Failin to start tomcat 5.0

2005-01-17 Thread Viorel Dragomir
You may have an already started instance of tomcat on port 8084 So you must check if the port is already open. Maybe somebody else already executed tomcat :) check with netstat -l or telnet localhost 8084 Viorel Dragomir . ..

request.getParameter(), works on get, not on post

2005-01-17 Thread Pawson, David
With an input form form method=get action=/repository/ckDoc name=form enctype=multipart/form-data label for=reposoArchive number:/label input name=reposno id=reposno

RE: request.getParameter(), works on get, not on post

2005-01-17 Thread Allistair Crossley
yeah you need to use a special request processing api for posted forms when encType is multipart, lookup Commons FileUploader. Allistair. -Original Message- From: Pawson, David [mailto:[EMAIL PROTECTED] Sent: 17 January 2005 14:08 To: tomcat-user@jakarta.apache.org Subject:

Re: request.getParameter(), works on get, not on post

2005-01-17 Thread Ben Souther
request.getParameter doesn't work with mutipart forms. You will need to check the documentation for the upload library you are using. If you don't have one yet, see: http://jakarta.apache.org/commons/fileupload On Mon, 2005-01-17 at 09:08, Pawson, David wrote: With an input form

Re: request.getParameter(), works on get, not on post

2005-01-17 Thread Omar Adobati
public void doGet(HttpServletRequest request, HttpServletResponse response) try to use the doPost method... should work bye, Omar On Mon, 17 Jan 2005 14:08:23 -, Pawson, David [EMAIL PROTECTED] wrote: With an input form form method=get

RE: [Tomcat] jsp and iframe problems!!

2005-01-17 Thread Allistair Crossley
if you are sending a redirect, then the URL on your browser should show newPage.jsp and refreshing will only cause that URL to load. I think you may be not telling us something about this scenario, can you be more detailed about how you perform the redirect etc.. -Original Message-

RE: request.getParameter(), works on get, not on post

2005-01-17 Thread Pawson, David
-Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: 17 January 2005 14:11 To: Tomcat Users List Subject: RE: request.getParameter(), works on get, not on post yeah you need to use a special request processing api for posted

Re: Website downloading old file

2005-01-17 Thread Parsons Technical Services
File permissions may be part of your problem. What OS is Tomcat running on? As for the showing the file after deleting it from the server, did you do a restart of Tomcat after deleting the file? I remember something on the list awhile back similar to this. Doug - Original Message -

multiple ips, multiple ssl certificates and port forwarding

2005-01-17 Thread rk
hello everybody! i'm new to this list and dont have too much tomcat expericence but i've been searching for a while to solve the following problem - unfortunately up to date without success: here is my little mind bender ;-) i have tomcat 4.1.31 running on a linux server, to use multiple ssl

Charater limit in servlet names

2005-01-17 Thread Akhthar Parvez. K
Hi All, I am wondering to know if there is any limit in maximum number of characters in a servlet name. The problem is, I have a servlet called test which was working fine. I just changed the servlet name to testingpruposetest and it's not working. I again changed the name to testing and the

Re: latest set of Benchmark results

2005-01-17 Thread Peter Lin
quick explanation of errors for 40K png test. The errors were the result of OS and not Tomcat. For some odd reason, after a couple of hours of benchmarks, the OS stopped accepting connections. I will re-run that one test later for my final write up. I've posted updated testplans including 4 with

Re: Website downloading old file

2005-01-17 Thread Ben Souther
Also, in the interest of not overlooking the obvious... Did you verify that the FTP write actually worked and that you didn't accidentally ADD another file with a slightly different name? On Mon, 2005-01-17 at 09:56, Parsons Technical Services wrote: File permissions may be part of your

Re: Charater limit in servlet names

2005-01-17 Thread birendar . waldiya
Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message

RE: Charater limit in servlet names

2005-01-17 Thread Allistair Crossley
hi, this will be something else like a servlet-mapping problem, don't forget you change the servlet-name in both the servlet definintion and the servlet-mapping also. A. -Original Message- From: Akhthar Parvez. K [mailto:[EMAIL PROTECTED] Sent: 17 January 2005 15:01 To: Tomcat

Re: Charater limit in servlet names

2005-01-17 Thread QM
On Mon, Jan 17, 2005 at 08:30:44PM +0530, Akhthar Parvez. K wrote: : I am wondering to know if there is any limit in maximum number of characters : in a servlet name. The problem is, I have a servlet called test which was : working fine. I just changed the servlet name to testingpruposetest and

Re: precompilation trouble

2005-01-17 Thread Marcus Beyer
Tim Funk schrieb: There here, but your 1st post was a on a Friday afternoon. And the errors were not very clear. Stack traces and a better description is probably in order. I see :-) === description === I am using the ant script I found on page

Long running requests and timeouts?

2005-01-17 Thread Andrzej Jan Taramina
I have a situation where some requests that get sent to Tomcat are very long running (basically batch operations). I've been testing with a request that takes just over 7 minutes to process and returns and XML document as a response. The problem I'm having is that the response gets truncated.

Re: precompilation trouble

2005-01-17 Thread Marcus Beyer
Marcus Beyer schrieb: === description === I am using the ant script I found on page http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jasper-howto.html. Sorry, I mean this one: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper-howto.html Marcus

web.xml parsing error SEVERE

2005-01-17 Thread Carlos Martins
Dear subscribers, I am having a strange problem starting tomcat. Catalina.out says I have an error at the closing tag /servlet Any clue on what the problem might be? Your comments will be most appreciated. Sincerely yours Carlos The error reads as follows: Jan 17, 2005 12:01:28 PM

Re: multiple ips, multiple ssl certificates and port forwarding

2005-01-17 Thread Parsons Technical Services
I think you have an error in your server.xml. The path to the keystore and other SSL fields are in the Factory element instead of the connector element. !-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector

RE: web.xml parsing error SEVERE

2005-01-17 Thread Allistair Crossley
personally it looks ok to me ;) probably a character out of place. i would try this .. 1) run it through an XML validator 2) gradually remove elements and see when the error goes away. start with the servlet mappings and servlets and continue ... A. -Original Message- From: Carlos

RE: web.xml parsing error SEVERE

2005-01-17 Thread Carlos Martins
One more thing you might want to consider: The web app was working fine until the server admin did an upgrade on the cpanel app that's what started this all... -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: segunda-feira, 17 de Janeiro de 2005 15:38

Re: precompilation trouble

2005-01-17 Thread Tim Funk
Ahh. Here is your issue: if (beanName == null) { try { Class bean = ctxt.getClassLoader().loadClass(klass); int modifiers = bean.getModifiers(); if (!Modifier.isPublic(modifiers) || Modifier.isInterface(modifiers) ||

Re: multiple ips, multiple ssl certificates and port forwarding

2005-01-17 Thread rk
unfortunately this does not seem to solve the problem ... but results in the following error (as the given keystore cannot be used) Jan 17, 2005 4:59:29 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-62.116.64.7-8080 Jan 17, 2005 4:59:29 PM

Re: Long running requests and timeouts?

2005-01-17 Thread Frank W. Zammetti
I can't answer your specific question, but the scenario you describe raises a red flag with me in general... When you potentially have such long-running requests, it's usual a Bad Idea(tm) to just allow them to run like this as part of a request. I think it's fair to say that most people

RE: web.xml parsing error SEVERE

2005-01-17 Thread Francois JEANMOUGIN
java.lang.ClassNotFoundException: org.apache.catalina.Container Ouch! Are you sure your tomcat installtion is OK? You could have a version mismatch (between TC4 and TC5) or a jar found at two places or any other reason why tomcat can't find this class. This is not an XML issue, this is a class

AW: Long running requests and timeouts?

2005-01-17 Thread Bernhard Slominski
Hi Andrzej, one possible workaround is compress the output, so the response is compressed with zip compresseion and your response gets shorter. You need a response filter for that, if this is an option an you need more details let me know. Cheers Bernhard -Ursprüngliche Nachricht- Von:

Problem with including JspC generated web.xml fragment

2005-01-17 Thread Andreas Schildbach
Hello everyone, I've got a bit of a problem precompiling JSPs for Tomcat 5.0. To be exact, the problem is the web.xml fragment that is generated by JspC containing the servlet and servlet-mapping elements. That fragment has to be included in the web.xml file somehow. Of course, I don't want to

Where / How to place app config file without overwriting during deploy

2005-01-17 Thread Jonathan Wilson
My current upgrade procedures are to shutdown tomcat 3.x, move the current version of my webapp directory somewhere else, recreate the /webapp directory, then un-jar the war file created by NetBeans. After doing this I then have to modify the WEB-INF/app.config file with customer-specific

in web.xml

2005-01-17 Thread Mark
Hi there, I need to set '' and '' characters in init-param field of web.xml Is there any standard way of setting up and reading those type of characters in web.xml file? Thanks, Mark. __ Do you Yahoo!? Yahoo! Mail - Helps protect you from

Re: multiple ips, multiple ssl certificates and port forwarding

2005-01-17 Thread Parsons Technical Services
unfortunately this does not seem to solve the problem ... but results in the following error (as the given keystore cannot be used) Jan 17, 2005 4:59:29 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-62.116.64.7-8080 Jan 17, 2005 4:59:29 PM

RE: in web.xml

2005-01-17 Thread Peter Crowther
From: Mark [mailto:[EMAIL PROTECTED] I need to set '' and '' characters in init-param field of web.xml Is there any standard way of setting up and reading those type of characters in web.xml file? As in all HTML and XML files, lt; and gt; are the character entities that represent and

Re: Problem with including JspC generated web.xml fragment

2005-01-17 Thread Tim Funk
Odd, I do not have this problem. Make sure you are building to a scratchpad. This means your web.xml is copied to a new location before you precompile. Then JSPC can edit it in place and you no not lose any of your changes. To get around the relative pathing issue - prefix your build with

RE: in web.xml

2005-01-17 Thread Mark
will getInitParameter(...) translate lt; to ? --- Peter Crowther [EMAIL PROTECTED] wrote: From: Mark [mailto:[EMAIL PROTECTED] I need to set '' and '' characters in init-param field of web.xml Is there any standard way of setting up and reading those type of characters in web.xml

Re: in web.xml

2005-01-17 Thread Tim Funk
You can use CDATA. For example: param-value ![CDATA[bWoo hoo/b ]] /param-value -Tim Mark wrote: Hi there, I need to set '' and '' characters in init-param field of web.xml Is there any standard way of setting up and reading those type of characters in web.xml file?

Re: in web.xml

2005-01-17 Thread Roberto Cosenza
Sure! Mark wrote: will getInitParameter(...) translate lt; to ? --- Peter Crowther [EMAIL PROTECTED] wrote: - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: multiple ips, multiple ssl certificates and port forwarding

2005-01-17 Thread rk
the keystore syntax is correct, as it works with one keytore ... the problem arises when there are multiple virtual hosts, it takes always one of them, but not the corresponding At 17:30 17.01.2005, you wrote: unfortunately this does not seem to solve the problem ... but results in the

Re: multiple ips, multiple ssl certificates and port forwarding

2005-01-17 Thread Hassan Schroeder
Parsons Technical Services wrote: unfortunately this does not seem to solve the problem ... but results in the following error (as the given keystore cannot be used) java.io.FileNotFoundException: /home/essence/.keystore (No such file or directory) First, the give server.xml showed the keystore

Re: multiple ips, multiple ssl certificates and port forwarding

2005-01-17 Thread Hassan Schroeder
[EMAIL PROTECTED] wrote: the keystore syntax is correct, as it works with one keytore ... the problem arises when there are multiple virtual hosts, it takes always one of them, but not the corresponding I'm puzzled by two aspects of your setup: 1) why don't you just assign the proper ports in

Re: multiple ips, multiple ssl certificates and port forwarding

2005-01-17 Thread Parsons Technical Services
Tomcat needs the name of the keystore to be .keystore No it doesn't. The name (and path) is arbitrary, which is why there *is* a keystoreFile attribute. As I said before, I haven't done this myself. I have, and none of my installations use .keystore as the file name... That is why I made the

Re: Website downloading old file

2005-01-17 Thread Paul Taylor
I think it is a browser problem because I got a friend to download from his computer and he received the correct file. Im using Firefox and still get the same problem. Ben Souther wrote: Also, in the interest of not overlooking the obvious... Did you verify that the FTP write actually worked

Re: Website downloading old file

2005-01-17 Thread Parsons Technical Services
Sounds like your ISP may have a proxy setup. Usually two different browsers don't know about each other. Doug - Original Message - From: Paul Taylor [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Monday, January 17, 2005 12:26 PM Subject: Re: Website

Developing a large project using Tomcat, please help me

2005-01-17 Thread GPezzini
Hi, we are developing a large java project using Tomcat. On the same project works several persons and the project counts serveral thousand of classes. The project has (in few words) three big places: - standard: the place in which are placed all the classes (not jar but classes) - patches: the

Re: Website downloading old file

2005-01-17 Thread Paul Taylor
Can you expand on this please, btw if I change any part of the web application itself such as a jsp the results are imediate. Two ther bits of info which maybe relevent. 1. The host is based in Canada and hence has time set to Candian time which is earlier than UK time where Im downloading to.

Re: Website downloading old file

2005-01-17 Thread Dakota Jack
Clear your browser cache. Jack On Mon, 17 Jan 2005 17:26:41 +, Paul Taylor [EMAIL PROTECTED] wrote: I think it is a browser problem because I got a friend to download from his computer and he received the correct file. Im using Firefox and still get the same problem. Ben Souther

karjera@m-1.lt karjera@m-1.lt

2005-01-17 Thread Dakota Jack
Is anyone else getting personal responses from this address after every submission to tomcat-user? Jack -- -- You can lead a horse to water but you cannot make it float on its back. ~Dakota Jack~ You can't wake a person who is pretending to be asleep. ~Native

Still having OutOfMemory Problems (Tomcat 4.1.31)

2005-01-17 Thread David Johnson
HI all. Well I'm still getting my out of memory problem fairly consistently (again) using Tomcat 4.1.31 with my Struts application. When I look st the memory usage, it says tomcat is using about 110k of memory for the VM, but that's just looking at the task manager. Tomcat is installed as a

Tomcat 4 doesn't start http service on Linux?

2005-01-17 Thread Stephen Charles Huey
We just installed Tomcat 4 on 2 Red Hat servers, and we have a BigIP load balancer in front of them. In troubleshooting an issue, the guy working with our BigIP said that when he was running Apache on either of the Linux servers, the load balancer could tell that the http service was running, but

Re: Tomcat5 java.lang.OutOfMemoryError

2005-01-17 Thread David Johnson
Can you post a link to the archives? On Tue, 11 Jan 2005 16:31:40 -0800 (PST), Ryan Stewart [EMAIL PROTECTED] wrote: I posted a how-to on this just yesterday I think. Try the archives. It's typically a good idea to check there before you post. -Original Message- From: SARMIENTO

Tomcat 4.1.31 Out of Memory Follow up

2005-01-17 Thread David Johnson
Hi again I've searched through the registry as well, and at HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Apache Tomcat 4.1.31\Parameters it DOES show the -Xmx=512M and -Xms=128M that are set in my installService.bat. It does not, however seem to be actually USING that much memory. Is

RE: Still having OutOfMemory Problems (Tomcat 4.1.31)

2005-01-17 Thread David Vandaele
Try printing out this: Runtime.getRuntime().freeMemory(): Runtime.getRuntime().maxMemory(); Check out the API if you want to know the exact meaning of these methods, but they are pretty obvious I think. Now print these somewhere you know you'll get before the OutOfMemError occurs, or some place

Re: Tomcat 4.1.31 Out of Memory Follow up

2005-01-17 Thread David Johnson
Note: This is the bat file I'm using to install... #Other Options to use # -DXX:+PrintTenuringDistribution -DXX:+PrintGCDetails -Xverbosegc # -DXms128M @SET JAVA_HOME=C:\j2sdk_1_4_0_2 @SET TOMCAT_HOME=C:\Tomcat4.1 @SET TOMCAT_JVM=%JAVA_HOME%\jre\bin\client\jvm.dll @SET

Re: Still having OutOfMemory Problems (Tomcat 4.1.31)

2005-01-17 Thread reynir
you should try using small m like -Xmx512m - this one. hope it helps -reynir David Johnson wrote: HI all. Well I'm still getting my out of memory problem fairly consistently (again) using Tomcat 4.1.31 with my Struts application. When I look st the memory usage, it says tomcat is using about 110k

RE: Still having OutOfMemory Problems (Tomcat 4.1.31)

2005-01-17 Thread Larry Isaacs
David, -D defines System properties, -X defines vendor specific JVM options. Thus, -DXms128M is incorrect. It should be just -Xms128M. Same for the other -DX arguments. Cheers, Larry -Original Message- From: David Johnson [mailto:[EMAIL PROTECTED] Sent: Monday, January 17, 2005

Re: Website downloading old file

2005-01-17 Thread Paul Taylor
What is going on ? I moved the file to a new filename and edited the jsp to point to the renamed file. Tried to download it and it downloaded as the correct size. I then mnoved it back to the oldfilename and changed the jsp back to point to original filename and once again it downloads the old

Re: Still having OutOfMemory Problems (Tomcat 4.1.31)

2005-01-17 Thread David Johnson
I think that was the problem My new batch file is # @SET JAVA_HOME=C:\j2sdk_1_4_0_2 @SET TOMCAT_HOME=C:\Tomcat4.1 @SET TOMCAT_JVM=%JAVA_HOME%\jre\bin\client\jvm.dll @SET TOMCAT_CLASSPATH=%TOMCAT_HOME%\bin\bootstrap.jar;%TOMCAT_HOME%\common\lib\servlet.jar @SET

Re: Problem with including JspC generated web.xml fragment

2005-01-17 Thread Andreas Schildbach
Tim Funk wrote: Odd, I do not have this problem. Make sure you are building to a scratchpad. This means your web.xml is copied to a new location before you precompile. Then JSPC can edit it in place and you no not lose any of your changes. To get around the relative pathing issue - prefix your

Re: Long running requests and timeouts?

2005-01-17 Thread Andrzej Jan Taramina
Frank: I don't know your usage pattern, but especially if there could be a number of such requests coming in at once, you are tieing up server resources this way. You also start running into situations like you mention with timeouts (I'm actually surprised the browser itself didn't time

RE: Still having OutOfMemory Problems (Tomcat 4.1.31)

2005-01-17 Thread Larry Isaacs
The -DX problem applies to the -DXX arguments too. Larry -Original Message- From: David Johnson [mailto:[EMAIL PROTECTED] Sent: Monday, January 17, 2005 1:16 PM To: Tomcat Users List Subject: Re: Still having OutOfMemory Problems (Tomcat 4.1.31) I think that was the problem

question on session info in manager webapp

2005-01-17 Thread Stephen Charles Huey
When I go to /manager/html and then click on the session count for one of my webapps, it displays this: OK - Session information for application at context path /testwebapp Default maximum session inactive interval 30 minutes 120 - 130 minutes:4 sessions If the default timeout is set to 30

Re: karjera@m-1.lt karjera@m-1.lt

2005-01-17 Thread Tomcat Newbie
Someone, throw them out. It is an auto-responder. I know. Ed On Mon, 2005-01-17 at 09:50 -0800, Dakota Jack wrote: Is anyone else getting personal responses from this address after every submission to tomcat-user? Jack -

Question about JNDI resources

2005-01-17 Thread Alan Deikman
I'm just learning this stuff, but having good success so far. In my SQL-backed bean I use a JDBCResource as per the documentation: protected static Connection getConnection() { //System.out.println(User.getConnection Attempting to get connection); try { Context

Re: precompilation trouble

2005-01-17 Thread Marcus Beyer
Tim Funk schrieb: Ahh. Here is your issue: if (beanName == null) { try { Class bean = ctxt.getClassLoader().loadClass(klass); int modifiers = bean.getModifiers(); if (!Modifier.isPublic(modifiers) || Modifier.isInterface(modifiers) ||

Re: precompilation trouble

2005-01-17 Thread Tim Funk
Oops, my bad. Forget newInstance() being called. But the line: Class bean = ctxt.getClassLoader().loadClass(klass); I believe does force my previous static statements to hold true. -Tim Marcus Beyer wrote: Tim Funk schrieb: Ahh. Here is your issue: if (beanName == null) { try { Class

Re: Website downloading old file

2005-01-17 Thread Paul Taylor
OK I think you are onto something here, the original file was called file.bin, new file replacing it also called file.bin and renamed to file2.bin When I use the ?var=bogus the correct file is returned, but when I don't specify a parameter for file.bin it still returns the older file.

Re: Website downloading old file

2005-01-17 Thread Ben Souther
Now, for kicks, try with a file with an '.asp' extension. Your ISP's proxy server may have a list of extensions that don't get cached. This would explain why your dynamic JSPs are working but the static files are being cached. On Mon, 2005-01-17 at 13:47, Paul Taylor wrote: OK I think you are

Re: TOMCAT + HttpURLConnection

2005-01-17 Thread Mark Thomas
Karthik N S wrote: ** *Hi* *Apologies* ** *I would like to use the 'HttpURLConnection' API to POST 'start/stop/reload' to Tomcat Manager URL* *'http://192.168.10.64:8080/manager/html/start?path=/XYZ' , * * So can I Code this and Do I need the Proxy Authorization to

apache2 + mod_jk + tomcat5.5.4 help

2005-01-17 Thread Trung Nguyen
Hello, I'm trying to configure mod_jk with tomcat 5.5.4, but I'm kinda stuck. I did it with tomcat 4.1.30 with no problem. How do you configure in server.xml to make it talk to apache2 through AJP13? In tomcat4 I did something like this: Connector

RE: Long running requests and timeouts?

2005-01-17 Thread Jiang, Peiyun
I have the same problem. If you find a solution, please post and email me. What I found out with my application is that when tomcat runs low on memory, it will start to behave erratically. For example: scheduled job won't run; running processes seem to terminate/timeout... I don't know exactly

Re: Website downloading old file

2005-01-17 Thread Paul Taylor
Umm inconclusive asp worked ok, i then created a text file called test1.bin downloaded it, edited and tried it again and it downloaded the new one correctly as well (this is without the ?var=bogus). Ben Souther wrote: Now, for kicks, try with a file with an '.asp' extension. Your ISP's proxy

RE: Long running requests and timeouts?

2005-01-17 Thread Ben Souther
These requests are not going to be called by users through a browser, since they are Web Services/REST types of requests. The only time they might get called through a browser is for testing purposes, in which case the tester knows that they will be very long running and that's not at issue. I

Re: Long running requests and timeouts?

2005-01-17 Thread Frank W. Zammetti
Ok Andrzej, sorry I couldn't be of any real help. I see what I suggested wouldn't apply in your situation, I was just taking a guess anyway. And certainly I understand the pressure of deadlines :) Perhaps my approach might help someone else that's just lurking, but good luck in solving your

Re: Re: Tomcat 4.1/java 1.4.1.02/winxp/Download a xml file from a server

2005-01-17 Thread Ramien E. Rosillo G.
Hi, I already did that...But still doesnt work.Probably the key is in the configuration of the IIS wich I'm using to redirect, I set up the MIME types in the MIME mappingson the IIS, any idea?When I'm not using IIS the system is working fine, the tomcat recognize the xml file format without a

[Tomcat 5.0] sharing session and authentication

2005-01-17 Thread Omar Adobati
Good Morning, I would like to know if there is a way to share authentication informations and session informations too betwen a page and another one thet is into a iframe. The authentication is done usiing the tomcat capabilities (form-authentication method) -- Adobati Omar [EMAIL PROTECTED]

Programmatically add ClassLoader for Embedded tomcat

2005-01-17 Thread Iwan Vosloo
Hi there, Assuming I have programmatic access to tomcat only (I run am Embedded tomcat), how can I either: a) append more paths to search for classes in an existing ClassLoader; or b) create and add my own custom Loader or ClassLoader in the chain? Thanks -Iwan Vosloo Powered by Tiscali -

A Platform for Highly Concurrent Services

2005-01-17 Thread Jean Morissette
Hi, I actually contribute to the development of Sandstorm, a Staged Event-Driven Architecture (SEDA) based high-performance platform for services http://www.eecs.harvard.edu/~mdw/proj/seda/ Our platform is like an operating system for services; it manage ressource dynamically and offer optimal

Re: apache2 + mod_jk + tomcat5.5.4 help

2005-01-17 Thread Sean M. Duncan
Try leaving the className parameter off. I new versions of Tomcat use the CoyoteConnector for AJP communication. The minProcessor and maxProcessor attributes have been deprecated. Use maxThreads, minSpareThreads and maxSpareThreads instead. On Mon, 2005-01-17 at 14:16 -0500, Trung Nguyen

Re: Tomcat 4 doesn't start http service on Linux?

2005-01-17 Thread QM
On Mon, Jan 17, 2005 at 11:52:14AM -0600, Stephen Charles Huey wrote: : working with our BigIP said that when he was running Apache on either of : the Linux servers, the load balancer could tell that the http service : was running, but when Tomcat was running, it didn't know what to check : for on

Re: [Tomcat 5.0] sharing session and authentication

2005-01-17 Thread QM
On Mon, Jan 17, 2005 at 08:45:20PM +0100, Omar Adobati wrote: : I would like to know if there is a way to share authentication : informations and session informations too betwen a page and another : one thet is into a iframe. : The authentication is done usiing the tomcat capabilities :

Re: [OT] A Platform for Highly Concurrent Services

2005-01-17 Thread QM
On Mon, Jan 17, 2005 at 03:05:00PM -0500, Jean Morissette wrote: : I actually contribute to the development of Sandstorm, a Staged : Event-Driven Architecture (SEDA) based high-performance platform for : services http://www.eecs.harvard.edu/~mdw/proj/seda/ Hello, It's considered a list

Re: [Tomcat 5.0] sharing session and authentication

2005-01-17 Thread Omar Adobati
the scenario is the last u said. There is a way, maybe playing with context, to do what i need? On Mon, 17 Jan 2005 14:24:09 -0600, QM [EMAIL PROTECTED] wrote: On Mon, Jan 17, 2005 at 08:45:20PM +0100, Omar Adobati wrote: : I would like to know if there is a way to share authentication :

Re: Tomcat 4 doesn't start http service on Linux?

2005-01-17 Thread Sean M. Duncan
My first suggestion would be to set up Apache httpd as the load balancer using mod_jk. This will give you much more accurate node availability detection. This solution also provides much more flexibility when it comes to using the session tracking API (session affinity, session replication or

  1   2   >