Re: How to do some work when a webapp is first loaded

2004-10-15 Thread Philipp Taprogge
Hi and thanks for the quick replies. QM wrote: -or you could search the archives. ;) Your question comes up regularly. Yes, I should have. I am sorry. I did not imagine my problem was that common... For Tomcat 4.x and later, investigate the ContextListener class. Looks exactly like what I was mis

How to do some work when a webapp is first loaded

2004-10-15 Thread Philipp Taprogge
(ideally even before requests to it get served). Is there a neat way to do this? Any clued would be very appreciated. Thanks in advance, Philipp Taprogge - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

Re: Beginner for Apache & Tomcat: Need Help

2004-09-29 Thread Philipp Taprogge
Hi! TK wrote: 1. Can I install and run Apache and Tomcat on the same machine? Or, at the first place, do I need to do so if Tomcat alone can be used as a Web server? Yes, you can and no, you don't have to if your setup does not require it. Often sites use apache for serving static content (due to

Re: Ant and Tomcat Manager over HTTPS

2004-03-22 Thread Philipp Taprogge
Hi! Parsons Technical Services wrote: Harry DID start his own. He may have used the same subject line as an old message, but nothing existing in the last few months. I am sorry, but he did not. Quoting from the headers: Philipp Taprogge wrote: Subject: Programmatically deploying webapps Message

Re: Ant and Tomcat Manager over HTTPS

2004-03-22 Thread Philipp Taprogge
Hi! Harry Mantheakis wrote: Does anyone know if it is possible to use the Tomcat Manager tasks in Ant over HTTPS? Now I am running my own server, and I have got to bite this bullet. Any pointers would be much appreciated! Firstly, it would be nice if you could start your own thread next time ins

Programmatically deploying webapps

2004-03-21 Thread Philipp Taprogge
Hi! I am stuck here :-/ Perhaps anyone could give me a poke in the right direction. What is want to do is this: I am writing an "installer" for my web application. It is intended to ask the user for hostnames/IP-addresses for tomcat and a db-server, edit the context.xml to reflect the datasourc

Re: how to disable TRACE|TRACK method in tomcat

2004-03-18 Thread Philipp Taprogge
Hi! zhicheng wang wrote: hi, my colleague has find the solution is here: http://archives.real-time.com/pipermail/tomcat-users/2003-June/115025.html Just for the record: it is at least questionable (from the rfc's point of view) to have your server respond to a TRACE with a 3xx and especially a

Re: how to disable TRACE|TRACK method in tomcat

2004-03-18 Thread Philipp Taprogge
Hi! zhicheng wang wrote: can any one tell me how to disbale the TRACE|TRACK method in tomcat (4.1.27 i am using) any suggesstions are welcome Well then, here goes. I don't know if there's a configuration option in tomcat somewhere (I never needed to disable a method), but could you not just write

Re: Slightly OT: NoBodyResponse

2004-03-17 Thread Philipp Taprogge
Hi and thanks for your response! Shapira, Yoav wrote: These are private support classes of the Servlet API. They're still present, but they're file-private inner classes and thus no in the JavaDoc (intentionally). I thought so, that's why I asked. The class name you're quoting for them is wrong

Slightly OT: NoBodyResponse

2004-03-16 Thread Philipp Taprogge
Hi all! While I was reading some mail archives today, I stumbles stumbled over a few postings discribing problems with webapplications referring to a class called javax.servlet.http.NoBodyResponse and sometimes javax.servlet.http.NoBodyOutputStream. I was curious, so I browsed through the java

Re: Need help - Data Source problem

2004-03-03 Thread Philipp Taprogge
Hi! Mathew wrote: For me it looks like my program is not able to read tags in server.xml to get driver class info. Any help is really appreciated. If sure looks that way, but without further information one can't be sure. It would really help matters if you could post the relevant parts of your s

Re: RE : encodeURL / jsessionid

2004-02-26 Thread Philipp Taprogge
Hi! Jerald Powel wrote: Thanks for that. can you tell me then the purpose of jessionid - (methods encodeURL and getRequestedSessionId)? It seems a bit strange to pass the session around while in the session. As far as I understand, the only purpose of jsessionid and the above methods is to allow

Re: How to add the class to the tomcat , so that it runs on its own

