Hi Kalpa, Checked on mac after i killed the process, CARBON_HOME is not there.But windows even after i killed can see the CARBON_HOME
Thanks On Thu, Jan 29, 2015 at 1:53 PM, Kalpa Welivitigoda <[email protected]> wrote: > Hi Irham, > > In the wso2server.bat it tries to set CARBON_HOME only if it is not > already set. So if the CARBON_HOME variable is still there even after you > kill the first server, it is most likely that the second server will pick > up the already existing value of CARBON_HOME. Please check whether the > CARBON_HOME variable value is safter you start the firsttill there even > after you kill the first server (I checked with linux terminal and it is > not there after I kill the server). > > On Thu, Jan 29, 2015 at 1:38 PM, Irham Iqbal <[email protected]> wrote: > >> Hi Shashika, >> >> Yes, It works if you open a command prompt and do(a command prompt which >> is not used for up a carbon server) >> >> To identify easily open a command prompt and just start the first >> pack(pack1) by only using wso2server.bat after it has started kill the >> process and go to another pack(pack2) and start using wso2server.sh only it >> will start properly but in the log you can see it's using pack1's path as >> carbon home. >> That means it always using the carbon home of first carbon server started >> up in that command prompt. >> >> Thanks, >> Iqbal >> >> On Thu, Jan 29, 2015 at 10:51 AM, Shashika Karunatilaka < >> [email protected]> wrote: >> >>> Hi Irham, >>> >>> I Tried your scenario on windows 7 mac VM, two instance on same command >>> prompt(START /B CMD /C CALL wso2server.bat and wso2server.bat >>> -DportOffset=8). >>> I used AS 6.0.0 SNAPSHOT pack and it works. >>> >>> On Thu, Jan 29, 2015 at 10:43 AM, Aruna Karunarathna <[email protected]> >>> wrote: >>> >>>> >>>> >>>> On Thu, Jan 29, 2015 at 10:40 AM, Shani Ranasinghe <[email protected]> >>>> wrote: >>>> >>>>> Hi, >>>>> >>>>> This could be because the embedded H2 cannot create two instance at >>>>> the same time. Please make sure that there are no two instances running >>>>> which bind to the same WSO2CARBON_DB. >>>>> >>>> >>>> This is because the same carbon_home is set in the other instance also. >>>> Try initiating the other server instance in a new Command prompt. >>>> >>>> >>>>> >>>>> >>>>> On Thu, Jan 29, 2015 at 10:11 AM, Irham Iqbal <[email protected]> wrote: >>>>> >>>>>> Hi, >>>>>> >>>>>> When i am trying to run two AS instance using one command prompt i am >>>>>> getting some exceptions. >>>>>> >>>>>> I have started the first instance(pack wso2as-1) using START /B CMD >>>>>> /C CALL wso2server.bat command to run this as background process >>>>>> then after when the server has started up ,i went to a different AS pack >>>>>> wso2as-2 from the same command prompt and run wso2server.bat >>>>>> -DportOffset=8 then only i am getting the exceptions. In the >>>>>> exception it's seems like it still using the older pack's path as carbon >>>>>> home. >>>>>> I have attached the error log. >>>>>> >>>>>> Thanks, >>>>>> Iqbal >>>>>> >>>>>> -- >>>>>> Irham Iqbal >>>>>> Software Engineer - Test Automation >>>>>> WSO2, Inc.: http://wso2.com >>>>>> lean. enterprise. middleware >>>>>> phone: +94 777888452 >>>>>> >>>>>> _______________________________________________ >>>>>> Dev mailing list >>>>>> [email protected] >>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> Thanks and Regards >>>>> *,Shani Ranasinghe* >>>>> Software Engineer >>>>> WSO2 Inc.; http://wso2.com >>>>> lean.enterprise.middleware >>>>> >>>>> mobile: +94 77 2273555 >>>>> linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab >>>>> >>>>> _______________________________________________ >>>>> Dev mailing list >>>>> [email protected] >>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>> >>>>> >>>> >>>> >>>> -- >>>> >>>> *Aruna Sujith Karunarathna* | Software Engineer >>>> WSO2, Inc | lean. enterprise. middleware. >>>> #20, Palm Grove, Colombo 03, Sri Lanka >>>> Mobile: +94 71 9040362 | Work: +94 112145345 >>>> Email: [email protected] | Web: www.wso2.com >>>> >>>> >>>> _______________________________________________ >>>> Dev mailing list >>>> [email protected] >>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>> >>>> >>> >>> >>> -- >>> Shashika Prabath Karunatilaka, >>> Software Engineer, >>> WSO2, Inc: http://wso2.com/ >>> mobile : +94 77 7487792 >>> >>> _______________________________________________ >>> Dev mailing list >>> [email protected] >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> >> >> -- >> Irham Iqbal >> Software Engineer - Test Automation >> WSO2, Inc.: http://wso2.com >> lean. enterprise. middleware >> phone: +94 777888452 >> >> _______________________________________________ >> Dev mailing list >> [email protected] >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > Best Regards, > > Kalpa Welivitigoda > Software Engineer, WSO2 Inc. http://wso2.com > Email: [email protected] > Mobile: +94776509215 > -- Irham Iqbal Software Engineer - Test Automation WSO2, Inc.: http://wso2.com lean. enterprise. middleware phone: +94 777888452
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
