Okay so the issue was the use of the package name
*org.apache.axis2.handlers* for my Axis2 handler, apparently using this
package name can lead to conflicts. I used a different package name
*org.wso2.custom.handlers* as suggested by Isuru and this solved the issue,
Thanks Isuru.


On 5 September 2014 10:45, Uvindra Dias Jayasinha <[email protected]> wrote:

> Thanks Isuru,
>
> okay I've made sure that the proxy handler is only in the lib folder,
>
> uvindra@uvindra-ThinkPad-T530:~/SkyTV_Dev_Service/handler_elb_esb_cluster/ELB_1$
> *find -iname EchoProxyHandler**
> ./repository/components/lib/EchoProxyHandler_1.0.0.jar
>
> no other entries exist in the pack. But still I get the same exception
> when I start,
>
> TID: [0] [ELB] [2014-09-05 10:39:31,009] FATAL
> {org.wso2.carbon.core.init.CarbonServerManager} -  WSO2 Carbon
> initialization Failed {org.wso2.carbon.core.init.CarbonServerManager}
> org.apache.axis2.AxisFault: Exception occured while loading the Axis
> configuration from
> /home/uvindra/SkyTV_Dev_Service/handler_elb_esb_cluster/ELB_1/repository/conf/axis2/axis2.xml
>     at
> org.wso2.carbon.core.CarbonAxisConfigurator.getAxisConfiguration(CarbonAxisConfigurator.java:190)
>     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: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:895)
>     at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
>     at java.lang.Thread.run(Thread.java:662)
> Caused by: org.apache.axis2.deployment.DeploymentException:
> org.apache.axis2.handlers.EchoProxyHandler
>     at org.apache.axis2.deployment.util.Utils.loadHandler(Utils.java:149)
>     at
> org.apache.axis2.deployment.AxisConfigBuilder.processPhaseList(AxisConfigBuilder.java:549)
>     at
> org.apache.axis2.deployment.AxisConfigBuilder.processPhaseOrders(AxisConfigBuilder.java:584)
>     at
> org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:150)
>     at
> org.wso2.carbon.core.CarbonAxisConfigurator.populateAxisConfiguration(CarbonAxisConfigurator.java:308)
>     at
> org.wso2.carbon.core.CarbonAxisConfigurator.getAxisConfiguration(CarbonAxisConfigurator.java:188)
>     ... 42 more
> Caused by: java.lang.ClassNotFoundException:
> org.apache.axis2.handlers.EchoProxyHandler
>     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:247)
>     at java.lang.Class.forName0(Native Method)
>     at java.lang.Class.forName(Class.java:171)
>     at org.apache.axis2.util.Loader.loadClass(Loader.java:261)
>     at org.apache.axis2.util.Loader.loadClass(Loader.java:229)
>     at org.apache.axis2.deployment.util.Utils.loadHandler(Utils.java:116)
>     ... 47 more
>
>
>
>
>
>
>
>
>
> On 5 September 2014 10:21, Isuru Udana <[email protected]> wrote:
>
>> Hi Uvindra,
>>
>>
>> On Fri, Sep 5, 2014 at 9:08 AM, Uvindra Dias Jayasinha <[email protected]>
>> wrote:
>>
>>> Hi All,
>>>
>>> So I need to deploy a custom Axis2 handler in ELB 2.1.1.
>>>
>>> So I wrote a handler which extends the AbstractHandler interface and
>>> then copied the jar file to the ELB repository/components/plugins folder.
>>>
>> If it is jar, you need to copy into repository/components/lib directory,
>> else if it is an osgi bundle you need to copy into
>> repository/components/dropins
>>
>>
>>> Then I modified the axis2.xml to include the handler as part of the
>>> "InFlow" phase.
>>>
>>> Then when I start the ELB I get a axis2 DeploymentException referring to
>>> my custom handler due to a classNotFoundException.
>>>
>>> Any idea what I'm missing here? Or do I need to develop a full blown
>>> Axis2 module with my handler embedded to make this work?
>>>
>>> Sorry I cant include the actual output because I do not have internet
>>> access from my machine at the moment.
>>>
>>> --
>>> Regards,
>>> Uvindra
>>>
>>> Mobile: 777733962
>>>
>>> _______________________________________________
>>> Dev mailing list
>>> [email protected]
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Isuru Udana*
>> Senior
>> * Software Engineer*
>> WSO2 Inc.; http://wso2.com
>> email: [email protected] cell: +94 77 3791887
>> blog: http://mytecheye.blogspot.com/
>> twitter: http://twitter.com/isudana
>>
>
>
>
> --
> Regards,
> Uvindra
>
> Mobile: 777733962
>



-- 
Regards,
Uvindra

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

Reply via email to