2004-02-20 Thread Philipp Taprogge
Hi! Sale Rahul wrote: Dear All Gurus, We need to make one utility class which needs to run on its own in the tomcat.We donot want to make it as servlet or so. Is there any way with which we can do that ? might... But it is very hard to advise you with so little information. What purpose is this c

Re: Stopping repeating requests

2004-02-18 Thread Philipp Taprogge
Hi! Parsons Technical Services wrote: The better way is to clear the form or send them to another page. That's all client side. Not necessarily. What I do in such situations is this: have a servlet process the form data and then send something else (e.g. an "update successfull"-page) as response

Re: Stopping repeating requests

2004-02-18 Thread Philipp Taprogge
Hi! Peter Guyatt wrote: I have a problem where a user enters data into a form and then submits this to the server, which in turn wrights this content into a database. The problem I have is that if the user then refreshes the page via F5 then it adds the same data in again. Is there any way to ens

Re: Another Try at MySQL Connection Pooling

2004-02-11 Thread Philipp Taprogge
Hi! Mark Matthews wrote: On most versions of Windows, using JDBC and MySQL with named pipes will give you a 50-60% performance improvement. Which IMO is by no way an intidator of Win's greatness in named pipes but rather of it's bad TCP implementation. Instead of relying on named pipes one shoul

Re: DBCP and removeAbandoned

2004-02-10 Thread Philipp Taprogge
Hi! Eric Prévost wrote: I'm using Tomcat 5.0.18 on Linux. My database server is Microsoft SQL Server 2000. I'm using Microsoft's JDBC driver. When I stress-test my application with JMeter, I can see over 80 connections on my database server, and they are not released until I stop tomcat... Is

Re: Image download?

2004-02-09 Thread Philipp Taprogge
Hi! I don't know if this will help you, but I use the ImageIO classes for exactly the same purpose. Works great for me. I first create a BufferedImage and then write it to the response. The code looks something like this: BufferedImage bi; //make your BufferedImage from whatever response.setCon

Re: Starting a different process for each java operation

2004-02-06 Thread Philipp Taprogge
Hi! Shapira, Yoav wrote: Can you clarify something for me? You are referring to tomcat starting child processes and not changing the uid, correct? I don't understand what you're asking. I am not entirely sure, either, but I think you two are talking cross-purposes. If I am not mistaken, the OP w

Re: OT [was: Re: Starting a different process for each java operation]

2004-02-06 Thread Philipp Taprogge
Hi! Werner van Mook wrote: Can I continue on this which is OT? Which standard users can start tomcat on port 80? except for root? This very much depends on the platform tomcat runs on. On Linux and most Un*x-like operationg systems, no user except root (i.e. anyone with effective uid 0) may open

Re: failure notice

2004-02-05 Thread Philipp Taprogge
Hi! Shapira, Yoav wrote: Howdy, Should be taken care of now. Maybe one or two more circulating, but that's it I hope. Hmm... I still getting those failure notices... at least 5 or so every minute... :-/ Phil - To unsubscribe

Re: [OT] avoiding getOutputStream() being called twice

2004-02-05 Thread Philipp Taprogge
Hi! Robert Priest wrote: How can I pass a byte[] down to my client, without calling "response.getOutputStream" explicitly? Here is my problem: I want to pass a file down to the client via a jsp page. At first glance, I can't tell you why you get this error, but IMHO you could save yourself a l

Re: Error compiling servlet file,help

2004-02-01 Thread Philipp Taprogge
Hi! Avinash Sridhar wrote: Thanks for the suggestion,I did as you told and echo %CLASSPATH% going into the directory, but still the errors as below. And the result was... what? The compiler errors can be interpreted in only one way: the servlet-api is _not_ in your classlath. Hence there can be

Re: Redeployment of War over and over Supported?

2004-01-30 Thread Philipp Taprogge
Hi! Josh Rehman wrote: > Note: This issue has been fixed in Sun JDK 1.4.x. Thanks for pointing out. I thought a fix was implemented only recently in the latest java version. My mistake obviously. Phil - To unsubscribe, e-mai

Re: Redeployment of War over and over Supported?

