Re: symlinks in webapps

2008-09-06 Thread Claudio Tassini
FYI, If I add several Context docBase=WebMail path=/ / blocks each with a different path , in my server.xml, it seems to work . The problem is that it's discouraged in tomcat's documentation, and anyway it causes my app to start several times, while with a simple symlink I had the same webapp

Re: symlinks in webapps

2008-09-06 Thread David Smith
Of course you *could* do something to encourage a double deploy and get the desired result. Just make a context xml file named after the second context path and set it's docbase to point to the original webapp's folder. It'd look something like this: Assuming you have this in your

RE: symlinks in webapps

2008-09-06 Thread Caldarale, Charles R
From: Claudio Tassini [mailto:[EMAIL PROTECTED] Subject: Re: symlinks in webapps it causes my app to start several times, while with a simple symlink I had the same webapp referenced as many times as I wished I don't think that's true - each directory or .war file in the appBase directory

Re: symlinks in webapps

2008-09-06 Thread Claudio Tassini
The second context xml file, named secondInstance.xml (URL would be http://localhost:8080/secondInstance): Context docBase=originalWebapp !-- Define second instance resources if any -- /Context This don't work. It seems that with tomcat 5.0 you can't point a context's docBase to something

Re: symlinks in webapps

2008-09-06 Thread Claudio Tassini
I don't think that's true - each directory or .war file in the appBase directory will cause a separate application deployment, which is what I thought you wanted. As you may have noted, I am not a Tomcat expert so you are probably right. But my app logs in catalina.out when it reads its

RE: symlinks in webapps

2008-09-05 Thread Caldarale, Charles R
From: Claudio Tassini [mailto:[EMAIL PROTECTED] Subject: symlinks in webapps The goal is to have the same webapp referenced by two contexts Rather than use symlinks, try using an additional Context element in conf/Catalina/[host]/WebMail2.xml: Context docBase=WebMail / (Include whatever