You are viewing a plain text version of this content. The canonical link for it is here.
Posted to portalapps-dev@portals.apache.org by "Woonsan Ko (JIRA)" <ji...@apache.org> on 2012/05/25 17:08:23 UTC

[jira] [Assigned] (APA-48) WebResourceUtils bombs with NPX if application is packaged as a non-expanded WAR file under Tomcat

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

Woonsan Ko reassigned APA-48:
-----------------------------

    Assignee: Woonsan Ko  (was: David Sean Taylor)
    
> WebResourceUtils bombs with NPX if application is packaged as a non-expanded WAR file under Tomcat
> --------------------------------------------------------------------------------------------------
>
>                 Key: APA-48
>                 URL: https://issues.apache.org/jira/browse/APA-48
>             Project: Portals Apps
>          Issue Type: Bug
>          Components: apa-webcontent
>    Affects Versions: apa-webcontent-1.2
>            Reporter: David Graff
>            Assignee: Woonsan Ko
>            Priority: Blocker
>             Fix For: apa-webcontent-1.3
>
>
> While testing an application configuration when packaged as a non-expanded WAR file the DefaultHttpReverseProxyServlet dies with a NullPointerException when calling WebResourceUtils.getResourcesAsFiles(String, ClassLoader, Object).
> The reason for this is that when packaged in a WAR file and not expanded, Tomcat provides a WARDirContext which returns null when requesting "getRealPath"
> Would it be possible to change this around such that the code is not dealing with files specifically and dealing with them as references & streams?
> This configuration issue is a blocker for my current product.
> If possible could the ServletContext.getResource/getResourceAsStream be used to determine the resource location and load it that way when "/WEB-INF/" is the start of the path?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira