Hi Dilusha,

And also other than what Rajith supposed you have also to delete the
WebSocketInboundEndpoint.xml file from the
<API-M_HOME>/repository/deployment/server/synapse-configs/default/inbound-endpoints
directory.

Regards,
Samitha

On Sun, Nov 19, 2017 at 2:37 PM, Rajith Roshan <[email protected]> wrote:

> 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.getAxisConfigura
>> tion(CarbonAxisConfigurator.java:194)
>> at org.apache.axis2.context.ConfigurationContextFactory.createC
>> onfigurationContext(ConfigurationContextFactory.java:64)
>> at org.wso2.carbon.core.CarbonConfigurationContextFactory.creat
>> eNewConfigurationContext(CarbonConfigurationContextFactory.java:65)
>> at org.wso2.carbon.core.init.CarbonServerManager.initializeCarb
>> on(CarbonServerManager.java:398)
>> at org.wso2.carbon.core.init.CarbonServerManager.start(CarbonSe
>> rverManager.java:219)
>> at org.wso2.carbon.core.internal.CarbonCoreServiceComponent.act
>> ivate(CarbonCoreServiceComponent.java:94)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
>> ssorImpl.java:62)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
>> thodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:498)
>> at org.eclipse.equinox.internal.ds.model.ServiceComponent.activ
>> ate(ServiceComponent.java:260)
>> at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.a
>> ctivate(ServiceComponentProp.java:146)
>> at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.b
>> uild(ServiceComponentProp.java:345)
>> at org.eclipse.equinox.internal.ds.InstanceProcess.buildCompone
>> nt(InstanceProcess.java:620)
>> at org.eclipse.equinox.internal.ds.InstanceProcess.buildCompone
>> nts(InstanceProcess.java:197)
>> at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolve
>> r.java:343)
>> at org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SC
>> RManager.java:222)
>> at org.eclipse.osgi.internal.serviceregistry.FilteredServiceLis
>> tener.serviceChanged(FilteredServiceListener.java:107)
>> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.d
>> ispatchEvent(BundleContextImpl.java:861)
>> at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve
>> nt(EventManager.java:230)
>> at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEv
>> entSynchronous(ListenerQueue.java:148)
>> at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.pu
>> blishServiceEventPrivileged(ServiceRegistry.java:819)
>> at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.pu
>> blishServiceEvent(ServiceRegistry.java:771)
>> at org.eclipse.osgi.internal.serviceregistry.ServiceRegistratio
>> nImpl.register(ServiceRegistrationImpl.java:130)
>> at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.re
>> gisterService(ServiceRegistry.java:214)
>> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.r
>> egisterService(BundleContextImpl.java:433)
>> at org.eclipse.equinox.http.servlet.internal.Activator.register
>> HttpService(Activator.java:81)
>> at org.eclipse.equinox.http.servlet.internal.Activator.addProxy
>> Servlet(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(Standar
>> dWrapper.java:1269)
>> at org.apache.catalina.core.StandardWrapper.loadServlet(Standar
>> dWrapper.java:1182)
>> at org.apache.catalina.core.StandardWrapper.load(StandardWrappe
>> r.java:1072)
>> at org.apache.catalina.core.StandardContext.loadOnStartup(Stand
>> ardContext.java:5368)
>> at org.apache.catalina.core.StandardContext.startInternal(Stand
>> ardContext.java:5660)
>> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
>> at org.apache.catalina.core.ContainerBase$StartChild.call(Conta
>> inerBase.java:1571)
>> at org.apache.catalina.core.ContainerBase$StartChild.call(Conta
>> inerBase.java:1561)
>> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPool
>> Executor.java:1142)
>> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo
>> lExecutor.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.processTranspo
>> rtSenders(AxisConfigBuilder.java:712)
>> at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig
>> (AxisConfigBuilder.java:124)
>> at org.wso2.carbon.core.CarbonAxisConfigurator.populateAxisConf
>> iguration(CarbonAxisConfigurator.java:341)
>> at org.wso2.carbon.core.CarbonAxisConfigurator.getAxisConfigura
>> tion(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.findClassInter
>> nal(BundleLoader.java:501)
>> at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund
>> leLoader.java:421)
>> at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund
>> leLoader.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.processTranspo
>> rtSenders(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
>
>


-- 
Samitha Chathuranga
Software Engineer, WSO2 Inc.
lean.enterprise.middleware
Mobile: +94715123761

[image: http://wso2.com/signature] <http://wso2.com/signature>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to