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:
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
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
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
.
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
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
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
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
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
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
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
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
: 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
:
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
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
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
-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
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
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
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
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
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
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
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:
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 -
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
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
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
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
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
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
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
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
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
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
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
.
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
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
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
-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
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
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
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
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
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:
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
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:
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
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:
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
://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
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
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
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
?
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
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
56 matches
Mail list logo