Hi Aruna, I looked into the issue. The deployment did not proceed in OSGI mode because a class not found exception is thrown for javax.annotation.PostConstruct and javax.annotation.PreDestroy before the resource classes are registered.
I sent a pull request [1] fixing this issue. [1] - https://github.com/wso2/product-mss/pull/61 Regards, Samiyuru On Thu, Nov 19, 2015 at 11:54 AM, Aruna Karunarathna <[email protected]> wrote: > I tried to verify the spi-fly functionality with the product-mss. > > Seems like the stockquote-service-bundle sample not getting deployed in > the latest mss-server. > > I don't see the following log after deploying the sample, where I can see > the logs in alpha release. > > INFO {org.wso2.carbon.mss.internal.MicroservicesRegistry} - Added HTTP > Service: StockQuoteService2{} > > Any idea regarding the issue? > > On Mon, Nov 16, 2015 at 2:18 PM, Samiyuru Senarathne <[email protected]> > wrote: > >> A jira is added to this issue [1]. This issue will be fixed after the >> HTTP streaming response feature and the MSS implementation of the pet-store >> file server is finished. >> >> [1] - https://wso2.org/jira/browse/WMS-6 >> >> Best Regards, >> Samiyuru >> >> On Mon, Nov 16, 2015 at 1:08 PM, Sagara Gunathunga <[email protected]> >> wrote: >> >>> >>> >>> On Mon, Nov 16, 2015 at 12:39 PM, Samiyuru Senarathne <[email protected] >>> > wrote: >>> >>>> Hi Sagara, >>>> >>>> This issue is about loading our implementation >>>> of javax.ws.rs.core.Response [1] in OSGi mode using >>>> java java.util.ServiceLoader [2] by the relevant bundle. This issue is yet >>>> to be fixed and according to the discussions we had, the solution is to use >>>> SPI Fly [3] to fix the ServiceLoader issue. >>>> >>> >>> Due to this issue a service work perfectly on standalone mode does not >>> work in OSGi server mode that is a major incompatibility problem between 2 >>> deployment modes, IMHO we can't proceed to GA with this issue. We should >>> consider this as a L1 and fix properly. >>> >>> Thanks ! >>> >>>> >>>> [1] - >>>> https://docs.oracle.com/javaee/6/api/javax/ws/rs/core/Response.html >>>> [2] - >>>> https://docs.oracle.com/javase/6/docs/api/java/util/ServiceLoader.html >>>> [3] - http://aries.apache.org/modules/spi-fly.html >>>> >>>> Best Regards, >>>> Samiyuru >>>> >>>> On Mon, Nov 16, 2015 at 10:20 AM, Sagara Gunathunga <[email protected]> >>>> wrote: >>>> >>>>> Hi Samiyuru, >>>>> >>>>> Before the Alpha release we had an issues returning Response object >>>>> while running on OSGi mode due Java service providers, I remember we >>>>> discussed some solutions but not sure whether we have fix or not ? Can >>>>> you >>>>> please update ? >>>>> >>>>> >>>>> Thanks ! >>>>> -- >>>>> Sagara Gunathunga >>>>> >>>>> Architect; WSO2, Inc.; http://wso2.com >>>>> V.P Apache Web Services; http://ws.apache.org/ >>>>> Linkedin; http://www.linkedin.com/in/ssagara >>>>> Blog ; http://ssagara.blogspot.com >>>>> >>>>> >>>> >>>> >>>> -- >>>> Samiyuru Senarathne >>>> *Software Engineer* >>>> Mobile : +94 (0) 71 134 6087 >>>> [email protected] >>>> >>> >>> >>> >>> -- >>> Sagara Gunathunga >>> >>> Architect; WSO2, Inc.; http://wso2.com >>> V.P Apache Web Services; http://ws.apache.org/ >>> Linkedin; http://www.linkedin.com/in/ssagara >>> Blog ; http://ssagara.blogspot.com >>> >>> >> >> >> -- >> Samiyuru Senarathne >> *Software Engineer* >> Mobile : +94 (0) 71 134 6087 >> [email protected] >> >> _______________________________________________ >> Architecture mailing list >> [email protected] >> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture >> >> > > > -- > > *Aruna Sujith Karunarathna *| Software Engineer > WSO2, Inc | lean. enterprise. middleware. > #20, Palm Grove, Colombo 03, Sri Lanka > Mobile: +94 71 9040362 | Work: +94 112145345 > Email: [email protected] | Web: www.wso2.com > > -- Samiyuru Senarathne *Software Engineer* Mobile : +94 (0) 71 134 6087 [email protected]
_______________________________________________ Architecture mailing list [email protected] https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
