help: Cannot find extension

2003-07-25 Thread Hans Wichman
Hi all, i've built a webapp in which a jar in the WEB-INF\lib directory contains the following extension dependency specifications in the manifest file of the jar file (under the META-INF directory): Extension-List: mysql mysql-Extension-Name: org.gjt.mm.mysql mysql-Implementation-URL:

mysql connection pool

2003-07-28 Thread Hans Wichman
Hi, does anyone know why I have to close the connection retrieved from a mysql database connection pool ? Isn't the connection returned to the pool automatically when the object goes out of scope? And why is the datasource.getNumActive() value always 0 even though I have multiple connections

RE: mysql connection pool

2003-07-28 Thread Hans Wichman
collection determines that there are no more references to the object. -Original Message- From: Hans Wichman [mailto:[EMAIL PROTECTED] Sent: Monday, July 28, 2003 4:03 PM To: [EMAIL PROTECTED] Subject: mysql connection pool Hi, does anyone know why I have to close the connection

connection pool recreated

2003-07-28 Thread Hans Wichman
Hi, this is a repost of an earlier post, which I hope is a bit clearer. Why, if I run: Context ctx = new InitialContext(); if(ctx == null ) throw new ServletException(Boom - No Context); ds = (DataSource)ctx.lookup(java:comp/env/jdbc/SEDDB); under tomcat 4.0.1 is

RE: mysql connection pool

2003-07-28 Thread Hans Wichman
. To get answers from others I would suggest, that you include more infos about the configuration of the pool and how you access it. (And which version of the pool you use) -Original Message- From: Hans Wichman [mailto:[EMAIL PROTECTED] Sent: Monday, July 28, 2003 4:27 PM To: Tomcat Users

RE: mysql connection pool

2003-07-28 Thread Hans Wichman
can run any time or not even at all (if you don't consume enough memory). From the JavaDoc: finalize(): Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. -Original Message- From: Hans Wichman

RE: connection pool recreated

2003-07-28 Thread Hans Wichman
is NOT the pool. -Original Message- From: Hans Wichman [mailto:[EMAIL PROTECTED] Sent: Monday, July 28, 2003 9:45 AM To: [EMAIL PROTECTED] Subject: connection pool recreated Hi, this is a repost of an earlier post, which I hope is a bit clearer. Why, if I run: Context ctx

database connection pooling

2003-07-29 Thread Hans Wichman
Hi, I emailed yesterday about a database connection pool being recreated on every lookup in the context, but after upgrading from tomcat 4.0.1 to tomcat 4.1.23 the problem disappeared. Apparently this is a bug in tomcat 4.0.1. So I you are developing in tomcat 4.0.1 and using connection pools

RE: database connection pooling

2003-07-29 Thread Hans Wichman
ChemInformatics -Original Message- From: Hans Wichman [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 29, 2003 3:38 AM To: [EMAIL PROTECTED] Subject: database connection pooling Hi, I emailed yesterday about a database connection pool being recreated on every lookup in the context, but after upgrading

sessionids through url rewriting

2003-07-29 Thread Hans Wichman
Hi, I've read in the servlets specs that tomcat must support session management through url rewriting, but nothing happens when I disable the cookies (testing in netscape 7, since ie 6 sp1 can't disable the cookies). I have one servlet, let's call it /myServlet, which implements a command like

Re: (Symbolic) Links in Windows

2003-07-29 Thread Hans Wichman
Yep, that's the way, I do the same thing such as: Context path=/product docBase=P:/487.11.JSP_versie_SchoolsiteEindexamenDatabase/product debug=0 reloadable=true however I do not think the resources node is needed. On Win XP I had the problem that tomcat would not accept this path when I ran

RE: (Symbolic) Links in Windows

2003-07-29 Thread Hans Wichman
Hi, the example I sent you originally came from 4.0.1... Make sure you use forward separators, do not run tomcat as a service and have no spaces in the pathname, maybe that helps. greetz Hans At 03:08 PM 7/29/2003 -0400, Jay Garala wrote: This only works on 4.1.24 not 4.0.6 -Original

RE: sessionids through url rewriting

2003-07-29 Thread Hans Wichman
: Hans Wichman [mailto:[EMAIL PROTECTED] Sent: July 29, 2003 11:51 AM To: [EMAIL PROTECTED] Subject: sessionids through url rewriting Hi, I've read in the servlets specs that tomcat must support session management through url rewriting, but nothing happens when I disable the cookies (testing

RE: sessionids through url rewriting

2003-07-29 Thread Hans Wichman
: HttpServletResponse.encodeURL(/foo.jsp) or HttpServletResponse.encodeRedirectURL(/foo.jsp) -Original Message- From: Hans Wichman [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 29, 2003 3:06 PM To: Tomcat Users List Subject: RE: sessionids through url rewriting I was afraid you were going to say

request/session handling

2003-08-04 Thread Hans Wichman
Hi, can anyone tell me what happens if a user requests a servlet which might take 5 seconds to complete the request, and the user starts hitting reload a number of times? (I know the typical programming answer is 'why?! why would the user do such a thing?' but I am afraid I'm gonna have to

large objects in sessions

2003-08-06 Thread Hans Wichman
Hi, i've read in a number of locations that you shouldn't put large objects in session, because of the overhead incurred. Is this also true for non-serializable objects? Aren't they simply kept in memory? In addition does anybody know how I can accurately estimate the memory footprint such an

RE: large objects in sessions

2003-08-06 Thread Hans Wichman
-Original Message- From: Hans Wichman [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 06, 2003 11:02 AM To: Tomcat Users List; Tomcat Users List Subject: RE: large objects in sessions Hi, it appears freeMemory is highly not to be trusted ;-): Here is the free memory after each 1000 objects

RE: large objects in sessions

2003-08-14 Thread Hans Wichman
Hi, ok great, thanks for the reply. And the hash in which you look up the object with the retrieved id can be just something like a static hashtable in some class ? Greetz Hans At 09:03 AM 8/6/2003 -0400, Shapira, Yoav wrote: Howdy, i've read in a number of locations that you shouldn't put

RE: question marks appearing after deploy to production server

2003-08-14 Thread Hans Wichman
Hi, on my lokal pc it's winxp, on the production server it is freebsd 4.8. Greetz Hans At 09:31 AM 8/13/2003 +0100, [EMAIL PROTECTED] wrote: What is the server platform ? Does anybody have a clue how this may happen? But anyway this is most likely a character set problem, where you are using a

question marks appearing after deploy to production server

2003-08-14 Thread Hans Wichman
Hi, I have a strange problem, I wrote a servlet that retrieves some data from a database, which may contains characters such as ë. On my local tomcat 4.1.24 testserver the output shows correctly as in 'aërobe'. However if I deploy the application to one of our testservers, the result is

Re: Including port no in req.getServerName() output.

2003-08-14 Thread Hans Wichman
all files before running such an action ;-), you are free to experiment. greetz Hans At 04:20 PM 8/12/2003 +0530, Antony paul wrote: Any tool ? I am working on windows and dont know PERL or scripting language. regards Antony Paul - Original Message - From: Hans Wichman [EMAIL PROTECTED

Re: Problem Generating ID

2003-08-14 Thread Hans Wichman
Hi, why would you want to multiply the currentTimeMillis with math random ? The currentTimeMillis is unique onto itself? If you are concerned with multiple threads isn't is easier to append a thread id instead of risking two id that are the same because of the randomness introduced? greetz Hans

RE: question marks appearing after deploy to production server

2003-08-14 Thread Hans Wichman
It worked ! great, thanks ! At 09:50 AM 8/13/2003 +0100, Bodycombe, Andrew wrote: Try setting CATALINA_OPTS=-Dfile.encoding=iso-8859-1 I think Sun changed the default character set in JDK1.4 - It is now ASCII HTH Andy -Original Message- From: Hans Wichman [mailto:[EMAIL PROTECTED] Sent

difference between session expired or session new

2003-08-14 Thread Hans Wichman
Hi, I have an app in which users do not have to login, but each user does have its own session. I tried to come with a way to detect whether the users current session has expired, but I can't seem to find a way to differentiate between 'no' session and an 'expired' session. What I had was:

Re: Including port no in req.getServerName() output.

2003-08-14 Thread Hans Wichman
Hi, how about ultraedit search and replace, http:// req.getServerName() by nothing just an idea... greetz Hans At 03:59 PM 8/12/2003 +0530, Antony paul wrote: 80% of the pages are completed(about 150 pages) so changing these pages is a tedious job. Antony Paul - Original Message -

RE: large objects in sessions

2003-08-14 Thread Hans Wichman
Hi, it appears freeMemory is highly not to be trusted ;-): Here is the free memory after each 1000 objects created: #:717000 #:320080 #:1152992 #:512992 #:266208 #:1784800 #:1144800 #:504800 #:389088 #:3894240 The more objects I create the more memory I get ;-). In addition, how can the garbage

database connection

2003-08-14 Thread Hans Wichman
Hi, I am evaluating a jsp application for a customer, which provides an interface to a database through some helperclasses. Each helper class manages the retrieval (and updates) of related underlying tables, and there are about 10 helperclasses. In the header (header.jsp) the jsp calls an

RE: URLEncoding urls (hrefs) that are coming out of a database...

2003-08-15 Thread Hans Wichman
A complete html parser seems a bit over the top if you can ensure the html is validated before it goes into the database. If the html is validated you can perform a search and replace on known cases, however I had the same problem and encodeURL only worked on url's that could be resolved within

Re: Request parameter value containing = is not parsed well

2003-08-15 Thread Hans Wichman
Hi = encoded is %3D, so that's where you are missing something I think. greetz Hans At 10:41 15/08/2003 -0500, Vijay Kandy wrote: Hello All, I have a servlet whose expected parameter is ZAZBZ and its value is CZlYnXtAIBDC=D9W7V So calling http://host/context/name?ZAZBZ=CZlYnXtAIBDC=D9W7V would

StandardContextValve exception starting MBeanServer

2003-03-27 Thread Hans Wichman
Hi, has anyone experienced this problem before (see detailed stacktrace below) and could tell me what on earth is happening ? I know it is something in my server.xml because when I put back a backup without my application in it, tomcat starts normally, only I have trouble pinpointing the exact

Re: instance names problem will pay $2 for solution

2003-04-02 Thread Hans Wichman
hi, i think you need to use the java.lang.reflect api for this kind of stuff. greetz Hans At 02:24 AM 4/2/2003 -0800, you wrote: i will pay $2 usd if you can solve my problem. i'll send check by mail or paypal. my problem is i have a String variable s which stores the name of the instance i

includes

2003-04-03 Thread Hans Wichman
Hi, in my webapps directory I have two distinct subtrees, say a/ and b/ of which a/ is protected through tomcat's authorisation mechanism. Only now I can't seem to include any files from subtree a in b, so for example in b/test.jsp I have a line stating : @% include

RE: includes

2003-04-04 Thread Hans Wichman
Message- From: Hans Wichman [mailto:[EMAIL PROTECTED] Sent: Thursday, April 03, 2003 6:02 AM To: [EMAIL PROTECTED] Subject: includes Hi, in my webapps directory I have two distinct subtrees, say a/ and b/ of which a/ is protected through tomcat's authorisation mechanism. Only now I can't seem

Re: Tomcat is stoping Urgent

2004-04-22 Thread Hans Wichman
Hi, there are other drivers for access, look here http://servlet.java.sun.com/products/jdbc/drivers Or simply convert your access db to something else eg mysql and use mysql drivers or a connectionpool. grtz Sorv At 08:59 AM 4/22/2004 -0500, Kiran Patel wrote: I am having this problem for one

Re: Accessing Dll's

2004-04-22 Thread Hans Wichman
try putting them in the lib/ext folder of your j2sdk1.4.2_03 folder. grtz Sorv At 03:24 PM 4/22/2004 +0100, Annamalai Ramasamy wrote: Hi., I'm using Tomcat4.0.29 with J2SDK 1.4.2_03. I have my native libraries(dll's) in winnt folder. I'm loading the dll thru System.loadlibrary and accessing

Re: Tomcat is stoping Urgent

2004-04-22 Thread Hans Wichman
ps also check you don't have strange names for queries, tables (no spaces or + signs in column names etc). At 08:59 AM 4/22/2004 -0500, you wrote: I am having this problem for one specific action in the application. Is there anything wrong with the code? What are other solutions instead of ODBC

Re: Accessing Dll's

2004-04-22 Thread Hans Wichman
. Thanks., MALAI Hans Wichman [EMAIL PROTECTED] wrote: try putting them in the lib/ext folder of your j2sdk1.4.2_03 folder. grtz Sorv At 03:24 PM 4/22/2004 +0100, Annamalai Ramasamy wrote: Hi., I'm using Tomcat4.0.29 with J2SDK 1.4.2_03. I have my native libraries(dll's) in winnt folder. I'm loading

hanging application and broken pipes

2004-06-17 Thread Hans Wichman
Hi, I am looking for some advice on tackling the following problem. We have to maintain an application not written by us, and about three times a day the server hangs. We are using tomcat 4.1.29, oracle 8 and use connection pooling. Upon calling a certain method: readDidactischTypes() (don't

RE: DBCP pooling error

2004-06-17 Thread Hans Wichman
Hi, there are 4 parts to this, a pool definition in your server.xml a resource ref in your web.xml a snippet of java code to get the datasource. a bunch of drivers (probably something like classes12.jar) Did you specify the first three of them and included the last one? grtz Hans At 11:23 AM

RE: DBCP pooling error

2004-06-17 Thread Hans Wichman
-Original Message- From: Hans Wichman [mailto:[EMAIL PROTECTED] Sent: Thursday, June 17, 2004 1:14 PM To: Tomcat Users List Subject: RE: DBCP pooling error Hi, there are 4 parts to this, a pool definition in your server.xml a resource ref in your web.xml a snippet of java code to get

RE: DBCP pooling error

2004-06-17 Thread Hans Wichman
things...how is the location in the Server.xml? Is it in the right place? Chris Bliesner Lead Oracle DBA/Unix admin Wk Phone 915-834-1757 -Original Message- From: Hans Wichman [mailto:[EMAIL PROTECTED] Sent: Thursday, June 17, 2004 1:39 PM To: Tomcat Users List Subject: RE: DBCP pooling error

resend: hanging application and broken pipes

2004-06-30 Thread Hans Wichman
Hi, I still haven't solved my strange tomcat problem, and I really hope some of you can help me in the right direction: I am still looking for some advice on tackling the following problem. We have to maintain an application not written by us, and about three times a day the server hangs. We

include ip in log

2004-07-01 Thread Hans Wichman
Hi, does anyone have a good tip how I can distinguish different clients logging to ServletContext.log() ? I don't want to make any changes that force me to pass additional parameters if this can be avoided, so I was thinking about using something like the current thread id or something like

Fwd: debug connection pool

2004-07-07 Thread Hans Wichman
Hi, found it, sorry ! I had been searching in all the wrong directions, but the obvious one grtz Hans Date: Wed, 07 Jul 2004 09:59:18 +0200 To: [EMAIL PROTECTED] From: Hans Wichman [EMAIL PROTECTED] Subject: debug connection pool Hi, does anyone know the correct way to debug a database

debug connection pool

2004-07-07 Thread Hans Wichman
Hi, does anyone know the correct way to debug a database connection pool, eg number of connections left in the pool etc? Or a pointer in the right direction? any help would be appreciated! thanks! Hans - To unsubscribe, e-mail:

Re: Fwd: debug connection pool

2004-07-07 Thread Hans Wichman
getNumActive, getMaxActive, getNumIdle, getMaxIdle etc to print this information before or after getting a connection. grtz Hans At 02:12 PM 7/7/2004 -0300, Emerson Cargnin wrote: So share your finding :) Hans Wichman wrote: Hi, found it, sorry ! I had been searching in all the wrong directions

tomcat hangs, top displays 99%

2004-07-08 Thread Hans Wichman
Hi, while stresstesting my application using tomcat 4.1.29, oracle, dbcp connection pooling and a stresstest tool, I see the amount of my connections in my pool fluctuate (as expected). At a certain while I still have plenty connections left in the pool, errors start occuring:

Re: tomcat hangs, top displays 99%

2004-07-21 Thread Hans Wichman
included? Have you got yourself into an infinite loop of Session already invalidated IllegalStateExceptions? Jon Hans Wichman wrote: Hi, while stresstesting my application using tomcat 4.1.29, oracle, dbcp connection pooling and a stresstest tool, I see the amount of my connections in my pool

tomcat restarted

2004-07-21 Thread Hans Wichman
Hi, how can I see whether tomcat has restarted during the night? Is it possible that rotating logs cause tomcat to redeploy a webapplication? thanks Hans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: Unable to switch JDK from 1.3.1 to 1.4.2 on FreeBSD 4.8 Stable on Tomcat 5.0.25

2004-07-21 Thread Hans Wichman
Hi, maybe a dumm question, but you do have linux compatibility enabled in order to run 1.4.2? In order words, you can execute a java 1.4.2 example program from the command line? greetz Hans At 01:14 PM 7/21/2004, you wrote: Hi all! I'm pretty new with all of this, so please bear with me on

Re: Unable to switch JDK from 1.3.1 to 1.4.2 on FreeBSD 4.8 Stable on Tomcat 5.0.25

2004-07-21 Thread Hans Wichman
://java.sun.com/cgi-bin/bugreport.cgi # # Java VM: Java HotSpot(TM) Client VM (1.4.2_04-b05 mixed mode) # So now I'm trying a different build of the jdk, then the one I'm currently using.. On 21.07.2004 13:20:54 +, Hans Wichman wrote: Hi, maybe a dumm question, but you do have linux

Re: Unable to switch JDK from 1.3.1 to 1.4.2 on FreeBSD 4.8 Stable on Tomcat 5.0.25

2004-07-21 Thread Hans Wichman
Nope ;-) I didn't see you run it, I saw an error message about the initial thread stack location ;-) see my other mail I just sent At 01:42 PM 7/21/2004, Steffen Schumacher wrote: On 21.07.2004 13:20:54 +, Hans Wichman wrote: Hi, maybe a dumm question, but you do have linux compatibility

Re: tomcat5 does not find properties file in webapp

2004-07-21 Thread Hans Wichman
Hi, do you have rights to read the property file? Is the codebase for the MyServiceImpl class equal to $WEBAPP/WEB-INF/classes/? greetz Hans At 03:15 PM 7/21/2004, Lorenz, Christoph wrote: Hi, what is the reason, that tomcat5 (5.0.25) does not read my properties file, which I placed in

RE: Apache/Tomcat/Struts Certification Proposal

2004-02-20 Thread Hans Wichman
Hi, I guess it's a matter of which way you look at it. Starting from scratch and getting certified doesn't really say much (because then you are as Yoav said, the unexperienced certified developer). However if you have reached a certain level of experience, I don't see what's wrong with getting

Re: Apache/Tomcat/Struts Certification Proposal

2004-02-20 Thread Hans Wichman
? On 02/20/2004 08:03 PM Hans Wichman wrote: Hi, I guess it's a matter of which way you look at it. Starting from scratch and getting certified doesn't really say much (because then you are as Yoav said, the unexperienced certified developer). However if you have reached a certain level of experience

Re: Installing php into Tomcat

2004-02-24 Thread Hans Wichman
hi, you probably have to create a setup where apache (for example) is the main webserver, dispatching jsp to tomcat and php files to the php interpreter. Firepages has a working distribution with php, mysql, apache, I don't know if there is one with tomcat included as well, but you can always do