[ 
https://issues.apache.org/jira/browse/AXIS2-2636?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12493564
 ] 

Davanum Srinivas commented on AXIS2-2636:
-----------------------------------------

see http://wso2.org/blog/dims/1131 

> getResourceAsStream(String) failure for files under WEB-INF/classes
> -------------------------------------------------------------------
>
>                 Key: AXIS2-2636
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2636
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.2
>         Environment: Windows Vista, Tomcat 5.5.20, JDK 1.5.0_10
>            Reporter: Alan Xu
>
> One of the ways to access resource files is through 
> this.getClass().getResourceAsStream(filename).  In our example, "this" is a 
> class that's in the .aar file.  You would place the resources files under 
> WEB-INF/classes, and things would just work.  With Axis2, the .aar file is 
> placed under WEB-INF/services, but the getResourceAsStream call still works 
> properly.
> With 1.2 release, however, that call is no longer work.  It appears that 
> there have been some retooling of DeploymentClassLoader such that it can only 
> resolves files in the .aar file.
> A workaround is to instead of using a class in the .aar file for the 
> getResourceAsStream(filename) call, you would reference a class located in 
> WEB-INF/lib or WEB-INF/classes.
> -Alan

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to