axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Almonte, Robert (JIRA)" <>
Subject [jira] Commented: (AXIS2-3248) Unable to find handlerChain's configuration file from the classpath
Date Fri, 21 Mar 2008 12:25:29 GMT


Almonte, Robert commented on AXIS2-3248:

Hi Roy,
I would try to schedule time during this weekend to find my demo. I haven't been out of that
project where
I was trying to use Axis JAXWS. This was just a demo and we ended up using the JAXWS reference



> Unable to find handlerChain's configuration file from the classpath
> -------------------------------------------------------------------
>                 Key: AXIS2-3248
>                 URL:
>             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
> 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:
> [DEBUG] classLoader: sun.misc.Launcher$AppClassLoader@133056f
> [DEBUG] Attempting to load @HandlerChain configuration file: TapeHandlerConfig.xml relative
to class:
> [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:
> 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(
>         at org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(
>         at org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(
>         at org.apache.axis2.jaxws.description.impl.DescriptionUtils.openHandlerConfigStream(
>         at org.apache.axis2.jaxws.description.impl.EndpointDescriptionImpl.getHandlerChain(
>         at org.apache.axis2.jaxws.handler.HandlerResolverImpl.resolveHandlers(
>         at org.apache.axis2.jaxws.handler.HandlerResolverImpl.getHandlerChain(
>         at org.apache.axis2.jaxws.server.EndpointController.invoke(
>         at org.apache.axis2.jaxws.server.JAXWSMessageReceiver.receive(
>         at org.apache.axis2.engine.AxisEngine.receive(
>         at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(
>         at org.apache.axis2.transport.http.HTTPWorker.service(
>         at org.apache.axis2.transport.http.server.AxisHttpService.doService(
>         at org.apache.axis2.transport.http.server.AxisHttpService.handleRequest(
>         at
>         at$Worker.runTask(
>         at$
>         at
> [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:
For additional commands, e-mail:

View raw message