Hi all,

I have tried undeploying an application and deploying it again using both
REST API and CLI command (deploy-application). I got the following
exception.

[2015-03-12 14:01:50,262]  INFO
{org.apache.stratos.rest.endpoint.api.StratosApiV41Utils} -  Starting to
deploy application: [application-id] single-cartridge-app
[2015-03-12 14:01:50,307] ERROR
{org.apache.stratos.autoscaler.services.impl.AutoscalerServiceImpl} -
 Application deployment failed
java.lang.RuntimeException: Application not found: single-cartridge-app
at
org.apache.stratos.autoscaler.services.impl.AutoscalerServiceImpl.deployApplication(AutoscalerServiceImpl.java:161)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212)
at
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117)
at
org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
at
org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)

The same application can deploy directly using the deploy.sh file.
I assume this is due to something wrong in the undeploy method.





-- 
*Dinithi De Silva*
Associate Software Engineer, WSO2 Inc.
m:+94716667655 | e:dinit...@wso2.com | w: www.wso2.com
| a: #20, Palm Grove, Colombo 03

Reply via email to