Multiple war instances
Thursday, 11 September 2014 · 8 messages · last reply 15 Sep 2014
JC
Jérôme Chauveau11 Sep 2014 16:48 #
Hi,
i would like to run 2 separate war instances in the same Tomcat server. Each instance must embbed its own data repository.
I tried to use the
HTTPLOCAL flag but i am not able to manage separatly the 2 instances with a basexclient command line tool.
How can I manage an HTTPLOCAL instance from a basexclient?
Another solution might be that each webapp instance runs its own basexserver on 2 differents port. How can I
set the 1984 default port used by a basex webapp?
Regards,
Jérôme C.--
Jérôme Chauveau - SAIC-CERTIC - Campus 4
Université de Caen Basse-Normandie
ML
Marco Lettere11 Sep 2014 17:33 #
Hi Jerome,
is it related to the same problem as in the mail with id
<5396BEC0.8020806 at dedalus.eu> that I wrote 10th of June this year? M.
Quoted text · Jérôme Chauveau · 18 lines
On 11/09/2014 16:48, Jérôme Chauveau wrote: > Hi, > > i would like to run 2 separate war instances in the same Tomcat server. > Each instance must embbed its own data repository. > > I tried to use the HTTPLOCAL flag but i am not able to manage > separatly the 2 instances with a basexclient command line tool. > How can I manage an HTTPLOCAL instance from a basexclient? > > Another solution might be that each webapp instance runs its own > basexserver on 2 differents port. How can I > set the 1984 default port used by a basex webapp? > > Regards, > > Jérôme C. >
JC
Jérôme Chauveau12 Sep 2014 09:42 #
Hi Marco,
Our problems might be linked. Did you resolve yours?
Jérôme.
Quoted text · Marco Lettere · 25 lines
Le 11/09/2014 17:33, Marco Lettere a écrit : > Hi Jerome, > is it related to the same problem as in the mail with id > <5396BEC0.8020806 at dedalus.eu> that I wrote 10th of June this year? > M. > > On 11/09/2014 16:48, Jérôme Chauveau wrote: >> Hi, >> >> i would like to run 2 separate war instances in the same Tomcat server. >> Each instance must embbed its own data repository. >> >> I tried to use the HTTPLOCAL flag but i am not able to manage >> separatly the 2 instances with a basexclient command line tool. >> How can I manage an HTTPLOCAL instance from a basexclient? >> >> Another solution might be that each webapp instance runs its own >> basexserver on 2 differents port. How can I >> set the 1984 default port used by a basex webapp? >> >> Regards, >> >> Jérôme C. >> >
--
Jérôme Chauveau - SAIC-CERTIC - Campus 4
Université de Caen Basse-Normandie
ML
Marco Lettere12 Sep 2014 09:55 #
Unfortunately no.
I solved temporarily by installing two tomcats which is very much overkill but I did not get the permissions from the sysadmin of that machine to install anything but Tomcat as server software.
So still stuck with that issue.
M.
Quoted text · Jérôme Chauveau · 35 lines
On 12/09/2014 09:42, Jérôme Chauveau wrote: > Hi Marco, > > Our problems might be linked. Did you resolve yours? > > Jérôme. > > > Le 11/09/2014 17:33, Marco Lettere a écrit : >> Hi Jerome, >> is it related to the same problem as in the mail with id >> <5396BEC0.8020806 at dedalus.eu> that I wrote 10th of June this year? >> M. >> >> On 11/09/2014 16:48, Jérôme Chauveau wrote: >>> Hi, >>> >>> i would like to run 2 separate war instances in the same Tomcat server. >>> Each instance must embbed its own data repository. >>> >>> I tried to use the HTTPLOCAL flag but i am not able to manage >>> separatly the 2 instances with a basexclient command line tool. >>> How can I manage an HTTPLOCAL instance from a basexclient? >>> >>> Another solution might be that each webapp instance runs its own >>> basexserver on 2 differents port. How can I >>> set the 1984 default port used by a basex webapp? >>> >>> Regards, >>> >>> Jérôme C. >>> >> > >
CG
Hi Jérôme,
Quoted text · Jérôme Chauveau · 3 lines
> I tried to use the HTTPLOCAL flag but i am not able to manage separatly the > 2 instances with a basexclient command line tool. > How can I manage an HTTPLOCAL instance from a basexclient?
If you set
HTTPLOCAL to true, there will be no way to address BaseX via basexclient, because the database server won't be started.Quoted text · Jérôme Chauveau · 3 lines
> Another solution might be that each webapp instance runs its own basexserver > on 2 differents port. How can I > set the 1984 default port used by a basex webapp?
This should be possible by editing the web.xml file, as indicated in our Wiki [1].
Personally, I don't have any experience with Tomcat; maybe someone else knows more about it?
Hope this helps (a little),
Christian
[1] http://docs.basex.org/wiki/Web_Application#Configuration
Quoted text · Jérôme Chauveau · 9 lines
> > Regards, > > Jérôme C. > > -- > Jérôme Chauveau - SAIC-CERTIC - Campus 4 > Université de Caen Basse-Normandie >
BD
Hi Jerome,
Quoted text · Jérôme Chauveau · 24 lines
On Thu, Sep 11, 2014 at 10:48 AM, Jérôme Chauveau < jerome.chauveau at unicaen.fr> wrote: > Hi, > > i would like to run 2 separate war instances in the same Tomcat server. > Each instance must embbed its own data repository. > > I tried to use the HTTPLOCAL flag but i am not able to manage separatly > the 2 instances with a basexclient command line tool. > How can I manage an HTTPLOCAL instance from a basexclient? > > Another solution might be that each webapp instance runs its own > basexserver on 2 differents port. How can I > set the 1984 default port used by a basex webapp? > > Regards, > > Jérôme C. > > -- > Jérôme Chauveau - SAIC-CERTIC - Campus 4 > Université de Caen Basse-Normandie > >
This probably a very incorrect approach to dealing with this problem, but would renaming the instances work for you? E.g.
tomcat/
webapps/
baseX1/
baseX1.war
baseX2/
baseX2.war
This may be a really bad idea - I'm not sure, I've done no real work with the BaseX webapp (yet), so I don't know if the basexclient tool will still manage both instances.
Best,
Bridger
JC
Jérôme Chauveau15 Sep 2014 09:36 #
Hi Bridger,
2 wars were renamed, but it did not solved my problem.
Regards.
Jérôme
Quoted text · Bridger Dyson-Smith · 48 lines
Le 12/09/2014 18:50, Bridger Dyson-Smith a écrit : > Hi Jerome, > > > On Thu, Sep 11, 2014 at 10:48 AM, Jérôme Chauveau > <jerome.chauveau at unicaen.fr <mailto:jerome.chauveau at unicaen.fr>> wrote: > > Hi, > > i would like to run 2 separate war instances in the same Tomcat > server. > Each instance must embbed its own data repository. > > I tried to use the HTTPLOCAL flag but i am not able to manage > separatly the 2 instances with a basexclient command line tool. > How can I manage an HTTPLOCAL instance from a basexclient? > > Another solution might be that each webapp instance runs its own > basexserver on 2 differents port. How can I > set the 1984 default port used by a basex webapp? > > Regards, > > Jérôme C. > > -- > Jérôme Chauveau - SAIC-CERTIC - Campus 4 > Université de Caen Basse-Normandie > > > This probably a very incorrect approach to dealing with this problem, > but would renaming the instances work for you? E.g. > > tomcat/ > webapps/ > baseX1/ > baseX1.war > baseX2/ > baseX2.war > > This may be a really bad idea - I'm not sure, I've done no real work > with the BaseX webapp (yet), so I don't know if the basexclient tool > will still manage both instances. > > Best, > Bridger > >
--
Jérôme Chauveau - SAIC-CERTIC - Campus 4
Université de Caen Basse-Normandie
ML
Marco Lettere15 Sep 2014 10:00 #
Hi all,
yes, I can confirm that on my side too.
M.
Quoted text · Jérôme Chauveau · 62 lines
On 15/09/2014 09:36, Jérôme Chauveau wrote: > Hi Bridger, > > 2 wars were renamed, but it did not solved my problem. > > Regards. > > Jérôme > > Le 12/09/2014 18:50, Bridger Dyson-Smith a écrit : >> Hi Jerome, >> >> >> On Thu, Sep 11, 2014 at 10:48 AM, Jérôme Chauveau >> <jerome.chauveau at unicaen.fr <mailto:jerome.chauveau at unicaen.fr>> wrote: >> >> Hi, >> >> i would like to run 2 separate war instances in the same Tomcat >> server. >> Each instance must embbed its own data repository. >> >> I tried to use the HTTPLOCAL flag but i am not able to manage >> separatly the 2 instances with a basexclient command line tool. >> How can I manage an HTTPLOCAL instance from a basexclient? >> >> Another solution might be that each webapp instance runs its own >> basexserver on 2 differents port. How can I >> set the 1984 default port used by a basex webapp? >> >> Regards, >> >> Jérôme C. >> >> -- >> Jérôme Chauveau - SAIC-CERTIC - Campus 4 >> Université de Caen Basse-Normandie >> >> >> This probably a very incorrect approach to dealing with this problem, >> but would renaming the instances work for you? E.g. >> >> tomcat/ >> webapps/ >> baseX1/ >> baseX1.war >> baseX2/ >> baseX2.war >> >> This may be a really bad idea - I'm not sure, I've done no real work >> with the BaseX webapp (yet), so I don't know if the basexclient tool >> will still manage both instances. >> >> Best, >> Bridger >> >> > > > -- > Jérôme Chauveau - SAIC-CERTIC - Campus 4 > Université de Caen Basse-Normandie
Written for BaseX 7.9. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery