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 "Deepal Jayasinghe (JIRA)" <ji...@apache.org> on 2007/05/08 17:59:15 UTC

[jira] Assigned: (AXIS2-2636) getResourceAsStream(String) failure for files under WEB-INF/classes

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

Deepal Jayasinghe reassigned AXIS2-2636:
----------------------------------------

    Assignee: Deepal Jayasinghe

> 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
>         Assigned To: Deepal Jayasinghe
>
> 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org