On Fri, Jun 29, 2012 at 10:01 AM, Dileepa Jayakody <[email protected]> wrote:

> Hi Kishanthan,
>
> On Thu, Jun 28, 2012 at 7:45 PM, Kishanthan Thangarajah <
> [email protected]> wrote:
>
>>
>>
>> On Thu, Jun 28, 2012 at 6:39 PM, Dileepa Jayakody <[email protected]>wrote:
>>
>>> Hi devs,
>>>
>>> Tomcat comes with session persistence across server restarts.
>>> This is enabled by default and users can disable this by uncommenting
>>> <Manager pathname="" /> entry in $CATALINA_HOME/conf/context.xml in
>>> standard Tomcat as explaind in [1].
>>> In Carbon distributions the context.xml resides in
>>> $CARBON_HOME/repository/conf/tomcat. Uncommenting the above in the
>>> context.xml in Carbon doesn't disable session persistence.
>>>
>>
>> I think this file is not read by the embedded tomcat. If we can load this
>> into tomcat, we can fix it. Also since now carbon is deployed as a webapp,
>> this file can go to carbon webapp's META-INF directory. Can you try moving
>> this file to $CARBON_HOME/repository/conf/tomcat/carbon/META-INF/ directory
>> and try again? I think this should work.
>>
>> I tried moving the context.xml to
> $CARBON_HOME/repository/conf/tomcat/carbon/WEB-INF/. Seems it doesn't work
> either. When a user is logged into Carbon and the server is restarted, the
> user is not required to log in again, the persisted session is revived.
>

It should be moved to META-INF, not WEB-INF. You have to create that
directory because, by default it is not there now. It works for me when i
tried.

Thanks,
Kishanthan.

>  Thanks,
>> Kishanthan.
>>
>>>
>>> Any idea on how to resolve this? Could this be due to tomcat
>>> osgification?
>>>
>>> Thanks,
>>> Dileepa
>>>
>>> [1]
>>> http://wiki.webratio.com/index.php/Avoiding_Persistent_Tomcat_Sessions
>>> --
>>> Dileepa Jayakody,
>>> Software Engineer, WSO2 Inc.
>>> Lean . Enterprise . Middleware
>>>
>>> Mobile : +94777-857616
>>>
>>>
>>> _______________________________________________
>>> Dev mailing list
>>> [email protected]
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Kishanthan Thangarajah*
>> Software Engineer,
>> Development Technologies Team,
>> WSO2, Inc.
>> lean.enterprise.middleware
>>
>> Mobile - +94773426635
>> Blog - *http://kishanthan.wordpress.com*
>> Twitter - *http://twitter.com/kishanthan*
>>
>>
>
>
> --
> Dileepa Jayakody,
> Software Engineer, WSO2 Inc.
> Lean . Enterprise . Middleware
>
> Mobile : +94777-857616
>
>


-- 
*Kishanthan Thangarajah*
Software Engineer,
Development Technologies Team,
WSO2, Inc.
lean.enterprise.middleware

Mobile - +94773426635
Blog - *http://kishanthan.wordpress.com*
Twitter - *http://twitter.com/kishanthan*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to