Ok thanks, it's starting to become clearer now. 

The class file is in a jar file that lives in tomcat\shared\lib. I am
guessing that these classes are loaded by a class loader further up the
hierarchy described in the tomcat docs. I suppose in this instance there
would only be one class loaded? 

I guess if this is the case the only thing confusing me is why this class is
actually loaded by tomcat when it doesn't have to be? Does the
<load-on-startup>1</load-on-startup> tag not load a class specifically for
this web app regardless of where the class file might be?

Thanks for the help by the way.

-----Original Message-----
From: Mark Thomas [mailto:[EMAIL PROTECTED] 
Sent: 09 May 2008 12:25
To: Tomcat Users List
Subject: Re: Possible to assign different class loader for each web app with
tomcat

[EMAIL PROTECTED] wrote:
> Thanks for the reply. 
> 
> To be honest I am not sure, both web apps are separated, have their 
> own web.xml files and also are accessed via different ports, however 
> as they are effectively the same application at different stages of 
> development they each need to load parameters in on start up to a 
> class that holds constant values. (I don't know if this is the best or 
> a good way to do it, its how it was done before I started).
> 
> Here are some excerpts from the web.xml, the only difference in each 
> of the
> 2 web apps web.xml is that they load a different value for the url 
> endpoint, as they point to different message handling development areas:
> 
> <servlet-name>ConfigurationManager</servlet-name>
>  
> <servlet-class>application.util.startup.ConfigurationManager</servlet-
> class>
> <load-on-startup>1</load-on-startup>
>     <init-param>
>       <param-name>MESSAGE.ENDPOINT</param-name>
>       
> <param-value>http://192.168.28.193/router/SOAPEndpoint</param-value>
> 
>     </init-param>
> </servlet>
> 
> To be honest I am sure it's a lack of understanding on my part, but 
> that's something I want to correct!

It all depends on where you put the .class file or the .jar that contains
the .class file. With this information we should be able to help you fix
this.

Cheers,

Mark

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



**********************************************************************
This message  may  contain  confidential  and  privileged information.
If you are not  the intended  recipient please  accept our  apologies.
Please do not disclose, copy or distribute  information in this e-mail
or take any  action in reliance on its  contents: to do so is strictly
prohibited and may be unlawful. Please inform us that this message has
gone  astray  before  deleting it.  Thank  you for  your co-operation.

NHSmail is used daily by over 100,000 staff in the NHS. Over a million
messages  are sent every day by the system.  To find  out why more and
more NHS personnel are  switching to  this NHS  Connecting  for Health
system please visit www.connectingforhealth.nhs.uk/nhsmail
**********************************************************************


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to