You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Robert Almonte (JIRA)" <ji...@apache.org> on 2007/10/05 16:55:50 UTC

[jira] Created: (AXIS2-3248) Unable to find handlerChain's configuration file from the classpath

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


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


[jira] Updated: (AXIS2-3248) Unable to find handlerChain's configuration file from the classpath

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-3248?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Davanum Srinivas updated AXIS2-3248:
------------------------------------

    Fix Version/s: 1.4

> 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


[jira] Commented: (AXIS2-3248) Unable to find handlerChain's configuration file from the classpath

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3248?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12580217#action_12580217 ] 

Davanum Srinivas commented on AXIS2-3248:
-----------------------------------------

Robert,

could you please try a nightly build?

thanks,
dims

> 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


[jira] Resolved: (AXIS2-3248) Unable to find handlerChain's configuration file from the classpath

Posted by "Roy A. Wood Jr. (JIRA)" <ji...@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


[jira] Closed: (AXIS2-3248) Unable to find handlerChain's configuration file from the classpath

Posted by "Roy A. Wood Jr. (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-3248?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Roy A. Wood Jr. closed AXIS2-3248.
----------------------------------


> 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


[jira] Commented: (AXIS2-3248) Unable to find handlerChain's configuration file from the classpath

Posted by "Roy A. Wood Jr. (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3248?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12582035#action_12582035 ] 

Roy A. Wood Jr. commented on AXIS2-3248:
----------------------------------------

Hi Robert, 

Dims has provided a fix for this which we feel will resolve the problem with your demo. I'll go ahead and close this out...please feel free to reopen if this doesn't fix the problem. Thanks.

> 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


[jira] Commented: (AXIS2-3248) Unable to find handlerChain's configuration file from the classpath

Posted by "Roy A. Wood Jr. (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3248?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12580940#action_12580940 ] 

Roy A. Wood Jr. commented on AXIS2-3248:
----------------------------------------

Hi Robert,

Could you attach your pojo. I'd like to confirm that this is fixed with our new deployer. Thanks

> 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


[jira] Commented: (AXIS2-3248) Unable to find handlerChain's configuration file from the classpath

Posted by "Almonte, Robert (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3248?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12581071#action_12581071 ] 

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 implementation.


Thanks,

Robert



> 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


[jira] Assigned: (AXIS2-3248) Unable to find handlerChain's configuration file from the classpath

Posted by "Rich Scheuerle (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-3248?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rich Scheuerle reassigned AXIS2-3248:
-------------------------------------

    Assignee: Roy A. Wood Jr.

> 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.
>
> 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