RE: Memory leaks?

2003-09-04 Thread Ralph Einfeldt
In my experience this is not a good recommendation: - -server is less stable than -client in all JDK's that I tried, and this has been confirmed by several list members. - -server won't help much on out of memory errors. The gc is behaving differently, but it can't free more objects, they

Inquiry received

2003-09-04 Thread [EMAIL PROTECTED]
Thank you for your inquiry to Alset Support! We will process your request as soon as possible. Please see www.alset.com for complete support information. Alset Support Staff - To unsubscribe, e-mail: [EMAIL PROTECTED] For

403 Errors

2003-09-04 Thread Tomcat Newbie
I have an annoying problem with my setup. I searched the archives and net for similar documented cases and I thought I found the solution, but it does not seem to work. Any hints or ideas would be appreciated. The problem: random 403 access errors to a number of pages(seemingly with Internet

deployment problems in tomcat 4.1.27

2003-09-04 Thread Shailesh Modi
Hi, I am trying to deploy my web application in tomcat 4.1.27, earlier tomcat 3 was successfully running my web-app. 1. basic problem - I want to set my web-app context as /remind/cafe/ (e.g. http://server:port/remind/cafe/index.do) but tomcat 4.1.27 asks me to put my web-app war file into

Re: Internationalization Problem

2003-09-04 Thread Janis_Olekss
1) 4.1.12 is full of bugs 2) HTML header is prior to meta tag, so if you don't specify encoding in the response the default one is enforced ISO-8859-1 (you can see it in generated code for JSP servlet) 3) Setting it directly to response.setContentType() wont work, don't know why, it's a bug in

Re: deployment problems in tomcat 4.1.27

2003-09-04 Thread Janis_Olekss
You have to configure server.xml file There are 2 things 1) host which defines your docBase 2) context which defines different contexts See apache.org for the tag specifications ___ Living things are systems that tend to respond to changes in

Re: Memory usage Tomcat 4.1.24

2003-09-04 Thread John Bell
The recently installed Tomcat 4.1.24 on startup takes about 60M of memory. Is it my configuration. I have not noticed previous versions consuming so much. I have 6 or so applications in webapps - mainly struts - documentaion, examples etc. Using j2sdk1.4.0. Regards

RE : Memory leaks?

2003-09-04 Thread Hertenstein Alain
A question here : why do you put rs.close(), rs = null, stmt.close(), stmt = null etc twice, in both try and finally statements ? Since the finally statement is called whenever an exception is thrown or not, you don't need to close rs, stmt and conn in the try statement first... Am I wrong here ?

How to cache the user's input in a jsp page?

2003-09-04 Thread engp0510
Hi How to cache the user's input in a jsp page? The following is some code of my JSP: % int item_num = 5; int row_num = 1; if(request.getParameter(row_num)!=null){ String rowstr = (request.getParameter(row_num)); try{ row_num = Integer.parseInt(rowstr);

RE : setting the field focus with a servlet

2003-09-04 Thread Hertenstein Alain
Hi Luke, AFAIK, it's not possible to interact on the client side using Java (unless using Applets). You need JavaScript to fire events on the client browser, like focus() on a text field or the like. However, for form content check you can use your Servlet / JSP to retrieve all request

RE : setting the field focus with a servlet

2003-09-04 Thread Janis_Olekss
Nope yo can't! I guess you want your JSP code to do some focusing! I would suggest dynamically generate javascript code which focuses needed field! When the page will be rendered your newly generated code wll execute on client side and focus! The trick is that server side code can't interact

RE: How to cache the user's input in a jsp page?

2003-09-04 Thread Duncan Strang
Check out JSP's implicit object collection For example, if you are using user sessions you can put any Object onto the session, this will then be available whenever the user accesses the page. To use the session object simply use session.setAttribute(identifier, Object); So to save an Integer

Re: How to cache the user's input in a jsp page?

2003-09-04 Thread Mario Moroni
You can put them on session object, or wrtite them on a database , or also rewrtite them in the new page in hidden fields... It depends on what you want to do with those datas. Mario - Original Message - From: engp0510 [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent:

Re: How to cache the user's input in a jsp page?

2003-09-04 Thread engp0510
Thanks I know maybe I should use session, but when I choose select box, the jsp page will be reloaded. How do I save the value of INPUT tabIndex=1 maxLength=100 size=40 name=subject into session, that after reloaded the value should be the same as user input previously? - Original Message

Re: How to cache the user's input in a jsp page?

2003-09-04 Thread Kwok Peng Tuck
In the servlet or jsp you could do : String text = request.getParameter(subject) ; Then do whatever you want with it. engp0510 wrote: Thanks I know maybe I should use session, but when I choose select box, the jsp page will be reloaded. How do I save the value of INPUT tabIndex=1

problems with different tomcat-axis

2003-09-04 Thread Webmaster
hi to all, I've a big inknown problem. I'm developing a web application with a VB-SOAP client. I'm using some java servlet in tomcat-axis. I have a LAN for testing my web application. It's all ok: any PC with tomcat running working fine. Any PC with my VBclient communicate with the current tomcat

Re: How to cache the user's input in a jsp page?

2003-09-04 Thread Mario Moroni
- Original Message - From: engp0510 [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, September 04, 2003 10:28 AM Subject: Re: How to cache the user's input in a jsp page? Thanks I know maybe I should use session [cut] Session object is permanent for the whole

Re: How to cache the user's input in a jsp page?

2003-09-04 Thread engp0510
Thanks But it is nothing with form and request. Maybe I should make me more clear: For the first time this JSP loaded, it is not sure how many rows of a table needed by user. Then user choos a select_box to set the rows number and then JSP was reloaded with table contain the number of rows user

How to enable MS PowerPoint and MSExcel file viewing when click on it instead of download first?

2003-09-04 Thread lucan
Hi, I am installing Apache Tomcat and put some presentation meterial on it. I come to a problem that if I upload Microsoft Power Point and Microsoft Excel's file to the server, I will not able to view it by just clicking on it using IE (Internet Explorer) unless I download it. Microsoft

RE: deployment problems in tomcat 4.1.27

2003-09-04 Thread Shailesh Modi
Thanks Janis, it was great help. I am having another problem regarding classpath of tomcat. My application property files and oracle classes (classes12.zip) are not being picked up, when tomcat deploys my web app. my properties files are in /WEB-INF/properties folder and classes12.zip is in

Re: Counting active sessions if server restarts very often

2003-09-04 Thread Christian Hauser
Shapira, Yoav wrote: Howdy, Is there an other way to implement this? Maybe by saving the variable activeSessions to a session (which is restored when the server has restarted)? This is not a bad idea, and might be the easiest way. A DB write on shutdown/read on startup is also an option. To

RE: deployment problems in tomcat 4.1.27

2003-09-04 Thread Janis_Olekss
It is sayed that property file should be in your classpath! So I allways put my property file under WEB-INF/classes/ directory which seems to be fine. I am using Struts, but I guess the Struts uses the same mechanism to access properties! As I understand your oracle12.zip is needed to startup

RE: Counting active sessions if server restarts very often

2003-09-04 Thread Bodycombe, Andrew
The easiest way is probably to have a single listener that implements both the HttpSessionListener and HttpSessionActivationListener interfaces. This has a single count of active sessions. In the sessionCreated() method, increment the count In the sessionDestroyed() method, decrement the count In

Re: jdbcodbc database connection problem (access-DB,jsp,tomcat,eclipse)!

2003-09-04 Thread Jon Wingfield
My German's not that good but BabelFish returned the error as That Data source name was not found, and no standard driver was indicated. So, i guess, your ODBC data source is not set up correctly or you are using the wrong name (maybe case-sensitive). I can't help you with that, i'm afraid,

Re: dbtags and tomcat 4.1

2003-09-04 Thread Kwok Peng Tuck
If you poke around in the mailling list for the taglib project you will find a mail or two about this, if I remember correctly had something to do with the tag not confrming to the taglib specification that tomcat provides. You could use jstl instead, but from my experience SQL in the jsp is

RE: How to enable MS PowerPoint and MSExcel file viewing when click on it instead of download first?

2003-09-04 Thread Tom Lyle
if you add mime-mapping extensionxls/extension mime-typeapplication/vnd.ms-excel/mime-type /mime-mapping to the web.xml in {tomcathome}/conf IE will open any xls files served by Tomcat within excel (assuiming that the client has Excel installed) -Original

Re: Counting active sessions if server restarts very often

2003-09-04 Thread Christian Hauser
Thank you, Andrew, for your fast reply. I hope this works, but I still don't undestand what happens when the server is restarted when the sessionCount (current active sessions) is 10. Will sessionWillPassivate() and sessionDidActivate() be called 10 times? Why not once? But if they were called

RE: How to cache the user's input in a jsp page?

2003-09-04 Thread Duncan Strang
What EXACTLY do you mean by 're-loaded' Where do you get the data that is used to populate the table with the number of required rows ? Cheers Duncan -Original Message- From: engp0510 [mailto:[EMAIL PROTECTED] Sent: 04 September 2003 09:43 To: Tomcat Users List Subject: Re: How to

AW: jdbcodbc database connection problem (access-DB,jsp,tomcat,eclipse)!

2003-09-04 Thread Nitschke Michael
It looks like you didnt correctly (typemissmatch, caps or something like that) register the data soruce in windows. It could be that you misspelled the settings at the instantiation of your database driver. Hope it helps Mike -Ursprüngliche Nachricht- Von: Jon Wingfield [mailto:[EMAIL

RE: Problem with my first webapp

2003-09-04 Thread Damien
Le mer 03/09/2003 à 17:54, Shapira, Yoav a écrit : Howdy, Can somebody provides me a complete tree with a simple application to start working on ? I think it would be a good idea if somebody 'tar/gzip' the directory strutcure found in this page :

RE: How to enable MS PowerPoint and MSExcel file viewing when click on it instead of download first?

2003-09-04 Thread Tan, Lucan Tien Boon
Hi Tom, Thank you every much. It work after adding below line for both powerpoint and excel file! mime-mapping extensionxls/extension mime-typeapplication/vnd.ms-excel/mime-type /mime-mapping mime-mapping extensionppt/extension

Re: j_security_check gets a 404 error

2003-09-04 Thread Louise Pryor
On Thursday, September 4, 2003 at 6:36:38 AM, Bill Barker wrote: BB You need to add j_security_check to the URIs that get passed to Tomcat. I BB don't use Jk2 myself, but if your version is recent enough, I believe that BB you can even use: BB/*/j_security_check ajp13 Thanks. I have

problem unpacking war file: MANIFEST not found

2003-09-04 Thread Sonja Löhr
Hi! I've got a problem with tomcat 4.1.27 (under linux )unpacking my war file. All works well if I have a Host with appBase=webapps and put my war file under $CATALINA_HOME/webapps. The log snippet is: 2003-09-04 11:57:35 HostConfig[localhost]: Expanding web application archive dialog.war

Tomcat dropping sessions under load

2003-09-04 Thread vincent . armin
Hi I am running tomcat 4.1.24 in its default configuration on suse 7.2, connected to apache via ajp13 (jdk1.3.1_07). Tomcat has been performing well over the past 6 months, however an incident occurred recently that has caused alarm.The web application has been steadily increasing in number of

Re: How to cache the user's input in a jsp page?

2003-09-04 Thread Tim Funk
You need to populate the value field as appropraite for text boxes based on what the user submnitted... for example: input type='text' name='cowbell' value='%=request.getParameter(cowbell)%' / For radios, checkboxes, and selects, you'll need to do the same thing. There are probably

RE: deployment problems in tomcat 4.1.27

2003-09-04 Thread Shailesh Modi
Hi, I have kept classes12.jar in every possible places in tomcat 4 folders, but no help. Also keeping properties files into WEB-INF/classes directory too not able to help me out. Alternatively, I have tried giving relative path (eg /WEB-INF/properties/framework.properties) , still my Loader

RE: deployment problems in tomcat 4.1.27

2003-09-04 Thread Janis_Olekss
Ou... sorry! extension .properties should not be passed as JAVA will think that it is package extension and will look for file framework/properties.properties May be you have corrupted somehow your tomcat! In my experience default tomcat installation works fine... the only changes you should

Re: How to cache the user's input in a jsp page?

2003-09-04 Thread bsouther
Is this what you're looking for? % String name = ; String age= ; if(request.getParameter(name) != null){ name = request.getParameter(name); age = request.getParameter(age); } % html head/head body form method=post Name: input type=text name=name value=%=name% br

Detail: How to cache the user's input in a jsp page?

2003-09-04 Thread engp0510
Hi , ALL, The following is my jsp page, store it into a file named MyQUESTION.jsp , pay attention for the Subjuect while u choosing the select. % int item_num = 5; int row_num = 1; if(request.getParameter(_rows)!=null){ String rowstr = (request.getParameter(_rows)); try{

Re: Detail: How to cache the user's input in a jsp page?

2003-09-04 Thread Tim Funk
% for(int ii=0; iirow_num; ii++) { String project_detail = request.getParameter(project_detail_ + ii); String quantity = request.getParameter(quantity_ + ii); String unit_price = request.getParameter(unit_price_ + ii); if (project_detail==null) project_detail = ; if

Re: Detail: How to cache the user's input in a jsp page?

2003-09-04 Thread Jon Wingfield
If you want to remember the subject when changing the dropdown: Change the definition of your subject text field to: % String subject = request.getParameter(subject)==null ? : request.getParameter(subject);% input type=text tabIndex=1 maxLength=100 size=40 name=subject value=%=subject%/ And

Tomcat 5 book

2003-09-04 Thread Marco Tedone
Hi, is there in prevision any book about Tomcat 5? Marco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Detail: How to cache the user's input in a jsp page?

2003-09-04 Thread Ben Souther
Ahh, The problem is that you're not submitting the form. You're making a new request via Javascript. Instead, do this: Give the form an id: form method=post name=form1 id=form1 Then in your select box use javascript to subit the form. select name=item_num

RE: Servlet mappings?

2003-09-04 Thread Yoav Shapira
Hey, Mike's suggestion is good. A purer approach is possible with tomcat 5, because the 2.4 servlet spec allows for a servlet to be mapped as a welcome-file. Yoav Shapira On Wed, 3 Sep 2003, Mike Cherichetti (Renegade Internet) wrote: I don't think this can be done with mappings. You can put

RE: Memory leaks?

2003-09-04 Thread Shapira, Yoav
Howdy, I completely agree with Senor Einfeldt's comments, having found exactly the same results in my experience with -server. Waiting for Tiger's -server fixes. To the original poster: any objects with dangling references may not be recycled when your app is restarted. These can have bad

Tomcat grabbing all requests from Apache

2003-09-04 Thread Patrick Zeiler
Hi list, I am having slight problems with configuring tomcat to work with apache. Used Versions: Apache/2.0.47 + mod_jk2 + Tomcat/4.1.27 The configured contexts work fine and as supposed. The problem I have is that Tomcat grabs all requests that are going to the server. Example:

RE: starting tomcat as non-root

2003-09-04 Thread Shapira, Yoav
Howdy, You can already start tomcat as any user on ports 1024. What you probably meant in your question was port 80, and the answer is yes, we're getting close, because tomcat 5 will use commons-daemon for this. (http://jakarta.apache.org/commons/sandbox/daemon/index.html) Yoav Shapira

RE: Tomcat 5 book

2003-09-04 Thread Shapira, Yoav
Howdy, An amazon search doesn't yield much... I know there was a Wrox book in the works a while ago, since they asked me and other developers to write parts of it, but I think that whole company went kaput and so I don't know what's up with their book... Rest assured, once tomcat 5 is out, all

RE: tomcat 4.1.27: cannot shutdown tomcat !!

2003-09-04 Thread Shapira, Yoav
Buongiorno ;) That's not an exception we see very often. Your server.xml still has the default shutdown port (8005)? Can you telnet to localhost:8005 and issue SHUTDOWN? Do you have a strange networking setup on this machine? During shutdown, tomcat tries to connect to the server shutdown

Re: $CATALINA_HOME/shared/lib is *STILL* Ignored....

2003-09-04 Thread Remy Maucherat
Tony LaPaso wrote: Hi all, I posted a similar question a couple days ago but it seems the well-intended responses I received were incorrect. And let me first say that I have RTFMs -- more than once -- and this *SHOULD* work, at least according to TFMs. I'm using TC v5.0.9 on Linux with J2SE

RE: How to enable MS PowerPoint and MSExcel file viewing when click on it instead of download first?

2003-09-04 Thread Angus Mezick
Is the correct mime type set in the default web.xml? -Original Message- From: lucan [mailto:[EMAIL PROTECTED] Sent: Thursday, September 04, 2003 4:48 AM To: [EMAIL PROTECTED] Subject: How to enable MS PowerPoint and MSExcel file viewing when click on it instead of download first?

Inquiry received

2003-09-04 Thread [EMAIL PROTECTED]
Thank you for your inquiry to Alset Support! We will process your request as soon as possible. Please see www.alset.com for complete support information. Alset Support Staff - To unsubscribe, e-mail: [EMAIL PROTECTED] For

RE: Tomcat grabbing all requests from Apache

2003-09-04 Thread Angus Mezick
Posting of you workers2.properties might help. I forgot the password to your machine so I can't view the problem from here. Normally when this happens I get out my crystal ball, but it is in the shop getting buffed and having its red smoke replaced with magenta smoke. --Angus -Original

RE: Tomcat grabbing all requests from Apache

2003-09-04 Thread Patrick Zeiler
Hehe, thanks for taking it with humour... here is my workers2.properties: #define the shared memory file [shm] file=/tmp/jk2.shm size=1048576 # Define the communication channels [channel.socket:localhost:8009] tomcatId=localhost:8009 [ajp13:localhost:8009] channel=channel.socket:localhost:8009

Re: Tomcat 5 book

2003-09-04 Thread John Turner
Yes. I know for sure one is due early Q1 2004. It is being written from scratch for Tomcat 5, it will not be a Tomcat 4 book refreshed or tweaked to support Tomcat 5. John Marco Tedone wrote: Hi, is there in prevision any book about Tomcat 5? Marco

Re: Tomcat grabbing all requests from Apache

2003-09-04 Thread John Turner
Can't do anything without your config files. Help us help you. John Patrick Zeiler wrote: Hi list, I am having slight problems with configuring tomcat to work with apache. Used Versions: Apache/2.0.47 + mod_jk2 + Tomcat/4.1.27 The configured contexts work fine and as supposed. The problem I

Re: Apache/Tomcat Appbase

2003-09-04 Thread John Turner
As long as you protect your WEB-INF and META-INF directories with the appropriate Apache directives, and your connector mapping is correct, and you don't use the Invoker servlet, you're good to go. All of my virtual hosts have the Apache DocumentRoot setup that way. John Chad Arimura wrote:

Re: Tomcat 5 book

2003-09-04 Thread achana
O'Reilly ? John Turner wrote: Yes. I know for sure one is due early Q1 2004. It is being written from scratch for Tomcat 5, it will not be a Tomcat 4 book refreshed or tweaked to support Tomcat 5. John Marco Tedone wrote: Hi, is there in prevision any book about Tomcat 5?

Re: Apache Tomcat Performance Handbook

2003-09-04 Thread John Turner
The book was never published. The original publisher (Wrox) went out of business and liquidated assets. The rights to the performance handbook (and many other former Wrox titles including the security handbook) were picked up by Apress. The rights to the rest were picked up by Wiley. I

Compilation of mod_jk

2003-09-04 Thread Ashish-Kumar . Balyan
Hi, I am using Apache 1.3.19 with Tomcat 4.1.24 I need to do a 64 bit compilation of mod_jk . I tried to do a 32 bit compilation but there were some problems in the Makefile. I need to know following things. 1. Where to get the source code for mod_jk. 2. Detailed compilation procedures. TIA

Re: Apache Tomcat Performance Handbook

2003-09-04 Thread Matt Fury
How could Wrox go out of business? That doesn't sound right. They have 1001 titles and write great books! Are you sure? --- John Turner [EMAIL PROTECTED] wrote: The book was never published. The original publisher (Wrox) went out of business and liquidated assets. The rights to the

RE: Apache Tomcat Performance Handbook

2003-09-04 Thread Shapira, Yoav
Howdy, Just google for wrox out of business -- both the normal and sponsored search results tell the tale... Yoav Shapira Millennium ChemInformatics -Original Message- From: Matt Fury [mailto:[EMAIL PROTECTED] Sent: Thursday, September 04, 2003 9:44 AM To: Tomcat Users List Subject:

RE: Internationalization Problem

2003-09-04 Thread Allen Hadden
Assuming you're talking about a JSP (and not a static HTML page), try doing this at the top of your JSP file: [EMAIL PROTECTED] contentType=text/html; charset=UTF-8% Or response.setContentType(text/html; charset=UTF-8); (these are equivalent, if memory serves me correctly). I've always been

Re: Tomcat 5 book

2003-09-04 Thread John Turner
The one I know about, no. Its possible O'Reilly has one in the works, but I don't know anything about it. John [EMAIL PROTECTED] wrote: O'Reilly ? John Turner wrote: Yes. I know for sure one is due early Q1 2004. It is being written from scratch for Tomcat 5, it will not be a Tomcat 4

Re: Apache Tomcat Performance Handbook

2003-09-04 Thread John Turner
Well, I guess we have to be more clear. Wrox did not go out of business. Peer Information Services did. Wrox was just one of many names that Peer used to publish materials. So, while there were lots of titles and lots of great Wrox books, that is separate from whether the company called

mod_jk2 and url-Mapping

2003-09-04 Thread Johann Uhrmann
Hello, how to map different URLs to different tomcat servers with mod_jk2? I need this for a migration scenario (upgrade from tomcat 4.1.12 to 4.1.24). ajp13 is used as connector. I tried to modify my load balancer configuration but jk2 seems to ignore the settings. Is there an example

Re: Memory leaks?

2003-09-04 Thread Greg Ward
On 03 September 2003, Jim Lynch said: OK, that's probably what's going on. I know I should close Statements and Connections and do normally but I'm fairly certain I've some out there dangling. I didn't know you had to close ResultSets, however. Glad to know that. You don't have to close

Re: Apache Tomcat Performance Handbook

2003-09-04 Thread John Turner
Also, while the Wrox side of the business seemed to be thriving, there were several other publishing arms that may not have been doing much more than soaking up profits with little return. As I said, Wrox was just one of many publishing names used by Peer. John John Turner wrote: Well, I

RE: Memory leaks?

2003-09-04 Thread Shapira, Yoav
Howdy, You don't have to close a result set if you're closing the statement right away and the result set is the only one associated with the statement... And in no case can closing the result set explicitly hurt performance. Yoav Shapira Millennium ChemInformatics -Original Message-

RE: Memory leaks?

2003-09-04 Thread Hookom, Jacob
But depending on the DB, it can cause problems from the DB with too many open ResultSets... I had an issue with performance testing where everything but ResultSets were being closed and the Oracle DB started throwing errors after about 500 queries. Better safe than sorry. -Original

tomcat 4.1.27: cannot shutdown tomcat !!

2003-09-04 Thread Fabio Bazzani
- Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, September 04, 2003 3:01 PM Subject: RE: tomcat 4.1.27: cannot shutdown tomcat !! Buongiorno ;) That's not an exception we see very often. Your server.xml still has the

(errata corrige) tomcat 4.1.27: cannot shutdown tomcat !!

2003-09-04 Thread Fabio Bazzani
I'm sorry for previous wrong message !! This is the correct one !! see details down. Fabio - Original Message - From: Fabio Bazzani [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, September 04, 2003 4:03 PM Subject: tomcat 4.1.27: cannot shutdown tomcat !!

Re: setting the field focus with a servlet

2003-09-04 Thread Greg Ward
On 04 September 2003, Luke Vanderfluit said: I am working on a servlet that checks a form content without using javascript. Does anyone know if there is a way to set the focus to a particular field using java? I think you need to learn how HTML forms work and interact with the browser. If

RE: tomcat 4.1.27: cannot shutdown tomcat !!

2003-09-04 Thread Shapira, Yoav
Howdy, Can you telnet to localhost:8005 and issue SHUTDOWN? NO This is probably the cause for your error. You have to be able to telnet (or otherwise connect via http) localhost port 8005 and issue the SHUTDOWN command. If you can't do it manually, tomcat won't be able to do it either ;)

RE: (errata corrige) tomcat 4.1.27: cannot shutdown tomcat !!

2003-09-04 Thread Shapira, Yoav
Howdy, Can you telnet to localhost:8005 and issue SHUTDOWN? YES, but how to issue shutdown ? Ah, OK, this is better. Just type SHUTDOWN and press enter. Tomcat looks for any TCP/IP connection with sending that string. See the Server configuration reference:

Re: setting the field focus with a servlet

2003-09-04 Thread Christopher Williams
Easily done, but needs Javascript. Do something like the following in your JSP: html head.../head body onload=setFormFocus(); ... form name=my_form... ... /form ... script

RE: Counting active sessions if server restarts very often

2003-09-04 Thread Bodycombe, Andrew
The sessionWillActivate() method is called every time a session activates. If your sessions are persistent, then each one will be re-activated when the server restarts, so this method is called once for each session that was passivated. One further point I forgot to mention - your

mod_jk2, load balancing and TC:TDC

2003-09-04 Thread Timothy Stone
List, O'Reilly's new /Tomcat:The Definitive Guide/ is worth the purchase. But something seems a miss in the chapter on load balancing Tomcats with mod_jk2. I want to provide load balancing and failover as illustrated in the book (pg. 237, fig. 10-2). For those without the book, here's the

RE: How to cache the user's input in a jsp page?

2003-09-04 Thread Geiglein, Gary
The problem is that you are loading a new page through javascript without sending the other data fields from the current page in the request. This is entirely a javascript processing problem. To actually make this work without a lot of re-engineering, make OnChange for the select box call a

RE: Counting active sessions if server restarts very often

2003-09-04 Thread Shapira, Yoav
Howdy, As an aside, regarding the subject of this message, why is your server restarting very often? Yoav Shapira Millennium ChemInformatics -Original Message- From: Bodycombe, Andrew [mailto:[EMAIL PROTECTED] Sent: Thursday, September 04, 2003 11:28 AM To: 'Tomcat Users List' Subject:

tomcat 4.1.27: cannot shutdown tomcat !!

2003-09-04 Thread Fabio Bazzani
shutdown with telnet is ok. It appears the message Stopping service Tomcat-Standalone on the shell but the Window does not close. Should I recompile the entire catalina source code ? Thank you fabio - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List

FW: caching with Apache-Tomcat

2003-09-04 Thread Patrick . King
I would like to know how to cache dynamic content generated using tomcat 3.2.4 with apache 1.3.26 as a front-end. Mod_jserv is being used (ajp12) as a connector from apache to tomcat. Pat Patrick King E-mail : mailto:[EMAIL PROTECTED] [EMAIL PROTECTED]

RE: tomcat 4.1.27: cannot shutdown tomcat !!

2003-09-04 Thread Shapira, Yoav
Howdy, No, you don't need to recompile. My guess is you have non-daemon threads your webapp has started, and that's why the JVM can't exit. This is not a rare problem. You need to make sure any threads you start are either daemons (so the JVM kills them automatically) or are properly

Re: Compilation of mod_jk

2003-09-04 Thread John Turner
[EMAIL PROTECTED] wrote: Hi, I am using Apache 1.3.19 with Tomcat 4.1.24 I need to do a 64 bit compilation of mod_jk . I tried to do a 32 bit compilation but there were some problems in the Makefile. What problems? I need to know following things. 1. Where to get the source code for mod_jk.

RE: mod_jk2, load balancing and TC:TDC

2003-09-04 Thread Ralph Einfeldt
httpd instance doesn't autodiscover the other tomcat, you have to configure it. I would suggest the following: - define distinct propertie fieles for each mod_jk - define 2 workers for each mod_jk - each worker points to one tomcat - set the lbFactor for worker1 to 0 for one mod_jk - set the

Re: dbtags and tomcat 4.1

2003-09-04 Thread Nikola Milutinovic
You could use jstl instead, but from my experience SQL in the jsp is more trouble then it is worth and causes imense headaches when you want to do something complicated. Just a suggestion but it could be a good time for you to have a look at migrating to Struts or some other framework

Tomcat as an in-process Servlet container?

2003-09-04 Thread Carlos Cajina - Hotmail
Hi everyone. I've followed the steps in http://www.greenfieldresearch.ca/technical/jk2_config.html for configuring Apache and Tomcat to communicate using JNI with good results, but there's just one thing that I can't figure out: When using channelSocket as the communication channel between the

RE: Apache Tomcat Performance Handbook

2003-09-04 Thread Duncan Strang
Jeez, the stuff you learn on this list... -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: 04 September 2003 15:02 To: Tomcat Users List Subject: Re: Apache Tomcat Performance Handbook Well, I guess we have to be more clear. Wrox did not go out of business. Peer

Urgent - strange tomcat /mod jk (?) problem going on

2003-09-04 Thread Denise Mangano
I have a major problem and I am hoping you can help. I have a web app which serves the first few pages through apache, then the last 4 secure pages through tomcat. This was all working at one point, but I've had to rebuild since - and I'm experiencing some new problems. I have apache 1.3.28,

occasional 403 Errors (revised question) -- jk2 broken pipe error

2003-09-04 Thread Tomcat Newbie
Sorry, it seems I left out most importan information from my e-mail describing the problem. Below my question revised. ** I have an annoying problem with my setup. I searched the archives and net for similar documented cases and I thought I found the solution, but it does not seem to work.

RE: Urgent - strange tomcat /mod jk (?) problem going on

2003-09-04 Thread Denise Mangano
Ok I'm a dope - sorry. I didn't realize that I had changed my ServerName in my apache httpd.conf and forgot to change it in my server.xml . However, now I am getting a bad request error. I am no longer getting the HTTP 404 resource not available error. I'm not really sure if that means Tomcat

Getting WebApp working at remote site: loop 'Deploying discovered web applications'

2003-09-04 Thread Simon Brooke
-BEGIN PGP SIGNED MESSAGE- I have a webapp which I've thoroughly tested on various tomcat versions, and it works fine on my servers. I've now delivered it to my customers ISP, and it won't run on their servers (Tomcat 4.1.12). I have a limited amount of access to their tech support

JDBC, SQL Server 2000 and Tomcat Error

2003-09-04 Thread Jeremy Lewis
I'm currently experiencing a strange error with some JSP pages that have been built in Dreamweaver MX. The pages retrieve data from a SQL Server 2000 database using the Sun JDBC-ODBC driver. I currently get the following error message reported by Tomcat when I try to display more than 6 data

Problem with a page redirecting to a non-existent page

2003-09-04 Thread Norris Shelton
We are running 4.1.12 on Linux behind BigIP. We have a file /search.jsp. For some reason, yesterday, it started redirecting to /dis_timeout.jsp. There is no reference to dis_timeout.jsp (file or even text within a file). I deleted the work files and reloaded the webapp. No change. I copied

Re: Apache Tomcat Performance Handbook

2003-09-04 Thread Remy Maucherat
John Turner wrote: The book was never published. The original publisher (Wrox) went out of business and liquidated assets. The rights to the performance handbook (and many other former Wrox titles including the security handbook) were picked up by Apress. The rights to the rest were picked

RE: Tomcat 5 book

2003-09-04 Thread Goehring, Chuck Mr., RCI - San Diego
Part of Wrox stuff went to Apress and part went to John Wiley and Sons. (from http://www.booksmatter.com) Chuck -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday, September 04, 2003 6:04 AM To: Tomcat Users List Subject: RE: Tomcat 5 book Howdy, An

Re: Urgent - strange tomcat /mod jk (?) problem going on

2003-09-04 Thread John Turner
If http://your.url:8080/yourApp doesn't work, you have to fix Tomcat first (server.xml). If http://your.url/yourApp doesn't work and http://your.url:8080/yourApp does work, you have to fix mod_jk (or rather the JK settings in Apache's httpd.conf). HTH John Denise Mangano wrote: Ok I'm a

Re: Problem with a page redirecting to a non-existent page

2003-09-04 Thread Norris Shelton
This is interesting. We changed the name of the file from search.jsp to searchnew.jsp (contents the same). It works. WTF --- Norris Shelton [EMAIL PROTECTED] wrote: We are running 4.1.12 on Linux behind BigIP. We have a file /search.jsp. For some reason, yesterday, it started

Re: Apache Tomcat Performance Handbook

2003-09-04 Thread Peter Lin
If the book never gets out, I plan to write a 30-50 page paper based on the results of our benchmarks and give it to the TC community. Hopefully it won't go down the drain, since Remy and I spend over 2 months doing a ton of benchmarks with all sorts of variations and tuning options. peter ---

RE: [SOLVED] Urgent - strange tomcat /mod jk (?) problem going on

2003-09-04 Thread Denise Mangano
There were a few things going on there... I should have taken a step back and relaxed and given everything another look before I posted... My apologies for that ... I panicked because of the bind that I am in. 1. ServerName httpd/conf did not match the value of the name attribute in the Host

  1   2   >