What is the correct way to install a new version of a war

2006-01-14 Thread Alan Chandler
I am trying to install a new version of my application war I tried various ways, using the HTML manager, including removing the application and then installing by uploading a new war file, but all of them seemed to screw up one way or the other. The option I mention above (complete re-install)

Re: Secure Tomcat replication for WAN

2006-01-14 Thread Peter Rossbach
Hey, I think you must implement your own Membership service. Then you can use a TCP Ping strategie. Regards Peter Am 14.01.2006 um 00:32 schrieb Gmail User: Has anyone implemented some replication strategy for Tomcat on WAN. It is my understanding that the regular replication mechanism

RE: How do you debug Authentication Problems

2006-01-14 Thread tamsin
I had a problem because I had both an apache Auth directive and the tomcat authentication on the manager app - I'd get the popup login from apache, then from tomcat, then apache again, then the page would hang. Removing the Auth directive in apache enabled me to login using just my tomcat login.

Re: Unable to override doPut(), etc, from Tomcat's JSPServlet (response 403)

2006-01-14 Thread Martin Gainty
Ken- This is the benefit of using an OOA/OOD framework! you COULD setup a scenario such as MyServlet extends BaseServlet (which may handle dynamic resources) BaseServlet extends DefaultServlet (which may handle static resources) DefaultServlet handles everything else here is an example where

RE: connection pooling mysql (Pool Exhausted exception)

2006-01-14 Thread George Sexton
-Original Message- From: Daniel Blumenthal [mailto:[EMAIL PROTECTED] Sent: Friday, January 13, 2006 8:51 PM To: 'Tomcat Users List' Subject: RE: connection pooling mysql (Pool Exhausted exception) I received a similar (identical?) error when I was first starting up, and the

Size of session bean

2006-01-14 Thread Robert Palmer
When calculating the size of a session bean to determine memory usage, what should be included and how is this done? Do the number of methods matter? The size of the code? Just the variables? I've read much about limiting the size of the session information but not how to do it. I have some

need help to get Realm information in Tomcat

2006-01-14 Thread chandra yalla
Hi.i have requirement to get Users in LDAP using the realm information give in my application xml file museadmin.xml ( i have attached this file)i want to get JNDIRealm information , i will use real object to get information like getConnectionURL etc. I have seen code give below

Re: Size of session bean

2006-01-14 Thread Frank W. Zammetti
That's an interesting question... looking at the code I wrote in Java Web Parts for the getSessionSize() method, I'm only taking into consideration the fields of the objects in session. I think this is OK because IIRC, when an object is serialized, only the non-transient values are

Spawning a thread

2006-01-14 Thread Thom Hehl
Isn't there a caveat about spawning a new thread inside of a servlet? Thom Hehl Heavyweight Software for Heavyweight Needs www.heavyweightsoftware.com -- In every revolution, there is one man with a vision.--Jerome Bixby - To

RE: Spawning a thread

2006-01-14 Thread George Sexton
The only one that I'm aware of is that if you don't setDaemon(true), then shutting down tomcat will hang until the thread completes. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: Thom Hehl [mailto:[EMAIL PROTECTED] Sent:

Re: Spawning a thread

2006-01-14 Thread Frank W. Zammetti
Most of the time people will tell you don't do it, but don't get any more specific than that. Generally-speaking, spawning a thread to process a request is somewhat of a bad idea because the container is not responsible for managing the thread and therefore you run some extra risks. But, if

Re: Threads and SocketException

2006-01-14 Thread Wade Chandler
--- Thom Hehl [EMAIL PROTECTED] wrote: OK, I'm using tomcat and a sevlet to launch a background process in a separate thread. It seems to launch just fine, but after it runs for maybe 30 seconds it dies, spitting out this error: java.net.SocketException: Connection reset at

RE: Spawning a thread

2006-01-14 Thread George Sexton
-Original Message- From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] Sent: Saturday, January 14, 2006 1:20 PM To: Tomcat Users List Subject: Re: Spawning a thread risks. But, if you have something like a background process that isn't tied to a request, with the caveat the

Re: Spawning a thread

2006-01-14 Thread Thom Hehl
Can you point me to some documentation about context listener threads? I have no idea what you're talking about. Thanks. George Sexton wrote: -Original Message- From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] Sent: Saturday, January 14, 2006 1:20 PM To: Tomcat Users List

Re: Threads and SocketException

2006-01-14 Thread Thom Hehl
The issue is that this works just fine when not running inside of Tomcat. Any ideas what runing inside of a servlet context-spawned thread can cause this kind of error? Wade Chandler wrote: --- Thom Hehl [EMAIL PROTECTED] wrote: OK, I'm using tomcat and a sevlet to launch a background

Migration from 1.0 to 1.2.x: Gotchas?

2006-01-14 Thread Venkat Radha Venkataramanan
Hello: I have an Pharma J2EE application developed using the Struts framework running on a weblogic 6.0 server (yes, and it's only 3 years old!). We are upgrading to weblogic 9.0 since 6.0 is no longer supported by BEA. And, I learnt that 9.0 supports only Struts 1.2.x. Does anybody gone

Re: Migration from 1.0 to 1.2.x: Gotchas?

2006-01-14 Thread Wendy Smoak
On 1/14/06, Venkat Radha Venkataramanan [EMAIL PROTECTED] wrote: I have an Pharma J2EE application developed using the Struts framework running on a weblogic 6.0 server (yes, and it's only 3 years old!). We are upgrading to weblogic 9.0 since 6.0 is no longer supported by BEA. And, I learnt

Re: Migration from 1.0 to 1.2.x: Gotchas?

2006-01-14 Thread Bill Barker
Wendy Smoak [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On 1/14/06, Venkat Radha Venkataramanan [EMAIL PROTECTED] wrote: I have an Pharma J2EE application developed using the Struts framework running on a weblogic 6.0 server (yes, and it's only 3 years old!). We are

5.0.28 building from source

2006-01-14 Thread Nicholas Irving
Hi All First time poster, long time user of TomCat. I have downloaded the source from tomcat.apache.org and have started the ant build process and I am now getting a number of errors regarding the fact that some .tar.gz files are not valid. I discovered that the site in the build.properties file

Re: Spawning a thread

2006-01-14 Thread Frank W. Zammetti
Just to clarify, George wasn't talking about a context listener thread. I suppose there *technically* is such a thing, but what he was referring to is spawning a thread *from* a context listener. Subtle semantic difference, but it completely changes the meaning :) Frank Thom Hehl wrote:

Path issues

2006-01-14 Thread Thom Hehl
Wanted to run this by the list before turning this in as a bug. I'm running the following servlet fragment... package rex; /* * Copyright 2006, Heavyweight Software. All rights reserved. */ import java.io.File; import java.io.IOException; import java.io.PrintWriter; import

Re: Path issues

2006-01-14 Thread Wendy Smoak
On 1/14/06, Thom Hehl [EMAIL PROTECTED] wrote: Wanted to run this by the list before turning this in as a bug. I'm running the following servlet fragment... public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException,

RE: Spawning a thread

2006-01-14 Thread Caldarale, Charles R
From: Thom Hehl [mailto:[EMAIL PROTECTED] Subject: Re: Spawning a thread Can you point me to some documentation about context listener threads? Context listeners are classes, not threads. The servlet spec is the definitive doc, but there's not a great deal of how-to in there:

Re: Path issues

2006-01-14 Thread Thom Hehl
I think, though, that tomcat should be consistent in the way it handles things. Tomcat on Unix should behave like tomcat under windows. Inconsistency is a real problem here. Wendy Smoak wrote: On 1/14/06, Thom Hehl [EMAIL PROTECTED] wrote: Wanted to run this by the list before turning

RE: Threads and SocketException

2006-01-14 Thread Caldarale, Charles R
From: Thom Hehl [mailto:[EMAIL PROTECTED] Subject: Re: Threads and SocketException The issue is that this works just fine when not running inside of Tomcat. Any ideas what runing inside of a servlet context-spawned thread can cause this kind of error? A connection reset exception is

RE: Path issues

2006-01-14 Thread Caldarale, Charles R
From: Thom Hehl [mailto:[EMAIL PROTECTED] Subject: Re: Path issues I think, though, that tomcat should be consistent in the way it handles things. Tomcat on Unix should behave like tomcat under windows. Inconsistency is a real problem here. No, dependency on any behavior not defined in

Re: Unable to override doPut(), etc, from Tomcat's JSPServlet (response 403)

2006-01-14 Thread Ken Johanson
Caldarale, Charles R wrote: From: Ken Johanson [mailto:[EMAIL PROTECTED] Subject: Re: Unable to override doPut(), etc, from Tomcat's JSPServlet (response 403) Perhaps tomcat 5 outright prohibits PUT and other methods from even getting to _jspService (or JspServlet in general)?? There's a

tomcat 5 ssl w/multiple IPs

2006-01-14 Thread Chris Pat
Hello Sorry for the naivete of this question, but do I really need to a dedicated NIC for each of the static IPs I want run SSL sites on? Cant I just use a subnet mask or slap the NIC in promiscuous mode for all IPs in a range? How do hosting farms do it? They cant have dedicated NICs for all

Alternative Realm impl. that supports: boolean authenticate(String user, String pass) or void doLogin(Prinicipal p)?

2006-01-14 Thread Ken Johanson
Is there another commonly used (perhaps not distib'd with tomcat) implementation of Realm that allows a more programmatic type of authentication? I know that a couple other servers provide something like a boolean ServerName.authenticate(String user, String pass), which checks against the

RE: tomcat 5 ssl w/multiple IPs

2006-01-14 Thread Caldarale, Charles R
From: Chris Pat [mailto:[EMAIL PROTECTED] Subject: tomcat 5 ssl w/multiple IPs Sorry for the naivete of this question, but do I really need to a dedicated NIC for each of the static IPs I want run SSL sites on? Cant I just use a subnet mask or slap the NIC in promiscuous mode for all IPs

RE: Size of session bean

2006-01-14 Thread Duan, Nick
The initial posting sounds like an EJB question instead of one that is Tomcat related. Tomcat is considered a web application server and it uses session objects (HttpSession) to represent user sessions. It doesn't handle EJBs at this point. Session beans are exclusive terms for EJB servers

Re: Alternative Realm impl. that supports: boolean authenticate(String user, String pass) or void doLogin(Prinicipal p)?

2006-01-14 Thread Ken Johanson
Hmm, I see from all the org.apache.catalina.Realm implementations that come with Tomcat, that authenticate(user,pass) is already there - but I currently don't know how to gain access to the Realm service from within a servlet/jsp (where my controller might be)... and it seems to me that it

RE: Easiest Open Source Shopping Cart Fnctnlty to plug into Tomcat

2006-01-14 Thread Duan, Nick
Sourceforge.net may be your answer (search for e-commerce). The latest spring framework also contains a very simple shopping cart app called jpetstore as an example. It works well on Tomcat. http://www.springframework.org. ND -Original Message- From: Kyle [mailto:[EMAIL PROTECTED]