If you are using tomcat 5.5.x, you are not recommended to put <context>
element in the server.xml file according to the tomcat-docs...
so leaving the <host> element as it is, define this in a context-xml file
which should be in $tomcat-home/conf/Catalina/<host-name>/<app-name>.xml.
You can define your other Resource attributes such as jdbc connection pools
as such in here.
If you define your context in server.xml, tomcat creates another in the same
location thereby resulting in multiple context-deployments.

I had the similar problem earlier: I am using jdbc and ldap connection pools
and found that those resources were being initialized twice.

On 9/30/05, Tim Funk <[EMAIL PROTECTED]> wrote:
>
> I think JBOSS support (or mailing list) would be more helpful. Everything
> described below doesn't make any sense to those of us who don't use JBOSS.
>
> -Tim
>
> Mahesh S Kudva wrote:
>
> > Hi
> >
> > Thanks for the note. I just happened to see something strange. As I have
> > configured 3 Virtual hosts, in the <jboss home>/server/default/work
> > folder i can see the folders of each virtual host. Within each i can see
> > all the hosted apps including localhost.
> >
> > The folder <jboss home>/server/default/work contains 
> > webapp1.domain.com<http://webapp1.domain.com>
> ,
> > webapp2.domain.com <http://webapp2.domain.com> and 
> > webapp3.domain.com<http://webapp3.domain.com>
> >
> > The folder <jboss home>/server/default/work/webapp1.domain.com contains
> > webapp1, webapp2, webapp3 and jmx-console.
> >
> > The folder <jboss home>/server/default/work/webapp2.domain.com contains
> > webapp1, webapp2, webapp3 and jmx-console.
> >
> > The folder <jboss home>/server/default/work/webapp3.domain.com contains
> > webapp1, webapp2, webapp3 and jmx-console.
> >
> > Within each of these there are two files session and cache.
> >
> > Is this causing the issue.??? Is this normal ???
> >
> > Regards & Thanks
> > ================
> > Mahesh S Kudva
> >
> >
> > -----Original Message-----
> > From: Tim Funk <[EMAIL PROTECTED]>
> > To: Tomcat Users List <tomcat-user@jakarta.apache.org>
> > Date: Fri, 30 Sep 2005 11:55:18 -0400
> > Subject: Re: Multiple Threads for one webapp
> >
> >
> >>This still seems to be a programming issue (possibly a config issue).
> >>Without
> >>source and config files - I don't see how the mailing list can help
> >>resolve
> >>this.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to