Return-Path: X-Original-To: apmail-axis-java-dev-archive@www.apache.org Delivered-To: apmail-axis-java-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 19C339639 for ; Thu, 1 Dec 2011 00:26:05 +0000 (UTC) Received: (qmail 86566 invoked by uid 500); 1 Dec 2011 00:26:04 -0000 Delivered-To: apmail-axis-java-dev-archive@axis.apache.org Received: (qmail 86425 invoked by uid 500); 1 Dec 2011 00:26:04 -0000 Mailing-List: contact java-dev-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@axis.apache.org Delivered-To: mailing list java-dev@axis.apache.org Received: (qmail 86417 invoked by uid 99); 1 Dec 2011 00:26:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Dec 2011 00:26:04 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Dec 2011 00:26:01 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id EE117A78AC for ; Thu, 1 Dec 2011 00:25:39 +0000 (UTC) Date: Thu, 1 Dec 2011 00:25:39 +0000 (UTC) From: "Sagara Gunathunga (Issue Comment Edited) (JIRA)" To: java-dev@axis.apache.org Message-ID: <718186888.28805.1322699139976.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <17553587.1471295194485909.JavaMail.jira@thor> Subject: [jira] [Issue Comment Edited] (AXIS2-4930) handler class can't find, when using @HandlerChain in jaxws MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AXIS2-4930?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13160496#comment-13160496 ] Sagara Gunathunga edited comment on AXIS2-4930 at 12/1/11 12:24 AM: --------------------------------------------------------------------- Fixed in trunk (r1208901) I got following numbers before and after the fix on my local machine using Tomcat server. Message size ( [#/sec] - Before , [#/sec] -After ) 2k 8,023.50 12,029.10 5k 7,330.01 10,504.43 10k 6,249.89 8,426.26 100k 1,545.02 1,698.45 200k 654.45 752.12 500k - ( 209.89, 249.053) If this is acceptable I will apply to 1.6 branch too. was (Author: sagara): Fixed in trunk (r1208901) I got following numbers before and after the fix on my local machine using Tomcat server. Message size [#/sec] - Before [#/sec] -After 2k 8,023.50 12,029.10 5k 7,330.01 10,504.43 10k 6,249.89 8,426.26 100k 1,545.02 1,698.45 200k 654.45 752.12 500k 209.89 249.053 If this is acceptable I will apply to 1.6 branch too. > handler class can't find, when using @HandlerChain in jaxws > ----------------------------------------------------------- > > Key: AXIS2-4930 > URL: https://issues.apache.org/jira/browse/AXIS2-4930 > Project: Axis2 > Issue Type: Bug > Components: jaxws > Environment: Linux, JDK 1.6 > Reporter: Kasun Weranga Gunathilake > Fix For: 1.6.0 > > Attachments: jaxwshand.jar, patch.txt > > > When I used @HandlerChain in jaxws with handler class define in the handlerchain.xml, It throws an exception by saying handler class can't find. AFAIU the issue comes because of classloader doesn't add the service jar to the class path. > This is the exception. > [ERROR] java.lang.ClassNotFoundException: HandlerResolverImpl cannot load the following class Throwable Exception Occured:com.javacoda.jaxws.order.InfoHandler > org.apache.axis2.AxisFault: java.lang.ClassNotFoundException: HandlerResolverImpl cannot load the following class Throwable Exception Occured:com.javacoda.jaxws.order.InfoHandler > at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430) > at org.apache.axis2.jaxws.server.JAXWSMessageReceiver.receive(JAXWSMessageReceiver.java:242) > at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:181) > at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172) > at org.apache.axis2.transport.http.HTTPWorker.service(HTTPWorker.java:296) > at org.apache.axis2.transport.http.server.AxisHttpService.doService(AxisHttpService.java:281) > at org.apache.axis2.transport.http.server.AxisHttpService.handleRequest(AxisHttpService.java:187) > at org.apache.axis2.transport.http.server.HttpServiceProcessor.run(HttpServiceProcessor.java:82) > 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:619) > Caused by: javax.xml.ws.WebServiceException: java.lang.ClassNotFoundException: HandlerResolverImpl cannot load the following class Throwable Exception Occured:com.javacoda.jaxws.order.InfoHandler > at org.apache.axis2.jaxws.ExceptionFactory.createWebServiceException(ExceptionFactory.java:175) > at org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:70) > at org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:128) > at org.apache.axis2.jaxws.handler.HandlerResolverImpl.resolveHandlers(HandlerResolverImpl.java:359) > at org.apache.axis2.jaxws.handler.HandlerResolverImpl.getHandlerClasses(HandlerResolverImpl.java:143) > at org.apache.axis2.jaxws.handler.HandlerResolverImpl.getHandlerChain(HandlerResolverImpl.java:167) > at org.apache.axis2.jaxws.server.EndpointController.handleRequest(EndpointController.java:240) > at org.apache.axis2.jaxws.server.EndpointController.invoke(EndpointController.java:103) > at org.apache.axis2.jaxws.server.JAXWSMessageReceiver.receive(JAXWSMessageReceiver.java:161) > ... 9 more > Caused by: java.lang.ClassNotFoundException: HandlerResolverImpl cannot load the following class Throwable Exception Occured:com.javacoda.jaxws.order.InfoHandler > at org.apache.axis2.jaxws.spi.handler.BaseHandlerResolver$1.run(BaseHandlerResolver.java:313) > at org.apache.axis2.java.security.AccessController.doPrivileged(AccessController.java:132) > at org.apache.axis2.jaxws.spi.handler.BaseHandlerResolver.forName(BaseHandlerResolver.java:300) > at org.apache.axis2.jaxws.spi.handler.BaseHandlerResolver.loadClass(BaseHandlerResolver.java:113) > at org.apache.axis2.jaxws.handler.HandlerResolverImpl.resolveHandlers(HandlerResolverImpl.java:356) > ... 14 more > -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org For additional commands, e-mail: java-dev-help@axis.apache.org