Tomcat Deployed Applications

2005-04-25 Thread Robert Bateman
Under Tomcat 4.1.27 and 4.1.30, if I deploy an application via a .WAR file to the server (via ANT and the manager) Tomcat knows about my deployed application. IF the server restarts for some reason, Tomcat *still* know about the deployed application. However, I've noticed that if I deploy the *s

TC 5.5 and commons-dbcp

2005-04-12 Thread Robert Bateman
I'm in the process of moving an application that is in production today on a TC 4.1.30 deployment over to 5.5. So far, everything has moved without too much trouble. That is, until I get to the use of commons-dbcp in the code. The code uses BasicDataSource to interface to commons-dbcp. Under 4.

[Slightly OT] CLASSPATH variable in catalina.sh

2005-04-06 Thread Robert Bateman
While debugging a log4j problem this afternoon... I happened to attempt to rearrange the contents of my CLASSPATH on my Fedora Core 2 machine in order to insure a correct log4j.properties file is being loaded by TC. To insure the proper file is loaded, I placed ${catalina.home}/common/classes/log4

[Slightly OT] Catalina Policy and log4j

2005-04-06 Thread Robert Bateman
I'm transitioning a web site from 4.x over to 5.5.7. Everything is going well *except* for logging (a sore subject for me.) I've created a small log4j.properties file and placed it in ${catalina.home}/common/classes. The file contains: #log4j.properties log4j.rootLogger=DEBUG, R log4j.appender.

RE: [Slightly OT] Simplifying deployment

2004-10-22 Thread Robert Bateman
rs List > >Subject: RE: [Slightly OT] Simplifying deployment > > > >I would keep it simple less things to hack, break, update, etc.. > >Also I remember reading in tomcat's documentation that it serves static > >content almost or just as fast. > > > > &

[Slightly OT] Simplifying deployment

2004-10-22 Thread Robert Bateman
I have an application that I've developed that run strictly on Tomcat. I've noticed a lot of traffic on this list talking about using Apache httpd to serve up static content and using mod_jk to have httpd talk to Tomcat to serve up JSP traffic. And all of that got me thinking about doing the same

RE: multiple tomcat instance and log4j

2004-10-13 Thread Robert Bateman
Simon, I use a mix of *nix and Windows here. I've found that using copy with the (+) option does a pretty nice job of concatenating log files. *nix has tools for that natively. As for sorting, Windows has a 'sort' module that can sort pretty good sized input files. You have to pass the unsorted

Re: reloading JSP files without reloading classes/beans

2004-10-11 Thread Robert Bateman
The best advice I can give you is to investigate running your "test" application in a different context on the server. That way, you can recompile / alter the JSP files and everything else to your hearts content. IF that isn't possible, Tomcat runs quite nicely on my development machine where I c

Re: Ideas on deploying a web-app piece-meal

2004-10-11 Thread Robert Bateman
We use Web Archives (WAR files). I find this the most comprehensive method of deployment. Everything that is needed for the particular application is included in one file for upload. Bob On Mon, 2004-10-11 at 17:37, Jonathan Wilson wrote: > I need some advice/HOW-TO's on developing and then dep

Re: Authentication Mechanisms

2004-10-06 Thread Robert Bateman
On Wed, 2004-10-06 at 11:59, Anderson, M. Paul wrote: > 3. We currently store passwords in a database in plain text but we now wish > to encrypt them. If you look at the underlying code for the web mail client for yahoo.com for example, you will find a small amount of JavaScript that encrypts th

Re: Help ---care ..........Environment Variables

2004-09-27 Thread Robert Bateman
I find these articles from Novell to be more informative http://developer.novell.com/ndk/apache.htm and http://www.novell.com/documentation/nw6p/index.html?page=/documentation/nw6p/adminenu/data/a3fd4py.html Best of luck Bob On Monday 27 September 2004 01:59 pm, Keith Vaughn wrote: > I have

Re: removeAbandoned in DBCP

2004-09-22 Thread Robert Bateman
On Wednesday 22 September 2004 03:28 pm, Shilpa Nalgonda wrote: > Hi, > My connection pool works if i set the removeAbandon parameter to true, but > i still do not understand why it works that way, > can someone suggest...can i use that parameter... > > > removeAbandoned > true

Re: List Config: How To See My Own Posts

2004-09-22 Thread Robert Bateman
If Yahoo is anything like Communigate Pro, it thinks your message (as reflected by the list server) is a bad e-mail message.I've had to reconfigure our e-mail server to *not* reject reflected messages. Bob On Wednesday 22 September 2004 02:59 pm, Chuck Carson wrote: > I never see my own posts t

Re: Mysql JDBC Drivers: Use 2.x or 3.x? (Kinda Long, sry)

2004-09-22 Thread Robert Bateman
I think I see the problem... Those 2 definitions need to be over in your context.xml. Context.xml is located in META-INF/context.xml It appears you have the definitions in web.xml within WEB-INF/web.xml, which I believe is incorrect. Bob On Wednesday 22 September 2004 02:19 pm, Chuck Carson

Re: Mysql JDBC Drivers: Use 2.x or 3.x? (Kinda Long, sry)

2004-09-20 Thread Robert Bateman
Chuck, I think you need to move your connection pooling over to your context.xml at the web application level. Here is my pool definition from one of my apps: url jdbc:mysql://localhost:3306/Sequoia_Admin?autoReconnect=true,maxReconnects=3

Re: Mysql JDBC Drivers: Use 2.x or 3.x?

2004-09-20 Thread Robert Bateman
we are using a combination of 3.0.8-stable and 3.0.14-production on our servers. The jar files are placed into the same folder you have placed yours. What connect string are you using? Bob On Monday 20 September 2004 05:48 pm, Chuck Carson wrote: > I am starting to build an application using

[Possibly Off Topic - sorry] Class Loading question

2004-09-20 Thread Robert Bateman
I have Tomcat 5.0.25 loaded on a test server where I'm attempting to build a web service. I'm using Axis to handle the SOAP interractions. So far, I've been able to get Axis to load. But it seems that Axis is attempting to load a module that I'm responsible for in order to process the incommi

Class Loading question

2004-09-17 Thread Robert Bateman
I'm playing with some code that loads classes at run time. Some where in the code I think I've messed up a call because the code I'm invoking is failing. The problem is, the message I'm getting isn't telling me what I specified wrong. What I'd like to do is have the system tell me what classe

Re: Help with JVMStat or JProbe

2004-08-16 Thread Robert Bateman
On Monday 16 August 2004 02:34 pm, Nandish Rudra wrote: > Are you guys running tomcat through jprobe.? > No. Trying to use jvmstat and Jprobe to "see" the TC instance that is already running. Bob - To unsubscribe, e-mail: [EMA

Re: Customizing BASIC authentication

2004-08-16 Thread Robert Bateman
Someone please correct me if I'm wrong here... Also be aware that non-protected pages will not provide you with a value to request.getRemoteUser(). I had assumed I could get the remote user from any page once the user logged in, but it doesn't work as I expected. I believe there *was* a bug r

Re: Help with JVMStat or JProbe

2004-08-16 Thread Robert Bateman
---Original Message----- > From: Robert Bateman [mailto:[EMAIL PROTECTED] > Sent: 16 August 2004 18:55 > To: Tomcat Users List > Subject: Re: Help with JVMStat or JProbe > > > I'm having the same problem on Linux. My "practice" TC instance is started > as part

Re: Help with JVMStat or JProbe

2004-08-16 Thread Robert Bateman
I'm having the same problem on Linux. My "practice" TC instance is started as part of the system startup with user root and group root. If I log in as root, I can't seem to locate the TC instance. But a ps -aef | grep java reveals the task. I feel foolish even asking, but I can't see where I

Re: [OT] - JVM Max Heap Size on Linux

2004-08-13 Thread Robert Bateman
On Friday 13 August 2004 01:13 pm, Dale, Matt wrote: > Hi, > > We are a call centre and the application is a scripting tool for outbound > calling. I've seen over 300G an hour of memory allocated with 100 users and > we need to support well over 200. With that much memory being consumed it > obviou

Re: [OT] - JVM Max Heap Size on Linux

2004-08-13 Thread Robert Bateman
On Friday 13 August 2004 12:40 pm, Dale, Matt wrote: > Hi, > > Has anyone got around the maximum heap size of 2G on linux? We've got a new > server with 12G of ram which was going to be used for an uber tomcat but > this plan may have to be changed if we can't get more than 2G of memory > used for

Re: application not working on unix.

2004-08-06 Thread Robert Bateman
On Friday 06 August 2004 11:52 am, Shilpa Nalgonda wrote: > I am trying to deploy my prototype shoppingcart application onto linux > environment , i am using apache tomcat4.0.4, and struts 1.1. The same > application was deployed successfully on windows. I have copied Did you by chance make *any

Re: [OFF-TOPIC] RE: Source Control Ideas.

2004-08-06 Thread Robert Bateman
On Friday 06 August 2004 11:36 am, Anastasios Angelidis wrote: > >The general approach is to set up a separate "component" in source > >control for each component of your code that can be depended upon. All > >modern source control systems allow you to label branches, so you can > >have a DB1_1.0

Re: javax.servlet.ServletException: Cannot create JDBC driver of class '' for connect URL 'null', cause: No suitable driver

2004-08-02 Thread Robert Bateman
Please show us the source that is causing this error... On Monday 02 August 2004 02:44 pm, Isen,Ciji wrote: > Hi, > I am using tomcat-5. I was trying out the connection pooling in it. I did > things as per their documentation but ended up with this error. > javax.servlet.ServletException: Cannot

Re: Connecting to MS Access DB

2004-08-02 Thread Robert Bateman
Khalid, Search the list... You will see that Windows 2000/2003/XP services need to know how to "log into" any data bases in order to access them. One of the biggest problems with services is accessing "mapped" files or files that require "user permissions." It is unfortunate, but a fact of l

Re: SunONE versus Tomcat performance

2004-08-02 Thread Robert Bateman
I've just finished reading the report and can find no where in the report that Tomcat failed It *does* indicate that the combination of Apache httpd and Apache Tomcat had problems - but the report does not indicate, as far as I can tell, which component reported the failure. Without knowin

Re: JVM memory size changing dramatically

2004-07-30 Thread Robert Bateman
Another good place is the Java Performance Tuning web site. They have a LOT of really good articles and spend a LOT of time on GC. The IBM developer web site also has some good articles on memory and GC. Bob On Thursday 29 July 2004 12:09 pm, Shapira, Yoav wrote: > Hi, > > >| The options for

Re: Logging, Analysis and Forwarding

2004-07-28 Thread Robert Bateman
On Wednesday 28 July 2004 03:47 pm, SH Solutions wrote: > 3. Is there an easy way to forward host/test/... to > http://127.0.0.1:8080/test/ (there is apache in 8080, tomcat on 80). I > read that filters could do so, but found no example... I used a simple HTML Redirect to accomplish this. I f

Re: Problem with jdbc:odbc in Tomcat 5.025

2004-07-21 Thread Robert Bateman
Ivan, It may "not" be a jar issue. One of the "problems" with running something as a service in Windows is that the program must know it's a service and log into and network drives or data bases itself. Do you have your data source set to read a file on a networked drive? Bob On Wednesday

Re: lost session

2004-07-14 Thread Robert Bateman
On Wednesday 14 July 2004 06:02 pm, dom wrote: > I'm using tomcat 5.0.27 on win2000, j2sdk-1.4.2_04 > My problem is that I have a jsp including custom tags, everything is fine > when the jsp shows in IE6. > But when I want to edit this page with MS-Word 2003 using the IE "edit" > button, Word reloa

Re: out of memory, GC doesn't cleaning up

2004-07-14 Thread Robert Bateman
NOT a direct answer to your question... The IBM Developer Works site has a wonderful set of tutorials on GC and Java. They can be found at http://www-106.ibm.com/developerworks/views/java/articles.jsp?sort_order=desc&expand=&sort_by=Date&show_abstract=true&view_by=Search&search_by=performance%3

Re: manager app: sessions

2004-07-14 Thread Robert Bateman
any sessions are currently open. I > thought that first line meant that about 100 sessions have been opened > in the past half hour, give or take 10 minutes. Is this not true? > > > - Original message - > From: "Robert Bateman" <[EMAIL PROTECTED]> > To

Re: manager app: sessions

2004-07-14 Thread Robert Bateman
Stephen, If I understand what your asking, you are looking at statistics generated by Tomcat that tells you how many *active* sessions are still laying around inside the server. But the first row tells you about sessions that have been alive between 30 and 40 minutes. You logged in but your s

Re: Using old JDBC drivers, Tomcat 5.0.25

2004-06-30 Thread Robert Bateman
Almost forgot to note, once I get the access error, I can no longer talk to Tomcat (it's looking for access to 127.0.0.1:35479) Bob On Wednesday 30 June 2004 12:32 pm, Robert Bateman wrote: > I have an old JDBC driver for a Legacy Data Base that I'm attempting to > access

Using old JDBC drivers, Tomcat 5.0.25

2004-06-30 Thread Robert Bateman
I have an old JDBC driver for a Legacy Data Base that I'm attempting to access in Tomcat 5.0.25. When I attempt to call DriverManager.getConnection() on my legacy Data Base, I get the following log (some snipped to make it easier to read...) 2004-06-30 12:22:02 StandardWrapperValve[jsp]: Servle

Re: Please Help! Tomcat 5.0.25

2004-06-30 Thread Robert Bateman
This may or may not be totally on topic - apologies if it's not... On Wednesday 30 June 2004 12:16 am, Aris Javier wrote: > Still the same error occured after replacing my service.bat with your > service.bat... (declares tools.jar inside) =| > > org.apache.commons.dbcp.SQLNestedException: Cannot c

Re: Setting cookie confusion

2004-06-28 Thread Robert Bateman
Apologies for asking the original question. It appears the code works as expected - AFTER I restarted the server :( On Monday 28 June 2004 01:32 pm, Robert Bateman wrote: > I'm attempting to set a cookie in a servlet within my webapp and am running > into a problem > > I

Setting cookie confusion

2004-06-28 Thread Robert Bateman
I'm attempting to set a cookie in a servlet within my webapp and am running into a problem Inside the servlet, I create a cookie and add it to response. I then set context and write HTML to the user. The html does a forward to another page where I read all cookies. As far as I can tell,

Cookies and Tags

2004-06-24 Thread Robert Bateman
I'm attempting to create a cookie within a Tag. My log messages tell me that the call to pageContext.getResponse().addCookie() is being called - but nothing is showing up at the browser. I noticed a recent thread talking about sending cookie from JSPs. I looked thru that thread and as far as

Re: how to check if a String is empty?

2004-06-24 Thread Robert Bateman
Frank, NOT questioning your "solution", but doesn't the call to equalsIgnoreCase("") cause a temp String object to be created and destroyed? Or do todays JIT compilers handle that case effectively? Bob On Thursday 24 June 2004 01:16 pm, Frank Zammetti wrote: > I've always done > > if (test ==

Re: how to check if a String is empty?

2004-06-24 Thread Robert Bateman
Wouldn't test.trim().length() be a better test? length() after trm would tell you if non white-space was left. Bob On Thursday 24 June 2004 12:30 pm, Peter Guyatt wrote: > Hi There, > > You could do the check test.length() > 0 > > Pete > > -Original Message- > From: Carl Olivie

Tomcat 5.0.25 getRemoteUser()

2004-06-23 Thread Robert Bateman
I've been looking thru the archived messages and can't find a match to my problem I'm using Tomcat 5.0.25 to serve up a JSP site. I do not use Apache httpd as my front end. All authentication for Tomcat is thru tomcat and is set to BASIC. On my site is a frame page that I want to display