Disctinct instances in same phisical server

Hi, I'm trying to get running two disctinct scadaBR instances for two clientes in same tomcat server ...

I'm using mysql option. First instance runs OK, but when I copy database to a new database with right permissions ( checked ) and copy ScadaBR to NewInstance in webapps directory, none of them starts and catalina.out cryies about "hey !! do you have anohter instance ??"

Is this possible ? many -different- ScadaBR instances running in same tomcat server ?

 

 

Ok, 2 things to run ScadaBR multiple deploys

  1. Diferent folder name in the webapps/deploy folder;
  2. Diferent DB in the MySQL;

Check the mango.log in your proper log folder for the main reasons. And feed us back about your trouble =]

Regards,

Thankyou for your response.

I have copied ScadaBR folder into two new directories and dumped mysql database. 

Then created two new mysql databases and imported original one.

Modified env.properties at two new instances for pointing their own database.

Everything seems to run OK, but catalina.out reports some warnings, one of them about "hey, is there another mango instance ??"

Are this warnings sinthom of something with potential risk ?

Attach log portion:

 

WARN  2013-06-27 08:03:48,106 (com.serotonin.mango.MangoContextListener.contextInitialized:110) - Mango's known servlet context path has changed from /ScadaBR to . Are there two instances of Mango running? 
Jun 27, 2013 8:03:48 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring FrameworkServlet 'springDispatcher'
WARN  2013-06-27 08:03:49,473 (org.directwebremoting.util.CommonsLoggingOutput.warn:59) - Clash of converters for br.org.scadabr.OPCItem. Using org.directwebremoting.convert.BeanConverter in place of org.directwebremoting.convert.BeanConverter 
Jun 27, 2013 8:03:50 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory ScadaBR
Jun 27, 2013 8:03:50 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
WARN  2013-06-27 08:03:51,709 (com.serotonin.mango.MangoContextListener.contextInitialized:110) - Mango's known servlet context path has changed from  to /ScadaBR. Are there two instances of Mango running? 
Jun 27, 2013 8:03:52 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring FrameworkServlet 'springDispatcher'
WARN  2013-06-27 08:03:52,967 (org.directwebremoting.util.CommonsLoggingOutput.warn:59) - Clash of converters for br.org.scadabr.OPCItem. Using org.directwebremoting.convert.BeanConverter in place of org.directwebremoting.convert.BeanConverter 
Jun 27, 2013 8:03:53 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory ScadaIC
Jun 27, 2013 8:03:54 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
Jun 27, 2013 8:03:55 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring FrameworkServlet 'springDispatcher'
WARN  2013-06-27 08:03:56,012 (org.directwebremoting.util.CommonsLoggingOutput.warn:59) - Clash of converters for br.org.scadabr.OPCItem. Using org.directwebremoting.convert.BeanConverter in place of org.directwebremoting.convert.BeanConverter 
Jun 27, 2013 8:03:56 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory Inabensa
Jun 27, 2013 8:03:57 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
Jun 27, 2013 8:03:58 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring FrameworkServlet 'springDispatcher'
WARN  2013-06-27 08:03:59,161 (org.directwebremoting.util.CommonsLoggingOutput.warn:59) - Clash of converters for br.org.scadabr.OPCItem. Using org.directwebremoting.convert.BeanConverter in place of org.directwebremoting.convert.BeanConverter 
Jun 27, 2013 8:03:59 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8081
Jun 27, 2013 8:03:59 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 14814 ms
 
 

 

 

 

Again, another step to cover the "Same log file issue"

Go to the "...\webapps\ScadaBR\WEB-INF\classes" and alter the log4j.xml file.

You are looking for the file appender config.

....

 <appender name="logfile" class="org.apache.log4j.DailyRollingFileAppender">
    <param name="File" value="${catalina.base}/logs/mango.log"/>
....
 
=]
1 curtida

Great !!

Thankyou !