[Dev] Web-Deployment order in an OSGI execution flow

2015-07-24 Thread Ayyoob Hamza
Hi All, In Carbon, when the webdeployer features are installed, will the web apps be deployed after all the osgi's are activated or will they run soon after the tomcat is activated ?. Is there a such a order ? Thanks, *Ayyoob Hamza* *Software Engineer* WSO2 Inc.; http://wso2.com email: ayy...@wso2

Re: [Dev] Web-Deployment order in an OSGI execution flow

2015-07-24 Thread Ruwan Abeykoon
Hi Ayoob, I am not sure this answers your question. However I observed following duplicate exports in your bundle. Please try to remove one of them manually and check. javax.xml.soap; version="0.0.0" javax.xml.soap; version="1.0.0" org.apache.ws.security.handler; version="1.5.11.wso2v9" org.apac

Re: [Dev] Web-Deployment order in an OSGI execution flow

2015-07-26 Thread Thilini Cooray
Hi Ayyoob, [1] has explained the carbon architecture and its workflow. In the "How server starts" section, it has mentioned that webapp deployment will take place after loading OSGI bundles. [1] http://wso2.com/library/articles/2014/01/understanding-wso2-carbon-architecture/ Thanks. On Sat, Jul

Re: [Dev] Web-Deployment order in an OSGI execution flow

2015-07-26 Thread Ayyoob Hamza
Hi Ruwan, Thanks for pointing out the duplications. I tried it and I am still getting the No class def found on the referred bundle classes. And this behaviour is random. This is why, it made me think to know whether is it always guaranteed that the war deployment happens after the osgi bundle acti

Re: [Dev] Web-Deployment order in an OSGI execution flow

2015-07-26 Thread Ayyoob Hamza
Hi Thilini As in this link (Under How tomcat works) it suggest that the war deployment happens after the tomcat bundle get activated, not the end of all osgi bundle activated. If thats the case how can we guarantee that the web deployment can only be happen after the osgi bundle activation ?. [ 1

Re: [Dev] Web-Deployment order in an OSGI execution flow

2015-07-26 Thread Ruwan Abeykoon
Hi Ayoob, There might be some other duplicate package exports in the pack which causes the CNF exception. Yes, I also second your observation (in carbon 4.4.0), that the Webapp Deployment occurs once the "carbon-deployer" bundle is activated. It will then make sure tomcat bundle is activated. Howe

Re: [Dev] Web-Deployment order in an OSGI execution flow

2015-07-28 Thread Ayyoob Hamza
Hi Ruwan, Thanks for your suggestions, This makes sense because, with the offline chat I had with kasunG; Classes are resolved initially before osgis' are activated. Therefore there should be some duplicate packages. I ll try to look into it and resolve it. Thanks *Ayyoob Hamza* *Software Enginee