Hi Dilusha, When start using key manager profile did you remove the configuration section that starts with <transportSender name="ws" class="org.wso2.carbon.websocket.transport.WebsocketTransportSender"> in axis2.xml Please follow doc[1] for more info on how to start with different profiles.
[1] - https://docs.wso2.com/display/AM210/Product+Profiles#b5a266176df84a2d82f8f4900785231c Thanks! Rajith On Sun, Nov 19, 2017 at 2:07 PM, Dilusha Alphonso <[email protected]> wrote: > Hi All, > > I am trying to do a distributed system in APIM 2.1.0. In my setup, 2 > gateway nodes (worker, worker + manager), a key manager and > publisher, store, and Traffic manager together. > > After configuring the system when I start the key manager node it is > working fine. But when I start with -Dprofile I am getting the below > error. > > at org.wso2.carbon.core.CarbonAxisConfigurator.getAxisConfiguration( > CarbonAxisConfigurator.java:194) > at org.apache.axis2.context.ConfigurationContextFactory. > createConfigurationContext(ConfigurationContextFactory.java:64) > 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:94) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke( > NativeMethodAccessorImpl.java:62) > at sun.reflect.DelegatingMethodAccessorImpl.invoke( > DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > 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:345) > 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:1269) > at org.apache.catalina.core.StandardWrapper.loadServlet( > StandardWrapper.java:1182) > at org.apache.catalina.core.StandardWrapper.load( > StandardWrapper.java:1072) > at org.apache.catalina.core.StandardContext.loadOnStartup( > StandardContext.java:5368) > at org.apache.catalina.core.StandardContext.startInternal( > StandardContext.java:5660) > at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145) > at org.apache.catalina.core.ContainerBase$StartChild.call( > ContainerBase.java:1571) > at org.apache.catalina.core.ContainerBase$StartChild.call( > ContainerBase.java:1561) > at java.util.concurrent.FutureTask.run(FutureTask.java:266) > 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:748) > Caused by: org.apache.axis2.deployment.DeploymentException: > org.wso2.carbon.websocket.transport.WebsocketTransportSender cannot be > found by axis2_1.6.1.wso2v20 > at org.apache.axis2.deployment.AxisConfigBuilder.processTransportSenders( > AxisConfigBuilder.java:712) > at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig( > AxisConfigBuilder.java:124) > at org.wso2.carbon.core.CarbonAxisConfigurator.populateAxisConfiguration( > CarbonAxisConfigurator.java:341) > at org.wso2.carbon.core.CarbonAxisConfigurator.getAxisConfiguration( > CarbonAxisConfigurator.java:192) > ... 41 more > Caused by: java.lang.ClassNotFoundException: org.wso2.carbon.websocket. > transport.WebsocketTransportSender cannot be found by axis2_1.6.1.wso2v20 > at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal( > BundleLoader.java:501) > at org.eclipse.osgi.internal.loader.BundleLoader.findClass( > BundleLoader.java:421) > at org.eclipse.osgi.internal.loader.BundleLoader.findClass( > BundleLoader.java:412) > at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass( > DefaultClassLoader.java:107) > at java.lang.ClassLoader.loadClass(ClassLoader.java:357) > at java.lang.Class.forName0(Native Method) > at java.lang.Class.forName(Class.java:264) > at org.apache.axis2.util.Loader.loadClass(Loader.java:261) > at org.apache.axis2.deployment.AxisConfigBuilder.processTransportSenders( > AxisConfigBuilder.java:686) > ... 44 more > > What could be the reason, did I miss any configuration? > > Please anyone advice on this? > > Thanks > Dilusha > > -- > > > *Best Regards,Dilusha Alphonso* > > *Software Engineer - Support Team* > > > *WSO2* > *Mobile : * > > *+94766837098 <+94%2076%20683%207098>[image: http://wso2.com/signature] > <http://wso2.com/signature>* > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Rajith Roshan Senior Software Engineer, WSO2 Inc. Mobile: +94-7 <%2B94-71-554-8430>17-064-214
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
