Thanks for the response Samiyuru. I had made a mistake here. I had dropped the osgi bundle to the microservices directory instead of the dropins directory. Later corrected this and dropped the bundle to the dropins.
Now I am getting the exception below: org.osgi.framework.BundleException: Could not resolve module: stockquote-bundle [55] Unresolved requirement: Import-Package: org.wso2.msf4j This is because RC4 server is still having org. wso2.carbon.mss and my sample is having org.wso2.msf4j. I will use MSF4J RC5 and test this. Thanks Manisha On Wed, Feb 10, 2016 at 2:53 PM, Samiyuru Senarathne <samiy...@wso2.com> wrote: > Hi, > > Stock Quote Bundle sample creates an OSGi bundle. Bundles should be > copied to osgi/dropins. > > The mode you are using is the deployable jar mode. That is for a different > kind of artifact type specific to earlier MSS that are not OSGi bundles. > They were supported before MSF4J RC5. > > From RC5 onwards MSF4J does not support deployable jar mode. Only > serverless mode and bundle mode is supported. Please refer "Do we need the > deployable jar (thin jar) mode in MSF4J" thread. > > It will be better if you could try MSF4J 1.0.0 RC5. > > Best Regards, > Samiyuru > > On Wed, Feb 10, 2016 at 2:32 PM, Manisha Gayathri <mani...@wso2.com> > wrote: > >> Hi >> >> I am using the RC4 of MSS and tried deploying the Stock Quote Bundle >> sample checked out from [1] to the server >> >> When deploying, I am getting the error below: >> [2016-02-10 12:08:27,615] INFO >> {org.wso2.carbon.mss.internal.deployer.MSSDeployer} - Deploying artifact: >> /home/manisha/wso2products/MSS/rc4/wso2mss-1.0.0/deployment/microservices/stockquote-bundle-1.0.0-SNAPSHOT.jar >> [2016-02-10 12:08:27,617] ERROR >> {org.wso2.carbon.kernel.internal.deployment.DeploymentEngine} - Error while >> deploying artifacts >> org.wso2.carbon.kernel.deployment.exception.CarbonDeploymentException: >> Error while processing the artifact: >> /home/manisha/wso2products/MSS/rc4/wso2mss-1.0.0/deployment/microservices/stockquote-bundle-1.0.0-SNAPSHOT.jar >> at >> org.wso2.carbon.mss.internal.deployer.MSSDeployer.deploy(MSSDeployer.java:91) >> at >> org.wso2.carbon.kernel.internal.deployment.DeploymentEngine.lambda$deployArtifacts$0(DeploymentEngine.java:239) >> at java.util.ArrayList.forEach(ArrayList.java:1249) >> at >> org.wso2.carbon.kernel.internal.deployment.DeploymentEngine.deployArtifacts(DeploymentEngine.java:233) >> at >> org.wso2.carbon.kernel.internal.deployment.RepositoryScanner.sweep(RepositoryScanner.java:110) >> at >> org.wso2.carbon.kernel.internal.deployment.RepositoryScanner.scan(RepositoryScanner.java:68) >> at >> org.wso2.carbon.kernel.internal.deployment.SchedulerTask.run(SchedulerTask.java:43) >> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) >> at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) >> at >> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) >> at >> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) >> at >> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) >> at >> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) >> at java.lang.Thread.run(Thread.java:745) >> Caused by: >> org.wso2.carbon.mss.internal.deployer.MSSJarProcessorException: Manifest >> entry 'microservices' not found: >> /home/manisha/wso2products/MSS/rc4/wso2mss-1.0.0/deployment/microservices/stockquote-bundle-1.0.0-SNAPSHOT.jar >> at >> org.wso2.carbon.mss.internal.deployer.MSSJarProcessor.readMSSManifestEntry(MSSJarProcessor.java:121) >> at >> org.wso2.carbon.mss.internal.deployer.MSSJarProcessor.process(MSSJarProcessor.java:65) >> at >> org.wso2.carbon.mss.internal.deployer.MSSDeployer.deploy(MSSDeployer.java:89) >> ... 13 more >> >> [2016-02-10 12:08:27,619] ERROR >> {org.wso2.carbon.kernel.internal.deployment.SchedulerTask} - Error occurred >> while scanning deployment repository java.lang.NullPointerException >> at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:936) >> at >> java.util.concurrent.ConcurrentHashMap.containsKey(ConcurrentHashMap.java:964) >> at >> org.wso2.carbon.kernel.internal.deployment.DeploymentEngine.removeFromDeployedArtifacts(DeploymentEngine.java:333) >> at >> org.wso2.carbon.kernel.internal.deployment.DeploymentEngine.addToFaultyArtifacts(DeploymentEngine.java:303) >> at >> org.wso2.carbon.kernel.internal.deployment.DeploymentEngine.lambda$deployArtifacts$0(DeploymentEngine.java:253) >> at java.util.ArrayList.forEach(ArrayList.java:1249) >> at >> org.wso2.carbon.kernel.internal.deployment.DeploymentEngine.deployArtifacts(DeploymentEngine.java:233) >> at >> org.wso2.carbon.kernel.internal.deployment.RepositoryScanner.sweep(RepositoryScanner.java:110) >> at >> org.wso2.carbon.kernel.internal.deployment.RepositoryScanner.scan(RepositoryScanner.java:68) >> at >> org.wso2.carbon.kernel.internal.deployment.SchedulerTask.run(SchedulerTask.java:43) >> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) >> at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) >> at >> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) >> at >> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) >> at >> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) >> at >> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) >> at java.lang.Thread.run(Thread.java:745) >> >> Am I doing something wrong in here? >> >> [1]. https://github.com/wso2/msf4j/tree/master/samples/stockquote/bundle >> >> Thanks >> Manisha >> >> -- >> ~Regards >> *Manisha Eleperuma* >> Senior Software Engineer >> WSO2, Inc.: http://wso2.com >> lean.enterprise.middleware >> >> *blog: http://manisha-eleperuma.blogspot.com/ >> <http://manisha-eleperuma.blogspot.com/>* >> >> >> > > > -- > Samiyuru Senarathne > *Software Engineer* > Mobile : +94 (0) 71 134 6087 > samiy...@wso2.com > -- ~Regards *Manisha Eleperuma* Senior Software Engineer WSO2, Inc.: http://wso2.com lean.enterprise.middleware *blog: http://manisha-eleperuma.blogspot.com/ <http://manisha-eleperuma.blogspot.com/>*
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev