Hi All,

After having problems with osgi httpservice in carbon bundle deployment in
Geronimo, I tried out the secondary option of running carbon in Geronimo in
web-app mode.

However when deploying carbon web app I came across the below JNDI issue
[2];
 Caused by: javax.naming.NoInitialContextException: Unable to determine
caller's BundleContext
    at
org.apache.aries.jndi.OSGiInitialContextFactoryBuilder.getInitialContext(OSGiInitialContextFactoryBuilder.java:49)

I think this is related to the bug in aries.jndi 0.3.0 reported here [1].
Geronimo 3 uses aries v0.3.0 bundles. I will further look into this and get
this resolved.

Thanks,
Dileepa

[1] https://issues.apache.org/jira/browse/ARIES-554

[2]
 Loading crbn                                            [2012-08-28
10:57:41,739] ERROR {org.wso2.carbon.ndatasource.core.DataSourceRepository}
-  Error in registering data source: WSO2_CARBON_DB - Error in creating
JNDI subcontext 'javax.naming.InitialContext@20828fe4/jdbc: Unable to
determine caller's BundleContext
org.wso2.carbon.ndatasource.common.DataSourceException: Error in creating
JNDI subcontext 'javax.naming.InitialContext@20828fe4/jdbc: Unable to
determine caller's BundleContext
    at
org.wso2.carbon.ndatasource.core.DataSourceRepository.checkAndCreateJNDISubContexts(DataSourceRepository.java:243)
    at
org.wso2.carbon.ndatasource.core.DataSourceRepository.registerJNDI(DataSourceRepository.java:268)
    at
org.wso2.carbon.ndatasource.core.DataSourceRepository.registerDataSource(DataSourceRepository.java:389)
    at
org.wso2.carbon.ndatasource.core.DataSourceRepository.addDataSource(DataSourceRepository.java:485)
    at
org.wso2.carbon.ndatasource.core.DataSourceManager.initSystemDataSource(DataSourceManager.java:158)
    at
org.wso2.carbon.ndatasource.core.DataSourceManager.initSystemDataSources(DataSourceManager.java:130)
    at
org.wso2.carbon.ndatasource.core.internal.DataSourceServiceComponent.initSystemDataSources(DataSourceServiceComponent.java:168)
    at
org.wso2.carbon.ndatasource.core.internal.DataSourceServiceComponent.setSecretCallbackHandlerService(DataSourceServiceComponent.java:154)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at
org.eclipse.equinox.internal.ds.model.ComponentReference.bind(ComponentReference.java:367)
    at
org.eclipse.equinox.internal.ds.model.ServiceComponentProp.bindReference(ServiceComponentProp.java:430)
    at
org.eclipse.equinox.internal.ds.model.ServiceComponentProp.bind(ServiceComponentProp.java:218)
    at
org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:344)
    at
org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:588)
    at
org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:196)
    at
org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:328)
    at
org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:221)
    at
org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:104)
    at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
    at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
    at
org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
    at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
    at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
    at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
    at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
    at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
    at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
    at
org.wso2.carbon.securevault.internal.SecretManagerInitializerComponent.activate(SecretManagerInitializerComponent.java:48)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at
org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:252)
    at
org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
    at
org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:346)
    at
org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:588)
    at
org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:196)
    at
org.eclipse.equinox.internal.ds.Resolver.buildNewlySatisfied(Resolver.java:441)
    at
org.eclipse.equinox.internal.ds.Resolver.enableComponents(Resolver.java:213)
    at
org.eclipse.equinox.internal.ds.SCRManager.performWork(SCRManager.java:800)
    at
org.eclipse.equinox.internal.ds.SCRManager$QueuedJob.dispatch(SCRManager.java:767)
    at org.eclipse.equinox.internal.ds.WorkThread.run(WorkThread.java:89)
    at
org.eclipse.equinox.internal.util.impl.tpt.threadpool.Executor.run(Executor.java:70)
Caused by: javax.naming.NoInitialContextException: Unable to determine
caller's BundleContext
    at
org.apache.aries.jndi.OSGiInitialContextFactoryBuilder.getInitialContext(OSGiInitialContextFactoryBuilder.java:49)
    at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
    at
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
    at
javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:316)
    at javax.naming.InitialContext.createSubcontext(InitialContext.java:464)
    at
org.wso2.carbon.ndatasource.core.DataSourceRepository.checkAndCreateJNDISubContexts(DataSourceRepository.java:241)
    ... 45 more


On Mon, Aug 27, 2012 at 1:38 PM, Dileepa Jayakody <[email protected]> wrote:

> Hi All,
>
> Currently I'm having a problem getting osgi http service from Geronimo,
> which is required by carbon bundles to register servlets and resources.
> When going through the list of registered osgi services, there's no
> org.osgi.service.http.HttpService available in Geronimo.
> Therefore I installed the org.eclipse.equinox.http.servlet and started the
> bundle, but still it seems the bundle cannot register the httpService.
> I've also asked help from geronimo dev list on this matter.
>
> Thanks,
> Dileepa
>
> On Sun, Aug 26, 2012 at 8:20 PM, Pradeep Fernando <[email protected]>wrote:
>
>> nice progress.!!! lets have a look tomorrow.
>>
>> we dont have to configure a new HTTP transports. Geronimo should
>> expose httpService via one of its bundles. We should be able to use
>> that.
>>
>>
>> --Pradeep
>>
>
>
>
> --
> Dileepa Jayakody,
> Software Engineer, WSO2 Inc.
> Lean . Enterprise . Middleware
>
> Mobile : +94777-857616
>
>


-- 
Dileepa Jayakody,
Software Engineer, WSO2 Inc.
Lean . Enterprise . Middleware

Mobile : +94777-857616
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to