I think it has to do with Tomcat webapps' context settings [1]. It states that there is some kind of default context that will be used if no other contexts are matched. I'm reading it now and will try some experimenting.
I also note that my Tomcat setup is not configured for multiple instances, thus my CATALINA_BASE is the same as CATALINA_HOME.
Cheers Kristian
[1]: http://tomcat.eki.ee/docs/config/context.html
27.05.2015 13:53, Christian GrĂ¼n kirjutas:
Hi Kristian,
I previously had BaseX 8.1.1 working as a Tomcat webapp and it all worked fine. I know tried to simply put BaseX82.war as another webapp, but the second webapp seems to connect to the BaseX instance in the first webapp.
True, same on my machine. It doesn't seem to be due to 8.2. Instead, Tomcat seems to adopts some options from a running BaseX instance (and the primary instance might differ after a restart of Tomcat):
http://localhost:8080/BaseX811/rest?query=db:system()
<system> <generalinformation> <version>8.1.1</version> </generalinformation> <globaloptions> <dbpath>C:\Program Files\Apache Software Foundation\Tomcat 8.0\webapps\BaseX811\data</dbpath> ...
http://localhost:8080/BaseX82/rest?query=db:system()
<system> <generalinformation> <version>8.2</version> <usedmemory>37 MB</usedmemory> </generalinformation> <globaloptions> <authmethod>Basic</authmethod> <dbpath>C:\Program Files\Apache Software Foundation\Tomcat 8.0\webapps\BaseX811\data</dbpath> ...
I currently have no idea if this can be fixed in Tomcat or BaseX (I don't know such a behavior from Jetty), but... I'll try to find out more.
Christian