Hi Harsha,

Whats the version of webapp-mgt component/AS you are using?.
Please specify more info on the deployment setup..

thanks,


On Mon, Jan 28, 2013 at 4:46 PM, Harsha Thirimanna <[email protected]> wrote:

> Hi,
>
> In AppFactory , we deploy the Web Application that created from AppFactory
> to the Carbon Server in Development/Test/Production stages.
> After the deployement, we use the 'WebappAdmin'  service to get the meta
> data about the web application. It works perfectly.
>
> But if the Development/Test/Production servers  are in idle for more than
> around 1 hour, then  the WebappAdmin service always gives faulty status  to
> the web application.
>
> It doesn't give the correct status. If the Development/Test/Production
> servers restarted , it works then.
>
> This is the exception I got
>
>
> [2013-01-28 15:39:04,598] ERROR
> {org.wso2.carbon.webapp.mgt.AbstractWebappDeployer} -  Error occurred
> during cleaning up webapps
> org.wso2.carbon.CarbonException: Cannot lazy unload webapp
> StandardEngine[Catalina].StandardHost[localhost].StandardContext[/t/app2/webapps/app2-SNAPSHOT]
>     at
> org.wso2.carbon.webapp.mgt.WebApplication.lazyUnload(WebApplication.java:245)
>     at
> org.wso2.carbon.webapp.mgt.WebApplication.lazyUnload(WebApplication.java:224)
>     at
> org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.lazyUnload(TomcatGenericWebappsDeployer.java:344)
>     at
> org.wso2.carbon.webapp.mgt.AbstractWebappDeployer.cleanup(AbstractWebappDeployer.java:171)
>     at
> org.apache.axis2.deployment.DeploymentEngine.cleanup(DeploymentEngine.java:1386)
>     at
> org.wso2.carbon.core.multitenancy.TenantAxisConfigurator.cleanup(TenantAxisConfigurator.java:508)
>     at
> org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.terminateTenantConfigContext(TenantAxisUtils.java:438)
>     at
> org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.cleanupTenants(TenantAxisUtils.java:397)
>     at
> org.wso2.carbon.core.multitenancy.MultitenantServerManager$TenantCleanupTask.run(MultitenantServerManager.java:73)
>     at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
>     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[/t/app2/webapps/app2-SNAPSHOT]]
>     at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:236)
>     at
> org.wso2.carbon.webapp.mgt.WebApplication.lazyUnload(WebApplication.java:233)
>     ... 17 more
> Caused by: org.apache.catalina.LifecycleException: Failed to stop
> component
> [org.wso2.carbon.webapp.mgt.CarbonTomcatSessionManager[/t/app2/webapps/app2-SNAPSHOT]]
>     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)
>     ... 18 more
> Caused by: java.lang.SecurityException: Illegal access attempt by
> tenant[-1] to sessions owned by tenant[2]
>     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)
>     ... 20 more
> [2013-01-28 15:39:04,602] ERROR
> {org.apache.axis2.deployment.DeploymentEngine} -  Error occurred while
> cleaning up deployer
> org.apache.axis2.deployment.DeploymentException: Error occurred during
> cleaning up webapps
>     at
> org.wso2.carbon.webapp.mgt.AbstractWebappDeployer.cleanup(AbstractWebappDeployer.java:175)
>     at
> org.apache.axis2.deployment.DeploymentEngine.cleanup(DeploymentEngine.java:1386)
>     at
> org.wso2.carbon.core.multitenancy.TenantAxisConfigurator.cleanup(TenantAxisConfigurator.java:508)
>     at
> org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.terminateTenantConfigContext(TenantAxisUtils.java:438)
>     at
> org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.cleanupTenants(TenantAxisUtils.java:397)
>     at
> org.wso2.carbon.core.multitenancy.MultitenantServerManager$TenantCleanupTask.run(MultitenantServerManager.java:73)
>     at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
>     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.wso2.carbon.CarbonException: Cannot lazy unload webapp
> StandardEngine[Catalina].StandardHost[localhost].StandardContext[/t/app2/webapps/app2-SNAPSHOT]
>     at
> org.wso2.carbon.webapp.mgt.WebApplication.lazyUnload(WebApplication.java:245)
>     at
> org.wso2.carbon.webapp.mgt.WebApplication.lazyUnload(WebApplication.java:224)
>     at
> org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.lazyUnload(TomcatGenericWebappsDeployer.java:344)
>     at
> org.wso2.carbon.webapp.mgt.AbstractWebappDeployer.cleanup(AbstractWebappDeployer.java:171)
>     ... 14 more
> Caused by: org.apache.catalina.LifecycleException: Failed to stop
> component
> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/t/app2/webapps/app2-SNAPSHOT]]
>     at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:236)
>     at
> org.wso2.carbon.webapp.mgt.WebApplication.lazyUnload(WebApplication.java:233)
>     ... 17 more
> Caused by: org.apache.catalina.LifecycleException: Failed to stop
> component
> [org.wso2.carbon.webapp.mgt.CarbonTomcatSessionManager[/t/app2/webapps/app2-SNAPSHOT]]
>     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)
>     ... 18 more
> Caused by: java.lang.SecurityException: Illegal access attempt by
> tenant[-1] to sessions owned by tenant[2]
>     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)
>     ... 20 more
>
>
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
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

Reply via email to