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 <ar...@wso2.com> wrote:

>
>
> On Thu, Jan 29, 2015 at 10:40 AM, Shani Ranasinghe <sh...@wso2.com> 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 <iq...@wso2.com> 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
>>> Dev@wso2.org
>>> 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
>> Dev@wso2.org
>> 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: ar...@wso2.com | Web: www.wso2.com
>
>
> _______________________________________________
> Dev mailing list
> Dev@wso2.org
> 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
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to