On Fri, Sep 21, 2012 at 6:37 PM, Supun Malinga <[email protected]> wrote:

>
>
> On Fri, Sep 21, 2012 at 6:31 PM, Afkham Azeez <[email protected]> wrote:
>
>>
>>
>> On Fri, Sep 21, 2012 at 6:28 PM, Supun Malinga <[email protected]> wrote:
>>
>>> Hi,
>>>
>>> On Fri, Sep 21, 2012 at 6:12 PM, Afkham Azeez <[email protected]> wrote:
>>>
>>>>
>>>>
>>>> On Fri, Sep 21, 2012 at 5:50 PM, Supun Malinga <[email protected]> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I had a look. Happens for normal webapps as well. Guessing due to CC
>>>>> refactoring.
>>>>> Pradeep, please have a look.
>>>>>
>>>>>
>>>> This is not a CC refactoring thing. Debug webapp deployer and see why
>>>> the tenant ID is becoming -1.
>>>>
>>>
>>> We haven't done any other changes after 4.0.1 other than CC refactoring
>>> stuff.
>>>
>>
>> Did you try the same scenario with AS 5.0.0?
>>
>
> yes definitely. This is just when you redeploy any webapp.
>
>
I am looking into this.



> thanks,
>
>>
>>> thanks,
>>>
>>>>
>>>> Azeez
>>>>
>>>>
>>>>> thanks,
>>>>>
>>>>>
>>>>>  On Fri, Sep 21, 2012 at 5:34 PM, Lalaji Sureshika <[email protected]>wrote:
>>>>>
>>>>>> Hi
>>>>>>
>>>>>> Is anyone from AS team currently look in to this? I created the jira
>>>>>> [1] for this issue as this need to fix as the stabilization effort for 
>>>>>> APIM
>>>>>> 1.0.1 build pack.
>>>>>> Appreciate help on this.
>>>>>>
>>>>>> [1] https://wso2.org/jira/browse/APIMANAGER-728
>>>>>>
>>>>>> Thanks;
>>>>>>
>>>>>>
>>>>>> On Fri, Sep 21, 2012 at 10:35 AM, Afkham Azeez <[email protected]>wrote:
>>>>>>
>>>>>>> This exception is something that occurs from time to time even in
>>>>>>> other scenarios, so we need to investigate and fix it.
>>>>>>>
>>>>>>>
>>>>>>> On Fri, Sep 21, 2012 at 11:14 AM, Kishanthan Thangarajah <
>>>>>>> [email protected]> wrote:
>>>>>>>
>>>>>>>> Can you consistently reproduce this? The root cause is
>>>>>>>> " java.lang.SecurityException: Illegal access attempt by  tenant[-1] to
>>>>>>>> sessions owned by tenant[-1234]", which may arise when the correct 
>>>>>>>> tenant
>>>>>>>> id from carbon context is not returned.
>>>>>>>>
>>>>>>>> On Fri, Sep 21, 2012 at 10:43 AM, Lalaji Sureshika <[email protected]
>>>>>>>> > wrote:
>>>>>>>>
>>>>>>>>>  Hi,
>>>>>>>>>
>>>>>>>>> When I'm trying to rename a jaggery-app from
>>>>>>>>> [{Server_Home}/repository/deployment/server/jaggeryapps],following
>>>>>>>>> exception[1] related to webapp-mgt  appearing in console. And I can 
>>>>>>>>> see
>>>>>>>>> both the newly named app and the older named app are listed in 
>>>>>>>>> management
>>>>>>>>> console listing page.
>>>>>>>>>
>>>>>>>>> Tried with public branch 4.0.2 APIM 1.0.1 pack.
>>>>>>>>> The pack contains following jars related to web-app mgt;
>>>>>>>>>
>>>>>>>>> 1)org.wso2.carbon.webapp.deployer_4.0.1.jar
>>>>>>>>> 2)org.wso2.carbon.webapp.mgt.stub_4.0.1.jar
>>>>>>>>> 3)org.wso2.carbon.webapp.mgt_4.0.2.jar
>>>>>>>>>
>>>>>>>>> [1] [2012-09-21 09:27:47,370] ERROR - AbstractWebappDeployer Error
>>>>>>>>> occurred during undeploying webapp:
>>>>>>>>> /home/lalaji/4.0.0/products/apimgt/1.0.1/modules/distribution/product/target/wso2am-1.0.1/repository/deployment/server/jaggeryapps/publisher
>>>>>>>>>  org.wso2.carbon.CarbonException: Cannot lazy unload webapp
>>>>>>>>> StandardEngine[Catalina].StandardHost[localhost].StandardContext[/publisher]
>>>>>>>>> at
>>>>>>>>> org.wso2.carbon.webapp.mgt.WebApplication.lazyUnload(WebApplication.java:244)
>>>>>>>>>  at
>>>>>>>>> org.wso2.carbon.webapp.mgt.WebApplication.lazyUnload(WebApplication.java:223)
>>>>>>>>> at
>>>>>>>>> org.wso2.carbon.webapp.mgt.WebApplication.undeploy(WebApplication.java:261)
>>>>>>>>>  at
>>>>>>>>> org.wso2.carbon.webapp.mgt.WebApplicationsHolder.undeployWebapp(WebApplicationsHolder.java:81)
>>>>>>>>> at
>>>>>>>>> org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.undeploy(TomcatGenericWebappsDeployer.java:404)
>>>>>>>>>  at
>>>>>>>>> org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.undeploy(TomcatGenericWebappsDeployer.java:332)
>>>>>>>>> at
>>>>>>>>> org.wso2.carbon.webapp.mgt.AbstractWebappDeployer.handleUndeployment(AbstractWebappDeployer.java:222)
>>>>>>>>>  at
>>>>>>>>> org.wso2.carbon.webapp.mgt.AbstractWebappDeployer.undeploy(AbstractWebappDeployer.java:161)
>>>>>>>>> at
>>>>>>>>> org.jaggeryjs.jaggery.deployer.JaggeryDeployer.undeploy(JaggeryDeployer.java:65)
>>>>>>>>>  at
>>>>>>>>> org.apache.axis2.deployment.DeploymentEngine.unDeploy(DeploymentEngine.java:909)
>>>>>>>>> at
>>>>>>>>> org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:143)
>>>>>>>>>  at
>>>>>>>>> org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377)
>>>>>>>>> at
>>>>>>>>> org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)
>>>>>>>>>  at
>>>>>>>>> org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:371)
>>>>>>>>> at
>>>>>>>>> org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:59)
>>>>>>>>>  at
>>>>>>>>> org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:67)
>>>>>>>>> at
>>>>>>>>> org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.runAxisDeployment(CarbonDeploymentSchedulerTask.java:59)
>>>>>>>>>  at
>>>>>>>>> org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.run(CarbonDeploymentSchedulerTask.java:70)
>>>>>>>>> at
>>>>>>>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
>>>>>>>>>  at
>>>>>>>>> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
>>>>>>>>> at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
>>>>>>>>>  at
>>>>>>>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
>>>>>>>>> at
>>>>>>>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
>>>>>>>>>  at
>>>>>>>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
>>>>>>>>> at
>>>>>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>>>>>>>>>  at
>>>>>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>>>>>>>>> at java.lang.Thread.run(Thread.java:662)
>>>>>>>>> Caused by: org.apache.catalina.LifecycleException: Failed to stop
>>>>>>>>> component
>>>>>>>>> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/publisher]]
>>>>>>>>> at
>>>>>>>>> org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:236)
>>>>>>>>>  at
>>>>>>>>> org.wso2.carbon.webapp.mgt.WebApplication.lazyUnload(WebApplication.java:232)
>>>>>>>>> ... 26 more
>>>>>>>>> Caused by: org.apache.catalina.LifecycleException: Failed to stop
>>>>>>>>> component
>>>>>>>>> [org.wso2.carbon.webapp.mgt.CarbonTomcatSessionManager[/publisher]]
>>>>>>>>> at
>>>>>>>>> org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:236)
>>>>>>>>>  at
>>>>>>>>> org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5473)
>>>>>>>>> at
>>>>>>>>> org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)
>>>>>>>>>  ... 27 more
>>>>>>>>> Caused by: java.lang.SecurityException: Illegal access attempt by
>>>>>>>>>  tenant[-1] to sessions owned by tenant[-1234]
>>>>>>>>> at
>>>>>>>>> org.wso2.carbon.webapp.mgt.CarbonTomcatSessionManager.checkAccess(CarbonTomcatSessionManager.java:126)
>>>>>>>>>  at
>>>>>>>>> org.wso2.carbon.webapp.mgt.CarbonTomcatSessionManager.findSessions(CarbonTomcatSessionManager.java:78)
>>>>>>>>> at
>>>>>>>>> org.apache.catalina.session.StandardManager.stopInternal(StandardManager.java:525)
>>>>>>>>>  at
>>>>>>>>> org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)
>>>>>>>>> ... 29 more
>>>>>>>>> [2012-09-21 09:27:47,374]  INFO - DeploymentEngine
>>>>>>>>> org.apache.axis2.deployment.DeploymentException: Error occurred during
>>>>>>>>> undeploying webapp:
>>>>>>>>> /home/lalaji/4.0.0/products/apimgt/1.0.1/modules/distribution/product/target/wso2am-1.0.1/repository/deployment/server/jaggeryapps/publisher
>>>>>>>>> [2012-09-21 09:27:54,935]  INFO - CarbonAuthenticationUtil
>>>>>>>>> '[email protected] [-1234]' logged in at [2012-09-21
>>>>>>>>> 09:27:54,934+0430]
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Lalaji Sureshika
>>>>>>>>> Software Engineer; Development Technologies Team;WSO2, Inc.;
>>>>>>>>> http://wso2.com/
>>>>>>>>> email: [email protected]; cell: +94 71 608 6811
>>>>>>>>> blog: http://lalajisureshika.blogspot.com
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> _______________________________________________
>>>>>>>>> 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*
>>>>>>>>
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> Dev mailing list
>>>>>>>> [email protected]
>>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> *Afkham Azeez*
>>>>>>> Director of Architecture; WSO2, Inc.; http://wso2.com
>>>>>>> Member; Apache Software Foundation; http://www.apache.org/
>>>>>>> * <http://www.apache.org/>**
>>>>>>> email: **[email protected]* <[email protected]>* cell: +94 77 3320919
>>>>>>> blog: **http://blog.afkham.org* <http://blog.afkham.org>*
>>>>>>> twitter: 
>>>>>>> **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez>
>>>>>>> *
>>>>>>> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
>>>>>>> *
>>>>>>> *
>>>>>>> *Lean . Enterprise . Middleware*
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Lalaji Sureshika
>>>>>> Software Engineer; Development Technologies Team;WSO2, Inc.;
>>>>>> http://wso2.com/
>>>>>> email: [email protected]; cell: +94 71 608 6811
>>>>>> blog: http://lalajisureshika.blogspot.com
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Supun Malinga,
>>>>>
>>>>> Software Engineer,
>>>>> WSO2 Inc.
>>>>> http://wso2.com
>>>>> http://wso2.org
>>>>> email - [email protected] <[email protected]>
>>>>> mobile - 071 56 91 321
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Dev mailing list
>>>>> [email protected]
>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> *Afkham Azeez*
>>>> Director of Architecture; WSO2, Inc.; http://wso2.com
>>>> Member; Apache Software Foundation; http://www.apache.org/
>>>> * <http://www.apache.org/>**
>>>> email: **[email protected]* <[email protected]>* cell: +94 77 3320919
>>>> blog: **http://blog.afkham.org* <http://blog.afkham.org>*
>>>> twitter: 
>>>> **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez>
>>>> *
>>>> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
>>>> *
>>>> *
>>>> *Lean . Enterprise . Middleware*
>>>>
>>>>
>>>
>>>
>>> --
>>> Supun Malinga,
>>>
>>> Software Engineer,
>>> WSO2 Inc.
>>> http://wso2.com
>>> http://wso2.org
>>> email - [email protected] <[email protected]>
>>> mobile - 071 56 91 321
>>>
>>>
>>
>>
>> --
>> *Afkham Azeez*
>> Director of Architecture; WSO2, Inc.; http://wso2.com
>> Member; Apache Software Foundation; http://www.apache.org/
>> * <http://www.apache.org/>**
>> email: **[email protected]* <[email protected]>* cell: +94 77 3320919
>> blog: **http://blog.afkham.org* <http://blog.afkham.org>*
>> twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez>
>> *
>> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
>> *
>> *
>> *Lean . Enterprise . Middleware*
>>
>>
>
>
> --
> Supun Malinga,
>
> Software Engineer,
> WSO2 Inc.
> http://wso2.com
> http://wso2.org
> email - [email protected] <[email protected]>
> mobile - 071 56 91 321
>
>


-- 
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* <http://www.apache.org/>**
email: **[email protected]* <[email protected]>* cell: +94 77 3320919
blog: **http://blog.afkham.org* <http://blog.afkham.org>*
twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez>
*
linked-in: **http://lk.linkedin.com/in/afkhamazeez*
*
*
*Lean . Enterprise . Middleware*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to