2004-01-30 Thread Philipp Taprogge
Hi! I don't know if this applies to your webapp, but there is an issue with the java compiler having a memory leak which can lead to OOM errors when tomcat has to compile many jsps over and over. A remidy for this is either to use jikes instead of javac entirely or to set the fork attribute of

Re: Tomcat performance

2004-01-30 Thread Philipp Taprogge
Hi all! Peter Lin wrote: then I will throw major load at it for 48hrs generating a couple million page views. Just out of curiosity: what is the best way to generate page views for such a benchmark? What tools do you use? Thanks Phil --

Re: Server.xml content

2004-01-30 Thread Philipp Taprogge
Hi! Jon Belinfante wrote: Does anyone know how in a Web App one can read parameter info from server.xml. Basically I am looking for a way to read port numbers from the app. Is this possible. ? I presume not - but I ask just in case there is something I may of missed. It is neither possible nor des

Re: Reg. server.xml

2004-01-29 Thread Philipp Taprogge
Hi! Avinash Sridhar wrote: this is regarding a certain problem that I am facing and not able to find an answer to it. As the case is,I am using tomcat 5.0.16 on Windows Xp home edition.I have made a directory as sampleapp in the CATALINA_HOME/webapps directory. the directory structure is as foll

Re: JDBC/DBCP problems

2004-01-28 Thread Philipp Taprogge
Hi! Michael Duffy wrote: I think it's a better idea to make those app resources local instead of global. If your app is the only one that needs that data source, by all means it should not be global. That's the way I prefer to do it. Keep those apps uncoupled and isolated from each other. - MOD

Re: JDBC/DBCP problems

2004-01-28 Thread Philipp Taprogge
Hi! Burgess, Jay S wrote: Thanks for the feedback. Maybe my problem does have something to do with context visibility, but since I'm defining the resource within SERVER.XML's , I was under the impression that these resources were available to all contexts. I had a similar problem. It seems, th

Re: [OT] installing new java jdk

2004-01-26 Thread Philipp Taprogge
Hi! Adam Hardy wrote: If I go to my webserver with a linux shell and use Lynx, the download page at java.sun.com gets truncated. wget and curl don't work either because they're not interactive so you can't click on the 'accept terms' submit button. This is a problem I often run into as well. A

Re: Access to connection pool through tomcat api

2004-01-25 Thread Philipp Taprogge
Hi! Philipp von dem Bussche wrote: does anybody know, if it's possible, to access information about a tomcat connection pool through the tomcat api. I am looking for a way to ask my container, how much connections are still left. Since pooling is not a feature of the container, this very much

Re: [OT] "Prohibited Content"

2004-01-24 Thread Philipp Taprogge
Ha... just got another one... if complained about my message having "different SMTP-To: and MIME-To: headers". I am not sure if that's what you got as well. Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comma

Re: [OT] "Prohibited Content"

2004-01-24 Thread Philipp Taprogge
Hi! Merrill Cornish wrote: In the last day or two, each message I send to this mailing list gets a response with the subject line "Symantec Mail Security detected that you sent a message containing prohibited content" I initially assumed it thought the XML fragments I was including in my post

Re: Measuring latency between tomcat instances

2004-01-21 Thread Philipp Taprogge
Hi! Jeremy Nix wrote: We have an instance where tomcat instance (A) is communicating with tomcat instance (B), where instance (B) is located at another site. Instance (A) formulates a request to instance (B) and instance (B) responds with some valid response. Now, my question is, from a standpoin

Re: HTTP tunneling

2004-01-19 Thread Philipp Taprogge
Hi! Without knowing your setup better, I can't be entirely certain here, but my best guess is that your servlet's attempt to open a connection to the outside world is denied by it's sandbox's security manager. Check the console of your client vm for any security related errors. You might have

Re: [maybe OT] - java.lang.UnsatisfiedLinkError in servlet when generating image on the fly

2004-01-18 Thread Philipp Taprogge
Hi! Simone Chiaretta wrote: the libXp.so lib is a lib from X server... But I'm running the webserver on a just text server, so, no Xfree... I'm wondering if X is needed to use some awt methods (like the Toolkit.getImage())... or JPEGEncoder the piece of code that seems to generate the error is:

Re: Memory Leaks

2004-01-14 Thread Philipp Taprogge
Hi! Shapira, Yoav wrote: This is a common misconception: System.gc() is merely a suggestion to the VM to run collection. The VM is not obliged to run it then, i.e. this is not a hard directive. It should never be relied upon. With JDK 1.4, there's a runtime parameter to ignore System.gc() call

Re: Problems finding my JDBC driver for Oracle

2004-01-11 Thread Philipp Taprogge
Hi! Dor Orgad wrote: Im having a great deal of trouble getting tomcat to see my OracleDriver for the JDBC class. I have tried putting it the file classes.jar in both my tomcat/jakarta-tomcat-4.1.29/common/lib/ directory and my WEB-INF/lib directory in my docroot, and nothing seems to work. It

Re: Tomcat will not run, Class Not Found error

2004-01-10 Thread Philipp Taprogge
Hi! Robert Bowen wrote: Hello all. I recently had to un-install and re-install Tomcat. Now when I run it (either as a service, or using startup.bat or catalina.bat) it fails with this error: java.lang.NoClassDefFoundError: com/sun/jmx/mbeanserver/GetPropertyAction ... I can't seem to find any

Re: tricking the browser with a path

2004-01-08 Thread Philipp Taprogge
Hi! Justin Walters wrote: http://website.com/subdir/script.jsp/more/pathinfo Currently, it looks like it just assumes script.jsp is another subdirectory, and so this request doesn't work, you get a 404. Is there a way for me to configure Tomcat such that it loads script.jsp? AFAIK this is not

Re: Tomcat reconnect to database server?

2004-01-07 Thread Philipp Taprogge
Hi! I don't know MSSQL in particular, but in princible it should be as simple as adding ?autoreconnect=true to the driver URL. Phil Derek Mahar wrote: How can I configure Tomcat 5.0.16 to reconnect to a Microsot SQL Server after a server restart? I have configured Tomcat to use JNDI datasourc

Re: Classes cannot be found

2003-12-30 Thread Philipp Taprogge
Hi! Jeff Greenland wrote: Thanks, I'll go through and see if anything in here gives me some hints. However, I'm not getting "ClassNotFound" exceptions -- my files are not even compiling because the compiler "Cannot Resolve Symbol". My problem lies in that the compiler (jasper) cannot find my comp

Re: another newbie question

2003-12-30 Thread Philipp Taprogge
Hi! FRANCOIS Dufour wrote: whicht database should i use under tomcat That does not so much depend on tomcat but rather on the needs of your application. Today almost any major RDBMS has a JDBC driver and that's all you need. If you want a database that is simple to administrate but comes with r

Re: web app prob from a newbie re:damar

2003-12-30 Thread Philipp Taprogge
Hi! FRANCOIS Dufour wrote: ok in french traducted i got many option there like follow user variable (name of curent user)new,modifie,delete /system variable new, modifie, delete, If you want the java_home to be system wide (for all users) click on "new" next to "system variable", if you want it

Re: web app prob from a newbie

2003-12-30 Thread Philipp Taprogge
Hi! FRANCOIS Dufour wrote: win xp home tomcat 4.0 jdk 1.3 i have video chat aplication running but the forum aplication ask mee too set a java home path and cant figure were Perhaps you should ask someone who has a french version of WIN XP available. On an english installation, you go to proper

Re: Tomcat Tuning Memory leak

2003-12-30 Thread Philipp Taprogge
Hi again! David Strupl wrote: Also the code was running for several years in tomcat 3.x without any problem. After migrating to tomcat 4.x the nightmare began. Have you changed the JRE as well or are you running the tomcat 4 instance in the same VM as the tomcat 3 before? Just to make sure you

Re: Tomcat Tuning Memory leak

2003-12-30 Thread Philipp Taprogge
Hi! David Strupl wrote: I have tomcat 4.1.29, JDK1.4.2. Also my app was completely ok with tomcat 3.x.x. The 100% of processor time occurs in my case only after the OOME. Before the OOME all the threads (both tomcat's and mine) are happy. The processor usage is not too surprising. When your mac

Re: Browser control thru servlet

2003-12-30 Thread Philipp Taprogge
Hi! Teja Jo wrote: Hello everyone, Can anyone tell me how the back and forward button of browser be controlled - as disabled for example or specifying the url it should go to - thru the requests made to servlet? Thanks and regards, It is (thankfully) not possible to control a user's browser from t

Re: [Q] Tomcat & ZoneAlarm?

2003-12-29 Thread Philipp Taprogge
Hi! Riaan Oberholzer wrote: This is not a Tomcat issue, but I've tried desperately and could find no answer elsewhere... can someone please tell me how to get Tomcat working with ZoneAlarm (free version) as firewall? In general, it is very advisable to know what a firewall does and how it works b

Re: StringBuffer Factory?

2003-12-27 Thread Philipp Taprogge
Hi! George Sexton wrote: This is a really bad idea because of the implementation of StringBuffer.toString() and setLength(). Well, Ok. But this is (IMHO correctly) regarded a bug in the current StringBuffer implementation; a bug that, with luck, will be fixed some day. Or you could write your o

StringBuffer Factory?

2003-12-27 Thread Philipp Taprogge
Hi! I was just working on a little project of mine when a thought sprang to my mind... In my servlets I often have to assemble Strings like SQL statements and the like. I use StringBuffers for this as they offer much better performance than concat. Now I was wondering: would it make any sense

Re: Memory comsuption

2003-12-27 Thread Philipp Taprogge
Hi! Luis Daniel Alvarez wrote: What about the others 50 or 70 java process with 50M of memory comsuption too? You must understand that the java runtime on linux implements java threads by forking separate processes which if the preferred way on un*xes to do things. What you are seeing with top a

Re: Admintool cannot save changes to servers.xml

2003-12-27 Thread Philipp Taprogge
Hi! [EMAIL PROTECTED] wrote: Question: What do I have to change in order to enable admintool to save changes to server.xml? I am not entirely sure here, but from what I have read so far I recon that the admin webapp is for making changes to the running tomcat instance _only_. If you know in adv

Re: Problem with database updates using DBCP

2003-12-23 Thread Philipp Taprogge
Hi! David Ramsey wrote: I've not used DBCP specifically but are you sure you are committing your writes? Most pools will default rollback connections returned to the pool, if I am not mistaken. Isn't there a parameter autocommit in the ConnectionFactory? I am not sure if it's viable to call setAu

Re: RES: TCP-FIN problem

2003-12-23 Thread Philipp Taprogge
Hi! Sebastian Klenk wrote: actually i thought that tomcat was supposed to close the connection after all data has been send - if not this explains a lot! It does, but TCP handshakes are no one-way street. I can only do wild guesses from here, but what I think is happening is this: after tomcat s

Re: RES: TCP-FIN problem

2003-12-23 Thread Philipp Taprogge
Hi! Sebastian Klenk wrote: I didn't do anything ... the only problem I have is that my app. is not very fast, and that is because it has to wait for tomcat to close the connection, but tomcat closes the connection a lot later (ca 1 minute). My question is now if there is a way to tell tomcat tha

Re: Connection Reset By Peer

2003-12-17 Thread Philipp Taprogge
Hi! Ferreira, André wrote: Can someone please explain to me what does "Connection reset by peer" means? Does it mean the server does not recognize the connection attempt from Tomcat or are there some other explanations. Or is there some port not available...:-(. Since TCP is a connection-less

Re: JDBC from TagSupport

2003-12-16 Thread Philipp Taprogge
Hi! Hart, Justin wrote: Quick question. I see that one can configure a JDBC datasource in their server.xml file and their web.xml file. > What does this get you? Every example that I have read tells me that I need to open a JDBC connection just about the same as I would from any other java appl

Re: Tomcat 5.0.16 DBCP Connection Pool Exhausted Error

2003-12-15 Thread Philipp Taprogge
Hi! Kwok Peng Tuck wrote: Isn't removeAbandoned deprecated ? If so is it still usable ? I can't find a word about it being deprecated on http://jakarta.apache.org/commons/dbcp/configuration.html I am using this parameter quite successfully. Phil --

Re: Tomcat 5.0.16 DBCP Connection Pool Exhausted Error

2003-12-15 Thread Philipp Taprogge
Kausik Dey wrote: Hi Guys, Currently I am using 5.0.5 in production. I was trying to upgrade to 5.0.15 or 5.0.16. I made necessary changes to server.xml > to create informix DBCP. Unfortunately, I am getting "Connection Pool Exhausted" error while trying to obtain the connection from Datasource.

Re: Need some Tomcat Configuration help badly

2003-12-14 Thread Philipp Taprogge
Hi! Dick Steflik wrote: If you use a different compiler does the problem go away. I think so. I often hear that using jikes instead of javac would get rid of the problem, which, if true, rises the question why tomcat does not use jikes by default... Phil ---

/server/lib available to web applications?

2003-12-14 Thread Philipp Taprogge
ar in /common/lib as well? Thanks Philipp Taprogge - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Need some Tomcat Configuration help badly

2003-12-14 Thread Philipp Taprogge
Hi! Find the default web.xml in $CATALINA_HOME/conf and change the appropriate parameter for the jsp servlet to true. At least in Tomcat5 this file comes with very good documentation. Philipp Taprogge > Hi, > > How do I turn the fork to be true? > > Regards, >

Re: Need some Tomcat Configuration help badly

2003-12-13 Thread Philipp Taprogge
Hi! Dick Steflik wrote: I'm on W2000, just for the record. With this in mind which way should the fork be set; true ot false. Concidering that this poor excuse for an OS does not even know the meaning of fork(), I'd say you set it to true. W2K should then start a completely new process from sc

Re: Need some Tomcat Configuration help badly

2003-12-13 Thread Philipp Taprogge
Hi! David Rees wrote: BTW, there is a bug with Tomcat which will cause it to run out of memory after a number of restarts. You will probably run into this with 30 students uploading new classes. You will also want to make sure that the fork attribute for the JspServlet is set to true as well

Re: Tomcat 4.1.29 war unpacking problems

2003-12-12 Thread Philipp Taprogge
Hi! In tomcat 4 you have to either restart tomcat after you drop the war in it's webapps directory or manually install the webapp using the tomcat manager (the path to war file should be relative to the webapps dir, so if you drop the war there, you can just enter it's name and press install b

Re: [WORKAROUND] Re: VERY weird problem with commons-logging and Tomcat5

2003-12-12 Thread Philipp Taprogge
Hi! Jacob Kjome wrote: You can also use a repository selector. BTW, do you have log4j.jar *and* commons-logging.jar (not commons-logging-api.jar) in WEB-INF/lib? Yes, I do, but I have tried several scenarios with and without either of them in my WEB-INF/lib. Also I tried putting/removing them i

[WORKAROUND] Re: VERY weird problem with commons-logging and Tomcat5

2003-12-11 Thread Philipp Taprogge
right was one. 'Till later Phil Philipp Taprogge wrote: Hi! I have a very disgusting problem here... I am developing a webapp which uses commons-logging and log4j. All I do is use the commons' Log and LogFactory in my application and place a log4j.properties file in my WEB-INF/cl

VERY weird problem with commons-logging and Tomcat5

2003-12-11 Thread Philipp Taprogge
ile, which firstly slows down my machine (no wonder) and secondly grows the logfile to a few MBs just from startup. What the heck am I doing wrong here? This setup worked perfectly in the last tomcat4. Can anyone advice? Philipp Taprogge -- "I love deadlines, I love the whooshing noise they mak

Re: Tomcat4.1.29 Requested resource not available

2003-12-11 Thread Philipp Taprogge
Hi! Nadia Kunkov wrote: Thanks. I did http://localhost:8080/manager/install?war=test and got the error: "Access to the specified resource has been denied/forbidden". What does that mean? In $Tomcat_Home/conf/tomcat_users.xml I have this: (I'm not logged in to the machine as Tomcat but I thi

Re: response.reset() and forward() ... problematic? DBCP related?

2003-12-11 Thread Philipp Taprogge
Hi! Antonio Fiol Bonnín wrote: My guess: req and res are attributes of the Servlet, like in: public class TestServlet extends HttpServlet { private HttpServletRequest req; private HttpServletResponse res; [...] } So you are calling "forward(s)" for a request once req and res have been overwritt

Problem with JNDI mail session and SMTP auth

2003-12-09 Thread Philipp Taprogge
can, of course, provide a complete server.xml or other files. Thanks in advance for any help you have to offer. Philipp Taprogge -- "I love deadlines, I love the whooshing noise they make as they go by" - Douglas Adams --