Udara,

You have to add necessary MB dependencies to
CEP_HOME/repository/components/lib


On Wed, Nov 6, 2013 at 7:21 PM, Udara Liyanage <[email protected]> wrote:

> Hi,
>
> I got the fallowing error while CEP is stating up.
>
> [2013-11-06 19:11:39,704]  INFO - {EventProcessorDeployer}  Execution plan
> deployment held back and in inactive state :
> SecondDerivativeOfRequestsInFlightFinder ,waiting for dependency :
> stratos.lb.stats:1.0.0
> [2013-11-06 19:11:39,726]  INFO - {InputEventAdaptorDeployer}  Input Event
> Adaptor deployed successfully and in active state :
> InstanceStatsInputAdaptor
> [2013-11-06 19:11:39,738]  INFO - {InputEventAdaptorDeployer}  Input Event
> Adaptor deployed successfully and in active state :
> DefaultWSO2EventInputAdaptor
> [2013-11-06 19:11:39,748]  INFO - {EventBuilderDeployer}  Event builder
> deployment held back and in inactive state
> :stratos.instance.stats_1.0.0_builder, Stream validation exception : Input
> stream definition is not available
> [2013-11-06 19:11:39,765]  INFO - {EventBuilderDeployer}  Event builder
> deployment held back and in inactive state
> :LoadBalancerStatisticsEventBuilder, Stream validation exception : Input
> stream definition is not available
> [2013-11-06 19:11:39,798] ERROR - {CarbonInputEventAdaptorService}  Cannot
> acquire JNDI context, JMS Connection factory : topicConnectionfactory or
> default destination : null for JMS CF : InstanceStatsInputAdaptor using :
> {java.naming.provider.url=/home/ubuntu/packages/cep/wso2cep-3.0.0/repository/conf/jndi.properties,
> java.naming.factory.initial=org.wso2.andes.jndi.PropertiesFileInitialContextFactory,
> transport.jms.DestinationType=topic,
> transport.jms.SubscriptionDurable=false,
> transport.jms.ConnectionFactoryJNDIName=topicConnectionfactory}
> org.wso2.carbon.event.input.adaptor.core.exception.InputEventAdaptorEventProcessingException:
> Cannot acquire JNDI context, JMS Connection factory :
> topicConnectionfactory or default destination : null for JMS CF :
> InstanceStatsInputAdaptor using :
> {java.naming.provider.url=/home/ubuntu/packages/cep/wso2cep-3.0.0/repository/conf/jndi.properties,
> java.naming.factory.initial=org.wso2.andes.jndi.PropertiesFileInitialContextFactory,
> transport.jms.DestinationType=topic,
> transport.jms.SubscriptionDurable=false,
> transport.jms.ConnectionFactoryJNDIName=topicConnectionfactory}
>  at
> org.wso2.carbon.event.input.adaptor.jms.internal.util.JMSConnectionFactory.<init>(JMSConnectionFactory.java:102)
> at
> org.wso2.carbon.event.input.adaptor.jms.JMSEventAdaptorType.subscribe(JMSEventAdaptorType.java:236)
>  at
> org.wso2.carbon.event.input.adaptor.core.internal.CarbonInputEventAdaptorService.subscribe(CarbonInputEventAdaptorService.java:104)
> at
> org.wso2.carbon.event.builder.core.internal.EventBuilder.subscribeToEventAdaptor(EventBuilder.java:146)
>  at
> org.wso2.carbon.event.builder.core.internal.config.StreamJunctionManager.registerEventSender(StreamJunctionManager.java:67)
> at
> org.wso2.carbon.event.builder.core.internal.CarbonEventBuilderService.addEventBuilder(CarbonEventBuilderService.java:199)
>  at
> org.wso2.carbon.event.builder.core.EventBuilderDeployer.processDeployment(EventBuilderDeployer.java:182)
> at
> org.wso2.carbon.event.builder.core.EventBuilderDeployer.deploy(EventBuilderDeployer.java:80)
>  at
> org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
> at
> org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:810)
>  at
> org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
> at
> org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377)
>  at
> org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)
> at
> org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:139)
>  at
> org.wso2.carbon.core.CarbonAxisConfigurator.loadServices(CarbonAxisConfigurator.java:464)
> at
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:95)
>  at
> org.wso2.carbon.core.CarbonConfigurationContextFactory.createNewConfigurationContext(CarbonConfigurationContextFactory.java:65)
> at
> org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:398)
>  at
> org.wso2.carbon.core.init.CarbonServerManager.start(CarbonServerManager.java:219)
> at
> org.wso2.carbon.core.internal.CarbonCoreServiceComponent.activate(CarbonCoreServiceComponent.java:77)
>  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:260)
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
>  at
> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347)
> at
> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
>  at
> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
> at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
>  at
> org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
> at
> org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
>  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.equinox.http.servlet.internal.Activator.registerHttpService(Activator.java:81)
> at
> org.eclipse.equinox.http.servlet.internal.Activator.addProxyServlet(Activator.java:60)
>  at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.init(ProxyServlet.java:40)
> at
> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.init(DelegationServlet.java:38)
>  at
> org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1267)
> at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1186)
>  at
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1081)
> at
> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5027)
>  at
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5314)
> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>  at
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
> at
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
>  at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
> at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>  at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>  at java.lang.Thread.run(Thread.java:662)
> Caused by: javax.naming.NoInitialContextException: Failed to create
> InitialContext using factory specified in hash table. [Root exception is
> java.lang.ClassNotFoundException: *class
> org.wso2.andes.jndi.PropertiesFileInitialContextFactory not found]*
>  at
> org.wso2.carbon.context.internal.CarbonContextDataHolder$CarbonInitialJNDIContextFactoryBuilder.createInitialContextFactory(CarbonContextDataHolder.java:702)
>  at
> javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:664)
> at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
>  at javax.naming.InitialContext.init(InitialContext.java:223)
> at javax.naming.InitialContext.<init>(InitialContext.java:197)
>  at
> org.wso2.carbon.event.input.adaptor.jms.internal.util.JMSConnectionFactory.<init>(JMSConnectionFactory.java:92)
> ... 56 more
> Caused by: java.lang.ClassNotFoundException: class
> org.wso2.andes.jndi.PropertiesFileInitialContextFactory not found
> at
> org.wso2.carbon.context.internal.CarbonContextDataHolder.classForName(CarbonContextDataHolder.java:1415)
>  at
> org.wso2.carbon.context.internal.CarbonContextDataHolder.access$700(CarbonContextDataHolder.java:103)
> at
> org.wso2.carbon.context.internal.CarbonContextDataHolder$CarbonInitialJNDIContextFactoryBuilder.createInitialContextFactory(CarbonContextDataHolder.java:698)
>  ... 61 more
> [2013-11-06 19:11:39,800]  INFO - {EventBuilderDeployer}  Event builder
> deployment held back and in inactive state :InstanceStatisticsEventBuilder,
> Waiting for Input Event Adaptor dependency :InstanceStatsInputAdaptor
> [2013-11-06 19:11:43,005]  INFO - {FeatureRegistry}  loadResourcesFrom
> [2013-11-06 19:11:43,024]  INFO - {XmlUtil}  errorNotUsingSecureXML
> [2013-11-06 19:11:43,025]  INFO - {XmlUtil}  reuseDocumentBuilders
> [2013-11-06 19:11:43,233]  INFO - {FeatureRegistry}  loadResourcesFrom
> [2013-11-06 19:11:45,635]  INFO - {JsonContainerConfigLoader}
>  loadResourcesFrom
> [2013-11-06 19:11:45,636]  INFO - {JsonContainerConfigLoader}
>  readingContainerConfig
> [2013-11-06 19:11:45,753]  WARN - {BasicSecurityTokenCodec}  Token TTL for
> container "{0}" was {1} and will be ignored.
>
>
> --
> Udara Liyanage
> Software Engineer
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> web: http://udaraliyanage.wordpress.com
> phone: +94 71 443 6897
>



-- 
Best Regards,
Nirmal

Nirmal Fernando.
PPMC Member & Committer of Apache Stratos,
Senior Software Engineer, WSO2 Inc.

Blog: http://nirmalfdo.blogspot.com/

Reply via email to