Re: Tomcat 5.5 / Apache 2 / Join (Tomcat-) Session with SSL-Session / Which mod should be used?

2006-05-21 Thread Michael Decker
Hi! >> javax.net.ssl.SSLSession sslSession = (javax.net.ssl.SSLSession) >> request.getAttribute("javax.net.ssl.session"); >> byte[] sslId = sslSession.getId() >> >> Will do the trick. >> > > Actually, no. This will just result in an NPE :). And, if you think about > it, if Apache is h

Re: Object sharing

2006-05-21 Thread Jerome Jar
Oh I'm terribly sorry I miss the line you said "into shared/lib or shared/classes". Forget that =P 2006/5/22, Corobitsyn Roman <[EMAIL PROTECTED]>: Hi Sharing is possible with Tomcat You must put your objects in shared classloader For example: public class ObjectPool { private static Ob

Re: Object sharing

2006-05-21 Thread Jerome Jar
Well, I think -Xnoclassgc is horrible. And singleton objects cannot be shared among different application contexts, because they use different classloaders. Shared objects is better held in somewhere else, e.g., JNDI, although I usually blame it =) 2006/5/22, Corobitsyn Roman <[EMAIL PROTECTED]>:

Re: Object sharing

2006-05-21 Thread Corobitsyn Roman
Hi Sharing is possible with Tomcat You must put your objects in shared classloader For example: public class ObjectPool { private static ObjectPool objectPool = null; private ObjectPool { // initialize object } public synchronized static ObjectPool getIn

Apache using SSL in front of multiple tomcats.

2006-05-21 Thread ronatartifact
We have a production setup with a few servers running Tomcat and/or Jboss. We are building a test/demo system with one server having all of these functions on a single server. The various Tomcats are listening on different AJP ports. We want to use Apache as an SSL proxy to front-end all of these

RE: Ant deploy task and cluster-wide (farm) deployment

2006-05-21 Thread Tim Lucia
Having re-read this, perhaps you meant to suggest that I make my master tomcat on the windows (build) box? Then I could deploy locally, and have it update the slaves. And only the slaves would have AJP connections set up from httpd? Tim -Original Message- From: Filip Hanik - Dev Lists [

RE: Ant deploy task and cluster-wide (farm) deployment

2006-05-21 Thread Tim Lucia
Getting it to the master watch directory is done via samba. The master prematurely begins copying it around to the rest of the nodes. 1 or more of them often ends up with an incomplete .war file. Build: Windows XP / W2K3 Ant: deploy via copy via samba This fails some non-zero % of the time as d

Re: mod_jk.so problems going from Apache 2.0.55 to Apache 2.2.2

2006-05-21 Thread Philip Warne
Thanks, that's precisely what I did, i.e., recompiled mod_jk (with VC++ 2005). It's working now. Bill Barker <[EMAIL PROTECTED]> wrote: "Philip Warne" wrote in message news:[EMAIL PROTECTED] >I have a working configuration of Apache & Tomcat using Apache 2.0.55 with >mod_jk.so version 1.2.15.

Re: Ant deploy task and cluster-wide (farm) deployment

2006-05-21 Thread Filip Hanik - Dev Lists
but you don't need to use samba, Tomcat will transfer the file for you. all you need to do is to copy it to the "watch" directory on the master (watch enabled). Then tomcat will copy it to the other tomcat's. without using samba, and without corrupting the file Filip Tim Lucia wrote: Push o

Re: mod_jk.so problems going from Apache 2.0.55 to Apache 2.2.2

2006-05-21 Thread Bill Barker
"Philip Warne" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I have a working configuration of Apache & Tomcat using Apache 2.0.55 with >mod_jk.so version 1.2.15. I have installed Apache version 2.2.2 and have >kept my existing mod_jk configuration, i.e., I have copied mod_jk.so

Re: Ant deploy task and cluster-wide (farm) deployment

2006-05-21 Thread Bruce Miller
Tim Lucia wrote: Push or pull, when it gets there, it gets there correctly (md5sum-s match). The problem, I think, is that the file appears in the file system before it is received in its entirety. I don't know why -- maybe the nature of samba is to write, close, open-for-append, ... ? If I cop

RE: Ant deploy task and cluster-wide (farm) deployment

2006-05-21 Thread Tim Lucia
Push or pull, when it gets there, it gets there correctly (md5sum-s match). The problem, I think, is that the file appears in the file system before it is received in its entirety. I don't know why -- maybe the nature of samba is to write, close, open-for-append, ... ? If I copy FROM Linux ("pull

Re: Ant deploy task and cluster-wide (farm) deployment

2006-05-21 Thread Martin Gainty
Tim- I found the majority of transfer programs transfer text not binary..this is especially problematic when transferring from Windows to Nix As a war is a binary I would make sure that the transferring program is not interjecting LF with CR and or treating the transferred war unit as text Ma

Re: Tomcat Web Statistics program for Linux (free, java preffered)

2006-05-21 Thread Mark Thomas
When starting a new thread (ie sending a message to the list about a new topic) please do not reply to an existing message and change the subject line. To many of the list archiving services and mail clients used by list subscribers this makes your new message appear as part of the old thread. Thi

Re: Problem with Tomcat Unexpectedly Shutting Down

2006-05-21 Thread Mark Thomas
When starting a new thread (ie sending a message to the list about a new topic) please do not reply to an existing message and change the subject line. To many of the list archiving services and mail clients used by list subscribers this makes your new message appear as part of the old thread. Thi

mod_jk.so problems going from Apache 2.0.55 to Apache 2.2.2

2006-05-21 Thread Philip Warne
I have a working configuration of Apache & Tomcat using Apache 2.0.55 with mod_jk.so version 1.2.15. I have installed Apache version 2.2.2 and have kept my existing mod_jk configuration, i.e., I have copied mod_jk.so to the modules directory of the new installed Apache and have modified the http

RE: Ant deploy task and cluster-wide (farm) deployment

2006-05-21 Thread Tim Lucia
I have observed that if I build on windows, and copy FROM windows to Linux, Tomcat will prematurely begin transferring the war file to the rest of the cluster. The master tomcat will end up with a correct war file, and the other will get a corrupt or truncated one. Also, there is no synchronous w

Re: Directory Structure and Can't Find Resources in Tomcat

2006-05-21 Thread Hassan Schroeder
On 5/21/06, Allen Williams <[EMAIL PROTECTED]> wrote: I don't really have a burning need, but would consider it educational So's putting your hand on a hot stove burner; the value of the lesson is yours to decide :-) ... was laboring under the impression (rightly or wrongly) that it would in

RE: Directory Structure and Can't Find Resources in Tomcat

2006-05-21 Thread Allen Williams
> -Original Message- > From: Hassan Schroeder [mailto:[EMAIL PROTECTED] > Sent: Sunday, May 21, 2006 4:02 PM > To: Tomcat Users List > Subject: Re: Directory Structure and Can't Find Resources in Tomcat > > Also, now that I have this rudimentary piece of code working, I

Re: Directory Structure and Can't Find Resources in Tomcat

2006-05-21 Thread Hassan Schroeder
On 5/21/06, Allen Williams <[EMAIL PROTECTED]> wrote: Do you know where I can find a GOOD reference on how Tomcat resolves that stuff? I've looked at most of the "official" docs, and a lot of stuff on the web, but they more or less allude to it peripherally, as though it is already understood.

Re: ClassCastException on cluster deserialization

2006-05-21 Thread Filip Hanik - Dev Lists
Hi Jean-Christophe, can you try out this JAR, it sets the context class loader upon attribute realization. http://people.apache.org/~fhanik/catalina-cluster.jar filip Jean-Christophe Praud wrote: Hi all, I'm setting up a Tomcat cluster on two servers, and I keep getting a ClassCastException

Re: Problem with Tomcat Unexpectedly Shutting Down

2006-05-21 Thread Martin Gainty
Good Afternoon Dan If your configuration mirrors everything about the clients environment (HW/SW JVM / OS / Memory /TCP/IP Stack/ Diskspace /installed utilities)environment (when I say everything I mean right to the letter grade version of JVM) with the only EXCEPTION you are not running the

RE: Directory Structure and Can't Find Resources in Tomcat

2006-05-21 Thread Allen Williams
Ha! That was it! It now works just as expected. Thanks a million Do you know where I can find a GOOD reference on how Tomcat resolves that stuff? I've looked at most of the "official" docs, and a lot of stuff on the web, but they more or less allude to it peripherally, as though it is alre

Tomcat Web Statistics program for Linux (free, java preffered)

2006-05-21 Thread Mladen Adamovic
Hi! I tried to find good free web statistics program for Tomcat. AKA Log Analyzer. I'm running standalone Tomcat (without Apache). Any recommandation? I would prefer Java solution. I know about AwStats, but so far it don't work properly. Probably I would be able to configure it properly but may

Re: Problem with Tomcat Unexpectedly Shutting Down

2006-05-21 Thread Hassan Schroeder
On 5/21/06, Dan Golob <[EMAIL PROTECTED]> wrote: We are having a strange Tomcat issue on one of our client's machines. The problem is that it shuts down randomly. There is nothing in the Tomcat Log to indicate why this is occurring, and the Windows Event Manager simply states that the process

RE: Problem with Tomcat Unexpectedly Shutting Down

2006-05-21 Thread Dan Golob
Hello Martin, The fact is our application is the only one running under tomcat. However, again, it runs fine absolutely everywhere else. As for the load balancer, the problem is that the client specifically paid for this feature and by shutting it off we will have to admit failure and refund the

Re: Directory Structure and Can't Find Resources in Tomcat

2006-05-21 Thread Hassan Schroeder
On 5/20/06, Allen Williams <[EMAIL PROTECTED]> wrote: Sorry, it didn't work. Once again, in my browser I have: HTTP Status 404 - /login Description: The requested resource (/login) is not available. Looking back at your original email -- is this your ROOT context? If not -- if it's "smsin

Re: ClassCastException on cluster deserialization

2006-05-21 Thread Peter Rossbach
Hmm, you are right... I see that we only set context classloader at DeltaManager.loadDeltaRequest at deserialize information Loader loader = null; ClassLoader classLoader = null; //fix to be able to run the DeltaManager //stand alone without a container.

Re: ClassCastException on cluster deserialization

2006-05-21 Thread Martin Gainty
Good Morning Filip- I noticed I had similar exceptions caused when I switched my base JVM from 1.42 to 1.5..resolved by recompiling all classes to match expected JVM signature of ClassLoader I agree with your direction to understand which ClassLoader is being invoked- A good tutorial to unders

Re: Problem with Tomcat Unexpectedly Shutting Down

2006-05-21 Thread Martin Gainty
If you Start each webapp independently and note behaviour of the Tomcat engine can you determine which webapp is causing this malady? Specifically if you unload your balancer / restart Tomcat /does Tomcat Engine shutdown unexpectedly? Thanks, Martin -- This email message and any files transmitt

Re: ClassCastException on cluster deserialization

2006-05-21 Thread Filip Hanik - Dev Lists
what does line ClusterAppSessionListener.java:47 do? can you send us a test case, could be possible that the context classloader isn't set, hence the loading is failing. java.lang.ClassCastException: com.package1.subpackage1.GW at common.listeners.ClusterAppSessionListener.printSessionIn

Re: Ant deploy task and cluster-wide (farm) deployment

2006-05-21 Thread Filip Hanik - Dev Lists
yes, farm deployment is triggered by simplying copying a WAR into the "watch" directory, with ant that would be using the copy task Filip Tim Lucia wrote: Is it possible to deploy to a cluster using the deploy task? (i.e., can it be done using /manager/html?) I think not (I can't find any wa

Re: JDBCRealm authentication failing with MD5

2006-05-21 Thread Martin Gainty
a most Instructive Tutorial is located here http://www.unix.org.ua/orelly/java-ent/security/ch09_03.htm Thanks, Martin -- This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have rec

Problem with Tomcat Unexpectedly Shutting Down

2006-05-21 Thread Dan Golob
Hello Everyone, This is a repost of a prior error which was never solved. We are having a strange Tomcat issue on one of our client's machines. The problem is that it shuts down randomly. There is nothing in the Tomcat Log to indicate why this is occurring, and the Windows Event Manager simpl

RE: JDBCRealm authentication failing with MD5

2006-05-21 Thread Rian Brand
Martin Thanks for the reply. I already went through a similar page, but with no success. Subsequent to your reply I kept trying and found that the reason was that I was not using org.apache.catalina.realm.RealmBase to create the digest, but rather java.security.MessageDigest. This seems to have c