You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Giovanni Cuccu <gc...@dianoema.it> on 2002/11/19 14:17:27 UTC

Developing ASP applications with tomcat

Hi all,
         I'm developing an application which will be release in 
ASP(application service provider) mode, i.e. different customers will use 
the same appserver and database to do their actions.
On the DB I'm already ok, but on the appserver I'm in trouble. The first 
model I'm trying to implement is one application server instance with 
different contexts, one for each customer. What I'd like to do is deploy 
the jsp under each customer context, but deploy the servlets and business 
objects to the shared\lib directory since they are always the same. the 
problem I'm facing is classloaders sequence, since in the shared\lib I have 
a class which loads a configuration file using the classloader(it is a 3rdy 
part library and I cannot modify it), but the configuration file is under 
WEB-INF since is specific for each customer.
If I try to put all the classes under WEB-INF I got a ClassCastException 
when loading a class form a context and this class is already loaded from 
another context. I read the classloader howto in order to understand how 
classes are loaded and if I have well understood the document there is no 
way to achieve what I want.
Can anyone help me?
I've already set up multiple tomcat instances using different 
CATALINA_BASE, but that's not what I want in this phase of the project.
thanks in advance
         Giovanni


----------------------------------------
Giovanni Cuccu
Sw Engineer@dianoema.it
Dianoema S.p.A.
Via de' Carracci 93 40131 Bologna
Tel: 051-4193911
e-mail:gcuccu@dianoema.it
----------------------------------------




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>