Hi Nipuni, I tried removing all custom bundles but it didn't resolve the issue. However, I built a new pack and tried the bundle and it got activated fine. Thanks for the quick response.
Thanks, Himasha On Wed, Mar 16, 2016 at 5:45 PM, Nipuni Perera <nip...@wso2.com> wrote: > Hi Himasha, > > I have build the msf4j (master branch) and added the jndi jar to dropins > location and could start the server. I have checked the bundle status and > the bundle org.wso2.carbon.jndi_1.0.0.SNAPSHOT is in Active state. > > As per the exception [1], jndi activation should fail and the bundle > should not activate. > > Can you please try to reproduce this without any custom bundles in your > environment? > > [1] [org.wso2.carbon.jndi.internal.JNDIActivator] : > InitialContextFactoryBuilder already set > > java.lang.IllegalStateException: InitialContextFactoryBuilder already set > > ... > > Thanks, > > Nipuni > > On Wed, Mar 16, 2016 at 4:56 PM, Himasha Guruge <himas...@wso2.com> wrote: > >> Thanks for the update Nipuni. I have created a JIRA in [1]. >> >> >> []1 https://wso2.org/jira/browse/CARBON-15812 >> >> On Wed, Mar 16, 2016 at 4:48 PM, Nipuni Perera <nip...@wso2.com> wrote: >> >>> Hi Himasha, >>> >>> With JNDIActivator we set the InitialContextFactoryBuilder while >>> starting the bundle. It seems that some other service too trying to set the >>> InitialContextFactoryBuilder >>> in mss. >>> I will check this and get back to you soon. >>> >>> Can you also create a jira to track the issue? >>> >>> Thanks, >>> Nipuni >>> >>> On Wed, Mar 16, 2016 at 3:57 PM, Himasha Guruge <himas...@wso2.com> >>> wrote: >>> >>>> Hi Nipuni, >>>> >>>> I was trying to deploy JNDI jar built from [1] in mss, and got the >>>> following exception. I have removed our custom component bundles to make >>>> sure they are not causing below exceptions. Appreciate any help on this. >>>> >>>> [org.wso2.carbon.jndi.internal.JNDIActivator] : >>>> InitialContextFactoryBuilder already set >>>> >>>> java.lang.IllegalStateException: InitialContextFactoryBuilder already >>>> set >>>> >>>> at >>>> javax.naming.spi.NamingManager.setInitialContextFactoryBuilder(NamingManager.java:709) >>>> >>>> at >>>> org.wso2.carbon.jndi.internal.JNDIActivator.start(JNDIActivator.java:53) >>>> >>>> at >>>> org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:771) >>>> >>>> at >>>> org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1) >>>> >>>> at java.security.AccessController.doPrivileged(Native Method) >>>> >>>> at >>>> org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:764) >>>> >>>> at >>>> org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:721) >>>> >>>> at >>>> org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:936) >>>> >>>> at >>>> org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:319) >>>> >>>> at org.eclipse.osgi.container.Module.doStart(Module.java:571) >>>> >>>> at org.eclipse.osgi.container.Module.start(Module.java:439) >>>> >>>> at >>>> org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:454) >>>> >>>> at >>>> org.eclipse.osgi.container.ModuleContainer.applyDelta(ModuleContainer.java:717) >>>> >>>> at >>>> org.eclipse.osgi.container.ModuleContainer.resolveAndApply(ModuleContainer.java:491) >>>> >>>> at >>>> org.eclipse.osgi.container.ModuleContainer.resolve(ModuleContainer.java:437) >>>> >>>> at >>>> org.eclipse.osgi.container.ModuleContainer.resolve(ModuleContainer.java:427) >>>> >>>> at org.eclipse.osgi.container.Module.start(Module.java:416) >>>> >>>> at >>>> org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1498) >>>> >>>> at >>>> org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1) >>>> >>>> at >>>> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) >>>> >>>> at >>>> org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340) >>>> [1] https://github.com/wso2/carbon-jndi >>>> >>>> Thanks, >>>> >>>> Himasha Guruge >>>> *Software Engineer* >>>> WS*O2* *Inc.* >>>> Mobile: +94 777459299 >>>> himas...@wso2.com >>>> >>> >>> >>> >>> -- >>> Nipuni Perera >>> Software Engineer; WSO2 Inc.; http://wso2.com >>> Email: nip...@wso2.com >>> Git hub profile: https://github.com/nipuni >>> Blog : http://nipunipererablog.blogspot.com/ >>> Mobile: +94 (71) 5626680 >>> <http://wso2.com> >>> >>> >> >> >> -- >> Himasha Guruge >> *Software Engineer* >> WS*O2* *Inc.* >> Mobile: +94 777459299 >> himas...@wso2.com >> > > > > -- > Nipuni Perera > Software Engineer; WSO2 Inc.; http://wso2.com > Email: nip...@wso2.com > Git hub profile: https://github.com/nipuni > Blog : http://nipunipererablog.blogspot.com/ > Mobile: +94 (71) 5626680 > <http://wso2.com> > > -- Himasha Guruge *Software Engineer* WS*O2* *Inc.* Mobile: +94 777459299 himas...@wso2.com
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev