RE: Tomcat embedded Valve's

2006-04-17 Thread Ugur Dincer

problem solved :-)


From: Ugur Dincer [EMAIL PROTECTED]
Reply-To: Tomcat Users List users@tomcat.apache.org
To: users@tomcat.apache.org
Subject: Tomcat embedded Valve's
Date: Sun, 16 Apr 2006 19:12:22 +0200
MIME-Version: 1.0
X-Originating-IP: [194.237.142.10]
X-Originating-Email: [EMAIL PROTECTED]
X-Sender: [EMAIL PROTECTED]
Received: from mail.apache.org ([209.237.227.199]) by 
bay0-mc10-f10.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.1830); Sun, 
16 Apr 2006 10:12:50 -0700

Received: (qmail 39153 invoked by uid 500); 16 Apr 2006 17:12:48 -
Received: (qmail 39142 invoked by uid 99); 16 Apr 2006 17:12:47 -
Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49)by 
apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Apr 2006 10:12:47 -0700
Received: pass (asf.osuosl.org: domain of [EMAIL PROTECTED] designates 
65.54.168.42 as permitted sender)
Received: from [65.54.168.42] (HELO hotmail.com) (65.54.168.42)by 
apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Apr 2006 10:12:47 -0700
Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; 
Sun, 16 Apr 2006 10:12:26 -0700
Received: from 65.54.168.200 by by113fd.bay113.hotmail.msn.com with 
HTTP;Sun, 16 Apr 2006 17:12:22 GMT

X-Message-Info: JGTYoYF78jEHjJx36Oi8+Z3TmmkSEdPt4iogl2abg+M=
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
List-Help: mailto:[EMAIL PROTECTED]
List-Unsubscribe: mailto:[EMAIL PROTECTED]
List-Post: mailto:users@tomcat.apache.org
List-Id: users.tomcat.apache.org
Delivered-To: mailing list users@tomcat.apache.org
X-ASF-Spam-Status: No, hits=1.9 
required=10.0tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,MSGID_FROM_MTA_HEADER,SPF_HELO_PASS,SPF_PASS

X-Spam-Check-By: apache.org
X-OriginalArrivalTime: 16 Apr 2006 17:12:26.0696 (UTC) 
FILETIME=[EF64AC80:01C66178]

X-Virus-Checked: Checked by ClamAV on apache.org
Return-Path: [EMAIL PROTECTED]

Hi,
I'm running Tomcat embedded and have some questions.
1. How can I define a Valve so it can be invoked for any request, without 
using web.xml nor server.xml?

StandardHost.addValve(...)  doesn't have any effect.
Is implementation of Lifecycle required in this case?

2. Is it possible to define the execution order of Valve's, or does Tomcat 
use the order in server/web.xml ? And how can that order be modified if not 
using server.xml nor web.xml


Thanks!
Ugur



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat embedded Valve's

2006-04-16 Thread Ugur Dincer

Hi,
I'm running Tomcat embedded and have some questions.
1. How can I define a Valve so it can be invoked for any request, without 
using web.xml nor server.xml?

StandardHost.addValve(...)  doesn't have any effect.
Is implementation of Lifecycle required in this case?

2. Is it possible to define the execution order of Valve's, or does Tomcat 
use the order in server/web.xml ? And how can that order be modified if not 
using server.xml nor web.xml


Thanks!
Ugur



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



ClassLoader problem during deserialization/restoring

2006-02-17 Thread Ugur Dincer

Hi,

I've some ClassNotFoundException problem.

All the objects I want to serialize and deserialize implements 
Externazible/Serializable.


I'm running Tomcat 5 and JAVA5.

The .jar lib implementing serialization and deserialization of the 
application reside under server/lib (Catalina loader) and the 
application(SIP Servlets) are under webapps (WebappClassLoader).



1. I start my server and serialize the application and writes it to 
OutputStream in writeExternal(...)

2. I shutdown the server
3. I re-start the server and getting the stored serialized data. During 
deserialization I catch ClassNotFoundException since the object I'm trying 
to deserialize was known by WepappClassLoader during serialization. The 
Catalina loader hasn't any reference to the current class.


Is it possible to switch to (any WebappClassLoader) just before calling 
ObjectInput.readObject() and retrieve the right class using the correct 
classloader and thereafter go back to Catalina loader and continue with 
other operations.


How is this done in Tomcat Clusters and replication of Sessions? I found 
some info on the web and can't see any problem with my own implementation 
:-)


Regards
Ugur



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]