Re: [Dev] Web-Deployment order in an OSGI execution flow
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 Engineer* WSO2 Inc.; http://wso2.com email: ayy...@wso2.com cell: +94 77 1681010 %2B94%2077%207779495 On Mon, Jul 27, 2015 at 10:00 AM, Ruwan Abeykoon ruw...@wso2.com wrote: 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. However none of the other user bundles are not guaranteed to be activated at this time. @Thilini This is contrary to the document [1], which is for carbon 4.2.0 based. Also I have seen this error when Tomcat sees the offending class(package) in BundleA while other user bundle sees this class in BundleB. This is most probably what you are experiencing. Thats why it is important that no too bundles should export same package name. Cheers, Ruwan [1] http://wso2.com/library/articles/2014/01/understanding-wso2-carbon-architecture/ On Mon, Jul 27, 2015 at 12:50 AM, Ayyoob Hamza ayy...@wso2.com wrote: 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 ] http://wso2.com/library/articles/2014/01/understanding-wso2-carbon-architecture/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Ruwan Abeykoon* *Architect,* *WSO2, Inc. http://wso2.com http://wso2.com/ * *lean.enterprise.middleware.* email: ruw...@wso2.com phone:(+94) 39736 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Web-Deployment order in an OSGI execution flow
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 25, 2015 at 1:45 AM, Ruwan Abeykoon ruw...@wso2.com wrote: 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.0org.eclipse.osgi_3.9.1.v20130814-1242 [0] javax.xml.soap; version=1.0.0geronimo-saaj_1.3_spec_1.0.0.wso2v3 [38] org.apache.ws.security.handler; version=1.5.11.wso2v9wss4j_1.5.11.wso2v10 [401] org.apache.ws.security.handler; version=1.5.11.wso2v9wss4j_1.5.11.wso2v9 [402] osgi osgi p javax.xml.soap javax.xml.soap; version=0.0.0org.eclipse.osgi_3.9.1.v20130814-1242 [0] org.eclipse.core.expressions_3.4.500.v20130515-1343 [78] imports org.eclipse.core.runtime_3.9.0.v20130326-1255 [80] imports org.wso2.carbon.p2.touchpoint_4.4.0 [290] imports tomcat_7.0.59.wso2v1 [390] imports javax.xml.soap; version=1.0.0geronimo-saaj_1.3_spec_1.0.0.wso2v3 [38] axis2_1.6.1.wso2v12 [14] imports org.wso2.carbon.apimgt.core_1.4.0 [154] imports spring.framework_3.2.9.wso2v1 [387] imports wss4j_1.5.11.wso2v10 [401] imports wss4j_1.5.11.wso2v9 [402] imports osgi osgi osgi osgi p org.apache.ws.security.handler org.apache.ws.security.handler; version=1.5.11.wso2v9wss4j_1.5.11.wso2v10 [401] org.wso2.carbon.security.mgt_4.4.0 [331] imports rampart-core_1.6.1.wso2v14 [377] imports rampart-trust_1.6.1.wso2v14 [379] imports org.apache.ws.security.handler; version=1.5.11.wso2v9wss4j_1.5.11.wso2v9 [402] osgi Cheers, Ruwan On Fri, Jul 24, 2015 at 3:22 PM, Ayyoob Hamza ayy...@wso2.com wrote: 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.com cell: +94 77 1681010 %2B94%2077%207779495 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Ruwan Abeykoon* *Architect,* *WSO2, Inc. http://wso2.com http://wso2.com/ * *lean.enterprise.middleware.* email: ruw...@wso2.com phone:(+94) 39736 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Best Regards, *Thilini Cooray* Software Engineer Mobile : +94 (0) 774 570 112 %2B94%20%280%29%20773%20451194 E-mail : thili...@wso2.com WSO2 Inc. www.wso2.com lean.enterprise.middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Web-Deployment order in an OSGI execution flow
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 ] http://wso2.com/library/articles/2014/01/understanding-wso2-carbon-architecture/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Web-Deployment order in an OSGI execution flow
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. However none of the other user bundles are not guaranteed to be activated at this time. @Thilini This is contrary to the document [1], which is for carbon 4.2.0 based. Also I have seen this error when Tomcat sees the offending class(package) in BundleA while other user bundle sees this class in BundleB. This is most probably what you are experiencing. Thats why it is important that no too bundles should export same package name. Cheers, Ruwan [1] http://wso2.com/library/articles/2014/01/understanding-wso2-carbon-architecture/ On Mon, Jul 27, 2015 at 12:50 AM, Ayyoob Hamza ayy...@wso2.com wrote: 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 ] http://wso2.com/library/articles/2014/01/understanding-wso2-carbon-architecture/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Ruwan Abeykoon* *Architect,* *WSO2, Inc. http://wso2.com http://wso2.com/ * *lean.enterprise.middleware.* email: ruw...@wso2.com phone:(+94) 39736 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Web-Deployment order in an OSGI execution flow
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 activation. Thanks *Ayyoob Hamza* *Software Engineer* WSO2 Inc.; http://wso2.com email: ayy...@wso2.com cell: +94 77 1681010 %2B94%2077%207779495 On Sat, Jul 25, 2015 at 1:45 AM, Ruwan Abeykoon ruw...@wso2.com wrote: 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.0org.eclipse.osgi_3.9.1.v20130814-1242 [0] javax.xml.soap; version=1.0.0geronimo-saaj_1.3_spec_1.0.0.wso2v3 [38] org.apache.ws.security.handler; version=1.5.11.wso2v9wss4j_1.5.11.wso2v10 [401] org.apache.ws.security.handler; version=1.5.11.wso2v9wss4j_1.5.11.wso2v9 [402] osgi osgi p javax.xml.soap javax.xml.soap; version=0.0.0org.eclipse.osgi_3.9.1.v20130814-1242 [0] org.eclipse.core.expressions_3.4.500.v20130515-1343 [78] imports org.eclipse.core.runtime_3.9.0.v20130326-1255 [80] imports org.wso2.carbon.p2.touchpoint_4.4.0 [290] imports tomcat_7.0.59.wso2v1 [390] imports javax.xml.soap; version=1.0.0geronimo-saaj_1.3_spec_1.0.0.wso2v3 [38] axis2_1.6.1.wso2v12 [14] imports org.wso2.carbon.apimgt.core_1.4.0 [154] imports spring.framework_3.2.9.wso2v1 [387] imports wss4j_1.5.11.wso2v10 [401] imports wss4j_1.5.11.wso2v9 [402] imports osgi osgi osgi osgi p org.apache.ws.security.handler org.apache.ws.security.handler; version=1.5.11.wso2v9wss4j_1.5.11.wso2v10 [401] org.wso2.carbon.security.mgt_4.4.0 [331] imports rampart-core_1.6.1.wso2v14 [377] imports rampart-trust_1.6.1.wso2v14 [379] imports org.apache.ws.security.handler; version=1.5.11.wso2v9wss4j_1.5.11.wso2v9 [402] osgi Cheers, Ruwan On Fri, Jul 24, 2015 at 3:22 PM, Ayyoob Hamza ayy...@wso2.com wrote: 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.com cell: +94 77 1681010 %2B94%2077%207779495 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Ruwan Abeykoon* *Architect,* *WSO2, Inc. http://wso2.com http://wso2.com/ * *lean.enterprise.middleware.* email: ruw...@wso2.com phone:(+94) 39736 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Web-Deployment order in an OSGI execution flow
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.com cell: +94 77 1681010 %2B94%2077%207779495 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Web-Deployment order in an OSGI execution flow
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.0org.eclipse.osgi_3.9.1.v20130814-1242 [0] javax.xml.soap; version=1.0.0geronimo-saaj_1.3_spec_1.0.0.wso2v3 [38] org.apache.ws.security.handler; version=1.5.11.wso2v9wss4j_1.5.11.wso2v10 [401] org.apache.ws.security.handler; version=1.5.11.wso2v9wss4j_1.5.11.wso2v9 [402] osgi osgi p javax.xml.soap javax.xml.soap; version=0.0.0org.eclipse.osgi_3.9.1.v20130814-1242 [0] org.eclipse.core.expressions_3.4.500.v20130515-1343 [78] imports org.eclipse.core.runtime_3.9.0.v20130326-1255 [80] imports org.wso2.carbon.p2.touchpoint_4.4.0 [290] imports tomcat_7.0.59.wso2v1 [390] imports javax.xml.soap; version=1.0.0geronimo-saaj_1.3_spec_1.0.0.wso2v3 [38] axis2_1.6.1.wso2v12 [14] imports org.wso2.carbon.apimgt.core_1.4.0 [154] imports spring.framework_3.2.9.wso2v1 [387] imports wss4j_1.5.11.wso2v10 [401] imports wss4j_1.5.11.wso2v9 [402] imports osgi osgi osgi osgi p org.apache.ws.security.handler org.apache.ws.security.handler; version=1.5.11.wso2v9wss4j_1.5.11.wso2v10 [401] org.wso2.carbon.security.mgt_4.4.0 [331] imports rampart-core_1.6.1.wso2v14 [377] imports rampart-trust_1.6.1.wso2v14 [379] imports org.apache.ws.security.handler; version=1.5.11.wso2v9wss4j_1.5.11.wso2v9 [402] osgi Cheers, Ruwan On Fri, Jul 24, 2015 at 3:22 PM, Ayyoob Hamza ayy...@wso2.com wrote: 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.com cell: +94 77 1681010 %2B94%2077%207779495 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Ruwan Abeykoon* *Architect,* *WSO2, Inc. http://wso2.com http://wso2.com/ * *lean.enterprise.middleware.* email: ruw...@wso2.com phone:(+94) 39736 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev