Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 89901 invoked from network); 25 Mar 2008 18:49:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Mar 2008 18:49:37 -0000 Received: (qmail 42731 invoked by uid 500); 25 Mar 2008 18:49:32 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 42681 invoked by uid 500); 25 Mar 2008 18:49:32 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 42670 invoked by uid 99); 25 Mar 2008 18:49:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Mar 2008 11:49:32 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Mar 2008 18:48:50 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8836F234C0B2 for ; Tue, 25 Mar 2008 11:47:24 -0700 (PDT) Message-ID: <1293401097.1206470844556.JavaMail.jira@brutus> Date: Tue, 25 Mar 2008 11:47:24 -0700 (PDT) From: "Roy A. Wood Jr. (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Resolved: (AXIS2-3248) Unable to find handlerChain's configuration file from the classpath In-Reply-To: <3759520.1191596150942.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AXIS2-3248?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Roy A. Wood Jr. resolved AXIS2-3248. ------------------------------------ Resolution: Fixed > Unable to find handlerChain's configuration file from the classpath > ------------------------------------------------------------------- > > Key: AXIS2-3248 > URL: https://issues.apache.org/jira/browse/AXIS2-3248 > Project: Axis 2.0 (Axis2) > Issue Type: Bug > Components: jaxws > Affects Versions: 1.3 > Environment: FC3, with Axis2-1.3, running with the simple server and also in tomcat 6.X. > I am just using simple POJO annotation, no WSDL. > Reporter: Robert Almonte > Assignee: Roy A. Wood Jr. > Fix For: 1.4 > > > The handler chain's configuration file cannot be loaded from the classpath. > The problem is on the EndpointDescriptionImpl.getHandlerChain: 1290 - 1291. > Since the composite property is null, the classLoader variable is being assigned to the the EndpointDescriptionImpl's classloader, which is a Axis2's lib class loader, instead of the implOrSEIClass class loader, which is part of the myService.aar package. > My fix was this: > // RA20071005 > //ClassLoader classLoader = getServiceDescriptionImpl().isDBCMap() ? > // composite.getClassLoader() : this.getClass().getClassLoader(); > ClassLoader classLoader = getServiceDescriptionImpl().isDBCMap() ? > composite.getClassLoader() : implOrSEIClass.getClassLoader(); > I noticed another minor problem. If the Handler class is not in the Axis2's lib directory, it won't find it. > Since I was testing with this simple sample, I had my Handler class packaged in myService.aar too. > I know that it makes more sence to have the handler class in the Axis2's lib. > thanks, > Robert > ------------------------ LOG ----------------------- > [DEBUG] EndpointDescriptionImpl.getHandlerChain: fileName: TapeHandlerConfig.xml className: null > [DEBUG] classLoader: sun.misc.Launcher$AppClassLoader@133056f > [DEBUG] Attempting to load @HandlerChain configuration file: TapeHandlerConfig.xml relative to class: com.psi.tape.test.services.DataFeedService > [DEBUG] @HandlerChain.file attribute referes to a relative location: TapeHandlerConfig.xml > [DEBUG] Resolving @HandlerChain configuration file: TapeHandlerConfig.xml relative to class file: com/psi/tape/test/services/DataFeedService > [DEBUG] @HandlerChain.file resolved file path location: com/psi/tape/test/services/TapeHandlerConfig.xml > [DEBUG] getBundle(org.apache.axis2.jaxws,org.apache.axis2.jaxws.i18n,resource,null,...) > [DEBUG] loadBundle: Ignoring MissingResourceException: Can't find bundle for base name org.apache.axis2.jaxws.resource, locale en_US > [DEBUG] Created org.apache.axis2.jaxws.i18n.resource, linked to parent null > [DEBUG] getBundle(org.apache.axis2.jaxws,org.apache.axis2.jaxws.i18n,resource,null,...) > [DEBUG] org.apache.axis2.jaxws.i18n.resource::handleGetObject(handlerChainNS) > [DEBUG] Create Exception: > javax.xml.ws.WebServiceException: The @HandlerChain configuration file TapeHandlerConfig.xml in the class com/psi/tape/test/services/DataFeedService could not be loaded. > at org.apache.axis2.jaxws.ExceptionFactory.createWebServiceException(ExceptionFactory.java:172) > at org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:69) > at org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:117) > at org.apache.axis2.jaxws.description.impl.DescriptionUtils.openHandlerConfigStream(DescriptionUtils.java:333) > at org.apache.axis2.jaxws.description.impl.EndpointDescriptionImpl.getHandlerChain(EndpointDescriptionImpl.java:1300) > at org.apache.axis2.jaxws.handler.HandlerResolverImpl.resolveHandlers(HandlerResolverImpl.java:166) > at org.apache.axis2.jaxws.handler.HandlerResolverImpl.getHandlerChain(HandlerResolverImpl.java:96) > at org.apache.axis2.jaxws.server.EndpointController.invoke(EndpointController.java:114) > at org.apache.axis2.jaxws.server.JAXWSMessageReceiver.receive(JAXWSMessageReceiver.java:113) > at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145) > at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275) > at org.apache.axis2.transport.http.HTTPWorker.service(HTTPWorker.java:256) > at org.apache.axis2.transport.http.server.AxisHttpService.doService(AxisHttpService.java:259) > at org.apache.axis2.transport.http.server.AxisHttpService.handleRequest(AxisHttpService.java:166) > at org.apache.axis2.transport.http.server.HttpServiceProcessor.run(HttpServiceProcessor.java:85) > at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665) > at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690) > at java.lang.Thread.run(Thread.java:595) > [WARN] Unable to load handlers from file: TapeHandlerConfig.xml -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-dev-help@ws.apache.org