Re: [Dev] [APIM 2.1.0] Class not found org.wso2.carbon.transport.passthru.PassThroughHttpSender cannot be found by axis2_1.6.1.wso2v20

2017-11-22 Thread roshan wijesena
Chamalee,

Thanks that was the issue :D . Sorry for the noise!

On Thu, Nov 23, 2017 at 4:14 PM, Chamalee De Silva 
wrote:

> Hi Roshan,
>
> Can you double check your axis2.xml configuration for the Transport sender
> class ?
>
> This issue can be reproduced in a fresh pack when you set
> * org.wso2.carbon*.transport.passthru.PassThroughHttpSender as the class
> in your transport sender configuration without using *org.apache.synapse.*
> transport.passthru.PassThroughHttpSender as the class.
>
>
>
> Thanks,
> Chamalee
>
> On Thu, Nov 23, 2017 at 9:05 AM, roshan wijesena 
> wrote:
>
>> Folks,
>>
>> When I enable transportSender configs from axis2.xml, in APIM 2.1.0, I
>> am getting below error, what could be gone wrong here?
>>
>> 
>> true
>> localhost
>> 8080
>> 
>>
>> [2017-11-23 13:31:29,852] FATAL - CarbonServerManager WSO2 Carbon
>> initialization Failed
>> org.apache.axis2.AxisFault: Exception occured while loading the Axis
>> configuration from /opt/wso2/wso2am-2.1.0/repository/conf/axis2/axis2.xml
>> 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 

Re: [Dev] [APIM 2.1.0] Class not found org.wso2.carbon.transport.passthru.PassThroughHttpSender cannot be found by axis2_1.6.1.wso2v20

2017-11-22 Thread Chamalee De Silva
Hi Roshan,

Can you double check your axis2.xml configuration for the Transport sender
class ?

This issue can be reproduced in a fresh pack when you set*
org.wso2.carbon*.transport.passthru.PassThroughHttpSender
as the class in your transport sender configuration without using
*org.apache.synapse.*transport.passthru.PassThroughHttpSender as the class.



Thanks,
Chamalee

On Thu, Nov 23, 2017 at 9:05 AM, roshan wijesena 
wrote:

> Folks,
>
> When I enable transportSender configs from axis2.xml, in APIM 2.1.0, I am
> getting below error, what could be gone wrong here?
>
>  class="org.apache.synapse.transport.passthru.PassThroughHttpSender">
>
> true
> localhost
> 8080
> 
>
> [2017-11-23 13:31:29,852] FATAL - CarbonServerManager WSO2 Carbon
> initialization Failed
> org.apache.axis2.AxisFault: Exception occured while loading the Axis
> configuration from /opt/wso2/wso2am-2.1.0/repository/conf/axis2/axis2.xml
> 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 

[Dev] [APIM 2.1.0] Class not found org.wso2.carbon.transport.passthru.PassThroughHttpSender cannot be found by axis2_1.6.1.wso2v20

2017-11-22 Thread roshan wijesena
Folks,

When I enable transportSender configs from axis2.xml, in APIM 2.1.0, I am
getting below error, what could be gone wrong here?


true
localhost
8080


[2017-11-23 13:31:29,852] FATAL - CarbonServerManager WSO2 Carbon
initialization Failed
org.apache.axis2.AxisFault: Exception occured while loading the Axis
configuration from /opt/wso2/wso2am-2.1.0/repository/conf/axis2/axis2.xml
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:1149)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.apache.axis2.deployment.DeploymentException:
org.wso2.carbon.transport.passthru.PassThroughHttpSender 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