Re: Tomcat mysteriously shuts down

2007-02-19 Thread raine king
OK I figured it out: Me and a couple testers were all running versions of Tomcat and once in a while we would use the same machine, and we hadn't changed the shutdown port/message(server.xml) so we were occasionally shutting down one another's Tomcats with shutdown.sh! Thanks everyone for

Re: OutOfMemoryError (but not really out of memory?) cause tomcat processes to hang

2007-02-19 Thread Ronald Klop
It helped us to upgrade to java 1.5.0_10. There are fixes for memory leaks in native memory. They do not show up in the java heap. Ronald. On Wed Feb 07 23:34:45 CET 2007 Tomcat Users List users@tomcat.apache.org wrote:

Re: Can't find classes in jar files in WEB-INF

2007-02-19 Thread David Smith
You don't need to tell tomcat to look in WEB-INF/lib/*.jar. Tomcat does that automatically per spec. I'm guessing there is something wrong with the way your jar was created or a permissions problem. Try testing the jar with $JAVA_HOME/bin/jar tf whatever.jar (linux/maxos syntax) or

Re: Can't find classes in jar files in WEB-INF

2007-02-19 Thread aladdin
Here's a snippet of my web.xml that shows the filter: servlet servlet-nameReqMgr/servlet-name servlet-classinfoIsland.ReqMgr/servlet-class /servlet servlet-mapping servlet-nameReqMgr/servlet-name url-pattern/members/servlet/ReqMgr/url-pattern /servlet-mapping

DBCP Logging

2007-02-19 Thread news
Hello List, I've configured DBCP on my Tomcat 5.5.20 Installation. Resource name=jdbc/myDB auth=Container type=javax.sql.DataSource maxActive=10 maxIdle=2 maxWait=1 username=aUser password=secret

Re: DBCP Logging

2007-02-19 Thread David Delbecq
Lambda probe is a usefull webapplication you can deploy under tomcat and that, amongst many features, allows you to see the state of your connection pools. En l'instant précis du 02/19/07 14:40, [EMAIL PROTECTED] s'exprimait en ces termes: Hello List, I've configured DBCP on my Tomcat 5.5.20

Re: IOException writing to /usr/share/tomcat5/conf/tomcat-users.xml.new

2007-02-19 Thread Tom Robinson
Markus Schönhaber wrote: Tom Robinson wrote: Markus Schönhaber wrote: Just a WAG: maybe it's not really a permisson problem but the tomcat-users.xml that is somehow corrupt. If you post it's content here, we can take a look and see if we spot something obviously wrong. Yes, it's far

Tomcat default context

2007-02-19 Thread Gardner, Brad
I am using tomcat 5.5.20 and attempting to set up a default context without placing the context tag inside of the server.xml file. I created the ROOT.xml file under Tomcat Home Dir/conf/engine/host/ and placed this tag into the file: Context docBase=mywebapp/ This resulted in no

RE: Tomcat default context

2007-02-19 Thread Propes, Barry L [GCG-NAOT]
didn't know it was possibleto set up a default context outside of the server.xml file. I thought Tomcat required that. -Original Message- From: Gardner, Brad [mailto:[EMAIL PROTECTED] Sent: Monday, February 19, 2007 10:43 AM To: users@tomcat.apache.org Subject: Tomcat default context

Re: Tomcat mysteriously shuts down

2007-02-19 Thread David Kerber
raine king wrote: OK I figured it out: Me and a couple testers were all running versions of Tomcat and once in a while we would use the same machine, and we hadn't changed the shutdown port/message(server.xml) so we were occasionally shutting down one another's Tomcats with shutdown.sh!

RE: Tomcat default context

2007-02-19 Thread Gardner, Brad
This is from the documentation that comes with tomcat 5 Please note that for tomcat 5, unlike tomcat 4.x, it is NOT recommended to place Context elements directly in the server.xml file Doing it outside the server.xml file allows you to make changes without restarting tomcat. Nice feature, but

RE: Tomcat default context

2007-02-19 Thread Propes, Barry L [GCG-NAOT]
oh, ok. Hadn't gone down that road yet. Good to know. Then would it be Context docBase=/mywebapp/ ? -Original Message- From: Gardner, Brad [mailto:[EMAIL PROTECTED] Sent: Monday, February 19, 2007 10:52 AM To: Tomcat Users List Subject: RE: Tomcat default context This is from the

tomcat connector

2007-02-19 Thread Alice \(Wong\) Ng
Hey tomcat-user, We are trying to use tomcat connector to make IIS talk to tomcat. Recently we have run into a couple issues with the tomcat connector. We are running into deployment issues where simply placing it on a box is not behaving like we want it to. I thought this was more of

RE: Tomcat default context

2007-02-19 Thread Caldarale, Charles R
From: Gardner, Brad [mailto:[EMAIL PROTECTED] Subject: Tomcat default context I created the ROOT.xml file under Tomcat Home Dir/conf/engine/host/ and placed this tag into the file: Context docBase=mywebapp/ Don't put your webapp in the Host's appBase directory; if you do it may be

Tomcat Cobertura

2007-02-19 Thread dhay
Hi, We're trying to instrument a war file using Cobertura, and gather the coverage details when deployed and used under Tomcat. Below is a thread from the Cobertura list - I'm having problems when I run tomcat5.exe (which we use in our product) with the instrumented jar. In this mode, Cobertura

Connection pool problem DBCP - 4.1.3

2007-02-19 Thread Propes, Barry L [GCG-NAOT]
This is driving me crazy. I'm finally close, I think, on getting this solved. Problem is I seem to either get Connection is closed or Exhausted resultset, depending where I put my close statement. I've got the following up at the top, which replaces my driver reference that was previously

RE: Connection pool problem DBCP - 4.1.3

2007-02-19 Thread Mike Quilleash
Need a bit more info. DB type and version, JDBC driver version, ResultSet loop/access code. Generally the pseudo code should be... Open Connection try { Prepare Statement try { Execute Query try { while ( resultSet.next() ) { // process row here }

RE: Connection pool problem DBCP - 4.1.3

2007-02-19 Thread Propes, Barry L [GCG-NAOT]
ok, I'll send that, too. Sorry about that. -Original Message- From: Mike Quilleash [mailto:[EMAIL PROTECTED] Sent: Monday, February 19, 2007 1:08 PM To: Tomcat Users List Subject: RE: Connection pool problem DBCP - 4.1.3 Need a bit more info. DB type and version, JDBC driver version,

Re: Connection pool problem DBCP - 4.1.3

2007-02-19 Thread --
I think you should also call prepstmt.close() (before closing the connection). Besides selstmt seems not to be used at all. Bye This is driving me crazy. I'm finally close, I think, on getting this solved. Problem is I seem to either get Connection is closed or Exhausted resultset,

RE: Connection pool problem DBCP - 4.1.3

2007-02-19 Thread Propes, Barry L [GCG-NAOT]
Johnny, you were correct. that selstmt connection statement was not being utilized, but sure must have had an adverse impact, because I think I've got it working ok now! Thanks a bunch, guys! -Original Message- From: -- [mailto:[EMAIL PROTECTED] Sent: Monday, February 19, 2007 2:06 PM

Start Tomcat Error

2007-02-19 Thread Xian Qing
I have tomcat 4.1.24 and Eclipse 3.1.2. When I start Tomcat from Eclipse, I get error below. Please help me to fix. GlobalResourcesLifecycleListener: Exception creating UserDatabase MBeans for UserDatabase javax.management.MalformedObjectNameException: Missing value in properties list at

Re: DBCP Logging

2007-02-19 Thread Yannick Haudry
If your datasource is not managed through your container but application driven, I guess Lambda probe (which is a great application) will not be able to give you information about it ? Is there a way to programmatically log the number of connections in use, etc ... ? Thanks Yannick On 2/19/07,

request.getParameter() in JSP misinterpreting foreign characters

2007-02-19 Thread Ramez Ghazzaoui
Hi, Back in May 2006, I had trouble Configuring Tomcat HTTP server to generate proper links for non-English file names in a Directory Listing. Mr. Mark Thomas proposed a solution that worked: He told me to set URIEncoding=UTF-8 in the connector (presumably in server.xml). This fixed the

Connection Pooling Question

2007-02-19 Thread Marc Farrow
Slightly off topic, but the core of what I want is being done in the source code of Tomcat. I am trying to use the Apache Commons DBCP classes to create my own connection pooling factory that I can use within my servlet container (Tomcat) and also in stand alone programs. I see how the

RE: DBCP Logging

2007-02-19 Thread Stephens, Daniel
We wrote a simple method to return some stats. It's kinda crude, and may not be a 100% accurate, but here is what we did. Hope it helps. We used this documentation here http://jakarta.apache.org/commons/dbcp/apidocs/org/apache/commons/dbcp/Basic DataSource.html public static void

Installing Tomcat 6.0.9 on Sun Solaris

2007-02-19 Thread Daniel Gresh
Hi all, I was having some more problems with some older Tomcat installations, so I decided to upgrade to the newest release and download it fresh this time instead of using an existing build from awhile back. I've been trying to set up Tomcat 6.0.9, but I'm afraid I'm having some problems.

Re: Installing Tomcat 6.0.9 on Sun Solaris

2007-02-19 Thread Hassan Schroeder
On 2/19/07, Daniel Gresh [EMAIL PROTECTED] wrote: I've been following the installation instructions in RUNNING.txt. Basically, it tells me to download the binary distribution, unpack it, make sure JDK1.5 or greater is installed, and run the server. I also need to set up a CATALINA_BASE, No,

Re: Installing Tomcat 6.0.9 on Sun Solaris

2007-02-19 Thread Daniel Gresh
Hi thanks for the reply. I cleared my CATALINA_BASE variable so it would take on the default $CATALINA_HOME variable. I then moved my conf lib logs temp webapps work directories back into $CATALINA_HOME. Then, I used startup.sh, and it WORKED! Hooray! I can shutdown and startup the server when I

Re: Installing Tomcat 6.0.9 on Sun Solaris

2007-02-19 Thread Hassan Schroeder
On 2/19/07, Daniel Gresh [EMAIL PROTECTED] wrote: However, startup.sh does not start the server apparently; I cannot connect to it from a browser You need to look in your server logs for the underlying problem that's preventing Tomcat from starting. -- Hassan Schroeder

RE: Installing Tomcat 6.0.9 on Sun Solaris

2007-02-19 Thread Caldarale, Charles R
From: Daniel Gresh [mailto:[EMAIL PROTECTED] Subject: Re: Installing Tomcat 6.0.9 on Sun Solaris When I try to setup a $CATALINA_BASE by moving the aforementioned directories to $HOME/dtomcat, I get the error I posted in my original message. The real question is: why are you trying to

RE: Re: HOW TO turn on client Certificate with pop choose a digital certificate window

2007-02-19 Thread Zhan, Jimmy
Hi, Thanks! Could you give me some more detail information? Such as sample config file, code or links. Jimmy ZHAN -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker Sent: Friday, February 16, 2007 7:59 PM To: users@tomcat.apache.org Subject: Re: HOW

RE: HOW TO turn on client Certificate with pop choose a digital certificate window

2007-02-19 Thread Zhan, Jimmy
Hi, But why it doesn't work in that way. I use IE 6. and only change value of clientAuth. False/want, tomcat works, set clientAuth=true, The page cannot be display comes out. Must I missing some thing! More idea? Thanks Jimmy -Original Message- From: Pulkit

Re: request.getParameter() in JSP misinterpreting foreign characters

2007-02-19 Thread Mark Thomas
Ramez Ghazzaoui wrote: Is there a way to make French characters work both in Directory Listings and in GET parameters? All your pages need to include the following at the start: %@ page pageEncoding=UTF-8 % The correct UTF-8 encoding for your request is: http://localhost/main.jsp?path=ol%C3%A9

Re: request.getParameter() in JSP misinterpreting foreign characters

2007-02-19 Thread Markus Schönhaber
Ramez Ghazzaoui wrote: Today I realized that this very solution has broken the Java request.getParameter() method in JSP. Now, with the URIEncoding set to UTF-8, this Java method is misinterpreting non-English characters. When I invoke from the browser the following address:

Problem seting up Tomcat SSL

2007-02-19 Thread Anthony Liu
Hi, people, It's been 3 years since I used Tomcat the last time. When I return to it these days, I am having a hard time getting the SSL to work. I've created a keystore using keytool and put the .keystore file under C:\Tomcat_6\conf\ I am using JRE 6. After I read the on-line doc, I put

Found a product for running Tomcat off CDROM -have anybody tried it?

2007-02-19 Thread David Wishnie
Hello, I've found a product on freshmeat.net that allows to run tomcat-based websites off cdrom, allowing to produce CDs that work on Windows, MacOS X and Linux at the same time (also it seems to support perl, python, php mysql). Apache is used for serving static content, and it has a nice

Re: request.getParameter() in JSP misinterpreting foreign characters

2007-02-19 Thread Ramez Ghazzaoui
Thank you guys. Sounds like I need to either write or find a method that converts strings to UTF-8. I'll try this tomorrow. BTW I am not using HTML forms, just building URIs dynamically and sticking them into a href=... anchors. That's where the GET part comes into play :) Cheers, -Ramez