axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Davanum Srinivas (JIRA)" <>
Subject [jira] Commented: (AXIS2-2636) getResourceAsStream(String) failure for files under WEB-INF/classes
Date Fri, 04 May 2007 00:53:15 GMT


Davanum Srinivas commented on AXIS2-2636:


> getResourceAsStream(String) failure for files under WEB-INF/classes
> -------------------------------------------------------------------
>                 Key: AXIS2-2636
>                 URL:
>             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:
For additional commands, e-mail:

View raw message